Searched refs:stacksz (Results 1 – 4 of 4) sorted by relevance
/freebsd/lib/libc/gen/ |
H A D | elf_utils.c | 79 u_long usrstack, stacksz; in __libc_map_stacks_exec() local 89 if (_elf_aux_info(AT_USRSTACKLIM, &stacksz, sizeof(stacksz)) != 0) { in __libc_map_stacks_exec() 92 stacksz = rlim.rlim_cur; in __libc_map_stacks_exec() 94 mprotect((void *)(uintptr_t)(usrstack - stacksz), stacksz, in __libc_map_stacks_exec()
|
H A D | posix_spawn.c | 283 size_t cnt, stacksz; in do_posix_spawn() local 285 stacksz = _RFORK_THREAD_STACK_SIZE; in do_posix_spawn() 297 stacksz += MAX(3, cnt + 2) * sizeof(char *); in do_posix_spawn() 298 stacksz = PSPAWN_STACK_ALIGN(stacksz); in do_posix_spawn() 308 stack = malloc(stacksz); in do_posix_spawn() 311 stacksz = (((uintptr_t)stack + stacksz) & ~PSPAWN_STACK_ALIGNBYTES) - in do_posix_spawn() 341 p = rfork_thread(RFSPAWN, stack + stacksz, _posix_spawn_thr, &psa); in do_posix_spawn()
|
/freebsd/lib/libthr/thread/ |
H A D | thr_stack.c | 149 size_t stacksz; in singlethread_map_stacks_exec() local 152 !__thr_get_main_stack_lim(&stacksz)) in singlethread_map_stacks_exec() 154 mprotect(usrstack - stacksz, stacksz, _rtld_get_stack_prot()); in singlethread_map_stacks_exec()
|
/freebsd/sys/kern/ |
H A D | imgact_elf.c | 1441 rlim_t stacksz; in __elfN() local 1506 stacksz = imgp->proc->p_limit->pl_rlimit[RLIMIT_STACK].rlim_cur; in __elfN() 1507 AUXARGS_ENTRY(pos, AT_USRSTACKLIM, stacksz); in __elfN()
|