1#define _GNU_SOURCE 2#include <unistd.h> 3#include "syscall.h" 4 5int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid) 6{ 7 return syscall(SYS_getresgid, rgid, egid, sgid); 8} 9