/freebsd-10.2-release/sys/compat/svr4/ |
H A D | svr4_resource.c | 145 * Otherwise, if rlim_cur == rlim_max, return RLIM_SAVED_MAX 155 if (blim.rlim_cur == RLIM_INFINITY) 156 slim.rlim_cur = SVR4_RLIM_INFINITY; 157 else if (OKLIMIT(blim.rlim_cur)) 158 slim.rlim_cur = (svr4_rlim_t) blim.rlim_cur; 159 else if (blim.rlim_max == blim.rlim_cur) 160 slim.rlim_cur = SVR4_RLIM_SAVED_MAX; 162 slim.rlim_cur = SVR4_RLIM_SAVED_CUR; 204 blim.rlim_max = curlim.rlim_cur; [all...] |
H A D | svr4_resource.h | 87 svr4_rlim_t rlim_cur; member in struct:svr4_rlimit 98 svr4_rlim64_t rlim_cur; member in struct:svr4_rlimit64
|
/freebsd-10.2-release/lib/libc/gen/ |
H A D | ulimit.c | 48 limit.rlim_cur /= 512; 49 if (limit.rlim_cur > LONG_MAX) 51 return ((long)limit.rlim_cur); 60 limit.rlim_max = limit.rlim_cur = arg * 512;
|
H A D | elf_utils.c | 71 mprotect((void *)(uintptr_t)(usrstack - rlim.rlim_cur), 72 rlim.rlim_cur, _rtld_get_stack_prot());
|
H A D | sysconf.c | 91 if (rl.rlim_cur == RLIM_INFINITY) 93 if (rl.rlim_cur > LONG_MAX) { 97 return ((long)rl.rlim_cur); 107 if (rl.rlim_cur == RLIM_INFINITY) 109 if (rl.rlim_cur > LONG_MAX) { 113 return ((long)rl.rlim_cur); 117 if (rl.rlim_cur == RLIM_INFINITY) 119 if (rl.rlim_cur > LONG_MAX) { 129 if (rl.rlim_cur > SHRT_MAX) 132 return ((long)rl.rlim_cur); [all...] |
/freebsd-10.2-release/contrib/ntp/lib/isc/unix/ |
H A D | resource.c | 143 rl.rlim_cur = rl.rlim_max = rlim_value; 151 * The Darwin kernel doesn't accept RLIM_INFINITY for rlim_cur; the 157 rl.rlim_cur = OPEN_MAX; 172 rl.rlim_cur = rl.rlim_max = NR_OPEN; 181 rl.rlim_cur = rl.rlim_max = maxfiles; 190 rl.rlim_cur = rl.rlim_max; 227 *value = rl.rlim_cur;
|
/freebsd-10.2-release/tools/regression/priv/ |
H A D | priv_proc_setrlimit.c | 71 rl_lowered.rlim_cur -= 20; 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 | 93 if (limp->pl_rlimit[i].rlim_cur == RLIM_INFINITY) { 97 (unsigned long long)limp->pl_rlimit[i].rlim_cur);
|
/freebsd-10.2-release/sys/sys/ |
H A D | resource.h | 141 rlim_t rlim_cur; /* current (soft) limit */ member in struct:rlimit 142 rlim_t rlim_max; /* maximum value for rlim_cur */ 148 __int32_t rlim_cur; /* current (soft) limit */ member in struct:orlimit 149 __int32_t rlim_max; /* maximum value for rlim_cur */
|
/freebsd-10.2-release/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_setrlimit.c | 94 if (res.rlim_cur == RLIM_INFINITY || res.rlim_cur == 0) 97 if (res.rlim_cur == res.rlim_max) /* An unprivileged run. */ 100 buf[i] = res.rlim_cur; 101 res.rlim_cur = res.rlim_cur - 1; 120 res.rlim_cur = buf[i]; 196 res.rlim_cur = 2; 273 res.rlim_cur = 0; 307 res.rlim_cur [all...] |
H A D | t_pipe2.c | 136 old = rl.rlim_cur; 138 rl.rlim_cur = 4; 145 rl.rlim_cur = old;
|
/freebsd-10.2-release/sys/kern/ |
H A D | kern_resource.c | 554 lim.rlim_cur = olim.rlim_cur; 592 olim.rlim_cur = rl.rlim_cur > 0x7fffffff ? 0x7fffffff : rl.rlim_cur; 676 if (limp->rlim_cur < 0) 677 limp->rlim_cur = RLIM_INFINITY; 681 oldssiz.rlim_cur = 0; 691 if (limp->rlim_cur > alimp->rlim_max || 699 if (limp->rlim_cur > lim [all...] |
/freebsd-10.2-release/crypto/heimdal/lib/roken/ |
H A D | getdtablesize.c | 74 files = res.rlim_cur;
|
/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/sys/compat/ia32/ |
H A D | ia32_sysvec.c | 223 if (rl->rlim_cur > ia32_maxdsiz) 224 rl->rlim_cur = ia32_maxdsiz; 231 if (rl->rlim_cur > ia32_maxssiz) 232 rl->rlim_cur = ia32_maxssiz; 239 if (rl->rlim_cur > ia32_maxvmem) 240 rl->rlim_cur = ia32_maxvmem;
|
/freebsd-10.2-release/crypto/heimdal/appl/login/ |
H A D | limits_conf.c | 199 l->limit.rlim_cur = 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 | 199 l->limit.rlim_cur = value; 206 if(l->limit.rlim_cur > l->limit.rlim_max) 207 l->limit.rlim_cur = l->limit.rlim_max;
|
/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/tests/sys/file/ |
H A D | dup_test.c | 186 if ((fd2 = dup2(fd1, rlp.rlim_cur + 1)) >= 0) 244 if ((fd2 = fcntl(fd1, F_DUP2FD, rlp.rlim_cur + 1)) >= 0) 303 if ((fd2 = fcntl(fd1, F_DUP2FD_CLOEXEC, rlp.rlim_cur + 1)) >= 0) 378 if ((fd2 = dup3(fd1, rlp.rlim_cur + 1, O_CLOEXEC)) >= 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;
|
/freebsd-10.2-release/usr.bin/procstat/ |
H A D | procstat_rlimit.c | 103 printf("%16s ", humanize_rlimit(i, rlimit.rlim_cur));
|
/freebsd-10.2-release/usr.bin/limits/ |
H A D | limits.c | 389 val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_cur, limits[rcswhich].rlim_cur); 390 limits[rcswhich].rlim_cur = resources[rcswhich].func(lc, str, val, val); 412 if (limits[rcswhich].rlim_cur == 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; 438 limits[rcswhich].rlim_cur = set_limits[rcswhich]; 503 if (shellparm[shelltype].both && limits[rcswhich].rlim_cur == limits[rcswhich].rlim_max) { 520 print_limit(limits[rcswhich].rlim_cur, [all...] |
/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;
|