add and consolidate nasty stdio_ext junk
[oweals/musl.git] / src / unistd / setresgid.c
index 3c85a82885cd35d9a260153a33138c1106ae72c9..9b9fe50bc02b3a1febe195812c76ea843fa9a82b 100644 (file)
@@ -5,6 +5,5 @@
 
 int setresgid(gid_t rgid, gid_t egid, gid_t sgid)
 {
-       if (libc.rsyscall) return libc.rsyscall(__NR_setresgid, rgid, egid, sgid, 0, 0, 0);
-       return syscall(SYS_setresgid, rgid, egid, sgid);
+       return __rsyscall(SYS_setresgid, rgid, egid, sgid, 0, 0, 0);
 }