HP-UX Reference (11i v1 00/12) - 3 Library Functions A-M (vol 6)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/!!!intro.3c
________________________________________________________________
___ ___
g
getresuid(3) getresuid(3)
NAME
getresuid, getresgid - get real, effective and saved user or group IDs
SYNOPSIS
#include <unistd.h>
int getresuid (uid_t *ruid, uid_t *euid, uid_t *suid);
int getresgid (gid_t *rgid, gid_t *egid, gid_t *sgid);
DESCRIPTION
getresuid and getresgid return the real, effective, and saved user or group ID’s of the current pro-
cess.
RETURN VALUE
On error, the return is -1, and errno is set appropriately. On success the return is 0.
ERRORS
[EFAULT] One of the arguments specified an address outside the calling programs address space.
HP-UX Release 11i: December 2000 1 Section 3343
___
___