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 calling process.
17
18 geteuid() returns the effective user ID of the calling process.
19
21 These functions are always successful.
22
24 POSIX.1-2001, 4.3BSD.
25
27 History
28 In Unix V6 the getuid() call returned (euid << 8) + uid. Unix V7
29 introduced separate calls getuid() and geteuid().
30
32 getresuid(2), setreuid(2), setuid(2), credentials(7)
33
35 This page is part of release 3.25 of the Linux man-pages project. A
36 description of the project, and information about reporting bugs, can
37 be found at http://www.kernel.org/doc/man-pages/.
38
39
40
41Linux 1993-07-23 GETUID(2)