Symbol: FD_CLOEXEC
bin/csh/csh.c
1307
(void) fcntl(SHIN = dcopy(0, FSHIN), F_SETFD, FD_CLOEXEC);
bin/csh/csh.c
1308
(void) fcntl(SHOUT = dcopy(1, FSHOUT), F_SETFD, FD_CLOEXEC);
bin/csh/csh.c
1309
(void) fcntl(SHERR = dcopy(2, FSHERR), F_SETFD, FD_CLOEXEC);
bin/csh/csh.c
1310
(void) fcntl(OLDSTD = dcopy(SHIN, FOLDSTD), F_SETFD, FD_CLOEXEC);
bin/csh/csh.c
445
(void) fcntl(SHIN, F_SETFD, FD_CLOEXEC);
bin/csh/csh.c
539
(void) fcntl(dcopy(f, FSHTTY), F_SETFD, FD_CLOEXEC);
bin/csh/csh.c
701
(void) fcntl(unit, F_SETFD, FD_CLOEXEC);
bin/ksh/c_sh.c
842
fcntl(i, F_SETFD, FD_CLOEXEC);
bin/ksh/io.c
272
fcntl(nfd, F_SETFD, FD_CLOEXEC);
bin/ksh/shf.c
127
fcntl(fd, F_SETFD, FD_CLOEXEC);
bin/ksh/shf.c
174
fcntl(fd, F_SETFD, FD_CLOEXEC);
lib/libc/gen/opendir.c
86
if (flags != -1 && (flags & FD_CLOEXEC) == 0)
lib/libc/gen/opendir.c
87
(void)fcntl(fd, F_SETFD, flags | FD_CLOEXEC);
lib/libc/gen/popen.c
104
if (flags == -1 || ((flags & FD_CLOEXEC) &&
lib/libc/gen/popen.c
105
fcntl(pdes[target], F_SETFD, flags & ~FD_CLOEXEC)
lib/libc/gen/popen.c
135
fcntl(pdes[target], F_SETFD, flags & ~FD_CLOEXEC);
lib/libc/gen/posix_spawn.c
164
((flags & FD_CLOEXEC) &&
lib/libc/gen/posix_spawn.c
165
fcntl(fd, F_SETFD, flags & ~FD_CLOEXEC) == -1))
lib/libc/stdio/fdopen.c
75
if ((oflags & O_CLOEXEC) && !((tmp = fcntl(fd, F_GETFD)) & FD_CLOEXEC))
lib/libc/stdio/fdopen.c
76
fcntl(fd, F_SETFD, tmp | FD_CLOEXEC);
lib/libcrypto/arc4random/getentropy_aix.c
144
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
lib/libcrypto/arc4random/getentropy_hpux.c
148
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
lib/libcrypto/arc4random/getentropy_linux.c
222
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
lib/libcrypto/arc4random/getentropy_osx.c
168
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
lib/libcrypto/arc4random/getentropy_solaris.c
174
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
regress/lib/libc/sys/t_pipe2.c
66
ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0);
regress/lib/libc/sys/t_pipe2.c
67
ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0);
regress/lib/libc/sys/t_pipe2.c
69
ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0);
regress/lib/libc/sys/t_pipe2.c
70
ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
regress/lib/libc/sys/t_socketpair.c
78
ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0);
regress/lib/libc/sys/t_socketpair.c
79
ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0);
regress/lib/libc/sys/t_socketpair.c
81
ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0);
regress/lib/libc/sys/t_socketpair.c
82
ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
regress/sys/kern/fork-exit/fork-exit.c
167
if (fcntl(fd, F_SETFD, FD_CLOEXEC))
sys/kern/kern_descrip.c
461
*retval = (fdp->fd_ofileflags[fd] & UF_EXCLOSE ? FD_CLOEXEC : 0)
sys/kern/kern_descrip.c
468
i = ((long)SCARG(uap, arg) & FD_CLOEXEC ? UF_EXCLOSE : 0) |
usr.bin/awk/run.c
2427
(void) fcntl(fileno(fp), F_SETFD, FD_CLOEXEC);
usr.bin/mail/popen.c
108
(void)fcntl(p[READ], F_SETFD, FD_CLOEXEC);
usr.bin/mail/popen.c
109
(void)fcntl(p[WRITE], F_SETFD, FD_CLOEXEC);
usr.bin/mail/popen.c
72
(void)fcntl(fileno(fp), F_SETFD, FD_CLOEXEC);
usr.bin/mail/popen.c
84
(void)fcntl(fileno(fp), F_SETFD, FD_CLOEXEC);
usr.bin/ssh/authfd.c
101
if (fcntl(sock, F_SETFD, FD_CLOEXEC) == -1 ||
usr.bin/ssh/channels.c
439
(void)fcntl(rfd, F_SETFD, FD_CLOEXEC);
usr.bin/ssh/channels.c
441
(void)fcntl(wfd, F_SETFD, FD_CLOEXEC);
usr.bin/ssh/channels.c
443
(void)fcntl(efd, F_SETFD, FD_CLOEXEC);
usr.bin/ssh/misc.h
272
if (fcntl(x, F_SETFD, FD_CLOEXEC) == -1) \
usr.bin/ssh/sshconnect.c
346
(void)fcntl(sock, F_SETFD, FD_CLOEXEC);
usr.bin/ssh/sshd.c
824
if (fcntl(listen_sock, F_SETFD, FD_CLOEXEC) == -1) {
usr.bin/tmux/tty.c
90
if (tty_log_fd != -1 && fcntl(tty_log_fd, F_SETFD, FD_CLOEXEC) == -1)
usr.bin/vi/common/exf.c
1391
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
usr.sbin/bgplgd/slowcgi.c
1019
fcntl(s_in[0], F_SETFD, FD_CLOEXEC);
usr.sbin/bgplgd/slowcgi.c
1020
fcntl(s_out[0], F_SETFD, FD_CLOEXEC);
usr.sbin/bgplgd/slowcgi.c
1021
fcntl(s_err[0], F_SETFD, FD_CLOEXEC);
usr.sbin/nsd/popen3.c
53
fcntl(fdsig[0], F_SETFD, FD_CLOEXEC) == -1 ||
usr.sbin/nsd/popen3.c
54
fcntl(fdsig[1], F_SETFD, FD_CLOEXEC) == -1)
usr.sbin/nsd/server.c
3464
fcntl(nsd->verifier_pipe[0], F_SETFD, FD_CLOEXEC);
usr.sbin/nsd/server.c
3465
fcntl(nsd->verifier_pipe[1], F_SETFD, FD_CLOEXEC);
usr.sbin/nsd/server.c
828
if(fcntl(sock->s, F_SETFD, FD_CLOEXEC) == -1) {
usr.sbin/ntpd/constraint.c
430
if (fcntl(CONSTRAINT_PASSFD, F_SETFD, FD_CLOEXEC) == -1)
usr.sbin/slowcgi/slowcgi.c
965
fcntl(s_in[0], F_SETFD, FD_CLOEXEC);
usr.sbin/slowcgi/slowcgi.c
966
fcntl(s_out[0], F_SETFD, FD_CLOEXEC);
usr.sbin/slowcgi/slowcgi.c
967
fcntl(s_err[0], F_SETFD, FD_CLOEXEC);
usr.sbin/vmd/vmm.c
429
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {