Symbol: FD_CLOEXEC
usr/src/cmd/cmd-inet/usr.lib/ilbd/ilbd_main.c
194
if (fcntl(s, F_SETFD, FD_CLOEXEC) == -1) {
usr/src/cmd/cmd-inet/usr.lib/ilbd/ilbd_main.c
616
if (fcntl(new_sd, F_SETFD, FD_CLOEXEC) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
843
(void) fcntl(fileno(fp), F_SETFD, FD_CLOEXEC);
usr/src/cmd/ctrun/ctrun.c
208
if ((flags != -1) && (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) != -1))
usr/src/cmd/fs.d/mount.c
1352
(void) fcntl(mp->sopipe[RDPIPE], F_SETFD, FD_CLOEXEC);
usr/src/cmd/fs.d/mount.c
1353
(void) fcntl(mp->sepipe[RDPIPE], F_SETFD, FD_CLOEXEC);
usr/src/cmd/init/init.c
1437
(void) fcntl(i, F_SETFD, FD_CLOEXEC);
usr/src/cmd/init/init.c
2073
FD_CLOEXEC);
usr/src/cmd/init/init.c
4078
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
usr/src/cmd/init/init.c
4120
(void) fcntl(legacy_tmpl, F_SETFD, FD_CLOEXEC);
usr/src/cmd/init/init.c
4133
(void) fcntl(startd_tmpl, F_SETFD, FD_CLOEXEC);
usr/src/cmd/init/init.c
4165
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
usr/src/cmd/mdb/common/mdb/mdb_context.c
85
(void) fcntl(zfd, F_SETFD, FD_CLOEXEC);
usr/src/cmd/mdb/common/mdb/mdb_shell.c
76
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1376
(void) fcntl(pm_fd, F_SETFD, FD_CLOEXEC);
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1424
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1675
(void) fcntl(sensorp->fd, F_SETFD, FD_CLOEXEC);
usr/src/cmd/ptools/pfiles/pfiles.c
333
if ((fdflags & FD_CLOEXEC) != 0) {
usr/src/cmd/sendmail/include/sm/conf.h
2707
# ifndef FD_CLOEXEC
usr/src/cmd/sendmail/libmilter/listener.c
456
fcntl(sock, F_SETFD, fdflags | FD_CLOEXEC) == -1)
usr/src/cmd/sendmail/src/conf.c
1514
fcntl(kmem, F_SETFD, j | FD_CLOEXEC) < 0)
usr/src/cmd/sendmail/src/conf.c
1599
fcntl(kmem, F_SETFD, j | FD_CLOEXEC) < 0)
usr/src/cmd/sendmail/src/conf.c
1837
fcntl(kmem, F_SETFD, j | FD_CLOEXEC) < 0)
usr/src/cmd/sendmail/src/conf.c
2557
fcntl(kmem, F_SETFD, j | FD_CLOEXEC) < 0)
usr/src/cmd/sendmail/src/conf.c
5244
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
usr/src/cmd/sendmail/src/conf.c
5271
(void) fcntl(i, F_SETFD, j | FD_CLOEXEC);
usr/src/cmd/sendmail/src/daemon.c
1157
fdflags | FD_CLOEXEC) == -1)
usr/src/cmd/sh/io.c
392
(void) fcntl(f, F_SETFD, FD_CLOEXEC);
usr/src/cmd/svc/lsvcrun/lsvcrun.c
912
(void) fcntl(pipefds[1], F_SETFD, FD_CLOEXEC);
usr/src/cmd/svc/startd/log.c
699
fcntl(fileno(logfile), F_SETFD, FD_CLOEXEC) == -1)
usr/src/cmd/sysdef/sysdef.c
273
fcntl(memfd, F_GETFD, 0) | FD_CLOEXEC);
usr/src/cmd/truss/main.c
2018
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
usr/src/cmd/truss/print.c
2521
{ FD_CLOEXEC, "|FD_CLOEXEC" },
usr/src/cmd/ttymon/tmlog.c
68
if (fcntl(ret, F_SETFD, FD_CLOEXEC) == 0) {
usr/src/cmd/write/write.c
345
if (fcntl(fileno(fp), F_SETFD, FD_CLOEXEC) < 0) {
usr/src/cmd/zonestat/zonestatd/zonestatd.c
690
if ((flags != -1) && (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) != -1))
usr/src/lib/abi/apptrace/common/apptrace.c
291
if (fcntl(newfd, F_SETFD, FD_CLOEXEC) == -1) {
usr/src/lib/libc/port/gen/dup.c
76
dflags |= FD_CLOEXEC;
usr/src/lib/libc/port/gen/fdopendir.c
62
if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0)
usr/src/lib/libc/port/gen/getxby_door.c
280
(void) fcntl(dp->doorfd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libc/port/gen/getxby_door.c
558
(void) fcntl(backd->doorfd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libc/port/rt/shm.c
57
fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) {
usr/src/lib/libc/port/rt/sigev_thread.c
487
fcntl(tcdp->tcd_port, FD_CLOEXEC) == -1) {
usr/src/lib/libcontract/common/libcontract_priv.c
53
if ((flags != -1) && (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) != -1))
usr/src/lib/libcryptoutil/common/random.c
72
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libdiskmgt/common/inuse_dump.c
74
(void) fcntl(dump_fd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libdtrace/common/dt_open.c
937
(void) fcntl(dtfd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libdtrace/common/dt_open.c
938
(void) fcntl(ftfd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libnsl/nis/gen/nis_subr.c
830
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libnsl/rpc/key_call.c
838
(void) fcntl(fd, F_SETFD, FD_CLOEXEC); /* close exec */
usr/src/lib/libnsl/rpc/key_call.c
848
(void) fcntl(kcp->fd, F_SETFD, FD_CLOEXEC); /* close on exec */
usr/src/lib/libnsl/rpc/svc_vc.c
792
(void) fcntl(destfd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libpkg/common/pkgserv.c
681
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libproc/common/Pcontrol.c
476
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
usr/src/lib/librsm/common/rsmlib.c
1235
if (fcntl(p->rsmseg_fd, F_SETFD, FD_CLOEXEC) < 0) {
usr/src/lib/librsm/common/rsmlib.c
174
if (fcntl(_rsm_fd, F_SETFD, FD_CLOEXEC) < 0) {
usr/src/lib/librsm/common/rsmlib.c
853
if (fcntl(p->rsmseg_fd, F_SETFD, FD_CLOEXEC) < 0) {
usr/src/lib/libscf/common/lowlevel.c
1279
(void) fcntl(handle->rh_doorfd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libsldap/common/ns_cache_door.c
137
(void) fcntl(doorfd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libsmbfs/smb/ctx.c
1197
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libsmbfs/smb/iod_cl.c
120
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libsysevent/libevchannel.c
176
(void) fcntl(EV_FD(scp), F_SETFD, FD_CLOEXEC);
usr/src/lib/libtsol/common/call_labeld.c
152
(void) fcntl(doorfd, F_SETFD, FD_CLOEXEC);
usr/src/lib/libzpool/common/kernel.c
157
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
usr/src/lib/pkcs11/pkcs11_kernel/common/kernelGeneral.c
215
(void) fcntl(kernel_fd, F_SETFD, FD_CLOEXEC);
usr/src/lib/print/libhttp-core/common/http.c
559
#ifdef FD_CLOEXEC
usr/src/lib/print/libhttp-core/common/http.c
560
fcntl(http->fd, F_SETFD, FD_CLOEXEC); /* Close this socket when starting *
usr/src/lib/udapl/udapl_tavor/tavor/dapl_tavor_hca.c
259
if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) {
usr/src/lib/udapl/udapl_tavor/tavor/dapl_tavor_hca.c
514
if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) {
usr/src/test/libproc-tests/tests/syscall/pr_target.h
54
#define PRT_DUP3_GETFD (FD_CLOFORK | FD_CLOEXEC)
usr/src/test/os-tests/tests/oclo/oclo.c
1004
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
1012
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
1020
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
1028
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
1036
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
1044
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
1053
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
1061
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
1069
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
1077
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
1085
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
1097
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
1101
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
1113
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
1117
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
1129
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
1133
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
1145
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
1150
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
1189
if ((oclo_rtdata[i].crt_flags & FD_CLOEXEC) != 0)
usr/src/test/os-tests/tests/oclo/oclo.c
196
if ((c->clo_flags & FD_CLOEXEC) != 0)
usr/src/test/os-tests/tests/oclo/oclo.c
236
oclo_setfd_common(c, FD_CLOEXEC);
usr/src/test/os-tests/tests/oclo/oclo.c
248
oclo_setfd_common(c, FD_CLOFORK | FD_CLOEXEC);
usr/src/test/os-tests/tests/oclo/oclo.c
304
oclo_fdup_common(c, FD_CLOEXEC, F_DUPFD_CLOEXEC);
usr/src/test/os-tests/tests/oclo/oclo.c
322
oclo_fdup_common(c, FD_CLOEXEC, F_DUP2FD_CLOEXEC);
usr/src/test/os-tests/tests/oclo/oclo.c
334
oclo_fdup_common(c, FD_CLOEXEC, F_DUP3FD);
usr/src/test/os-tests/tests/oclo/oclo.c
346
oclo_fdup_common(c, FD_CLOEXEC | FD_CLOFORK, F_DUP3FD);
usr/src/test/os-tests/tests/oclo/oclo.c
357
if ((targ_flags & FD_CLOEXEC) != 0)
usr/src/test/os-tests/tests/oclo/oclo.c
384
oclo_dup_common(c, FD_CLOEXEC, true);
usr/src/test/os-tests/tests/oclo/oclo.c
396
oclo_dup_common(c, FD_CLOEXEC | FD_CLOFORK, true);
usr/src/test/os-tests/tests/oclo/oclo.c
404
if ((c->clo_flags & FD_CLOEXEC) != 0)
usr/src/test/os-tests/tests/oclo/oclo.c
423
if ((c->clo_flags & FD_CLOEXEC) != 0)
usr/src/test/os-tests/tests/oclo/oclo.c
444
if ((c->clo_flags & FD_CLOEXEC) != 0)
usr/src/test/os-tests/tests/oclo/oclo.c
449
if ((targ_flags & FD_CLOEXEC) != 0)
usr/src/test/os-tests/tests/oclo/oclo.c
527
oclo_accept_common(c, FD_CLOEXEC, true);
usr/src/test/os-tests/tests/oclo/oclo.c
533
oclo_accept_common(c, FD_CLOEXEC | FD_CLOFORK, true);
usr/src/test/os-tests/tests/oclo/oclo.c
549
if ((c->clo_flags & FD_CLOEXEC) != 0)
usr/src/test/os-tests/tests/oclo/oclo.c
584
if ((targ_flags & FD_CLOEXEC) != 0)
usr/src/test/os-tests/tests/oclo/oclo.c
638
oclo_rights_common(c, FD_CLOEXEC);
usr/src/test/os-tests/tests/oclo/oclo.c
650
oclo_rights_common(c, FD_CLOEXEC | FD_CLOFORK);
usr/src/test/os-tests/tests/oclo/oclo.c
659
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
667
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
739
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
747
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
755
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
763
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
771
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
779
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
787
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
795
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
803
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
811
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
819
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
827
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
835
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
843
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
851
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
859
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
867
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
876
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
884
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
892
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
900
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
908
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
916
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
924
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
932
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
940
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
948
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
956
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
964
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
972
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
980
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo.c
988
.clo_flags = FD_CLOEXEC | FD_CLOFORK,
usr/src/test/os-tests/tests/oclo/oclo.c
996
.clo_flags = FD_CLOEXEC,
usr/src/test/os-tests/tests/oclo/oclo_errors.c
147
(FD_CLOEXEC | FD_CLOFORK) + 1)) {
usr/src/test/os-tests/tests/oclo/ocloexec_verify.c
125
FD_CLOEXEC | FD_CLOFORK, &errstr, 0);
usr/src/test/os-tests/tests/oclo/ocloexec_verify.c
51
bool fail = (exp_flags & FD_CLOEXEC) != 0;
usr/src/test/os-tests/tests/poll/epoll_test.c
34
assert(flags != -1 && (flags & FD_CLOEXEC) == 0);
usr/src/test/os-tests/tests/poll/epoll_test.c
42
assert(flags != -1 && (flags & FD_CLOEXEC) == FD_CLOEXEC);
usr/src/test/os-tests/tests/signalfd/basic_args.c
61
if ((res & FD_CLOEXEC) != 0) {
usr/src/test/os-tests/tests/signalfd/basic_args.c
81
if ((res & FD_CLOEXEC) == 0) {
usr/src/uts/common/fs/doorfs/door_sys.c
405
f_setfd_or(fd, FD_CLOEXEC);
usr/src/uts/common/fs/sockfs/socksubr.c
772
f_setfd_or(fd, FD_CLOEXEC);
usr/src/uts/common/fs/sockfs/socksyscalls.c
161
f_setfd_or(fd, FD_CLOEXEC);
usr/src/uts/common/fs/sockfs/socksyscalls.c
535
if (orig_flags & (FD_CLOEXEC | FD_CLOFORK)) {
usr/src/uts/common/fs/sockfs/socksyscalls.c
536
f_setfd_or(nfd, orig_flags & (FD_CLOEXEC | FD_CLOFORK));
usr/src/uts/common/fs/sockfs/socksyscalls.c
744
f_setfd_or(nfd, FD_CLOEXEC);
usr/src/uts/common/os/fio.c
1299
flag |= FD_CLOEXEC;
usr/src/uts/common/os/fio.c
1339
flags &= (FD_CLOEXEC | FD_CLOFORK);
usr/src/uts/common/os/fio.c
1501
if ((ufp->uf_flag & FD_CLOEXEC) ||
usr/src/uts/common/syscall/fcntl.c
107
if ((arg1 & ~(FD_CLOEXEC | FD_CLOFORK)) != 0) {
usr/src/uts/common/syscall/fcntl.c
202
f_setfd_or(retval, FD_CLOEXEC);
usr/src/uts/common/syscall/fcntl.c
249
f_setfd_or(iarg, FD_CLOEXEC);
usr/src/uts/common/syscall/open.c
234
f_setfd_or(fd, FD_CLOEXEC);
usr/src/uts/common/syscall/open.c
267
f_setfd_or(fd, FD_CLOEXEC);
usr/src/uts/common/syscall/pipe.c
199
f_setfd_or(fd1, FD_CLOEXEC);
usr/src/uts/common/syscall/pipe.c
200
f_setfd_or(fd2, FD_CLOEXEC);