#include "asm/unistd_64.h" // for __NR_getegid #include // for __syscall_0, syscall #include // for getegid, gid_t gid_t getegid(void) { return syscall(getegid); }