/freebsd-10.2-release/sys/compat/svr4/ |
H A D | svr4_resource.c | 140 if (rl == RLIMIT_NOFILE && blim.rlim_max == RLIM_INFINITY) 141 blim.rlim_max = maxfiles; 145 * Otherwise, if rlim_cur == rlim_max, return RLIM_SAVED_MAX 148 if (blim.rlim_max == RLIM_INFINITY) 149 slim.rlim_max = SVR4_RLIM_INFINITY; 150 else if (OKLIMIT(blim.rlim_max)) 151 slim.rlim_max = (svr4_rlim_t) blim.rlim_max; 153 slim.rlim_max = SVR4_RLIM_SAVED_MAX; 159 else if (blim.rlim_max [all...] |
H A D | svr4_resource.h | 88 svr4_rlim_t rlim_max; member in struct:svr4_rlimit 99 svr4_rlim64_t rlim_max; member in struct:svr4_rlimit64
|
/freebsd-10.2-release/contrib/ntp/lib/isc/unix/ |
H A D | resource.c | 127 isc_resourcevalue_t rlim_max; local 132 rlim_max = ~((ISC_PLATFORM_RLIMITTYPE)1 << 135 rlim_max = (ISC_PLATFORM_RLIMITTYPE)-1; 137 if (value > rlim_max) 138 value = rlim_max; 143 rl.rlim_cur = rl.rlim_max = rlim_value; 172 rl.rlim_cur = rl.rlim_max = NR_OPEN; 181 rl.rlim_cur = rl.rlim_max = maxfiles; 190 rl.rlim_cur = rl.rlim_max; 210 *value = rl.rlim_max; [all...] |
/freebsd-10.2-release/tools/regression/priv/ |
H A D | priv_proc_setrlimit.c | 72 rl_lowered.rlim_max -= 10; 92 rl.rlim_max = rl_base.rlim_max; 120 rl.rlim_cur = rl.rlim_max; 147 rl.rlim_cur = rl.rlim_max + 10;
|
/freebsd-10.2-release/sys/fs/procfs/ |
H A D | procfs_rlimit.c | 104 if (limp->pl_rlimit[i].rlim_max == RLIM_INFINITY) { 108 (unsigned long long)limp->pl_rlimit[i].rlim_max);
|
/freebsd-10.2-release/sys/sys/ |
H A D | resource.h | 142 rlim_t rlim_max; /* maximum value for rlim_cur */ member in struct:rlimit 149 __int32_t rlim_max; /* maximum value for rlim_cur */ member in struct:orlimit
|
/freebsd-10.2-release/lib/libc/gen/ |
H A D | ulimit.c | 60 limit.rlim_max = limit.rlim_cur = arg * 512;
|
/freebsd-10.2-release/bin/pax/ |
H A D | pax.c | 343 reslimit.rlim_cur = reslimit.rlim_max; 352 reslimit.rlim_cur = reslimit.rlim_max; 360 reslimit.rlim_cur = reslimit.rlim_max; 368 reslimit.rlim_cur = reslimit.rlim_max;
|
/freebsd-10.2-release/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_setrlimit.c | 97 if (res.rlim_cur == res.rlim_max) /* An unprivileged run. */ 197 res.rlim_max = 2; 274 res.rlim_max = 0; 308 res.rlim_max = 0; 361 res.rlim_max = lim; 424 res.rlim_max = 0; 469 res.rlim_max = 0; 502 if (res.rlim_max == INT64_MAX) /* Overflow. */ 504 if (res.rlim_max == UINT64_MAX) /* Overflow. */ 509 res.rlim_max [all...] |
/freebsd-10.2-release/sys/compat/ia32/ |
H A D | ia32_sysvec.c | 225 if (rl->rlim_max > ia32_maxdsiz) 226 rl->rlim_max = ia32_maxdsiz; 233 if (rl->rlim_max > ia32_maxssiz) 234 rl->rlim_max = ia32_maxssiz; 241 if (rl->rlim_max > ia32_maxvmem) 242 rl->rlim_max = ia32_maxvmem;
|
/freebsd-10.2-release/sys/kern/ |
H A D | kern_resource.c | 555 lim.rlim_max = olim.rlim_max; 593 olim.rlim_max = rl.rlim_max > 0x7fffffff ? 0x7fffffff : rl.rlim_max; 641 if (p->p_rux.rux_runtime >= rlim.rlim_max * cpu_tickrate()) { 644 if (p->p_cpulimit < rlim.rlim_max) 678 if (limp->rlim_max < 0) 679 limp->rlim_max = RLIM_INFINITY; 691 if (limp->rlim_cur > alimp->rlim_max || [all...] |
H A D | init_main.c | 538 p->p_limit->pl_rlimit[i].rlim_max = RLIM_INFINITY; 540 p->p_limit->pl_rlimit[RLIMIT_NOFILE].rlim_max = maxfiles; 542 p->p_limit->pl_rlimit[RLIMIT_NPROC].rlim_max = maxproc; 544 p->p_limit->pl_rlimit[RLIMIT_DATA].rlim_max = maxdsiz; 546 p->p_limit->pl_rlimit[RLIMIT_STACK].rlim_max = maxssiz; 550 p->p_limit->pl_rlimit[RLIMIT_RSS].rlim_max = pageablemem; 552 p->p_limit->pl_rlimit[RLIMIT_MEMLOCK].rlim_max = pageablemem;
|
/freebsd-10.2-release/crypto/heimdal/appl/login/ |
H A D | limits_conf.c | 201 l->limit.rlim_max = value; 206 if(l->limit.rlim_cur > l->limit.rlim_max) 207 l->limit.rlim_cur = l->limit.rlim_max;
|
/freebsd-10.2-release/crypto/heimdal/appl/rsh/ |
H A D | limits_conf.c | 201 l->limit.rlim_max = value; 206 if(l->limit.rlim_cur > l->limit.rlim_max) 207 l->limit.rlim_cur = l->limit.rlim_max;
|
/freebsd-10.2-release/usr.bin/limits/ |
H A D | limits.c | 393 val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_max, limits[rcswhich].rlim_max); 394 limits[rcswhich].rlim_max = resources[rcswhich].func(lc, str, val, val); 411 if (limits[rcswhich].rlim_max != RLIM_INFINITY) { 413 limits[rcswhich].rlim_max = RLIM_INFINITY; 415 } else if (limits[rcswhich].rlim_cur > limits[rcswhich].rlim_max) { 417 limits[rcswhich].rlim_max = limits[rcswhich].rlim_cur; 420 limits[rcswhich].rlim_cur = limits[rcswhich].rlim_max; 436 limits[rcswhich].rlim_max = set_limits[rcswhich]; 503 if (shellparm[shelltype].both && limits[rcswhich].rlim_cur == limits[rcswhich].rlim_max) { [all...] |
/freebsd-10.2-release/contrib/netbsd-tests/lib/libpthread/dlopen/ |
H A D | t_dso_pthread_create.c | 74 rl.rlim_max = rl.rlim_cur = 0;
|
/freebsd-10.2-release/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_siglongjmp.c | 80 rlim.rlim_cur = rlim.rlim_max = 0;
|
/freebsd-10.2-release/crypto/openssh/ |
H A D | sandbox-darwin.c | 73 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
|
H A D | sandbox-rlimit.c | 65 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
|
H A D | sandbox-capsicum.c | 74 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
|
/freebsd-10.2-release/usr.bin/procstat/ |
H A D | procstat_rlimit.c | 104 printf("%16s\n", humanize_rlimit(i, rlimit.rlim_max));
|
/freebsd-10.2-release/contrib/netbsd-tests/lib/libc/stdio/ |
H A D | t_printf.c | 153 rl.rlim_cur = rl.rlim_max = 1 * 1024 * 1024; 155 rl.rlim_cur = rl.rlim_max = 1 * 1024 * 1024;
|
/freebsd-10.2-release/release/picobsd/tinyware/passwd/ |
H A D | pw_util.c | 91 rlim.rlim_cur = rlim.rlim_max = RLIM_INFINITY; 99 rlim.rlim_cur = rlim.rlim_max = 0;
|
/freebsd-10.2-release/bin/sh/ |
H A D | miscbltin.c | 474 val = limit.rlim_max; 500 limit.rlim_max = val; 507 val = limit.rlim_max;
|
/freebsd-10.2-release/contrib/ntp/sntp/libevent/test/ |
H A D | bench_cascade.c | 166 rl.rlim_cur = rl.rlim_max = num_pipes * 2 + 50;
|