/netbsd-current/external/ibm-public/postfix/dist/src/util/ |
H A D | open_limit.c | 51 #ifndef RLIMIT_NOFILE 53 #define RLIMIT_NOFILE RLIMIT_OFILE macro 61 #ifdef RLIMIT_NOFILE 69 #ifdef RLIMIT_NOFILE 70 if (getrlimit(RLIMIT_NOFILE, &rl) < 0) 92 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) 98 #ifndef RLIMIT_NOFILE
|
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | getdtablesize.c | 73 #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE) 75 if (getrlimit(RLIMIT_NOFILE, &res) == 0)
|
/netbsd-current/crypto/external/bsd/openssh/dist/ |
H A D | sandbox-rlimit.c | 67 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) 68 fatal_f("setrlimit(RLIMIT_NOFILE, { 0, 0 }): %s",
|
/netbsd-current/external/gpl3/gdb.old/dist/gnulib/import/ |
H A D | getdtablesize.c | 103 /* Cygwin 1.7.25 auto-increases the RLIMIT_NOFILE soft limit until it 114 if (getrlimit (RLIMIT_NOFILE, &lim) == 0
|
/netbsd-current/external/gpl3/gdb/dist/gnulib/import/ |
H A D | getdtablesize.c | 103 /* Cygwin 1.7.25 auto-increases the RLIMIT_NOFILE soft limit until it 114 if (getrlimit (RLIMIT_NOFILE, &lim) == 0
|
/netbsd-current/bin/ksh/ |
H A D | c_ulimit.c | 94 #ifdef RLIMIT_NOFILE 95 { "nofiles(descriptors)", RLIMIT, RLIMIT_NOFILE, RLIMIT_NOFILE, 1, 'n' }, 96 #else /* RLIMIT_NOFILE */ 100 #endif /* RLIMIT_NOFILE */
|
/netbsd-current/tests/lib/libc/sys/ |
H A D | t_pipe2.c | 119 err = getrlimit(RLIMIT_NOFILE, &rl); 128 err = setrlimit(RLIMIT_NOFILE, &rl); 134 err = setrlimit(RLIMIT_NOFILE, &rl);
|
H A D | t_dup.c | 173 (void)getrlimit(RLIMIT_NOFILE, &res); 239 (void)getrlimit(RLIMIT_NOFILE, &res); 304 if (setrlimit(RLIMIT_NOFILE, &res) != 0) 342 atf_tc_fail("dup(2) dupped more than RLIMIT_NOFILE");
|
H A D | t_revoke.c | 62 (void)getrlimit(RLIMIT_NOFILE, &res);
|
H A D | t_setrlimit.c | 63 RLIMIT_NOFILE, 299 atf_tc_set_md_var(tc, "descr", "Test setrlimit(2), RLIMIT_NOFILE, #1"); 317 * Close all descriptors, set RLIMIT_NOFILE 324 rv = setrlimit(RLIMIT_NOFILE, &res); 341 atf_tc_fail("RLIMIT_NOFILE not enforced"); 347 atf_tc_set_md_var(tc, "descr", "Test setrlimit(2), RLIMIT_NOFILE, #2"); 372 rv = setrlimit(RLIMIT_NOFILE, &res); 400 atf_tc_fail("RLIMIT_NOFILE not enforced");
|
/netbsd-current/sys/sys/ |
H A D | resource.h | 96 #define RLIMIT_NOFILE 8 /* number of open files */ macro
|
/netbsd-current/external/mit/libuv/dist/test/ |
H A D | test-emfile.c | 56 if (setrlimit(RLIMIT_NOFILE, &limits)) { 58 RETURN_SKIP("setrlimit(RLIMIT_NOFILE) failed, running under valgrind?");
|
/netbsd-current/external/bsd/ntp/dist/lib/isc/unix/ |
H A D | resource.c | 68 #ifdef RLIMIT_NOFILE 69 *rlim_resource = RLIMIT_NOFILE;
|
/netbsd-current/external/mpl/dhcp/bind/dist/lib/isc/unix/ |
H A D | resource.c | 58 #ifdef RLIMIT_NOFILE 59 *rlim_resource = RLIMIT_NOFILE; 60 #else /* ifdef RLIMIT_NOFILE */ 62 #endif /* ifdef RLIMIT_NOFILE */
|
/netbsd-current/external/mpl/bind/dist/lib/isc/ |
H A D | resource.c | 57 #ifdef RLIMIT_NOFILE 58 *rlim_resource = RLIMIT_NOFILE; 59 #else /* ifdef RLIMIT_NOFILE */ 61 #endif /* ifdef RLIMIT_NOFILE */
|
/netbsd-current/sys/compat/linux/common/ |
H A D | linux_limit.h | 91 return RLIMIT_NOFILE;
|
/netbsd-current/external/mpl/bind/dist/bin/tests/system/doth/ |
H A D | stress_http_quota.py | 24 from resource import RLIMIT_NOFILE namespace 32 rlimit_nofile = getrlimit(RLIMIT_NOFILE) 34 setrlimit(RLIMIT_NOFILE, (1024, rlimit_nofile[1]))
|
/netbsd-current/bin/sh/ |
H A D | miscbltin.c | 428 #ifdef RLIMIT_NOFILE 429 { "nofiles", "descriptors", 'n', RLIMIT_NOFILE, 1 }, 561 if (l->cmd == RLIMIT_NOFILE)
|
/netbsd-current/external/bsd/ntp/dist/sntp/libevent/test/ |
H A D | bench_cascade.c | 169 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) {
|
H A D | test-fdleak.c | 229 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) {
|
H A D | bench.c | 174 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) {
|
/netbsd-current/usr.bin/sort/ |
H A D | sort.c | 132 /* bump RLIMIT_NOFILE to maximum our hard limit allows */ 133 if (getrlimit(RLIMIT_NOFILE, &rl) < 0) 136 if (setrlimit(RLIMIT_NOFILE, &rl) < 0)
|
/netbsd-current/external/gpl3/gdb.old/dist/gdbsupport/ |
H A D | filestuff.cc | 140 #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE) 143 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 && rlim.rlim_max != RLIM_INFINITY)
|
/netbsd-current/external/gpl3/gdb/dist/gdbsupport/ |
H A D | filestuff.cc | 140 #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE) 143 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 && rlim.rlim_max != RLIM_INFINITY)
|
/netbsd-current/external/bsd/libevent/dist/test/ |
H A D | test-fdleak.c | 233 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) {
|