libc, libutil: remove compat hacks
[minix.git] / lib / libc / sys-minix / setgid.c
blob90fc6e40e16ecdf875a56727d3aee504ee44a208
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
5 #ifdef __weak_alias
6 __weak_alias(setgid, _setgid)
7 __weak_alias(setegid, _setegid)
8 #endif
10 #include <unistd.h>
12 int setgid(gid_t grp)
14 message m;
16 m.m1_i1 = (int) grp;
17 return(_syscall(PM_PROC_NR, SETGID, &m));
20 int setegid(gid_t grp)
22 message m;
24 m.m1_i1 = (int) grp;
25 return(_syscall(PM_PROC_NR, SETEGID, &m));