Symbol: F_SETFD
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
87
(void)fcntl(fd, F_SETFD, 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
165
fcntl(fd, F_SETFD, flags & ~FD_CLOEXEC) == -1))
lib/libc/stdio/fdopen.c
76
fcntl(fd, F_SETFD, tmp | FD_CLOEXEC);
lib/libc/sys/w_fcntl.c
33
case F_SETFD:
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);
lib/libz/gzlib.c
260
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | O_CLOEXEC);
regress/sys/kern/dup2/dup2test.c
28
if (fcntl(fd1, F_SETFD, 1) != 0)
regress/sys/kern/dup2_self/dup2_self.c
48
if (fcntl(fd1, F_SETFD, 1) != 0)
regress/sys/kern/fcntl_dup/fcntl_dup.c
28
if (fcntl(fd1, F_SETFD, 1) != 0)
regress/sys/kern/fork-exit/fork-exit.c
167
if (fcntl(fd, F_SETFD, FD_CLOEXEC))
sbin/dhcp6leased/dhcp6leased.c
393
} else if (fcntl(fd, F_SETFD, 0) == -1)
sbin/dhcpleased/dhcpleased.c
408
} else if (fcntl(fd, F_SETFD, 0) == -1)
sbin/iked/proc.c
127
} else if (fcntl(fd, F_SETFD, 0) == -1)
sbin/slaacd/slaacd.c
360
} else if (fcntl(fd, F_SETFD, 0) == -1)
sbin/unwind/unwind.c
365
} else if (fcntl(fd, F_SETFD, 0) == -1)
sys/kern/kern_descrip.c
466
case F_SETFD:
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/sshconnect2.c
2065
if (fcntl(sock, F_SETFD, 0) == -1) /* keep the socket on exec */
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/bgpd/bgpd.c
539
} else if (fcntl(fd, F_SETFD, 0) == -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/eigrpd/eigrpd.c
339
} else if (fcntl(fd, F_SETFD, 0) == -1)
usr.sbin/httpd/proc.c
126
} else if (fcntl(fd, F_SETFD, 0) == -1)
usr.sbin/ldapd/ldapd.c
429
} else if (fcntl(fd, F_SETFD, 0) == -1)
usr.sbin/ldpd/ldpd.c
346
} else if (fcntl(fd, F_SETFD, 0) == -1)
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/ntpd/util.c
214
} else if (fcntl(cfd, F_SETFD, 0) == -1)
usr.sbin/rad/rad.c
351
} else if (fcntl(fd, F_SETFD, 0) == -1)
usr.sbin/radiusd/radiusd_bsdauth.c
426
} else if (fcntl(fd, F_SETFD, 0) == -1)
usr.sbin/radiusd/radiusd_file.c
281
} else if (fcntl(fd, F_SETFD, 0) == -1)
usr.sbin/relayd/proc.c
126
} else if (fcntl(fd, F_SETFD, 0) == -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/smtpd/smtpd.c
841
} else if (fcntl(sp[0], F_SETFD, 0) == -1)
usr.sbin/snmpd/proc.c
125
} else if (fcntl(fd, F_SETFD, 0) == -1)
usr.sbin/vmd/proc.c
117
} else if (fcntl(fds[1], F_SETFD, 0) == -1)
usr.sbin/vmd/vmm.c
429
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
usr.sbin/vmd/vmm.c
717
fcntl(env->vmd_psp_fd, F_SETFD, 0); /* psp device fd */