Symbol: FD_CLOEXEC
bin/sh/input.c
560
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
bin/sh/jobs.c
174
#if defined(FIOCLEX) || defined(FD_CLOEXEC)
bin/sh/redir.c
1001
if (c & FD_CLOEXEC)
bin/sh/redir.c
1079
cloexec = FD_CLOEXEC;
bin/sh/redir.c
316
cloexec &= FD_CLOEXEC;
bin/sh/redir.c
352
(void)fcntl(i, F_SETFD, (fcntl_int) FD_CLOEXEC);
bin/sh/redir.c
488
(void)fcntl(f, F_SETFD, (fcntl_int) FD_CLOEXEC);
bin/sh/redir.c
648
(fcntl_int)(fcntl(newfd, F_GETFD) | FD_CLOEXEC));
bin/sh/redir.c
763
(void)fcntl(fd, F_SETFD, (fcntl_int) FD_CLOEXEC);
bin/sh/redir.c
81
#ifndef FD_CLOEXEC
bin/sh/redir.c
88
(fcntl_int)(fcntl((fd), F_GETFD) | FD_CLOEXEC)))
crypto/dist/ipsec-tools/src/racoon/misc.c
133
fcntl(fd, F_SETFD, FD_CLOEXEC);
distrib/utils/libhack/opendir.c
71
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1 ||
games/atc/log.c
140
flags |= FD_CLOEXEC;
games/cribbage/crib.c
95
flags |= FD_CLOEXEC;
lib/libc/compat/sys/compat_dup3.c
64
fdflags = FD_CLOEXEC|FD_CLOFORK;
lib/libc/compat/sys/compat_dup3.c
67
fdflags = FD_CLOEXEC;
lib/libc/db/db/dbfile.c
106
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
lib/libc/db/db/dbfile.c
62
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
lib/libc/gen/opendir.c
108
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
lib/libc/resolv/res_send.c
704
fcntl(statp->_vcsock, F_SETFD, FD_CLOEXEC);
lib/libc/resolv/res_send.c
898
fcntl(EXT(statp)nssocks[ns], F_SETFD, FD_CLOEXEC);
lib/libc/rpc/clnt_simple.c
196
(void)fcntl(fd, F_SETFD, FD_CLOEXEC);
lib/libc/yp/yplib.c
270
if (fcntl(ysd->dom_socket, F_SETFD, FD_CLOEXEC) == -1)
lib/libutil/pidfile.c
268
fcntl(fd, F_SETFD, opts | FD_CLOEXEC) == -1) {
libexec/atrun/atrun.c
239
(void)fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC);
sys/kern/kern_descrip.c
2453
kp->ki_ofileflags = (ff->ff_exclose ? FD_CLOEXEC : 0) |
sys/kern/sys_descrip.c
415
*retval = (dt->dt_ff[fd]->ff_exclose ? FD_CLOEXEC : 0) |
sys/kern/sys_descrip.c
421
fd_set_exclose(l, fd, (tmp & FD_CLOEXEC) != 0);
tests/kernel/h_fexecve.c
46
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
tests/kernel/t_cloexec.c
151
RL(fcntl(fd, F_SETFD, FD_CLOEXEC));
tests/kernel/t_epoll.c
76
ATF_REQUIRE_MSG((fcntl(fd, F_GETFD) & FD_CLOEXEC) == 0,
tests/kernel/t_epoll.c
80
ATF_REQUIRE_MSG((fcntl(fd, F_GETFD) & FD_CLOEXEC) != 0,
tests/lib/libc/sys/t_eventfd.c
795
ATF_REQUIRE((fcntl(efd, F_GETFD) & FD_CLOEXEC) == 0);
tests/lib/libc/sys/t_eventfd.c
808
ATF_REQUIRE((fcntl(efd, F_GETFD) & FD_CLOEXEC) != 0);
tests/lib/libc/sys/t_eventfd.c
810
ATF_REQUIRE((fcntl(efd, F_GETFD) & FD_CLOEXEC) == 0);
tests/lib/libc/sys/t_eventfd.c
811
ATF_REQUIRE(fcntl(efd, F_SETFD, FD_CLOEXEC) == 0);
tests/lib/libc/sys/t_eventfd.c
812
ATF_REQUIRE((fcntl(efd, F_GETFD) & FD_CLOEXEC) != 0);
tests/lib/libc/sys/t_pipe2.c
72
ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0);
tests/lib/libc/sys/t_pipe2.c
73
ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0);
tests/lib/libc/sys/t_pipe2.c
75
ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0);
tests/lib/libc/sys/t_pipe2.c
76
ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
tests/lib/libc/sys/t_socketpair.c
84
ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0);
tests/lib/libc/sys/t_socketpair.c
85
ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0);
tests/lib/libc/sys/t_socketpair.c
87
ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0);
tests/lib/libc/sys/t_socketpair.c
88
ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
tests/lib/libc/sys/t_timerfd.c
775
ATF_REQUIRE((fcntl(tfd, F_GETFD) & FD_CLOEXEC) == 0);
tests/lib/libc/sys/t_timerfd.c
788
ATF_REQUIRE((fcntl(tfd, F_GETFD) & FD_CLOEXEC) != 0);
tests/lib/libc/sys/t_timerfd.c
790
ATF_REQUIRE((fcntl(tfd, F_GETFD) & FD_CLOEXEC) == 0);
tests/lib/libc/sys/t_timerfd.c
791
ATF_REQUIRE(fcntl(tfd, F_SETFD, FD_CLOEXEC) == 0);
tests/lib/libc/sys/t_timerfd.c
792
ATF_REQUIRE((fcntl(tfd, F_GETFD) & FD_CLOEXEC) != 0);
tests/lib/libc/ttyio/t_ptm.c
188
ATF_CHECK_EQ(FD_CLOEXEC|FD_CLOFORK, fcntl(fdm, F_GETFD));
tests/lib/librumpclient/h_exec.c
103
if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) {
tests/lib/librumpclient/h_execthr.c
168
if (rump_sys_fcntl(p1[0], F_SETFD, FD_CLOEXEC) == -1)
tests/lib/librumpclient/h_execthr.c
170
if (rump_sys_fcntl(p1[1], F_SETFD, FD_CLOEXEC) == -1)
usr.bin/ftp/ssl.c
270
fcntl(sd, F_SETFD, FD_CLOEXEC);
usr.bin/make/job.c
1714
(void)fcntl(fd, F_SETFD, FD_CLOEXEC);
usr.bin/make/job.c
2645
(void)fcntl(tokenPoolReader, F_SETFD, FD_CLOEXEC);
usr.bin/make/job.c
2646
(void)fcntl(tokenPoolWriter, F_SETFD, FD_CLOEXEC);
usr.bin/make/job.c
639
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
usr.bin/make/make.h
100
#ifndef FD_CLOEXEC
usr.bin/make/meta.c
147
(void)fcntl(dupfd, F_SETFD, FD_CLOEXEC);
usr.bin/make/meta.c
152
(void)fcntl(pbm->mon_fd, F_SETFD, FD_CLOEXEC);
usr.bin/make/meta.c
1758
(void)fcntl(childPipe[0], F_SETFD, FD_CLOEXEC);
usr.bin/make/meta.c
1759
(void)fcntl(childPipe[1], F_SETFD, FD_CLOEXEC);
usr.sbin/inetd/inetd.c
793
if (fcntl(sep->se_fd, F_SETFD, FD_CLOEXEC) < 0) {
usr.sbin/powerd/powerd.c
136
if (prog_fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {