shithub: riscv

ref: 1d07c2a1614a3121a5b9d86f95394caccd61ee56
dir: /sys/src/ape/lib/ap/plan9/getuid.c/

View raw version
#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();
}