NAME

getresuid — get real user ID, effective user ID, and saved set-user-ID

SYNOPSIS

[XSI] [Option Start] #include <unistd.h>

int getresuid(uid_t *restrict
ruid, uid_t *restrict euid,
       uid_t *restrict
suid); [Option End]

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.


The following sections are informative.

EXAMPLES

None.

APPLICATION USAGE

None.

RATIONALE

None.

FUTURE DIRECTIONS

None.

SEE ALSO

exec , getegid , geteuid , getgid , getresgid , getuid , setegid , seteuid , setgid , setregid , setresgid , setresuid , setreuid , setuid

XBD <unistd.h>

CHANGE HISTORY

First released in Issue 8.

End of informative text.