Home
last modified time | relevance | path

Searched refs:RLIMIT_NOFILE (Results 1 – 25 of 38) sorted by relevance

12

/external/valgrind/main/none/tests/
Drlimit_nofile.c17 if (getrlimit(RLIMIT_NOFILE, &oldrlim) < 0) in main()
25 if (setrlimit(RLIMIT_NOFILE, &newrlim) == -1) in main()
40 if (setrlimit(RLIMIT_NOFILE, &newrlim) == -1) in main()
56 if (setrlimit(RLIMIT_NOFILE, &newrlim) < 0) in main()
62 if (getrlimit(RLIMIT_NOFILE, &newrlim) < 0) in main()
Drlimit64_nofile.c20 if (getrlimit64(RLIMIT_NOFILE, &oldrlim) < 0) in main()
28 if (setrlimit64(RLIMIT_NOFILE, &newrlim) == -1) in main()
43 if (setrlimit64(RLIMIT_NOFILE, &newrlim) == -1) in main()
59 if (setrlimit64(RLIMIT_NOFILE, &newrlim) < 0) in main()
65 if (getrlimit64(RLIMIT_NOFILE, &newrlim) < 0) in main()
Dcloseall.c11 getrlimit(RLIMIT_NOFILE, &lim); in main()
/external/kernel-headers/original/asm-generic/
Dresource.h29 #ifndef RLIMIT_NOFILE
30 # define RLIMIT_NOFILE 7 /* max number of open files */ macro
81 [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \
/external/valgrind/main/none/tests/darwin/
Drlimit.stderr.exp1 RLIMIT_NOFILE is 256
Drlimit.c13 getrlimit(RLIMIT_NOFILE, &rlp); in main()
/external/openssh/
Dssh-keyscan.c111 #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE) in fdlim_get()
114 if (getrlimit(RLIMIT_NOFILE, &rlfd) < 0) in fdlim_get()
128 #if defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE) in fdlim_set()
134 #if defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE) in fdlim_set()
135 if (getrlimit(RLIMIT_NOFILE, &rlfd) < 0) in fdlim_set()
138 if (setrlimit(RLIMIT_NOFILE, &rlfd) < 0) in fdlim_set()
Dsandbox-rlimit.c70 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child()
Dsandbox-darwin.c77 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child()
/external/kernel-headers/original/asm-mips/
Dresource.h17 #define RLIMIT_NOFILE 5 /* max number of open files */ macro
/external/chromium/chrome/browser/
Dbrowser_main_posix.cc168 if (getrlimit(RLIMIT_NOFILE, &limits) == 0) { in SetFileDescriptorLimit()
174 if (setrlimit(RLIMIT_NOFILE, &limits) != 0) { in SetFileDescriptorLimit()
/external/chromium_org/base/process/
Dprocess_metrics_posix.cc41 if (getrlimit(RLIMIT_NOFILE, &nofile)) { in GetMaxFds()
Dprocess_metrics_ios.cc51 if (getrlimit(RLIMIT_NOFILE, &nofile)) { in GetMaxFds()
/external/chromium_org/chrome/browser/
Dchrome_browser_main_posix.cc254 if (getrlimit(RLIMIT_NOFILE, &limits) == 0) { in SetFileDescriptorLimit()
260 if (setrlimit(RLIMIT_NOFILE, &limits) != 0) { in SetFileDescriptorLimit()
/external/elfutils/tests/
Ddwfl-bug-fd-leak.c100 if (setrlimit (RLIMIT_NOFILE, &fd_limit) < 0) in main()
/external/strace/
Dresource.c86 #ifdef RLIMIT_NOFILE
87 { RLIMIT_NOFILE, "RLIMIT_NOFILE" },
/external/chromium_org/third_party/libevent/test/
Dbench.c153 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) {
/external/blktrace/btt/
Dmisc.c110 return increase_limit(RLIMIT_NOFILE, 16); in handle_open_failure()
/external/chromium/third_party/libevent/test/
Dbench.c153 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) {
/external/chromium_org/base/memory/
Ddiscardable_memory_android.cc60 if (getrlimit(RLIMIT_NOFILE, &limit_info) != 0) in GetSoftFDLimit()
/external/e2fsprogs/lib/uuid/
Dgen_uuid.c453 #elif defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE) in close_all_fds()
456 getrlimit(RLIMIT_NOFILE, &rl); in close_all_fds()
/external/chromium_org/sandbox/linux/suid/
Dsandbox.c116 if (setrlimit(RLIMIT_NOFILE, &nofile)) in SpawnChrootHelper()
/external/chromium_org/third_party/libevent/
Ddevpoll.c140 if (getrlimit(RLIMIT_NOFILE, &rl) == 0 && in devpoll_init()
/external/chromium/third_party/libevent/
Ddevpoll.c140 if (getrlimit(RLIMIT_NOFILE, &rl) == 0 && in devpoll_init()
/external/oprofile/daemon/
Doprofiled.c508 err = setrlimit(RLIMIT_NOFILE, &rlim); in main()

12