6 #include "pthread_impl.h"
8 static void dummy(int x
)
12 weak_alias(dummy
, __fork_handler
);
19 __block_all_sigs(&set
);
21 ret
= __syscall(SYS_fork
);
23 ret
= __syscall(SYS_clone
, SIGCHLD
, 0);
26 pthread_t self
= __pthread_self();
27 self
->tid
= __syscall(SYS_gettid
);
28 self
->robust_list
.off
= 0;
29 self
->robust_list
.pending
= 0;
30 self
->next
= self
->prev
= self
;
31 __thread_list_lock
= 0;
32 libc
.threads_minus_1
= 0;
36 return __syscall_ret(ret
);