Lines Matching refs:stack
54 # define clone(fn, stack, flags, arg, ptid, tls, ctid) \ argument
55 clone(fn, stack, flags, arg)
66 size_t stack_size, void *stack, pid_t *ptid, void *tls, pid_t *ctid) in ltp_clone_() argument
71 ret = __clone2(fn, stack, stack_size, flags, arg, ptid, tls, ctid); in ltp_clone_()
83 if (stack) in ltp_clone_()
84 stack += stack_size; in ltp_clone_()
87 ret = clone(fn, stack, flags, arg, ptid, tls, ctid); in ltp_clone_()
94 size_t stack_size, void *stack) in ltp_clone() argument
96 return ltp_clone_(flags, fn, arg, stack_size, stack, NULL, NULL, NULL); in ltp_clone()
100 size_t stack_size, void *stack, ...) in ltp_clone7() argument
106 va_start(arg_clone, stack); in ltp_clone7()
113 return ltp_clone_(flags, fn, arg, stack_size, stack, ptid, tls, ctid); in ltp_clone7()
128 void *stack; in ltp_clone_malloc() local
132 stack = malloc(stack_size); in ltp_clone_malloc()
133 if (stack == NULL) in ltp_clone_malloc()
136 ret = ltp_clone(clone_flags, fn, arg, stack_size, stack); in ltp_clone_malloc()
140 free(stack); in ltp_clone_malloc()