5 #include "pthread_impl.h"
8 int clone(int (*func
)(void *), void *stack
, int flags
, void *arg
, ...)
15 ptid
= va_arg(ap
, pid_t
*);
16 tls
= va_arg(ap
, void *);
17 ctid
= va_arg(ap
, pid_t
*);
20 return __syscall_ret(__clone(func
, stack
, flags
, arg
, ptid
, tls
, ctid
));