| /freebsd-13.1/contrib/ntp/sntp/m4/ |
| H A D | ntp_rlimit.m4 | 41 [for RLIMIT_STACK], 57 getrlimit(RLIMIT_STACK, 0); 98 [Default number of 4k pages for RLIMIT_STACK])
|
| /freebsd-13.1/bin/pax/ |
| H A D | pax.c | 379 if (getrlimit(RLIMIT_STACK , &reslimit) == 0){ in gen_init() 381 (void)setrlimit(RLIMIT_STACK , &reslimit); in gen_init()
|
| /freebsd-13.1/contrib/llvm-project/clang/tools/driver/ |
| H A D | cc1_main.cpp | 138 if (getrlimit(RLIMIT_STACK, &rlim) != 0) in ensureSufficientStack() 154 if (setrlimit(RLIMIT_STACK, &rlim) != 0 || in ensureSufficientStack()
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_setrlimit.c | 72 RLIMIT_STACK 559 ATF_REQUIRE(setrlimit(RLIMIT_STACK, &res) == 0); in ATF_TC_BODY() 560 ATF_REQUIRE(getrlimit(RLIMIT_STACK, &res) == 0); in ATF_TC_BODY()
|
| /freebsd-13.1/sys/compat/linux/ |
| H A D | linux_emul.c | 131 lim_rlimit_proc(p, RLIMIT_STACK, &rlim); in linux_set_default_stacksize() 137 error = kern_proc_setrlimit(td, p, RLIMIT_STACK, &rlim); in linux_set_default_stacksize()
|
| H A D | linux_mmap.c | 182 lim_cur_proc(p, RLIMIT_STACK); in linux_mmap_common()
|
| /freebsd-13.1/sys/sys/ |
| H A D | resource.h | 107 #define RLIMIT_STACK 3 /* stack size */ macro
|
| H A D | resourcevar.h | 137 which != RLIMIT_STACK && which != RLIMIT_VMEM) { \
|
| /freebsd-13.1/lib/libc/gen/ |
| H A D | elf_utils.c | 89 if (getrlimit(RLIMIT_STACK, &rlim) == -1) in __libc_map_stacks_exec()
|
| /freebsd-13.1/bin/sh/ |
| H A D | miscbltin.c | 457 #ifdef RLIMIT_STACK 458 { "stack size", "kbytes", RLIMIT_STACK, 1024, 's' },
|
| /freebsd-13.1/contrib/ntp/lib/isc/unix/ |
| H A D | resource.c | 87 *rlim_resource = RLIMIT_STACK; in resource2rlim()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_posix_libcdep.cpp | 112 rlim_t stack_size = getlim(RLIMIT_STACK); in StackSizeIsUnlimited() 117 setlim(RLIMIT_STACK, (rlim_t)limit); in SetStackSizeLimitInBytes()
|
| /freebsd-13.1/lib/libthr/thread/ |
| H A D | thr_stack.c | 161 if (getrlimit(RLIMIT_STACK, &rlim) == -1) in singlethread_map_stacks_exec()
|
| H A D | thr_init.c | 474 if (getrlimit(RLIMIT_STACK, &rlim) == -1) in init_private()
|
| /freebsd-13.1/sys/compat/ia32/ |
| H A D | ia32_sysvec.c | 225 case RLIMIT_STACK: in ia32_fixlimit()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/safestack/ |
| H A D | safestack.cpp | 271 if (getrlimit(RLIMIT_STACK, &limit) == 0 && limit.rlim_cur != RLIM_INFINITY) in __safestack_init()
|
| /freebsd-13.1/usr.sbin/rpc.yppasswdd/ |
| H A D | yppasswdd_main.c | 333 (void)setrlimit(RLIMIT_STACK, &rlim); in main()
|
| /freebsd-13.1/sys/kern/ |
| H A D | init_main.c | 576 p->p_limit->pl_rlimit[RLIMIT_STACK].rlim_cur = dflssiz; in proc0_init() 577 p->p_limit->pl_rlimit[RLIMIT_STACK].rlim_max = maxssiz; in proc0_init()
|
| H A D | kern_resource.c | 707 case RLIMIT_STACK: in kern_proc_setrlimit() 715 RLIMIT_STACK); in kern_proc_setrlimit() 744 if (which == RLIMIT_STACK && in kern_proc_setrlimit()
|
| /freebsd-13.1/contrib/tcsh/ |
| H A D | sh.func.c | 1830 # define RLIMIT_STACK 1005 macro 1857 # define RLIMIT_STACK 3 macro 1918 # ifdef RLIMIT_STACK 1920 { RLIMIT_STACK, "stacksize", 1024, "kbytes" }, 1922 { RLIMIT_STACK, "stacksize", 1024 * 1024, "kbytes"},
|
| /freebsd-13.1/sys/powerpc/powerpc/ |
| H A D | elf32_machdep.c | 458 case RLIMIT_STACK: in ppc32_fixlimit()
|
| /freebsd-13.1/lib/libutil/ |
| H A D | login_class.c | 58 { "stacksize", login_getcapsize, RLIMIT_STACK },
|
| H A D | pw_util.c | 136 (void)setrlimit(RLIMIT_STACK, &rlim); in pw_init()
|
| /freebsd-13.1/usr.bin/limits/ |
| H A D | limits.c | 621 case RLIMIT_STACK: in resource_num()
|
| /freebsd-13.1/contrib/ntp/ntpd/ |
| H A D | ntp_config.c | 3121 #if defined(RLIMIT_STACK) in config_rlimit() 3122 ntp_rlimit(RLIMIT_STACK, in config_rlimit() 5492 # ifdef RLIMIT_STACK in ntp_rlimit() 5493 case RLIMIT_STACK: in ntp_rlimit() 5501 if (-1 == getrlimit(RLIMIT_STACK, &rl)) { in ntp_rlimit() 5512 if (-1 == setrlimit(RLIMIT_STACK, &rl)) { in ntp_rlimit()
|