Symbol: FD_CLOEXEC
crypto/heimdal/lib/roken/cloexec.c
47
if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1)
crypto/krb5/src/include/k5-platform.h
860
# ifdef FD_CLOEXEC
crypto/krb5/src/include/k5-platform.h
861
# define set_cloexec_fd(FD) ((void)fcntl((FD), F_SETFD, FD_CLOEXEC))
crypto/krb5/src/util/verto/ev.c
2220
fcntl (fd, F_SETFD, FD_CLOEXEC);
crypto/openssh/authfd.c
103
if (fcntl(sock, F_SETFD, FD_CLOEXEC) == -1 ||
crypto/openssh/channels.c
425
(void)fcntl(rfd, F_SETFD, FD_CLOEXEC);
crypto/openssh/channels.c
427
(void)fcntl(wfd, F_SETFD, FD_CLOEXEC);
crypto/openssh/channels.c
429
(void)fcntl(efd, F_SETFD, FD_CLOEXEC);
crypto/openssh/monitor.c
1898
if (fcntl(x, F_SETFD, FD_CLOEXEC) == -1) \
crypto/openssh/regress/netcat.c
570
(void)fcntl(s, F_SETFD, FD_CLOEXEC);
crypto/openssh/sshconnect.c
367
(void)fcntl(sock, F_SETFD, FD_CLOEXEC);
crypto/openssh/sshd-auth.c
745
fcntl(sock_out, F_SETFD, FD_CLOEXEC);
crypto/openssh/sshd-auth.c
746
fcntl(sock_in, F_SETFD, FD_CLOEXEC);
crypto/openssh/sshd-session.c
1193
fcntl(sock_out, F_SETFD, FD_CLOEXEC);
crypto/openssh/sshd-session.c
1194
fcntl(sock_in, F_SETFD, FD_CLOEXEC);
crypto/openssh/sshd.c
862
if (fcntl(listen_sock, F_SETFD, FD_CLOEXEC) == -1) {
crypto/openssl/ssl/rio/rio_notifier.c
22
#if !defined(SOCK_CLOEXEC) && defined(FD_CLOEXEC)
crypto/openssl/ssl/rio/rio_notifier.c
23
return fcntl(fd, F_SETFD, FD_CLOEXEC) >= 0;
lib/libc/gen/dup3.c
54
fdflags = ((flags & O_CLOEXEC) != 0 ? FD_CLOEXEC : 0) |
lib/libc/gen/fdopendir.c
58
if ((flags & FD_CLOEXEC) == 0) {
lib/libc/gen/fdopendir.c
59
rc = _fcntl(fd, F_SETFD, flags | FD_CLOEXEC);
lib/libc/stdio/fdopen.c
85
if ((tmp & FD_CLOEXEC) == 0) {
lib/libc/stdio/fdopen.c
86
rc = _fcntl(fd, F_SETFD, tmp | FD_CLOEXEC);
lib/libc/stdio/freopen.c
118
if (fdflags != -1 && (fdflags & FD_CLOEXEC) == 0)
lib/libc/stdio/freopen.c
120
fdflags | FD_CLOEXEC);
lib/libc/tests/gen/popen_test.c
61
exp_flags = FD_CLOEXEC;
lib/libc/tests/gen/popen_test.c
64
ATF_CHECK_MSG((flags & FD_CLOEXEC) == exp_flags,
lib/libc/tests/stdio/fopen_test.c
51
exp_fget_ret = strchr(mode, 'e') != NULL ? FD_CLOEXEC : 0;
lib/libc/tests/stdio/mkostemp_test.c
71
(oflags & O_CLOEXEC ? FD_CLOEXEC : 0)) {
lib/libfetch/common.c
291
if (flags != -1 && (flags & FD_CLOEXEC) == 0)
lib/libfetch/common.c
292
(void)fcntl(sd, F_SETFD, flags | FD_CLOEXEC);
lib/libnv/msgio.c
350
(void) fcntl(fds[i], F_SETFD, FD_CLOEXEC);
lib/libsysdecode/flags.c
877
X(FD_CLOEXEC) X(FD_CLOFORK) X(0) XEND
lib/libutil/flopen.c
112
if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) {
libexec/atrun/atrun.c
225
fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC);
sys/compat/linux/linux_socket.c
1602
(void)kern_fcntl(td, fd, F_SETFD, FD_CLOEXEC);
sys/kern/kern_descrip.c
1020
if ((flags & ~(FD_CLOEXEC | FD_CLOFORK)) != 0)
sys/kern/kern_descrip.c
1024
((flags & FD_CLOEXEC) != 0 ? FDDUP_FLAG_CLOEXEC : 0) |
sys/kern/kern_descrip.c
505
{ .f = FD_CLOEXEC, .t = UF_EXCLOSE },
sys/kern/kern_descrip.c
518
{ .f = UF_EXCLOSE, .t = FD_CLOEXEC },
tests/sys/file/closefrom_test.c
334
"close-on-exec", FD_CLOEXEC, i >= 2 && i <= 5);
tests/sys/file/dup_test.c
287
if (fcntl(fd2, F_GETFD) != FD_CLOEXEC)
tests/sys/file/dup_test.c
327
if (fcntl(fd2, F_GETFD) != FD_CLOEXEC)
tests/sys/file/path_test.c
587
ATF_REQUIRE_MSG(fcntl(pathfd, F_SETFD, FD_CLOEXEC) == 0,
tests/sys/file/path_test.c
589
ATF_REQUIRE_MSG(fcntl(pathfd, F_GETFD) == FD_CLOEXEC,
tests/sys/kern/unix_passfd_test.c
375
ATF_REQUIRE_EQ_MSG(fcntl(getfd, F_GETFD) & FD_CLOEXEC, FD_CLOEXEC,
tests/sys/posixshm/memfd_test.c
74
ATF_REQUIRE((fcntl(fd_nocl, F_GETFD) & FD_CLOEXEC) == 0);
tests/sys/posixshm/memfd_test.c
75
ATF_REQUIRE((fcntl(fd_cl, F_GETFD) & FD_CLOEXEC) != 0);
tests/sys/posixshm/posixshm_test.c
1005
ATF_REQUIRE((fcntl(fd, F_GETFD) & FD_CLOEXEC) != 0);
tests/sys/posixshm/posixshm_test.c
1011
ATF_REQUIRE((fcntl(fd, F_GETFD) & FD_CLOEXEC) != 0);
tools/build/cross-build/closefrom.c
68
(void)fcntl(fd, F_SETFD, FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
100
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
101
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
133
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
134
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
185
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
186
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
232
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
233
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
289
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
290
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
313
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
314
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
343
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
344
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
385
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
386
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
53
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
54
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
77
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
78
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
116
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
117
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
121
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
162
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
163
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
167
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
201
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
202
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
206
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
252
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
267
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
281
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
285
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
300
CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
301
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
305
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
54
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
75
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
95
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
99
CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC);
usr.bin/mail/tests/mailx_signal_test.c
46
pipe(spd) != 0 || fcntl(spd[1], F_SETFD, FD_CLOEXEC) != 0)