1 2 3 4 5 6 7 8
#define _GNU_SOURCE #include <unistd.h> #include "syscall.h" int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid) { return syscall(SYS_getresuid, ruid, euid, suid); }