ladybird/Base/usr/share/man/man2/getresuid.md
Nico Weber 1f323076f0 Add man pages for seteuid() and friends.
Also add an overview page that explains the general concepts.
2020-07-03 19:37:28 +02:00

791 B

Name

getresuid, getresgid - get real, effective, and saved user / group ID

Synopsis

#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