Lines Matching defs:stack
55 * 1. hppa takes bottom of stack and no stacksize (stack grows up)
56 * 2. __ia64__ takes bottom of stack and uses clone2
57 * 3. all others take top of stack (stack grows down)
61 size_t stack_size, void *stack, pid_t *ptid, void *tls, pid_t *ctid)
66 ret = __clone2(fn, stack, stack_size, flags, arg, ptid, tls, ctid);
70 * These arches grow their stack up, so don't need to adjust the base.
75 * For archs where stack grows downwards, stack points to the topmost
76 * address of the memory space set up for the child stack.
78 if (stack)
79 stack += stack_size;
82 ret = clone(fn, stack, flags, arg, ptid, tls, ctid);
89 size_t stack_size, void *stack)
91 return ltp_clone_(flags, fn, arg, stack_size, stack, NULL, NULL, NULL);
95 size_t stack_size, void *stack, ...)
101 va_start(arg_clone, stack);
107 return ltp_clone_(flags, fn, arg, stack_size, stack, ptid, tls, ctid);
111 * ltp_alloc_stack: allocate stack of size 'size', that is sufficiently
114 * Returns pointer to new stack. On error, returns NULL with errno set.
136 void *stack;
140 stack = ltp_alloc_stack(stack_size);
141 if (stack == NULL)
144 ret = ltp_clone(clone_flags, fn, arg, stack_size, stack);
148 free(stack);
156 * ltp_clone_quick: calls ltp_clone_alloc with predetermined stack size.