Symbol: FD_CLOEXEC
bin/sh/input.c
393
fcntl(fd, F_SETFD, FD_CLOEXEC);
bin/sh/jobs.c
211
if (fcntl(ttyfd, F_SETFD, FD_CLOEXEC) < 0) {
bin/sh/redir.c
159
fcntl(i, F_SETFD, FD_CLOEXEC);
crypto/openssh/authfd.c
103
if (fcntl(sock, F_SETFD, FD_CLOEXEC) == -1 ||
crypto/openssh/channels.c
423
(void)fcntl(rfd, F_SETFD, FD_CLOEXEC);
crypto/openssh/channels.c
425
(void)fcntl(wfd, F_SETFD, FD_CLOEXEC);
crypto/openssh/channels.c
427
(void)fcntl(efd, F_SETFD, FD_CLOEXEC);
crypto/openssh/monitor.c
1790
if (fcntl(x, F_SETFD, FD_CLOEXEC) == -1) \
crypto/openssh/sshconnect.c
367
(void)fcntl(sock, F_SETFD, FD_CLOEXEC);
crypto/openssh/sshd-session.c
1209
fcntl(sock_out, F_SETFD, FD_CLOEXEC);
crypto/openssh/sshd-session.c
1210
fcntl(sock_in, F_SETFD, FD_CLOEXEC);
crypto/openssh/sshd.c
771
if (fcntl(listen_sock, F_SETFD, FD_CLOEXEC) == -1) {
games/atc/log.c
120
flags |= FD_CLOEXEC;
lib/libc/gen/dup3.c
56
fdflags = ((flags & O_CLOEXEC) != 0 ? FD_CLOEXEC : 0) |
lib/libc/gen/opendir.c
114
if (fdflags == -1 || ((fdflags & FD_CLOEXEC) == 0 &&
lib/libc/gen/opendir.c
115
_fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC) == -1) ||
lib/libc/gen/popen.c
204
_fcntl(__sfileno(iop), F_SETFD, FD_CLOEXEC);
lib/libc/gen/posixshm.c
88
if (_fcntl(fd, F_SETFD, FD_CLOEXEC) != 0 ||
lib/libc/stdio/fdopen.c
68
((tmp = _fcntl(fd, F_GETFD, 0)) & FD_CLOEXEC) == 0)
lib/libc/stdio/fdopen.c
69
_fcntl(fd, F_SETFD, tmp | FD_CLOEXEC); /* silently ignore err */
lib/libc/stdio/freopen.c
116
(fdflags & FD_CLOEXEC) == 0)
lib/libc/stdio/freopen.c
117
(void)_fcntl(fileno(fp), F_SETFD, fdflags | FD_CLOEXEC);
lib/libc/sysvipc/ipc.c
100
if (_fcntl(daemon_fd, F_SETFD, flags & FD_CLOEXEC) == -1) {
lib/libc/sysvipc/shm.c
169
if (_fcntl(fd, F_SETFD, flags & FD_CLOEXEC) == -1) {
lib/libfetch/common.c
287
if (flags != -1 && (flags & FD_CLOEXEC) == 0)
lib/libfetch/common.c
288
(void)fcntl(sd, F_SETFD, flags | FD_CLOEXEC);
lib/libkvm/kvm.c
187
if (fcntl(kd->pmfd, F_SETFD, FD_CLOEXEC) < 0) {
lib/libkvm/kvm.c
205
if (fcntl(kd->vmfd, F_SETFD, FD_CLOEXEC) < 0) {
lib/libkvm/kvm.c
220
if (fcntl(kd->nlfd, F_SETFD, FD_CLOEXEC) < 0) {
lib/libthread_xu/thread/thr_sem.c
621
error = __sys_fcntl(fd, F_SETFD, FD_CLOEXEC);
libexec/atrun/atrun.c
218
fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC);
sys/kern/kern_descrip.c
720
dat->fc_fdflags = ((tmp & UF_EXCLOSE) ? FD_CLOEXEC : 0) |
sys/kern/kern_descrip.c
726
((dat->fc_fdflags & FD_CLOEXEC) ? UF_EXCLOSE : 0) |
sys/kern/kern_descrip.c
763
if ((nflags & ~(FD_CLOEXEC | FD_CLOFORK)) != 0) {
sys/kern/kern_descrip.c
769
((nflags & FD_CLOEXEC) != 0 ? DUP_CLOEXEC : 0) |
test/bsd/dup_test/dup_test.c
287
if (fcntl(fd2, F_GETFD) != FD_CLOEXEC)
test/bsd/dup_test/dup_test.c
327
if (fcntl(fd2, F_GETFD) != FD_CLOEXEC)
test/illumos/oclo/oclo.c
1001
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
1009
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
1017
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
1025
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
1033
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
1041
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
1049
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
1057
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
1065
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
1073
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
1081
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
1090
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
1098
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
1106
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
1114
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
1122
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
1134
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
1138
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
1150
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
1154
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
1166
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
1170
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
1182
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
1187
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
1226
if ((oclo_rtdata[i].crt_flags & FD_CLOEXEC) != 0)
test/illumos/oclo/oclo.c
228
if ((c->clo_flags & FD_CLOEXEC) != 0)
test/illumos/oclo/oclo.c
268
oclo_setfd_common(c, FD_CLOEXEC);
test/illumos/oclo/oclo.c
280
oclo_setfd_common(c, FD_CLOFORK | FD_CLOEXEC);
test/illumos/oclo/oclo.c
336
oclo_fdup_common(c, FD_CLOEXEC, F_DUPFD_CLOEXEC);
test/illumos/oclo/oclo.c
354
oclo_fdup_common(c, FD_CLOEXEC, F_DUP2FD_CLOEXEC);
test/illumos/oclo/oclo.c
366
oclo_fdup_common(c, FD_CLOEXEC, F_DUP3FD);
test/illumos/oclo/oclo.c
378
oclo_fdup_common(c, FD_CLOEXEC | FD_CLOFORK, F_DUP3FD);
test/illumos/oclo/oclo.c
389
if ((targ_flags & FD_CLOEXEC) != 0)
test/illumos/oclo/oclo.c
416
oclo_dup_common(c, FD_CLOEXEC, true);
test/illumos/oclo/oclo.c
428
oclo_dup_common(c, FD_CLOEXEC | FD_CLOFORK, true);
test/illumos/oclo/oclo.c
436
if ((c->clo_flags & FD_CLOEXEC) != 0)
test/illumos/oclo/oclo.c
455
if ((c->clo_flags & FD_CLOEXEC) != 0)
test/illumos/oclo/oclo.c
476
if ((c->clo_flags & FD_CLOEXEC) != 0)
test/illumos/oclo/oclo.c
481
if ((targ_flags & FD_CLOEXEC) != 0)
test/illumos/oclo/oclo.c
559
oclo_accept_common(c, FD_CLOEXEC, true);
test/illumos/oclo/oclo.c
565
oclo_accept_common(c, FD_CLOEXEC | FD_CLOFORK, true);
test/illumos/oclo/oclo.c
581
if ((c->clo_flags & FD_CLOEXEC) != 0)
test/illumos/oclo/oclo.c
616
if ((targ_flags & FD_CLOEXEC) != 0)
test/illumos/oclo/oclo.c
675
oclo_rights_common(c, FD_CLOEXEC);
test/illumos/oclo/oclo.c
687
oclo_rights_common(c, FD_CLOEXEC | FD_CLOFORK);
test/illumos/oclo/oclo.c
696
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
704
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
776
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
784
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
792
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
800
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
808
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
816
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
824
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
832
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
840
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
848
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
856
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
864
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
872
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
880
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
888
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
896
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
904
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
913
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
921
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
929
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
937
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
945
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
953
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
961
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
969
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
977
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo.c
985
.clo_flags = FD_CLOEXEC,
test/illumos/oclo/oclo.c
993
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
test/illumos/oclo/oclo_errors.c
154
(FD_CLOEXEC | FD_CLOFORK) + 1)) {
test/illumos/oclo/ocloexec_verify.c
129
(val < 0 || val > (FD_CLOEXEC | FD_CLOFORK))) {
test/illumos/oclo/ocloexec_verify.c
52
bool fail = (exp_flags & FD_CLOEXEC) != 0;
usr.bin/truss/setup.c
85
fcntl(fd, F_SETFD, FD_CLOEXEC);
usr.sbin/inetd/inetd.c
1172
if (fcntl(sep->se_fd, F_SETFD, FD_CLOEXEC) < 0) {