fork.c 327 B

1234567891011
  1. #include <sched.h>
  2. #include <signal.h>
  3. #include <sysdep.h>
  4. #include <tls.h>
  5. #define ARCH_FORK() \
  6. INLINE_SYSCALL (clone, 5, \
  7. CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID | SIGCHLD, 0, \
  8. NULL, NULL, &THREAD_SELF->tid)
  9. #include "../fork.c"