setsid.c 180 B

1234567891011
  1. #include <unistd.h>
  2. #include <syscall.h>
  3. #include <syscall_nums.h>
  4. #include <errno.h>
  5. DEFN_SYSCALL0(setsid, SYS_SETSID);
  6. pid_t setsid(void) {
  7. __sets_errno(syscall_setsid());
  8. }