cuserid: support invocation with a null pointer argument
[musl] / src / unistd / getpgrp.c
index 2004630..90e9bb0 100644 (file)
@@ -3,5 +3,5 @@
 
 pid_t getpgrp(void)
 {
-       return syscall0(__NR_getpgrp);
+       return __syscall(SYS_getpgid, 0);
 }