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

Function real_getresuid

sys/unix/unixres.c:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include <dlfcn.h>
25
26static int
27real_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid)
28{
29 int (*f)(uid_t *, uid_t *, uid_t *); /* getresuid signature */
30
31 f = dlsym(RTLD_NEXT, "getresuid");
32 if (!f)
33 return -1;
34
35 return (*f)(ruid, euid, suid);
36}
37
38static int
39real_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid)

Callers 3

nh_getresuidFunction · 0.85
nh_getuidFunction · 0.85
nh_geteuidFunction · 0.85

Calls 1

closeFunction · 0.85

Tested by

no test coverage detected