ref: ec5cd13d1388f0ff24e991f31d6faeb2f0f7d37d
dir: /sys/src/ape/lib/ap/plan9/getuid.c/
#include <sys/types.h>
#include <pwd.h>
#include <unistd.h>
uid_t
getuid(void)
{
struct passwd *p;
p = getpwnam(getlogin());
return p? p->pw_uid : 1;
}
uid_t
geteuid(void)
{
return getuid();
}