Symbol: O_CLOEXEC
bin/pax/pax.c
228
cwdfd = open(".", O_RDONLY | O_CLOEXEC);
bin/sh/input.c
392
#if !defined(O_CLOEXEC) || !defined(F_DUPFD_CLOEXEC)
bin/sh/jobs.c
210
#if !defined(O_CLOEXEC) || !defined(F_DUPFD_CLOEXEC)
bin/sh/jobs.c
220
#if !defined(O_CLOEXEC) || !defined(F_DUPFD_CLOEXEC)
bin/sh/redir.c
157
#if !defined(O_CLOEXEC) || !defined(F_DUPFD_CLOEXEC)
bin/sh/shell.h
67
#ifdef O_CLOEXEC
bin/sh/shell.h
68
#define O_CLOEXEC_MAYBE O_CLOEXEC
lib/libc/citrus/citrus_mmap.c
62
if ((fd = _open(path, O_RDONLY | O_CLOEXEC)) == -1)
lib/libc/db/btree/bt_open.c
198
if ((t->bt_fd = _open(fname, flags | O_CLOEXEC, mode)) < 0)
lib/libc/db/btree/bt_open.c
411
if ((fd = mkostemp(path, O_CLOEXEC)) != -1)
lib/libc/db/db/db.c
57
O_RDONLY | O_RDWR | O_SHLOCK | O_SYNC | O_TRUNC | O_CLOEXEC)
lib/libc/db/hash/hash.c
121
if ((hashp->fp = _open(file, flags | O_CLOEXEC, mode)) == -1)
lib/libc/db/hash/hash_page.c
863
if ((hashp->fp = mkostemp(path, O_CLOEXEC)) != -1) {
lib/libc/db/recno/rec_open.c
64
if (fname != NULL && (rfd = _open(fname, flags | O_CLOEXEC, mode)) < 0)
lib/libc/gen/dup3.c
51
if ((flags & ~(O_CLOEXEC | O_CLOFORK)) != 0) {
lib/libc/gen/dup3.c
56
fdflags = ((flags & O_CLOEXEC) != 0 ? FD_CLOEXEC : 0) |
lib/libc/gen/fts.c
1103
if (fd < 0 && (newfd = _open(path, O_RDONLY | O_CLOEXEC, 0)) < 0)
lib/libc/gen/fts.c
200
(sp->fts_rfd = _open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
lib/libc/gen/fts.c
325
if ((p->fts_symfd = _open(".", O_RDONLY | O_CLOEXEC,
lib/libc/gen/fts.c
416
if ((p->fts_symfd = _open(".", O_RDONLY | O_CLOEXEC,
lib/libc/gen/fts.c
553
if ((fd = _open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
lib/libc/gen/getcap.c
266
fd = _open(*db_p, O_RDONLY | O_CLOEXEC, 0);
lib/libc/gen/nlist.c
64
fd = _open(name, O_RDONLY | O_CLOEXEC, 0);
lib/libc/gen/opendir.c
83
fd = _open(name, O_RDONLY | O_NONBLOCK | O_DIRECTORY | O_CLOEXEC);
lib/libc/gen/popen.c
91
if (pipe2(pdes, O_CLOEXEC) < 0)
lib/libc/gen/readpassphrase.c
70
input = output = _open(_PATH_TTY, O_RDWR | O_CLOEXEC);
lib/libc/gen/syslog.c
297
(fd = _open(_PATH_CONSOLE, O_WRONLY|O_NONBLOCK|O_CLOEXEC, 0)) >= 0) {
lib/libc/gen/utmpx.c
382
fd = _open(file, O_WRONLY|O_APPEND|O_SHLOCK|O_CLOEXEC);
lib/libc/gen/utmpx.c
385
if ((fd = _open(file, O_CREAT|O_WRONLY|O_EXLOCK|O_CLOEXEC, 0644)) == -1)
lib/libc/gen/utmpx.c
455
db = dbopen(fname, O_RDONLY|O_SHLOCK|O_CLOEXEC, 0, DB_HASH, NULL);
lib/libc/gen/utmpx.c
494
db = dbopen(fname, O_RDWR|O_CREAT|O_EXLOCK|O_CLOEXEC, 0644, DB_HASH, NULL);
lib/libc/gen/wordexp.c
147
if (pipe2(pdesw, O_CLOEXEC) < 0)
lib/libc/gen/wordexp.c
150
if (pipe2(pdes, O_CLOEXEC) < 0) {
lib/libc/gmon/gmon.c
152
fd = _open(outname, O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0666);
lib/libc/gmon/gmon.c
158
log = _open("gmon.log", O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0664);
lib/libc/locale/ldpart.c
90
if ((fd = _open(filename, O_RDONLY | O_CLOEXEC)) < 0)
lib/libc/nls/msgcat.c
402
if ((fd = _open(path, O_RDONLY | O_CLOEXEC)) == -1) {
lib/libc/stdio/fdopen.c
67
if ((oflags & O_CLOEXEC) != 0 &&
lib/libc/stdio/flags.c
115
o |= O_CLOEXEC;
lib/libc/stdio/freopen.c
114
if ((oflags & O_CLOEXEC) != 0 &&
lib/libc/stdio/freopen.c
198
if (oflags & O_CLOEXEC) {
lib/libc/stdio/mktemp.c
117
O_EXLOCK | O_SYNC | O_CLOEXEC | O_CLOFORK)) != 0) {
lib/libc/stdlib/random.c
285
fd = _open("/dev/random", O_RDONLY|O_CLOEXEC, 0);
lib/libc/yp/yplib.c
385
if ((fd = _open(path, O_RDONLY | O_CLOEXEC)) == -1) {
lib/libnvmm/libnvmm.c
163
nvmm_fd = open("/dev/nvmm", O_RDONLY | O_CLOEXEC);
lib/libnvmm/libnvmm.c
186
nvmm_fd = open("/dev/nvmm", O_WRONLY | O_CLOEXEC);
lib/libthread_xu/thread/thr_sem.c
538
oflag |= O_CLOEXEC;
lib/libthread_xu/thread/thr_sem.c
554
fd = __sys_open(path, O_RDWR | O_CLOEXEC);
lib/libthread_xu/thread/thr_sig.c
339
fd = open(buf, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0666);
lib/libutil/gr_util.c
103
lockfd = flopen(group_file, O_RDONLY|O_NONBLOCK|O_CLOEXEC, 0);
lib/libutil/login_auth.c
86
if ((fd = open(file, O_RDONLY | O_CLOEXEC)) < 0)
lib/libutil/login_cap.c
241
else if ((r = open(login_dbarray[0], O_RDONLY | O_CLOEXEC)) >= 0)
lib/libutil/pidfile.c
125
O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NONBLOCK, mode);
lib/libutil/pidfile.c
74
fd = open(path, O_RDONLY | O_CLOEXEC);
lib/libutil/pw_util.c
176
lockfd = flopen(masterpasswd, O_RDONLY|O_NONBLOCK|O_CLOEXEC, 0);
lib/libutil/uucplock.c
134
if ((fd = open(lckname, O_RDWR | O_CLOEXEC)) < 0)
lib/libutil/uucplock.c
77
if ((tmpfd = open(lcktmpname, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC,
lib/libutil/uucplock.c
90
if ((fd = open(lckname, O_RDONLY | O_CLOEXEC)) < 0)
libexec/rtld-elf/libmap.c
119
fd = open(rpath, O_RDONLY | O_CLOEXEC);
libexec/rtld-elf/rtld.c
1711
if ((fd = open(ld_elf_hints_path, O_RDONLY | O_CLOEXEC)) == -1)
libexec/rtld-elf/rtld.c
2180
if ((fd = open(path, O_RDONLY | O_CLOEXEC)) == -1) {
libexec/rtld-elf/rtld.c
2928
fd = openat(dirfd, name, O_RDONLY | O_CLOEXEC);
sbin/devd/devd.cc
954
fd = open(PATH_DEVCTL, O_RDONLY | O_CLOEXEC);
sbin/hammer/cmd_abort.c
74
pf_fd = open(pidfile, O_RDONLY | O_CLOEXEC);
sys/dev/drm/amd/amdgpu/amdgpu_cs.c
1451
fd = get_unused_fd_flags(O_CLOEXEC);
sys/dev/drm/drm_atomic_uapi.c
1048
fence_state->fd = get_unused_fd_flags(O_CLOEXEC);
sys/dev/drm/drm_syncobj.c
407
fd = get_unused_fd_flags(O_CLOEXEC);
sys/dev/drm/drm_syncobj.c
512
int fd = get_unused_fd_flags(O_CLOEXEC);
sys/dev/drm/i915/i915_gem_execbuffer.c
2271
out_fence_fd = get_unused_fd_flags(O_CLOEXEC);
sys/dev/drm/i915/i915_perf.c
2619
f_flags |= O_CLOEXEC;
sys/dev/drm/include/uapi/drm/drm.h
700
#define DRM_CLOEXEC O_CLOEXEC
sys/dev/drm/linux_dma-buf.c
150
if (flags & O_CLOEXEC) {
sys/dev/virtual/nvmm/nvmm_dragonfly.c
300
if (!(flags & O_CLOEXEC))
sys/dev/virtual/nvmm/nvmm_netbsd.c
286
if (!(flags & O_CLOEXEC))
sys/kern/sys_pipe.c
271
if ((uap->flags & ~(O_CLOEXEC | O_CLOFORK | O_NONBLOCK)) != 0)
sys/kern/sys_pipe.c
312
if (flags & O_CLOEXEC)
sys/kern/sys_pipe.c
332
if (flags & O_CLOEXEC)
sys/kern/uipc_syscalls.c
112
oflags |= O_CLOEXEC;
sys/kern/uipc_syscalls.c
130
if (oflags & O_CLOEXEC)
sys/kern/uipc_syscalls.c
697
oflags |= O_CLOEXEC;
sys/kern/uipc_syscalls.c
735
if (oflags & O_CLOEXEC) {
sys/kern/vfs_syscalls.c
2277
if (oflags & O_CLOEXEC)
sys/kern/vfs_syscalls.c
4975
if (uap->flags & O_CLOEXEC)
test/bsd/dup_test/dup_test.c
311
if ((fd2 = dup3(fd1, fd1 + 1, O_CLOEXEC)) < 0)
test/bsd/dup_test/dup_test.c
362
if (dup3(fd1, fd1, O_CLOEXEC) != -1)
test/bsd/dup_test/dup_test.c
378
if ((fd2 = dup3(fd1, rlp.rlim_cur + 1, O_CLOEXEC)) >= 0)
test/illumos/oclo/oclo.c
1227
flags |= O_CLOEXEC;
test/illumos/oclo/oclo.c
229
flags |= O_CLOEXEC;
test/illumos/oclo/oclo.c
390
dflags |= O_CLOEXEC;
test/illumos/oclo/oclo.c
437
flags |= O_CLOEXEC;
test/illumos/oclo/oclo.c
712
.clo_flags = O_CLOFORK | O_CLOEXEC,
test/illumos/oclo/oclo.c
716
.clo_flags = O_CLOEXEC,
test/illumos/oclo/oclo.c
728
.clo_flags = O_CLOFORK | O_CLOEXEC,
test/illumos/oclo/oclo.c
732
.clo_flags = O_CLOEXEC,
test/illumos/oclo/oclo.c
744
.clo_flags = O_CLOFORK | O_CLOEXEC,
test/illumos/oclo/oclo.c
748
.clo_flags = O_CLOEXEC,
test/illumos/oclo/oclo.c
760
.clo_flags = O_CLOFORK | O_CLOEXEC,
test/illumos/oclo/oclo.c
764
.clo_flags = O_CLOEXEC,
test/illumos/oclo/oclo_errors.c
141
if (!oclo_dup3("dup3(): O_NONBLOCK|O_CLOXEC", O_NONBLOCK | O_CLOEXEC)) {
test/illumos/oclo/oclo_errors.c
167
if (!oclo_pipe2("pipe2(): O_SYNC|O_CLOXEC", O_SYNC | O_CLOEXEC)) {
usr.bin/dsynth/build.c
3067
fd1 = open(src, O_RDONLY|O_CLOEXEC);
usr.bin/dsynth/build.c
3068
fd2 = open(tmp, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0644);
usr.bin/dsynth/dsynth.c
341
lkfd = open(lkpath, O_RDWR | O_CREAT | O_CLOEXEC, 0644);
usr.bin/dsynth/monitor.c
78
StatsFd = open(StatsFilePath, O_RDWR|O_CREAT|O_CLOEXEC, 0644);
usr.bin/dsynth/monitor.c
83
LockFd = open(StatsLockPath, O_RDWR|O_CREAT|O_NOFOLLOW|O_CLOEXEC,
usr.bin/dsynth/subs.c
532
if (pipe2(fds, O_CLOEXEC) < 0)
usr.bin/dsynth/subs.c
534
nullfd = open("/dev/null", O_RDWR | O_CLOEXEC);
usr.bin/find/main.c
143
if ((dotfd = open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
usr.sbin/autofs/automountd.c
482
autofs_fd = open(AUTOFS_PATH, O_RDWR | O_CLOEXEC);
usr.sbin/autofs/automountd.c
487
autofs_fd = open(AUTOFS_PATH, O_RDWR | O_CLOEXEC);
usr.sbin/daemon/daemon.c
172
outfd = open(outfn, O_CREAT | O_WRONLY | O_APPEND | O_CLOEXEC, 0600);
usr.sbin/daemon/daemon.c
377
O_CLOEXEC,
usr.sbin/inetd/inetd.c
491
if (pipe2(signalpipe, O_CLOEXEC) != 0) {