1 /* because people like to make things difficult */
5 #define crappy_sizeof(s) (s == NULL ? 0 : sizeof(s))
9 extern int __clone2 (int (*__fn) (void *__arg), void *__child_stack_base,
10 size_t __child_stack_size, int __flags, void *__arg, ...);
11 # define do_clone(fn, stack, flags, arg) \
12 __clone2(fn, stack, crappy_sizeof(stack), flags, arg, NULL, NULL, NULL)
14 #elif defined __hppa__
16 # define do_clone(fn, stack, flags, arg) \
17 clone(fn, stack, flags, arg)
21 # define do_clone(fn, stack, flags, arg) \
22 clone(fn, stack+crappy_sizeof(stack), flags, arg)