Symbol: O_CLOEXEC
bin/pax/pax.c
226
cwdfd = open(".", O_RDONLY | O_CLOEXEC);
bin/sh/input.c
363
int oflags = O_RDONLY | O_CLOEXEC;
bin/sh/jobs.c
182
if ((ttyfd = open(_PATH_TTY, O_RDWR | O_CLOEXEC)) < 0) {
bin/sh/main.c
249
int oflags = O_RDONLY | O_CLOEXEC;
bin/timeout/timeout.c
346
if (pipe2(pp, O_CLOEXEC) < 0)
crypto/heimdal/lib/krb5/crypto-rand.c
49
fd = open(seedfile, O_RDONLY | O_BINARY | O_CLOEXEC);
crypto/heimdal/lib/krb5/fcache.c
1055
ret = fcc_open(context, id, &fd, O_RDONLY | O_BINARY | O_CLOEXEC, 0);
crypto/heimdal/lib/krb5/fcache.c
430
ret = fcc_open(context, id, &fd, O_RDWR | O_CREAT | O_EXCL | O_BINARY | O_CLOEXEC, 0600);
crypto/heimdal/lib/krb5/fcache.c
505
ret = fcc_open(context, id, &fd, O_WRONLY | O_APPEND | O_BINARY | O_CLOEXEC, 0);
crypto/heimdal/lib/krb5/fcache.c
552
ret = fcc_open(context, id, &fd, O_RDONLY | O_BINARY | O_CLOEXEC, 0);
crypto/heimdal/lib/krb5/fcache.c
979
ret = fcc_open(context, from, &fd1, O_RDONLY | O_BINARY | O_CLOEXEC, 0);
crypto/heimdal/lib/krb5/fcache.c
986
O_WRONLY | O_CREAT | O_EXCL | O_BINARY | O_CLOEXEC, 0600);
crypto/heimdal/lib/krb5/keytab_file.c
438
return fkt_start_seq_get_int(context, id, O_RDONLY | O_BINARY | O_CLOEXEC, 0, c);
crypto/heimdal/lib/krb5/keytab_file.c
552
fd = open (d->filename, O_RDWR | O_BINARY | O_CLOEXEC);
crypto/heimdal/lib/krb5/keytab_file.c
554
fd = open (d->filename, O_RDWR | O_CREAT | O_EXCL | O_BINARY | O_CLOEXEC, 0600);
crypto/heimdal/lib/krb5/keytab_file.c
737
ret = fkt_start_seq_get_int(context, id, O_RDWR | O_BINARY | O_CLOEXEC, 1, &cursor);
crypto/heimdal/lib/krb5/keytab_keyfile.c
206
c->fd = open (d->filename, O_RDONLY | O_BINARY | O_CLOEXEC, 0600);
crypto/heimdal/lib/krb5/keytab_keyfile.c
333
fd = open (d->filename, O_RDWR | O_BINARY | O_CLOEXEC);
crypto/heimdal/lib/krb5/keytab_keyfile.c
336
O_RDWR | O_BINARY | O_CREAT | O_EXCL | O_CLOEXEC, 0600);
crypto/heimdal/lib/krb5/krb5_locl.h
212
#ifndef O_CLOEXEC
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1079
fd = open(data->filename, O_RDWR | O_BINARY | O_CLOEXEC);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
342
fd = open(filename, flags | O_BINARY | O_CLOEXEC, 0600);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
482
flags = O_CREAT | O_EXCL | O_RDWR | O_BINARY | O_CLOEXEC;
crypto/krb5/src/lib/krb5/ccache/cc_file.c
565
fd = open(data->filename, O_RDWR | O_BINARY | O_CLOEXEC, 0);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
73
#ifndef O_CLOEXEC
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
436
fd = open(filename, O_RDWR | O_CLOEXEC, 0);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
93
#ifndef O_CLOEXEC
crypto/krb5/src/util/verto/ev.c
439
# ifdef O_CLOEXEC
crypto/krb5/src/util/verto/ev.c
440
# define EFD_CLOEXEC O_CLOEXEC
crypto/krb5/src/util/verto/ev.c
455
# ifdef O_CLOEXEC
crypto/krb5/src/util/verto/ev.c
456
# define SFD_CLOEXEC O_CLOEXEC
crypto/openssl/crypto/s390xcap.c
223
OPENSSL_s390xcex = open("/dev/z90crypt", O_RDWR | O_CLOEXEC);
lib/libc/db/btree/bt_open.c
196
if ((t->bt_fd = _open(fname, flags | O_CLOEXEC, mode)) < 0)
lib/libc/db/btree/bt_open.c
401
if ((fd = mkostemp(path, O_CLOEXEC)) != -1)
lib/libc/db/db/db.c
43
#ifndef O_CLOEXEC
lib/libc/db/db/db.c
60
O_RDONLY | O_RDWR | O_SHLOCK | O_SYNC | O_TRUNC | O_CLOEXEC)
lib/libc/db/hash/hash.c
119
if ((hashp->fp = _open(file, flags | O_CLOEXEC, mode)) == -1)
lib/libc/db/hash/hash_page.c
866
if ((hashp->fp = mkostemp(path, O_CLOEXEC)) != -1)
lib/libc/db/recno/rec_open.c
63
if (fname != NULL && (rfd = _open(fname, flags | O_CLOEXEC, mode)) < 0)
lib/libc/gen/dup3.c
49
if ((flags & ~(O_CLOEXEC | O_CLOFORK)) != 0) {
lib/libc/gen/dup3.c
54
fdflags = ((flags & O_CLOEXEC) != 0 ? FD_CLOEXEC : 0) |
lib/libc/gen/fts-compat.c
1174
if (fd < 0 && (newfd = _open(path, O_RDONLY | O_CLOEXEC, 0)) < 0)
lib/libc/gen/fts-compat.c
216
(sp->fts_rfd = _open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
lib/libc/gen/fts-compat.c
341
if ((p->fts_symfd = _open(".", O_RDONLY | O_CLOEXEC,
lib/libc/gen/fts-compat.c
433
_open(".", O_RDONLY | O_CLOEXEC, 0)) < 0) {
lib/libc/gen/fts-compat.c
569
if ((fd = _open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
lib/libc/gen/fts-compat11.c
1154
O_CLOEXEC, 0)) < 0)
lib/libc/gen/fts-compat11.c
206
(sp->fts_rfd = _open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
lib/libc/gen/fts-compat11.c
331
if ((p->fts_symfd = _open(".", O_RDONLY | O_CLOEXEC,
lib/libc/gen/fts-compat11.c
424
_open(".", O_RDONLY | O_CLOEXEC, 0)) < 0) {
lib/libc/gen/fts-compat11.c
563
if ((fd = _open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
lib/libc/gen/fts.c
1248
O_CLOEXEC, 0)) < 0)
lib/libc/gen/fts.c
201
(sp->fts_rfd = _open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
lib/libc/gen/fts.c
428
if ((p->fts_symfd = _open(".", O_RDONLY | O_CLOEXEC,
lib/libc/gen/fts.c
521
_open(".", O_RDONLY | O_CLOEXEC, 0)) < 0) {
lib/libc/gen/fts.c
660
if ((fd = _open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
lib/libc/gen/getcap.c
263
fd = _open(*db_p, O_RDONLY | O_CLOEXEC, 0);
lib/libc/gen/getcwd.c
140
"..", O_RDONLY | O_CLOEXEC);
lib/libc/gen/kqueue1.c
43
if ((openflags & ~(O_CLOEXEC | O_NONBLOCK)) != 0) {
lib/libc/gen/kqueue1.c
49
if ((openflags & O_CLOEXEC) != 0)
lib/libc/gen/memfd_create.c
84
oflags |= O_CLOEXEC;
lib/libc/gen/nlist.c
58
fd = _open(name, O_RDONLY | O_CLOEXEC, 0);
lib/libc/gen/opendir2.c
121
if ((fd2 = _openat(dirp->dd_fd, ".", O_RDONLY | O_CLOEXEC)) == -1)
lib/libc/gen/opendir2.c
56
if ((fd = _open(name, O_DIRECTORY | O_RDONLY | O_CLOEXEC)) == -1)
lib/libc/gen/popen.c
87
if (pipe2(pdes, O_CLOEXEC) < 0)
lib/libc/gen/pututxline.c
240
fd = _open(_PATH_UTX_LASTLOGIN, O_RDWR|O_CLOEXEC, 0644);
lib/libc/gen/pututxline.c
274
fd = _open(_PATH_UTX_LOG, O_CREAT|O_WRONLY|O_APPEND|O_CLOEXEC, 0644);
lib/libc/gen/pututxline.c
49
fd = _open(file, O_CREAT|O_RDWR|O_EXLOCK|O_CLOEXEC, 0644);
lib/libc/gen/readpassphrase.c
70
input = output = _open(_PATH_TTY, O_RDWR | O_CLOEXEC);
lib/libc/gen/scandir.c
211
fd = _openat(dirfd, dirname, O_RDONLY | O_DIRECTORY | O_CLOEXEC);
lib/libc/gen/sem_new.c
179
fd = _open(path, flags | O_RDWR | O_CLOEXEC |
lib/libc/gen/sem_new.c
211
fd = _open(path, flags | O_RDWR | O_CLOEXEC | O_EXLOCK, mode);
lib/libc/gen/syslog.c
318
(fd = _open(_PATH_CONSOLE, O_WRONLY|O_NONBLOCK|O_CLOEXEC, 0)) >=
lib/libc/gen/wordexp.c
145
if (pipe2(pdesw, O_CLOEXEC) < 0)
lib/libc/gen/wordexp.c
148
if (pipe2(pdes, O_CLOEXEC) < 0) {
lib/libc/gmon/gmon.c
154
fd = _open(outname, O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0666);
lib/libc/gmon/gmon.c
160
log = _open("gmon.log", O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0664);
lib/libc/iconv/citrus_mmap.c
62
if ((fd = _open(path, O_RDONLY | O_CLOEXEC)) == -1)
lib/libc/locale/collate.c
149
if ((fd = _open(buf, O_RDONLY | O_CLOEXEC)) < 0) {
lib/libc/locale/ldpart.c
90
if ((fd = _open(filename, O_RDONLY | O_CLOEXEC)) < 0)
lib/libc/locale/rune.c
71
if ((fd = _open(fname, O_RDONLY | O_CLOEXEC)) < 0) {
lib/libc/nls/msgcat.c
411
if ((fd = _open(path, O_RDONLY | O_CLOEXEC)) == -1) {
lib/libc/stdio/fdopen.c
79
if ((oflags & O_CLOEXEC) != 0) {
lib/libc/stdio/flags.c
94
o |= O_CLOEXEC;
lib/libc/stdio/freopen.c
116
if ((oflags & O_CLOEXEC) != 0) {
lib/libc/stdio/freopen.c
207
if ((oflags & O_CLOEXEC ? _fcntl(f, F_DUP2FD_CLOEXEC, wantfd) :
lib/libc/stdio/mktemp.c
124
O_CLOEXEC | O_CLOFORK)) != 0) {
lib/libc/sys/shm_open.c
48
return (__sys_shm_open2(path, flags | O_CLOEXEC, mode, 0, NULL));
lib/libc/tests/stdio/getdelim_test.c
293
ATF_REQUIRE(pipe2(pipedes, O_CLOEXEC) == 0);
lib/libc/tests/stdio/getdelim_test.c
294
ATF_REQUIRE(pipe2(pipedes2, O_CLOEXEC) == 0);
lib/libc/tests/stdio/mkostemp_test.c
140
ATF_TC_WITHOUT_HEAD(O_CLOEXEC);
lib/libc/tests/stdio/mkostemp_test.c
141
ATF_TC_BODY(O_CLOEXEC, tc)
lib/libc/tests/stdio/mkostemp_test.c
144
test_one(O_CLOEXEC);
lib/libc/tests/stdio/mkostemp_test.c
158
test_one(O_APPEND|O_CLOEXEC);
lib/libc/tests/stdio/mkostemp_test.c
176
ATF_TP_ADD_TC(tp, O_CLOEXEC);
lib/libc/tests/stdio/mkostemp_test.c
71
(oflags & O_CLOEXEC ? FD_CLOEXEC : 0)) {
lib/libc/tests/stdlib/system_test.c
119
fd[i] = open(fn, O_CREAT|O_EXCL|O_EXLOCK|O_CLOEXEC, 0644);
lib/libc/yp/yplib.c
372
if ((fd = _open(path, O_RDONLY | O_CLOEXEC)) == -1) {
lib/libcasper/services/cap_fileargs/cap_fileargs.c
119
if ((fa->fa_fdflags & O_CLOEXEC) != O_CLOEXEC) {
lib/libkvm/kvm.c
140
if ((kd->pmfd = open(mf, flag | O_CLOEXEC, 0)) < 0) {
lib/libkvm/kvm.c
161
kd->vmfd = open(_PATH_DEVNULL, O_RDONLY | O_CLOEXEC);
lib/libkvm/kvm.c
164
if ((kd->vmfd = open(_PATH_KMEM, flag | O_CLOEXEC)) <
lib/libkvm/kvm.c
178
if ((kd->nlfd = open(uf, O_RDONLY | O_CLOEXEC, 0)) < 0) {
lib/libproc/proc_sym.c
218
if ((fd = open(path, O_RDONLY | O_CLOEXEC)) < 0)
lib/libproc/proc_sym.c
257
if ((fd = open(map->pr_mapname, O_RDONLY | O_CLOEXEC)) < 0) {
lib/libsys/x86/__vdso_gettc.c
264
(fd = _open(devname, O_RDONLY | O_CLOEXEC)) == -1) {
lib/libsys/x86/__vdso_gettc.c
300
fd = _open(HYPERV_REFTSC_DEVPATH, O_RDONLY | O_CLOEXEC);
lib/libsys/x86/__vdso_gettc.c
389
(fd = _open("/dev/" PVCLOCK_CDEVNAME, O_RDONLY | O_CLOEXEC)) < 0)
lib/libsysdecode/flags.c
567
X(O_CLOEXEC) X(O_CLOFORK) X(O_NONBLOCK) XEND
lib/libutil/gr_util.c
103
lockfd = flopen(group_file, O_RDONLY|O_NONBLOCK|O_CLOEXEC, 0);
lib/libutil/login_auth.c
98
if ((fd = open(file, O_RDONLY | O_CLOEXEC)) < 0)
lib/libutil/login_cap.c
341
else if ((r = open(login_dbarray[0], O_RDONLY | O_CLOEXEC)) >= 0)
lib/libutil/pidfile.c
159
dirfd = open(pfh->pf_dir, O_CLOEXEC | O_DIRECTORY | O_NONBLOCK);
lib/libutil/pidfile.c
174
O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NONBLOCK, mode);
lib/libutil/pidfile.c
349
O_RDONLY | O_CLOEXEC | O_NONBLOCK);
lib/libutil/pidfile.c
81
fd = openat(dirfd, filename, O_RDONLY | O_CLOEXEC);
lib/libutil/pw_util.c
176
lockfd = flopen(masterpasswd, O_RDONLY|O_NONBLOCK|O_CLOEXEC, 0);
lib/libutil/quotafile.c
150
if ((qf->fd = open(qf->qfname, qf->accmode|O_CLOEXEC)) < 0 &&
lib/libutil/quotafile.c
181
if ((qf->fd = open(qf->qfname, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0)) <
lib/libutil/quotafile.c
548
if ((newqf->fd = open(qf->qfname, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC,
lib/libutil/uucplock.c
132
if ((fd = open(lckname, O_RDWR | O_CLOEXEC)) < 0)
lib/libutil/uucplock.c
75
if ((tmpfd = open(lcktmpname, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC,
lib/libutil/uucplock.c
88
if ((fd = open(lckname, O_RDONLY | O_CLOEXEC)) < 0)
libexec/pkg-serve/pkg-serve.c
59
if ((fd = open(basedir, O_DIRECTORY | O_RDONLY | O_CLOEXEC)) < 0)
libexec/rtld-elf/libmap.c
112
fd = open(path, O_RDONLY | O_CLOEXEC);
libexec/rtld-elf/rtld.c
2136
if ((fd = open(ld_elf_hints_path, O_RDONLY | O_CLOEXEC)) ==
libexec/rtld-elf/rtld.c
2878
if ((fd = open(path, O_RDONLY | O_CLOEXEC | O_VERIFY)) == -1) {
libexec/rtld-elf/rtld.c
3636
fd = __sys_openat(dirfd, n + 1, O_RDONLY | O_CLOEXEC | O_VERIFY);
libexec/rtld-elf/rtld.c
3701
fd = open(pathname, O_RDONLY | O_CLOEXEC | O_VERIFY);
libexec/rtld-elf/rtld.c
3785
fd = __sys_openat(dirfd, name, O_RDONLY | O_CLOEXEC | O_VERIFY);
libexec/rtld-elf/rtld.c
6334
fd = open(binpath, O_RDONLY | O_CLOEXEC | O_VERIFY);
libexec/rtld-elf/rtld.c
6342
fd = open(argv0, O_RDONLY | O_CLOEXEC | O_VERIFY);
libexec/tftpd/tests/functional.c
339
ATF_REQUIRE_EQ(0, pipe2(pd, O_CLOEXEC));
sbin/devd/devd.cc
1048
fd = open(PATH_DEVCTL, O_RDONLY | O_CLOEXEC);
sbin/dumpon/dumpon.c
327
if (pipe2(filedes, O_CLOEXEC) != 0)
sys/compat/linux/linux_event.c
136
flags |= O_CLOEXEC;
sys/compat/linux/linux_event.c
621
flags |= O_CLOEXEC;
sys/compat/linux/linux_file.c
132
bsd_flags |= O_CLOEXEC;
sys/compat/linux/linux_file.c
1719
flags |= O_CLOEXEC;
sys/compat/linux/linux_file.c
1852
oflags |= O_CLOEXEC;
sys/compat/linux/linux_file.c
1955
bsd_flags |= O_CLOEXEC;
sys/dev/drm2/drm.h
622
#define DRM_CLOEXEC O_CLOEXEC
sys/kern/kern_descrip.c
555
{ .f = O_CLOEXEC, .t = UF_EXCLOSE },
sys/kern/kern_event.c
1210
flags |= O_CLOEXEC;
sys/kern/kern_event.c
3066
O_CLOEXEC | O_CLOFORK);
sys/kern/kern_umtx.c
4637
error = falloc_caps(td, &fp, &fd, O_CLOEXEC, NULL);
sys/kern/sys_eventfd.c
51
_Static_assert(EFD_CLOEXEC == O_CLOEXEC, "Mismatched EFD_CLOEXEC");
sys/kern/sys_generic.c
969
fflags |= O_CLOEXEC;
sys/kern/sys_pipe.c
546
if ((uap->flags & ~(O_CLOEXEC | O_CLOFORK | O_NONBLOCK)) != 0)
sys/kern/sys_procdesc.c
243
fflags = O_CLOEXEC;
sys/kern/sys_timerfd.c
463
fflags |= O_CLOEXEC;
sys/kern/tty_pts.c
841
if (uap->flags & ~(O_RDWR|O_NOCTTY|O_CLOEXEC))
sys/kern/uipc_mqueue.c
2056
error = falloc(td, &fp, &fd, O_CLOEXEC);
sys/kern/uipc_sem.c
484
error = falloc(td, &fp, &fd, O_CLOEXEC);
sys/kern/uipc_shm.c
1161
if ((flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC |
sys/kern/uipc_shm.c
1212
error = falloc_caps(td, &fp, &fd, flags & O_CLOEXEC, fcaps);
sys/kern/uipc_shm.c
1379
return (kern_shm_open(td, uap->path, uap->flags | O_CLOEXEC,
sys/kern/uipc_syscalls.c
152
oflag |= O_CLOEXEC;
sys/kern/uipc_syscalls.c
359
((flags & SOCK_CLOEXEC) != 0 ? O_CLOEXEC : 0) |
sys/kern/uipc_syscalls.c
563
oflag |= O_CLOEXEC;
sys/kern/uipc_usrreq.c
3490
fdflags = ((flags & MSG_CMSG_CLOEXEC) ? O_CLOEXEC : 0) |
sys/kern/vfs_inotify.c
515
*fflagsp |= O_CLOEXEC;
sys/ofed/drivers/infiniband/core/ib_rdma_core.c
465
new_fd = get_unused_fd_flags(O_CLOEXEC);
sys/sys/timerfd.h
44
#define TFD_CLOEXEC O_CLOEXEC
tests/sys/capsicum/bindat_connectat.c
72
ATF_REQUIRE((rootfd = open("/", O_EXEC | O_CLOEXEC)) >= 0);
tests/sys/fifo/fifo_kqueue.c
152
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
154
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
201
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
231
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
233
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
285
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
287
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
338
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
340
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
373
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
397
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
51
O_RDONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/fifo/fifo_kqueue.c
53
O_WRONLY | O_CLOEXEC | O_NONBLOCK)) >= 0);
tests/sys/file/dup_test.c
311
if ((fd2 = dup3(fd1, fd1 + 1, O_CLOEXEC)) < 0)
tests/sys/file/dup_test.c
362
if (dup3(fd1, fd1, O_CLOEXEC) != -1)
tests/sys/file/dup_test.c
378
if ((fd2 = dup3(fd1, rlp.rlim_cur + 1, O_CLOEXEC)) >= 0)
tests/sys/fs/fusefs/mockfs.cc
466
m_fuse_fd = open("/dev/fuse", O_CLOEXEC | O_RDWR);
tests/sys/fs/fusefs/mockfs.cc
469
m_fuse_fd = open("/dev/fuse", O_CLOEXEC | O_RDWR | O_NONBLOCK);
tests/sys/fs/fusefs/notify.cc
593
fuse_fd = open("/dev/fuse", O_CLOEXEC | O_RDWR);
tests/sys/kern/pipe/pipe_kqueue_test.c
146
ATF_REQUIRE(pipe2(p, O_CLOEXEC | O_NONBLOCK) == 0);
tests/sys/kern/pipe/pipe_kqueue_test.c
190
ATF_REQUIRE(pipe2(p, O_CLOEXEC | O_NONBLOCK) == 0);
tests/sys/kern/pipe/pipe_kqueue_test.c
248
ATF_REQUIRE(pipe2(p, O_CLOEXEC | O_NONBLOCK) == 0);
tests/sys/kern/pipe/pipe_kqueue_test.c
301
ATF_REQUIRE(pipe2(p, O_CLOEXEC | O_NONBLOCK) == 0);
tests/sys/kern/pipe/pipe_kqueue_test.c
48
ATF_REQUIRE(pipe2(p, O_CLOEXEC | O_NONBLOCK) == 0);
tools/tools/crypto/cryptocheck.c
338
fd = open("/dev/crypto", O_RDWR | O_CLOEXEC, 0);
usr.bin/diff/pr.c
64
if (pipe2(pfd, O_CLOEXEC) == -1)
usr.bin/diff3/diff3.c
1085
if (pipe2(fd13, O_CLOEXEC))
usr.bin/diff3/diff3.c
1087
if (pipe2(fd23, O_CLOEXEC))
usr.bin/find/main.c
145
if ((dotfd = open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
usr.bin/runat/runat.c
43
flags = O_RDONLY | O_CLOEXEC | O_PATH;
usr.bin/runat/runat.c
88
nameddir_fd = openat(file_fd, ".", O_RDONLY | O_CLOEXEC | O_NAMEDATTR,
usr.bin/script/script.c
197
if ((fm_fd = open("/dev/filemon", O_RDWR | O_CLOEXEC)) == -1)
usr.bin/script/script.c
200
O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC,
usr.bin/sort/sort.c
926
rsfd = open(random_source, O_RDONLY | O_CLOEXEC);
usr.sbin/autofs/automountd.c
493
autofs_fd = open(AUTOFS_PATH, O_RDWR | O_CLOEXEC);
usr.sbin/autofs/automountd.c
498
autofs_fd = open(AUTOFS_PATH, O_RDWR | O_CLOEXEC);
usr.sbin/bhyve/slirp/slirp-helper.c
507
if (pipe2(priv.wakeup, O_CLOEXEC | O_NONBLOCK) != 0)
usr.sbin/daemon/daemon.c
775
return open(outfn, O_CREAT | O_WRONLY | O_APPEND | O_CLOEXEC, outfm);
usr.sbin/edquota/edquota.c
274
tmpfd = mkostemp(tmpfil, O_CLOEXEC);
usr.sbin/inetd/inetd.c
546
if (pipe2(signalpipe, O_CLOEXEC) != 0) {
usr.sbin/pw/pw.c
181
O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC,
usr.sbin/pw/pw.c
215
conf.rootfd = open(conf.rootdir, O_DIRECTORY|O_CLOEXEC);
usr.sbin/pw/pw_user.c
156
skelfd = openat(conf.rootfd, skeldir, O_DIRECTORY|O_CLOEXEC);
usr.sbin/syslogd/syslogd.c
678
s = open(_PATH_KLOG, O_RDONLY | O_NONBLOCK | O_CLOEXEC, 0);