/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_setrlimit.c | 102 if (res.rlim_cur == res.rlim_max) /* An unprivileged run. */ in ATF_TC_BODY() 203 res.rlim_max = 2; in ATF_TC_BODY() 293 res.rlim_max = 0; in ATF_TC_BODY() 335 res.rlim_max = 0; in ATF_TC_BODY() 388 res.rlim_max = lim; in ATF_TC_BODY() 451 res.rlim_max = 0; in ATF_TC_BODY() 496 res.rlim_max = 0; in ATF_TC_BODY() 529 if (res.rlim_max == INT64_MAX) /* Overflow. */ in ATF_TC_BODY() 531 if (res.rlim_max == UINT64_MAX) /* Overflow. */ in ATF_TC_BODY() 536 res.rlim_max = res.rlim_max + 1; in ATF_TC_BODY() [all …]
|
/freebsd/tools/regression/priv/ |
H A D | priv_proc_setrlimit.c | 70 rl_lowered.rlim_max -= 10; in priv_proc_setrlimit_setup() 90 rl.rlim_max = rl_base.rlim_max; in priv_proc_setrlimit_raisemax() 118 rl.rlim_cur = rl.rlim_max; in priv_proc_setrlimit_raisecur_nopriv() 145 rl.rlim_cur = rl.rlim_max + 10; in priv_proc_setrlimit_raisecur()
|
/freebsd/sys/compat/ia32/ |
H A D | ia32_sysvec.c | 223 if (rl->rlim_max > ia32_maxdsiz) in ia32_fixlimit() 224 rl->rlim_max = ia32_maxdsiz; in ia32_fixlimit() 231 if (rl->rlim_max > ia32_maxssiz) in ia32_fixlimit() 232 rl->rlim_max = ia32_maxssiz; in ia32_fixlimit() 239 if (rl->rlim_max > ia32_maxvmem) in ia32_fixlimit() 240 rl->rlim_max = ia32_maxvmem; in ia32_fixlimit()
|
/freebsd/usr.bin/limits/ |
H A D | limits.c | 406 …[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_max, limits[rcswhich].rlim_max); in main() 407 limits[rcswhich].rlim_max = resources[rcswhich].func(lc, str, val, val); in main() 424 if (limits[rcswhich].rlim_max != RLIM_INFINITY) { in main() 426 limits[rcswhich].rlim_max = RLIM_INFINITY; in main() 428 } else if (limits[rcswhich].rlim_cur > limits[rcswhich].rlim_max) { in main() 430 limits[rcswhich].rlim_max = limits[rcswhich].rlim_cur; in main() 433 limits[rcswhich].rlim_cur = limits[rcswhich].rlim_max; in main() 449 limits[rcswhich].rlim_max = set_limits[rcswhich]; in main() 516 if (shellparm[shelltype].both && limits[rcswhich].rlim_cur == limits[rcswhich].rlim_max) { in main() 517 print_limit(limits[rcswhich].rlim_max, in main() [all …]
|
/freebsd/sys/kern/ |
H A D | kern_resource.c | 554 lim.rlim_max = olim.rlim_max; in osetrlimit() 586 olim.rlim_max = rl.rlim_max > 0x7fffffff ? 0x7fffffff : rl.rlim_max; in ogetrlimit() 632 if (p->p_rux.rux_runtime >= rlim.rlim_max * cpu_tickrate()) { in lim_cb() 635 if (p->p_cpulimit < rlim.rlim_max) in lim_cb() 669 if (limp->rlim_max < 0) in kern_proc_setrlimit() 670 limp->rlim_max = RLIM_INFINITY; in kern_proc_setrlimit() 677 if (limp->rlim_cur > alimp->rlim_max || in kern_proc_setrlimit() 678 limp->rlim_max > alimp->rlim_max) in kern_proc_setrlimit() 684 if (limp->rlim_cur > limp->rlim_max) in kern_proc_setrlimit() 685 limp->rlim_cur = limp->rlim_max; in kern_proc_setrlimit() [all …]
|
H A D | init_main.c | 587 p->p_limit->pl_rlimit[i].rlim_max = RLIM_INFINITY; in proc0_init() 589 p->p_limit->pl_rlimit[RLIMIT_NOFILE].rlim_max = maxfiles; in proc0_init() 591 p->p_limit->pl_rlimit[RLIMIT_NPROC].rlim_max = maxproc; in proc0_init() 593 p->p_limit->pl_rlimit[RLIMIT_DATA].rlim_max = maxdsiz; in proc0_init() 595 p->p_limit->pl_rlimit[RLIMIT_STACK].rlim_max = maxssiz; in proc0_init() 599 p->p_limit->pl_rlimit[RLIMIT_RSS].rlim_max = pageablemem; in proc0_init() 601 p->p_limit->pl_rlimit[RLIMIT_MEMLOCK].rlim_max = pageablemem; in proc0_init()
|
/freebsd/usr.bin/procstat/ |
H A D | procstat_rlimit.c | 116 if (rlimit.rlim_max == RLIM_INFINITY) in procstat_rlimit() 119 xo_emit("{e:hard_limit/%U}", rlimit.rlim_max); in procstat_rlimit() 125 humanize_rlimit(i, rlimit.rlim_max)); in procstat_rlimit()
|
/freebsd/sys/arm64/arm64/ |
H A D | elf32_machdep.c | 320 if (rl->rlim_max > aarch32_maxdsiz) in elf32_fixlimit() 321 rl->rlim_max = aarch32_maxdsiz; in elf32_fixlimit() 328 if (rl->rlim_max > aarch32_maxssiz) in elf32_fixlimit() 329 rl->rlim_max = aarch32_maxssiz; in elf32_fixlimit() 336 if (rl->rlim_max > aarch32_maxvmem) in elf32_fixlimit() 337 rl->rlim_max = aarch32_maxvmem; in elf32_fixlimit()
|
/freebsd/contrib/netbsd-tests/lib/libc/stdio/ |
H A D | t_printf.c | 148 rl.rlim_cur = rl.rlim_max = 32 * 1024 * 1024; in ATF_TC_BODY() 150 rl.rlim_cur = rl.rlim_max = 32 * 1024 * 1024; in ATF_TC_BODY() 153 rl.rlim_cur = rl.rlim_max = 1 * 1024 * 1024; in ATF_TC_BODY() 155 rl.rlim_cur = rl.rlim_max = 1 * 1024 * 1024; in ATF_TC_BODY()
|
/freebsd/bin/pax/ |
H A D | pax.c | 349 reslimit.rlim_cur = reslimit.rlim_max; in gen_init() 358 reslimit.rlim_cur = reslimit.rlim_max; in gen_init() 366 reslimit.rlim_cur = reslimit.rlim_max; in gen_init() 374 reslimit.rlim_cur = reslimit.rlim_max; in gen_init()
|
/freebsd/tools/test/stress2/misc/ |
H A D | syzkaller64.sh | 192 rlim.rlim_cur = rlim.rlim_max = 128 << 20; 194 rlim.rlim_cur = rlim.rlim_max = 8 << 20; 196 rlim.rlim_cur = rlim.rlim_max = 1 << 20; 198 rlim.rlim_cur = rlim.rlim_max = 1 << 20; 200 rlim.rlim_cur = rlim.rlim_max = 0; 202 rlim.rlim_cur = rlim.rlim_max = 256;
|
H A D | syzkaller47.sh | 262 rlim.rlim_cur = rlim.rlim_max = 128 << 20; 264 rlim.rlim_cur = rlim.rlim_max = 8 << 20; 266 rlim.rlim_cur = rlim.rlim_max = 1 << 20; 268 rlim.rlim_cur = rlim.rlim_max = 1 << 20; 270 rlim.rlim_cur = rlim.rlim_max = 0; 272 rlim.rlim_cur = rlim.rlim_max = 256;
|
H A D | syzkaller52.sh | 215 rlim.rlim_cur = rlim.rlim_max = 128 << 20; 217 rlim.rlim_cur = rlim.rlim_max = 8 << 20; 219 rlim.rlim_cur = rlim.rlim_max = 1 << 20; 221 rlim.rlim_cur = rlim.rlim_max = 1 << 20; 223 rlim.rlim_cur = rlim.rlim_max = 0; 225 rlim.rlim_cur = rlim.rlim_max = 256;
|
H A D | syzkaller25.sh | 275 rlim.rlim_cur = rlim.rlim_max = 128 << 20; 277 rlim.rlim_cur = rlim.rlim_max = 8 << 20; 279 rlim.rlim_cur = rlim.rlim_max = 1 << 20; 281 rlim.rlim_cur = rlim.rlim_max = 1 << 20; 283 rlim.rlim_cur = rlim.rlim_max = 0; 285 rlim.rlim_cur = rlim.rlim_max = 256;
|
H A D | syzkaller69.sh | 307 rlim.rlim_cur = rlim.rlim_max = 128 << 20; 309 rlim.rlim_cur = rlim.rlim_max = 8 << 20; 311 rlim.rlim_cur = rlim.rlim_max = 1 << 20; 313 rlim.rlim_cur = rlim.rlim_max = 1 << 20; 315 rlim.rlim_cur = rlim.rlim_max = 0; 317 rlim.rlim_cur = rlim.rlim_max = 256;
|
H A D | mlockall7.sh | 188 rl.rlim_max = rl.rlim_cur = 0; 198 rl.rlim_max = rl.rlim_cur = maxlock;
|
/freebsd/sys/fs/procfs/ |
H A D | procfs_rlimit.c | 103 if (limp->pl_rlimit[i].rlim_max == RLIM_INFINITY) { in procfs_doprocrlimit() 107 (unsigned long long)limp->pl_rlimit[i].rlim_max); in procfs_doprocrlimit()
|
/freebsd/crypto/heimdal/appl/login/ |
H A D | limits_conf.c | 201 l->limit.rlim_max = value; in read_limits_conf() 206 if(l->limit.rlim_cur > l->limit.rlim_max) in read_limits_conf() 207 l->limit.rlim_cur = l->limit.rlim_max; in read_limits_conf()
|
/freebsd/crypto/heimdal/appl/rsh/ |
H A D | limits_conf.c | 201 l->limit.rlim_max = value; in read_limits_conf() 206 if(l->limit.rlim_cur > l->limit.rlim_max) in read_limits_conf() 207 l->limit.rlim_cur = l->limit.rlim_max; in read_limits_conf()
|
/freebsd/contrib/llvm-project/clang/tools/driver/ |
H A D | cc1_main.cpp | 93 if (rlim.rlim_max == RLIM_INFINITY || in ensureSufficientStack() 94 rlim.rlim_max >= rlim_t(DesiredStackSize)) in ensureSufficientStack() 96 else if (rlim.rlim_cur == rlim.rlim_max) in ensureSufficientStack() 99 rlim.rlim_cur = rlim.rlim_max; in ensureSufficientStack()
|
/freebsd/sys/compat/linux/ |
H A D | linux_misc.c | 1141 rlim->rlim_max = LINUX_RLIM_INFINITY; in linux_get_dummy_limit() 1146 rlim->rlim_max = 0; in linux_get_dummy_limit() 1155 rlim->rlim_max = res; in linux_get_dummy_limit() 1163 rlim->rlim_max = res; in linux_get_dummy_limit() 1190 bsd_rlim.rlim_max = (rlim_t)rlim.rlim_max; in linux_setrlimit() 1204 rlim.rlim_max = bsd_rlim.rlim_max; in linux_old_getrlimit() 1221 rlim.rlim_max = (unsigned int)bsd_rlim.rlim_max; in linux_old_getrlimit() 1222 if (rlim.rlim_max == UINT_MAX) in linux_old_getrlimit() 1223 rlim.rlim_max = INT_MAX; in linux_old_getrlimit() 1228 rlim.rlim_max = (unsigned long)bsd_rlim.rlim_max; in linux_old_getrlimit() [all …]
|
/freebsd/sys/sys/ |
H A D | resource.h | 152 rlim_t rlim_max; /* maximum value for rlim_cur */ member 159 __int32_t rlim_max; /* maximum value for rlim_cur */ member
|
/freebsd/sys/powerpc/powerpc/ |
H A D | elf32_machdep.c | 455 if (rl->rlim_max > ppc32_maxdsiz) in ppc32_fixlimit() 456 rl->rlim_max = ppc32_maxdsiz; in ppc32_fixlimit() 463 if (rl->rlim_max > ppc32_maxssiz) in ppc32_fixlimit() 464 rl->rlim_max = ppc32_maxssiz; in ppc32_fixlimit()
|
/freebsd/usr.sbin/bsdinstall/runconsoles/ |
H A D | common.c | 49 rl.rlim_max = 0; in reproduce_signal_death()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/libzfs/ |
H A D | many_fds.c | 41 .rlim_max = 64 * 1024, in main()
|