summaryrefslogtreecommitdiff
path: root/Base/usr/share/man/man2/getuid.md
blob: 562cb508015e045da83d46edccdb277b0cd89c55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Name

getuid, getgid - get real user / group id

## Synopsis

```**c++
#include <unistd.h>

uid_t getuid(void);
gid_t getgid(void);
```

## Description

Returns the real user or group id.

## See also

* [`setuid_overview`(7)](../man7/setuid_overview.md)
* [`geteuid`(2) / `getegid`(2)](geteuid.md)
* [`getresuid`(2) / `getresgid`(2)](getresuid.md)
* [`seteuid`(2) / `setegid`(2)](seteuid.md)
* [`setuid`(2) / `setgid`(2)](setuid.md)
* [`setresuid`(2) / `setresgid`(2)](setresuid.md)