if returning errno value directly from a syscall, we need to negate it.
[musl] / src / unistd / getpgrp.c
1 #include <unistd.h>
2 #include "syscall.h"
3
4 pid_t getpgrp(void)
5 {
6         return syscall0(__NR_getpgrp);
7 }