GETRESUID(3) Library Functions Manual GETRESUID(3)
NAME
getresuid — get
real user ID, effective user ID, and saved set-user-ID
SYNOPSIS
int getresuid(uid_t *restrict ruid, uid_t *restrict euid,
uid_t *restrict suid);
DESCRIPTION
The getresuid () function shall store the
real user ID, effective user ID, and saved set-user-ID of the calling
process in the locations pointed to by the arguments
ruid,
euid, and
suid,
respectively.
RETURN VALUE
Upon successful completion, 0 shall be returned. Otherwise, -1 shall be returned and errno set to indicate the error.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
None.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
exec(3), getegid(3), geteuid(3), getgid(3), getresgid(3), getuid(3), setegid(3), seteuid(3), setgid(3), setregid(3), setresgid(3), setresuid(3), setreuid(3), setuid(3)
XBD <unistd.h>
CHANGE HISTORY
First released in Issue 8.
June 14, 2024 posix.fail