ack/mach/minix/libsys/_getegid.c

12 lines
225 B
C

#include <lib.h>
#include <sys/types.h>
#define getegid _getegid
PUBLIC gid_t getegid()
{
int k;
k = _callm1(MM, GETGID, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
if (k < 0) return((gid_t) k);
return((gid_t) _M.m2_i1);
}