toaruos/libc/unistd/setpgid.c

17 lines
341 B
C
Raw Normal View History

2018-10-26 14:34:15 +03:00
#include <unistd.h>
#include <syscall.h>
#include <syscall_nums.h>
#include <errno.h>
DEFN_SYSCALL2(setpgid, SYS_SETPGID, int, int);
2018-10-30 07:28:11 +03:00
DEFN_SYSCALL1(getpgid, SYS_GETPGID, int);
2018-10-26 14:34:15 +03:00
int setpgid(pid_t pid, pid_t pgid) {
__sets_errno(syscall_setpgid((int)pid,(int)pgid));
}
2018-10-30 07:28:11 +03:00
pid_t getpgid(pid_t pid) {
__sets_errno(syscall_getpgid((int)pid));
}