1GETUID(2) Linux Programmer's Manual GETUID(2)
2
3
4
6 getuid, geteuid - get user identity
7
9 #include <unistd.h>
10 #include <sys/types.h>
11
12 uid_t getuid(void);
13 uid_t geteuid(void);
14
16 getuid() returns the real user ID of the current process.
17
18 geteuid() returns the effective user ID of the current process.
19
21 These functions are always successful.
22
24 POSIX.1-2001, 4.3BSD.
25
27 In Unix V6 the getuid() call returned (euid << 8) + uid. Unix V7
28 introduced separate calls getuid() and geteuid().
29
31 setreuid(2), setuid(2)
32
33
34
35Linux 0.99.11 1993-07-23 GETUID(2)