Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 796 Bytes

getresuid.md

File metadata and controls

34 lines (22 loc) · 796 Bytes

Name

getresuid, getresgid - get real, effective, and saved user / group ID

Synopsis

#include <unistd.h>

int getresuid(uid_t*, uid_t*, uid_t*);
int getresgid(gid_t*, gid_t*, gid_t*);

Description

Returns the real, effective, and saved user or group ID.

Return value

If the call was set successful, returns 0. Otherwise, returns -1 and sets errno to describe the error.

Errors

  • EFAULT: One of the passed pointers is not valid, writeable pointer in the current process.

See also