getresuid(2) - SerenityOS man pages

#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

#See also