1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:07:34 +00:00

Add man pages for seteuid() and friends.

Also add an overview page that explains the general concepts.
This commit is contained in:
Nico Weber 2020-06-30 15:32:10 -04:00 committed by Andreas Kling
parent 9b4e6f6a23
commit 1f323076f0
13 changed files with 273 additions and 0 deletions

View file

@ -0,0 +1,34 @@
## Name
getresuid, getresgid - get real, effective, and saved user / group ID
## Synopsis
```**c++
#include <unistd.h>
int getresuid(uid_t*, uid_t*, uid_t*);
int getresgid(gid_t*, gid_t*, gid_t*);
```
## Description
Returns the real, effective, and saved user or group ID.
## Return value
If the call was set successful, returns 0.
Else, returns -1 and sets `errno` to describe the error.
## Errors
* `EFAULT`: One of the passed pointers is not valid, writeable pointer in the current process.
## See also
* [`setuid_overview`(7)](../man7/setuid_overview.md)
* [`geteuid`(2) / `getegid`(2)](geteuid.md)
* [`getuid`(2) / `getgid`(2)](getuid.md)
* [`seteuid`(2) / `setegid`(2)](seteuid.md)
* [`setuid`(2) / `setgid`(2)](setuid.md)
* [`setresuid`(2) / `setresgid`(2)](setresuid.md)