clone_cruft.h 401 B

1234567891011121314151617181920
  1. /* because people like to make things difficult */
  2. #undef do_clone
  3. #if defined __ia64__
  4. # define do_clone(fn, stack, flags, arg) \
  5. __clone2(fn, stack, sizeof(stack), flags, arg, NULL, NULL, NULL)
  6. #elif defined __hppa__
  7. # define do_clone(fn, stack, flags, arg) \
  8. clone(fn, stack, flags, arg)
  9. #else
  10. # define do_clone(fn, stack, flags, arg) \
  11. clone(fn, stack+sizeof(stack), flags, arg)
  12. #endif