getresgid — get real group ID, effective group ID, and saved set-group-ID
[XSI] #include <unistd.h>
int getresgid(gid_t *restrict rgid, gid_t *restrict egid,
gid_t *restrict sgid);
The getresgid() function shall store the real group ID, effective group ID, and saved set-group-ID of the calling process in the locations pointed to by the arguments rgid, egid, and sgid, 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, getresuid, getuid, setegid, seteuid, setgid, setregid, setresgid, setresuid, setreuid, setuid
XBD <unistd.h>
First released in Issue 8.
return to top of page