minix/lib/libc/posix/_setgid.c
Kees van Reeuwijk bc314bda91 Remove the types Dev_t, _mnx_Gui, _mnx_Uid, and similar.
Use ANSI-style function declarations where necessary.
2010-04-13 10:58:41 +00:00

20 lines
301 B
C

#include <lib.h>
#define setgid _setgid
#define setegid _setegid
#include <unistd.h>
PUBLIC int setgid(gid_t grp)
{
message m;
m.m1_i1 = (int) grp;
return(_syscall(MM, SETGID, &m));
}
PUBLIC int setegid(gid_t grp)
{
message m;
m.m1_i1 = (int) grp;
return(_syscall(MM, SETEGID, &m));
}