内容简介
#include <unistd.h>#include <sys/types.h>
uid_t getuid(void);
uid_t geteuid(void);
描述
getuid() 返回当前进程的真实用户ID。geteuid() 返回当前进程的有效用户ID。
ERRORS
这些函数总是成功的。CONFORMING TO
POSIX.1-2001, 4.3BSD.HISTORY
In Unix V6 the getuid() call returned (euid << 8) + uid. Unix V7 introduced separate callsgetuid() and geteuid().SEE ALSO