GETRESGID(3) Library Functions Manual GETRESGID(3)

getresgidget real group ID, effective group ID, and saved set-group-ID


#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 , , and , respectively.

Upon successful completion, 0 shall be returned. Otherwise, -1 shall be returned and set to indicate the error.

No errors are defined.

None.

None.

None.

None.

exec(3), getegid(3), geteuid(3), getgid(3), getresuid(3), getuid(3), setegid(3), seteuid(3), setgid(3), setregid(3), setresgid(3), setresuid(3), setreuid(3), setuid(3)

XBD <unistd.h>

First released in Issue 8.

June 14, 2024 posix.fail