Home
last modified time | relevance | path

Searched refs:rlim_cur (Results 1 – 25 of 46) sorted by relevance

12

/external/valgrind/main/none/tests/
Drlimit_nofile.c23 newrlim.rlim_cur = oldrlim.rlim_max+1; in main()
38 newrlim.rlim_cur = oldrlim.rlim_max; in main()
53 newrlim.rlim_cur = oldrlim.rlim_cur / 2; in main()
68 if (newrlim.rlim_cur != oldrlim.rlim_cur / 2) in main()
71 (unsigned long long)newrlim.rlim_cur, in main()
72 (unsigned long long)oldrlim.rlim_cur / 2); in main()
82 newrlim.rlim_cur -= 3; /* allow for stdin, stdout and stderr */ in main()
84 while (newrlim.rlim_cur-- > 0) in main()
Drlimit64_nofile.c26 newrlim.rlim_cur = oldrlim.rlim_max+1; in main()
41 newrlim.rlim_cur = oldrlim.rlim_max; in main()
56 newrlim.rlim_cur = oldrlim.rlim_cur / 2; in main()
71 if (newrlim.rlim_cur != oldrlim.rlim_cur / 2) in main()
74 (unsigned long long)newrlim.rlim_cur, in main()
75 (unsigned long long)oldrlim.rlim_cur / 2); in main()
85 newrlim.rlim_cur -= 3; /* allow for stdin, stdout and stderr */ in main()
87 while (newrlim.rlim_cur-- > 0) in main()
Dcloseall.c13 for ( fd = 3; fd < lim.rlim_cur; fd++ ) in main()
/external/strace/
Dresource.c130 unsigned int rlim_cur; in print_rlimit32() member
138 sprintrlim(rlim.rlim_cur == -1 ? RLIM_INFINITY in print_rlimit32()
139 : rlim.rlim_cur)); in print_rlimit32()
166 tprintf("{rlim_cur=%s,", sprintrlim(rlim.rlim_cur)); in sys_getrlimit()
190 tprintf("{rlim_cur=%s,", sprintrlim(rlim.rlim_cur)); in sys_setrlimit()
228 tprintf("{rlim_cur=%s,", sprintrlim64(rlim.rlim_cur)); in sys_getrlimit64()
248 tprintf("{rlim_cur=%s,", sprintrlim64(rlim.rlim_cur)); in sys_setrlimit64()
/external/blktrace/btt/
Dmisc.c93 rlim.rlim_cur += increase; in increase_limit()
94 if (rlim.rlim_cur >= rlim.rlim_max) in increase_limit()
95 rlim.rlim_max = rlim.rlim_cur + increase; in increase_limit()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cc183 nocore.rlim_cur = 0; in DisableCoreDumper()
191 return (rlim.rlim_cur == (uptr)-1); in StackSizeIsUnlimited()
196 rlim.rlim_cur = limit; in SetStackSizeLimitInBytes()
/external/chromium/base/threading/
Dplatform_thread_posix.cc95 stack_rlimit.rlim_cur != RLIM_INFINITY) { in CreateThread()
98 static_cast<size_t>(stack_rlimit.rlim_cur)); in CreateThread()
/external/valgrind/main/none/tests/darwin/
Drlimit.c14 fprintf(stderr, "RLIMIT_NOFILE is %lld\n", (long long)rlp.rlim_cur); in main()
/external/kernel-headers/original/linux/
Dresource.h43 unsigned long rlim_cur; member
Dcompat.h89 compat_ulong_t rlim_cur; member
/external/openssh/
Dsandbox-rlimit.c65 rl_zero.rlim_cur = rl_zero.rlim_max = 0; in ssh_sandbox_child()
Dsandbox-darwin.c73 rl_zero.rlim_cur = rl_zero.rlim_max = 0; in ssh_sandbox_child()
Dssh-keyscan.c116 if ((hard ? rlfd.rlim_max : rlfd.rlim_cur) == RLIM_INFINITY) in fdlim_get()
119 return hard ? rlfd.rlim_max : rlfd.rlim_cur; in fdlim_get()
137 rlfd.rlim_cur = lim; in fdlim_set()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_platform_mac.cc80 lim.rlim_cur = 0; in InitializePlatform()
Dtsan_platform_linux.cc244 return rlim.rlim_cur; in getlim()
250 rlim.rlim_cur = lim; in setlim()
/external/llvm/lib/Support/Unix/
DProgram.inc155 __typeof__ (r.rlim_cur) limit = (__typeof__ (r.rlim_cur)) (size) * 1048576;
159 r.rlim_cur = limit;
164 r.rlim_cur = limit;
173 r.rlim_cur = limit;
/external/elfutils/tests/
Ddwfl-bug-fd-leak.c99 struct rlimit fd_limit = { .rlim_cur = 32, .rlim_max = 32 }; in main()
/external/chromium/base/
Dprocess_linux.cc108 if ((20 - current_priority) > static_cast<int>(rlim.rlim_cur)) { in SetProcessBackgrounded()
Dprocess_util_unittest.cc387 if (rlim.rlim_cur > max_int) { in GetMaxFilesOpenInProcess()
391 return rlim.rlim_cur; in GetMaxFilesOpenInProcess()
/external/chromium/third_party/libevent/
Ddevpoll.c141 rl.rlim_cur != RLIM_INFINITY) in devpoll_init()
142 nfiles = rl.rlim_cur; in devpoll_init()
/external/valgrind/main/coregrind/
Dm_main.c1363 rl.rlim_cur = 1024; in setup_file_descriptors()
1370 if (rl.rlim_cur >= 10240 && rl.rlim_max == 0x7fffffffffffffffULL) { in setup_file_descriptors()
1377 (UWord)rl.rlim_cur, (UWord)rl.rlim_max); in setup_file_descriptors()
1380 if (rl.rlim_cur + N_RESERVED_FDS <= rl.rlim_max) { in setup_file_descriptors()
1381 rl.rlim_cur = rl.rlim_cur + N_RESERVED_FDS; in setup_file_descriptors()
1383 rl.rlim_cur = rl.rlim_max; in setup_file_descriptors()
1387 VG_(fd_soft_limit) = rl.rlim_cur - N_RESERVED_FDS; in setup_file_descriptors()
1388 VG_(fd_hard_limit) = rl.rlim_cur - N_RESERVED_FDS; in setup_file_descriptors()
1395 (UWord)rl.rlim_cur, (UWord)rl.rlim_max); in setup_file_descriptors()
/external/chromium/third_party/libevent/test/
Dbench.c152 rl.rlim_cur = rl.rlim_max = num_pipes * 2 + 50;
/external/chromium/chrome/browser/
Dbrowser_main_posix.cc173 limits.rlim_cur = new_limit; in SetFileDescriptorLimit()
/external/e2fsprogs/lib/ext2fs/
Dunix_io.c550 rlim.rlim_cur = rlim.rlim_max = (unsigned long) RLIM_INFINITY; in unix_open()
553 if (((unsigned long) rlim.rlim_cur) < in unix_open()
555 rlim.rlim_cur = rlim.rlim_max; in unix_open()
/external/valgrind/main/coregrind/m_syswrap/
Dsyswrap-linux.c1349 ((struct vki_rlimit64 *)ARG3)->rlim_cur > ((struct vki_rlimit64 *)ARG3)->rlim_max) { in PRE()
1357 ((struct vki_rlimit64 *)ARG4)->rlim_cur = VG_(fd_soft_limit); in PRE()
1361 if (((struct vki_rlimit64 *)ARG3)->rlim_cur > VG_(fd_hard_limit) || in PRE()
1366 VG_(fd_soft_limit) = ((struct vki_rlimit64 *)ARG3)->rlim_cur; in PRE()
1374 ((struct vki_rlimit64 *)ARG4)->rlim_cur = VG_(client_rlimit_data).rlim_cur; in PRE()
1378 if (((struct vki_rlimit64 *)ARG3)->rlim_cur > VG_(client_rlimit_data).rlim_max || in PRE()
1383 VG_(client_rlimit_data).rlim_cur = ((struct vki_rlimit64 *)ARG3)->rlim_cur; in PRE()
1392 ((struct vki_rlimit64 *)ARG4)->rlim_cur = VG_(client_rlimit_stack).rlim_cur; in PRE()
1396 if (((struct vki_rlimit64 *)ARG3)->rlim_cur > VG_(client_rlimit_stack).rlim_max || in PRE()
1401 VG_(threads)[tid].client_stack_szB = ((struct vki_rlimit64 *)ARG3)->rlim_cur; in PRE()
[all …]

12