getresuid — get real user ID, effective user ID, and saved set-user-ID
[XSI] #include <unistd.h>
int getresuid(uid_t *restrict ruid, uid_t *restrict euid,
uid_t *restrict suid);
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.
Upon successful completion, 0 shall be returned. Otherwise, -1 shall be returned and errno set to indicate the error.
No errors are defined.
None.
None.
None.
None.
exec , getegid , geteuid , getgid , getresgid , getuid , setegid , seteuid , setgid , setregid , setresgid , setresuid , setreuid , setuid
XBD <unistd.h>
First released in Issue 8.
return to top of page