toaruos/libc/unistd/setpgid.c
2018-10-30 13:28:11 +09:00

17 lines
341 B
C

#include <unistd.h>
#include <syscall.h>
#include <syscall_nums.h>
#include <errno.h>
DEFN_SYSCALL2(setpgid, SYS_SETPGID, int, int);
DEFN_SYSCALL1(getpgid, SYS_GETPGID, int);
int setpgid(pid_t pid, pid_t pgid) {
__sets_errno(syscall_setpgid((int)pid,(int)pgid));
}
pid_t getpgid(pid_t pid) {
__sets_errno(syscall_getpgid((int)pid));
}