Searched refs:RLIMIT_NOFILE (Results 1 - 25 of 80) sorted by relevance

1234

/netbsd-current/external/ibm-public/postfix/dist/src/util/
H A Dopen_limit.c51 #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 Dgetdtablesize.c73 #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE)
75 if (getrlimit(RLIMIT_NOFILE, &res) == 0)
/netbsd-current/crypto/external/bsd/openssh/dist/
H A Dsandbox-rlimit.c67 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 Dgetdtablesize.c103 /* 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 Dgetdtablesize.c103 /* 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 Dc_ulimit.c94 #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 Dt_pipe2.c119 err = getrlimit(RLIMIT_NOFILE, &rl);
128 err = setrlimit(RLIMIT_NOFILE, &rl);
134 err = setrlimit(RLIMIT_NOFILE, &rl);
H A Dt_dup.c173 (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 Dt_revoke.c62 (void)getrlimit(RLIMIT_NOFILE, &res);
H A Dt_setrlimit.c63 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 Dresource.h96 #define RLIMIT_NOFILE 8 /* number of open files */ macro
/netbsd-current/external/mit/libuv/dist/test/
H A Dtest-emfile.c56 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 Dresource.c68 #ifdef RLIMIT_NOFILE
69 *rlim_resource = RLIMIT_NOFILE;
/netbsd-current/external/mpl/dhcp/bind/dist/lib/isc/unix/
H A Dresource.c58 #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 Dresource.c57 #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 Dlinux_limit.h91 return RLIMIT_NOFILE;
/netbsd-current/external/mpl/bind/dist/bin/tests/system/doth/
H A Dstress_http_quota.py24 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 Dmiscbltin.c428 #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 Dbench_cascade.c169 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) {
H A Dtest-fdleak.c229 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) {
H A Dbench.c174 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) {
/netbsd-current/usr.bin/sort/
H A Dsort.c132 /* 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 Dfilestuff.cc140 #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 Dfilestuff.cc140 #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 Dtest-fdleak.c233 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) {

Completed in 167 milliseconds

1234