toaruos/libc/unistd/setsid.c
2018-10-26 20:34:15 +09:00

12 lines
180 B
C

#include <unistd.h>
#include <syscall.h>
#include <syscall_nums.h>
#include <errno.h>
DEFN_SYSCALL0(setsid, SYS_SETSID);
pid_t setsid(void) {
__sets_errno(syscall_setsid());
}