Symbol: RLIMIT_NOFILE
bin/sh/miscbltin.c
497
#ifdef RLIMIT_NOFILE
bin/sh/miscbltin.c
498
{ "open files", (char *)0, RLIMIT_NOFILE, 1, 'n' },
crypto/heimdal/lib/roken/getdtablesize.c
71
#if defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE)
crypto/heimdal/lib/roken/getdtablesize.c
73
if (getrlimit(RLIMIT_NOFILE, &res) == 0)
crypto/openssh/sandbox-capsicum.c
80
if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1)
crypto/openssh/sandbox-darwin.c
76
if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1)
crypto/openssh/sandbox-rlimit.c
70
if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1)
crypto/openssh/sandbox-seccomp-filter.c
548
if (setrlimit(RLIMIT_NOFILE, &rl_one) == -1)
crypto/openssh/sftp-server.c
1515
#if defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE)
crypto/openssh/sftp-server.c
1521
#if defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE)
crypto/openssh/sftp-server.c
1522
if (getrlimit(RLIMIT_NOFILE, &rlim) != -1 && rlim.rlim_cur > 5)
crypto/openssh/ssh-agent.c
2296
#ifdef RLIMIT_NOFILE
crypto/openssh/ssh-agent.c
2297
if (getrlimit(RLIMIT_NOFILE, &rlim) == -1)
crypto/openssh/ssh-keyscan.c
125
#if defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE)
crypto/openssh/ssh-keyscan.c
129
if (getrlimit(RLIMIT_NOFILE, &rlfd) == -1)
crypto/openssh/ssh-keyscan.c
148
#if defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE)
crypto/openssh/ssh-keyscan.c
154
#if defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE)
crypto/openssh/ssh-keyscan.c
155
if (getrlimit(RLIMIT_NOFILE, &rlfd) == -1)
crypto/openssh/ssh-keyscan.c
158
if (setrlimit(RLIMIT_NOFILE, &rlfd) == -1)
lib/libc/gen/sysconf.c
105
if (getrlimit(RLIMIT_NOFILE, &rl) != 0)
lib/libc/gen/sysconf.c
115
if (getrlimit(RLIMIT_NOFILE, &rl) != 0)
lib/libcasper/tests/cap_main_test.c
52
if (getrlimit(RLIMIT_NOFILE, &rl) != 0)
lib/libcasper/tests/cap_main_test.c
58
ATF_REQUIRE_MSG(setrlimit(RLIMIT_NOFILE, &rl) == 0,
lib/libnv/tests/nvlist_send_recv_test.c
557
if (setrlimit(RLIMIT_NOFILE, &rl) != 0)
lib/libpmc/pmu-events/jevents.c
1133
if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) {
lib/libutil/login_class.c
60
{ "openfiles", login_getcapnum, RLIMIT_NOFILE },
sys/compat/linprocfs/linprocfs.c
1879
{ "Max open files", "files", RLIMIT_NOFILE },
sys/compat/linux/linux_emul.c
103
lim_rlimit_proc(p, RLIMIT_NOFILE, &rlim);
sys/compat/linux/linux_emul.c
109
error = kern_proc_setrlimit(td, p, RLIMIT_NOFILE, &rlim);
sys/compat/linux/linux_misc.c
92
RLIMIT_CORE, RLIMIT_RSS, RLIMIT_NPROC, RLIMIT_NOFILE,
sys/fs/fdescfs/fdesc_vfsops.c
200
lim = lim_cur(td, RLIMIT_NOFILE);
sys/kern/init_main.c
591
p->p_limit->pl_rlimit[RLIMIT_NOFILE].rlim_cur =
sys/kern/init_main.c
592
p->p_limit->pl_rlimit[RLIMIT_NOFILE].rlim_max = maxfiles;
sys/kern/kern_descrip.c
1036
return (min((int)lim_cur(td, RLIMIT_NOFILE), maxfilesperproc));
sys/kern/kern_resource.c
732
case RLIMIT_NOFILE:
sys/kern/kern_resource.c
887
case RLIMIT_NOFILE:
tests/sys/capsicum/capability-fd.cc
167
if (getrlimit(RLIMIT_NOFILE, &limits) != 0) {
tests/sys/file/dup_test.c
184
if (getrlimit(RLIMIT_NOFILE, &rlp) < 0)
tests/sys/file/dup_test.c
242
if (getrlimit(RLIMIT_NOFILE, &rlp) < 0)
tests/sys/file/dup_test.c
301
if (getrlimit(RLIMIT_NOFILE, &rlp) < 0)
tests/sys/file/dup_test.c
376
if (getrlimit(RLIMIT_NOFILE, &rlp) < 0)
tests/sys/file/dup_test.c
470
if (getrlimit(RLIMIT_NOFILE, &rlp) < 0)
tests/sys/kern/kern_descrip_test.c
177
ATF_REQUIRE_EQ_MSG(0, setrlimit(RLIMIT_NOFILE, &rl),
tests/sys/kern/procdesc.c
314
ATF_REQUIRE_EQ(getrlimit(RLIMIT_NOFILE, &rl), 0);
tests/sys/kern/procdesc.c
316
ATF_REQUIRE_EQ(setrlimit(RLIMIT_NOFILE, &rl), 0);
tests/sys/kern/unix_passfd_test.c
530
ATF_REQUIRE(getrlimit(RLIMIT_NOFILE, &rlim) == 0);
tests/sys/kern/unix_passfd_test.c
532
ATF_REQUIRE(setrlimit(RLIMIT_NOFILE, &rlim) == 0);
tools/regression/posixsem/posixsem.c
1301
if (getrlimit(RLIMIT_NOFILE, &rlim) < 0)
tools/regression/posixsem/posixsem.c
1304
if (setrlimit(RLIMIT_NOFILE, &rlim) < 0)
usr.bin/limits/limits.c
668
case RLIMIT_NOFILE:
usr.sbin/rpc.ypupdated/update.c
165
getrlimit(RLIMIT_NOFILE, &rl);
usr.sbin/rpcbind/rpcbind.c
183
getrlimit(RLIMIT_NOFILE, &rl);
usr.sbin/rpcbind/rpcbind.c
189
setrlimit(RLIMIT_NOFILE, &rl);