mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 10:18:51 +00:00
796 B
796 B
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.