MCPcopy Create free account
hub / github.com/NetHack/NetHack / nh_geteuid

Function nh_geteuid

sys/unix/unixres.c:158–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158uid_t
159nh_geteuid(void)
160{
161 uid_t ruid, euid, suid;
162
163 (void) real_getresuid(&ruid, &euid, &suid);
164 if (hiding_privileges)
165 euid = ruid;
166 return euid;
167}
168
169int
170nh_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid)

Callers 1

(geteuid)Function · 0.85

Calls 1

real_getresuidFunction · 0.85

Tested by

no test coverage detected