1getuid(2)                        System Calls                        getuid(2)
2
3
4

NAME

6       getuid,  geteuid, getgid, getegid - get real user, effective user, real
7       group, and effective group IDs
8

SYNOPSIS

10       #include <sys/types.h>
11       #include <unistd.h>
12
13       uid_t getuid(void);
14
15
16       uid_t geteuid(void);
17
18
19       gid_t getgid(void);
20
21
22       gid_t getegid(void);
23
24

DESCRIPTION

26       The getuid() function returns the real user ID of the calling  process.
27       The real user ID identifies the person who is logged in.
28
29
30       The  geteuid()  function  returns  the effective user ID of the calling
31       process. The effective user ID gives the  process  various  permissions
32       during execution of "set-user-ID" mode processes which use  getuid() to
33       determine the real user ID of the process that invoked them.
34
35
36       The getgid() function returns the real group ID of the calling process.
37
38
39       The getegid() function returns the effective group ID  of  the  calling
40       process.
41

ATTRIBUTES

43       See attributes(5) for descriptions of the following attributes:
44
45
46
47
48       ┌─────────────────────────────┬─────────────────────────────┐
49       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
50       ├─────────────────────────────┼─────────────────────────────┤
51       │Interface Stability          │Standard                     │
52       ├─────────────────────────────┼─────────────────────────────┤
53       │MT-Level                     │Async-Signal-Safe            │
54       └─────────────────────────────┴─────────────────────────────┘
55

SEE ALSO

57       Intro(2), setuid(2), attributes(5), standards(5)
58
59
60
61SunOS 5.11                        28 Dec 1996                        getuid(2)
Impressum