ack/mach/minix/libsys/_getegid.c

13 lines
245 B
C
Raw Permalink Normal View History

#include <lib.h>
#include <sys/types.h>
#define getegid _getegid
1991-09-19 12:46:16 +00:00
#include <unistd.h>
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);
}