1GETUID(2)                  Linux Programmer's Manual                 GETUID(2)
2
3
4

NAME

6       getuid, geteuid - get user identity
7

SYNOPSIS

9       #include <unistd.h>
10       #include <sys/types.h>
11
12       uid_t getuid(void);
13       uid_t geteuid(void);
14

DESCRIPTION

16       getuid() returns the real user ID of the calling process.
17
18       geteuid() returns the effective user ID of the calling process.
19

ERRORS

21       These functions are always successful.
22

CONFORMING TO

24       POSIX.1-2001, 4.3BSD.
25

NOTES

27   History
28       In  Unix  V6  the  getuid()  call  returned (euid << 8) + uid.  Unix V7
29       introduced separate calls getuid() and geteuid().
30

SEE ALSO

32       getresuid(2), setreuid(2), setuid(2), credentials(7)
33

COLOPHON

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)
Impressum