ack/mach/minix/libsys/_geteuid.c

13 lines
245 B
C
Raw Normal View History

#include <lib.h>
#include <sys/types.h>
#define geteuid _geteuid
1991-09-19 12:46:16 +00:00
#include <unistd.h>
PUBLIC uid_t geteuid()
{
int k;
k = _callm1(MM, GETUID, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
if (k < 0) return((uid_t) k);
return((uid_t) _M.m2_i1);
}