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 current process.
17
18       geteuid() returns the effective user ID of the current process.
19

ERRORS

21       These functions are always successful.
22

CONFORMING TO

24       POSIX.1-2001, 4.3BSD.
25

HISTORY

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

SEE ALSO

31       setreuid(2), setuid(2)
32
33
34
35Linux 0.99.11                     1993-07-23                         GETUID(2)
Impressum