ack/mach/minixST/libsys/_geteuid.c

13 lines
245 B
C
Raw Normal View History

#include <lib.h>
#include <sys/types.h>
#define geteuid _geteuid
#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);
}