Symbol: O_EXCL
bin/mv/mv.c
276
open(to, O_CREAT | O_EXCL | O_TRUNC | O_WRONLY, 0)) < 0) {
bin/pax/file_subs.c
87
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL,
bin/sh/redir.c
189
if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0)
crypto/heimdal/lib/hdb/db3.c
258
if (flags & O_EXCL)
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
986
O_WRONLY | O_CREAT | O_EXCL | O_BINARY | O_CLOEXEC, 0600);
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_keyfile.c
336
O_RDWR | O_BINARY | O_CREAT | O_EXCL | O_CLOEXEC, 0600);
crypto/heimdal/lib/roken/mkstemp.c
64
fd = open(template, O_RDWR | O_CREAT | O_EXCL, 0600);
crypto/heimdal/lib/roken/ndbm_wrap.c
165
if (flags & O_EXCL)
crypto/heimdal/lib/roken/socket_wrapper.c
910
fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_APPEND, 0644);
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/os/krbfileio.c
59
fd = THREEPARAMOPEN(pathname, O_RDWR | O_CREAT | O_EXCL | O_BINARY, 0600);
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
301
fd = THREEPARAMOPEN(db->lock->filename,O_RDWR | O_CREAT | O_EXCL,
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
36
db = dbopen(filename, O_RDWR | O_CREAT | O_EXCL, 0600, DB_BTREE, &btinfo);
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
43
lf = THREEPARAMOPEN(lockfilename, O_RDWR | O_CREAT | O_EXCL, 0600);
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
718
retval = open_db(context, dbc, O_RDWR | O_CREAT | O_EXCL, 0600, &dbc->db);
crypto/krb5/src/plugins/kdb/db2/libdb2/db/db.c
54
(O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY | \
crypto/krb5/src/util/support/mkstemp.c
114
open(path, O_CREAT|O_EXCL|O_RDWR|O_BINARY, 0600)) >= 0)
crypto/openssh/openbsd-compat/mktemp.c
105
fd = open(path, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR);
crypto/openssh/sftp-server.c
274
flags |= O_EXCL;
crypto/openssh/sshkey-xmss.c
618
if ((fd = open(nstatefile, O_CREAT|O_WRONLY|O_EXCL, 0600)) == -1) {
lib/libc/db/db/db.c
59
(O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
lib/libc/gen/sem_new.c
163
if (flags & ~(O_CREAT|O_EXCL)) {
lib/libc/gen/sem_new.c
185
if ((flags & (O_CREAT | O_EXCL)) == (O_CREAT |
lib/libc/gen/sem_new.c
186
O_EXCL) || ni->dev != sb.st_dev ||
lib/libc/stdio/flags.c
106
if ((o & O_EXCL) != 0 && m == O_RDONLY) {
lib/libc/stdio/flags.c
90
o |= O_EXCL;
lib/libc/stdio/mktemp.c
150
oflags |= O_CREAT | O_EXCL | O_RDWR;
lib/libc/tests/db/dbm_open_test.c
35
ATF_CHECK(dbm_open(path, O_RDONLY | O_CREAT | O_EXCL, 0755) == NULL);
lib/libc/tests/stdlib/system_test.c
119
fd[i] = open(fn, O_CREAT|O_EXCL|O_EXLOCK|O_CLOEXEC, 0644);
lib/libpam/modules/pam_xdg/pam_xdg.c
156
session_file = openat(rt_dir_prefix, xdg_session_file, O_CREAT | O_EXCL, RUNTIME_DIR_MODE);
lib/libprocstat/libprocstat.c
1629
{ O_EXCL, PS_FST_FFLAG_EXCL },
libexec/atrun/atrun.c
256
O_WRONLY | O_CREAT | O_EXCL, S_IWUSR | S_IRUSR)) < 0)
libexec/tftpd/tftpd.c
668
*fd = open(newname, O_WRONLY | O_CREAT | O_EXCL, 0666);
libexec/ypxfr/yp_dbwrite.c
68
#define FLAGS O_RDWR|O_EXLOCK|O_EXCL|O_CREAT
sbin/decryptcore/decryptcore.c
415
ofd = open(core, O_WRONLY | O_CREAT | O_EXCL, 0600);
sbin/init/init.c
688
fd = open(path, O_WRONLY | O_CREAT | O_EXCL, 0700);
sbin/ipf/ipftest/ip_fil.c
347
fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
sbin/ipf/ipftest/ip_fil.c
358
fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
sbin/restore/dirs.c
143
fd = open(dirfile, O_RDWR|O_CREAT|O_EXCL, 0666);
sbin/restore/dirs.c
157
fd = open(modefile, O_RDWR|O_CREAT|O_EXCL, 0666);
sys/compat/linux/linux_file.c
142
bsd_flags |= O_EXCL;
sys/dev/drm2/drm_fops.c
182
if (flags & O_EXCL)
sys/dev/sound/pcm/dsp.c
227
if (flags & O_EXCL)
sys/fs/nfsclient/nfs_clrpcops.c
2567
if (fmode & O_EXCL) {
sys/fs/nfsclient/nfs_clrpcops.c
2649
if (fmode & O_EXCL) {
sys/fs/nfsclient/nfs_clrpcops.c
8673
if ((fmode & O_EXCL) != 0) {
sys/fs/nfsclient/nfs_clvnops.c
1844
fmode |= O_EXCL;
sys/fs/nfsclient/nfs_clvnops.c
1910
if (NFS_ISV34(dvp) && (fmode & O_EXCL) &&
sys/fs/nfsclient/nfs_clvnops.c
1912
fmode &= ~O_EXCL;
sys/fs/nfsclient/nfs_clvnops.c
1915
} else if (NFS_ISV34(dvp) && (fmode & O_EXCL)) {
sys/fs/p9fs/p9fs_vnops.c
627
if (uflags & O_EXCL)
sys/fs/unionfs/union_subr.c
1289
fmode = FFLAGS(O_WRONLY | O_CREAT | O_TRUNC | O_EXCL);
sys/geom/geom_dev.c
439
e = flags & O_EXCL ? 1 : 0;
sys/geom/geom_dev.c
492
e = flags & O_EXCL ? -1 : 0;
sys/kern/coredump_vnode.c
403
flags |= O_EXCL;
sys/kern/kern_descrip.c
4736
{ O_EXCL, KF_FLAG_EXCL },
sys/kern/uipc_mqueue.c
2084
if ((flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) {
sys/kern/uipc_sem.c
551
if ((flags & (O_CREAT | O_EXCL)) ==
sys/kern/uipc_sem.c
552
(O_CREAT | O_EXCL))
sys/kern/uipc_sem.c
643
if ((uap->oflag & ~(O_CREAT | O_EXCL)) != 0)
sys/kern/uipc_sem.c
980
if ((uap->oflag & ~(O_CREAT | O_EXCL)) != 0)
sys/kern/uipc_shm.c
1161
if ((flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC |
sys/kern/uipc_shm.c
1306
else if ((flags & (O_CREAT | O_EXCL)) ==
sys/kern/uipc_shm.c
1307
(O_CREAT | O_EXCL))
sys/kern/vfs_vnops.c
266
if ((fmode & (O_CREAT | O_EXCL | O_DIRECTORY)) == (O_CREAT |
sys/kern/vfs_vnops.c
267
O_EXCL | O_DIRECTORY) ||
sys/kern/vfs_vnops.c
283
if ((fmode & O_EXCL) != 0)
sys/kern/vfs_vnops.c
301
if (fmode & O_EXCL)
sys/kern/vfs_vnops.c
323
if (error == 0 && (fmode & O_EXCL) != 0 &&
sys/kern/vfs_vnops.c
349
if (fmode & O_EXCL) {
sys/kern/vfs_vnops.c
420
if ((fmode & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c
598
if (xrcd && cmd.oflags & O_EXCL) {
tests/sys/fs/fusefs/access.cc
141
EXPECT_EQ(-1, open(FULLPATH, O_CREAT | O_EXCL, mode));
tests/sys/fs/fusefs/create.cc
143
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
tests/sys/fs/fusefs/create.cc
184
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
tests/sys/fs/fusefs/create.cc
205
EXPECT_EQ(-1, open(FULLPATH, O_CREAT | O_EXCL, mode));
tests/sys/fs/fusefs/create.cc
254
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
tests/sys/fs/fusefs/create.cc
288
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
tests/sys/fs/fusefs/create.cc
319
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
tests/sys/fs/fusefs/create.cc
343
EXPECT_EQ(-1, open(FULLPATH, O_CREAT | O_EXCL, mode));
tests/sys/fs/fusefs/create.cc
366
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
tests/sys/fs/fusefs/create.cc
407
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
tests/sys/fs/fusefs/create.cc
466
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
tests/sys/fs/fusefs/create.cc
490
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
tests/sys/fs/fusefs/default_permissions.cc
601
fd = open(FULLPATH, O_CREAT | O_EXCL, 0644);
tests/sys/fs/fusefs/default_permissions.cc
615
ASSERT_EQ(-1, open(FULLPATH, O_CREAT | O_EXCL, 0644));
tests/sys/fs/fusefs/open.cc
240
test_ok(O_WRONLY | O_EXCL, O_WRONLY);
tests/sys/fs/tarfs/mktar.c
73
if ((fd = open(filename, O_RDWR|O_CREAT|O_EXCL, mode)) < 0)
tests/sys/fs/tarfs/mktar.c
92
if ((fd = open(filename, O_RDWR|O_CREAT|O_EXCL, mode)) < 0)
tests/sys/mqueue/mqtest1.c
21
mq = mq_open(MQNAME, O_CREAT | O_RDWR | O_EXCL, 0666, &attr);
tests/sys/mqueue/mqtest2.c
35
mq = mq_open(MQNAME, O_CREAT | O_RDWR | O_EXCL, 0666, &attr);
tests/sys/mqueue/mqtest3.c
37
mq = mq_open(MQNAME, O_CREAT | O_RDWR | O_EXCL, 0666, &attr);
tests/sys/mqueue/mqtest4.c
38
mq = mq_open(MQNAME, O_CREAT | O_RDWR | O_EXCL, 0666, &attr);
tests/sys/mqueue/mqtest5.c
48
mq = mq_open(MQNAME, O_CREAT | O_RDWR | O_EXCL, 0666, &attr);
tests/sys/net/routing/rtsock_common.h
192
int fd = open(path, O_RDWR|O_EXCL);
tests/sys/netinet/ip6_v4mapped_test.c
116
fd = open(SYSCTLBAKFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL,
tests/sys/netinet/tcp_connect_port_test.c
84
fd = open(SYSCTLBAKFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL,
tests/sys/posixshm/posixshm_test.c
126
fd = shm_open(path, O_CREAT|O_EXCL|O_RDWR, 0777);
tests/sys/posixshm/posixshm_test.c
130
fd = shm_open(test_path, O_CREAT | O_EXCL | O_RDWR, 0777);
tests/sys/posixshm/posixshm_test.c
687
shm_open_should_fail(test_path, O_RDONLY|O_CREAT|O_EXCL,
tests/sys/posixshm/posixshm_test.c
923
desc = shm_open(test_path, O_EXCL | O_CREAT | O_RDWR, 0600);
tools/regression/posixsem/posixsem.c
320
ksem_open_should_fail(TEST_PATH, O_CREAT | O_EXCL, 0777, 1, EEXIST);
tools/regression/posixsem/posixsem.c
573
if (ksem_open(&id, TEST_PATH, O_CREAT | O_EXCL, 0777, 1) < 0) {
tools/regression/posixsem2/semtest.c
104
s = sem_open(SEM_NAME, O_CREAT | O_EXCL, 0777, 0);
tools/regression/posixsem2/semtest.c
107
s2 = sem_open(SEM_NAME, O_CREAT | O_EXCL, 0777, 0);
tools/regression/security/access/testaccess.c
87
error = open(fd_list[i].fd_name, O_CREAT | O_EXCL, fd_list[i].fd_mode);
tools/test/stress2/lib/resources.c
168
O_EXCL, 0644)) != -1)
usr.bin/bintrans/uudecode.c
268
flags = O_WRONLY | O_CREAT | O_EXCL;
usr.bin/bintrans/uudecode.c
288
flags &= ~O_EXCL;
usr.bin/gzip/gzip.c
1316
out = open(outfile, O_WRONLY | O_CREAT | O_EXCL, 0600);
usr.bin/gzip/gzip.c
1492
zfd = open(outfile, O_WRONLY|O_CREAT|O_EXCL, 0600);
usr.bin/ktrace/ktrace.c
147
if ((fd = open(tracefile, O_CREAT | O_EXCL | O_WRONLY,
usr.bin/msgs/msgs.c
771
fd = open(fname, O_RDWR|O_EXCL|O_CREAT|O_APPEND);
usr.bin/patch/inp.c
295
if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) < 0)
usr.bin/split/split.c
359
flags |= O_EXCL;
usr.bin/tip/tip/uucplock.c
62
fd = open(tbuf, O_RDWR|O_CREAT|O_EXCL, 0660);
usr.sbin/bluetooth/hcsecd/parser.y
361
if ((f = open(tmp, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0600)) < 0) {
usr.sbin/certctl/certctl.c
525
O_CREAT | O_WRONLY | O_EXCL, mode);
usr.sbin/certctl/certctl.c
596
fd = openat(d, tmpfile, O_WRONLY | O_CREAT | O_EXCL, mode);
usr.sbin/crunch/crunchgen/crunchgen.c
723
if ((fd = open(tempfname, O_CREAT | O_EXCL | O_RDWR, 0600)) == -1) {
usr.sbin/cxgbetool/cxgbetool.c
2294
fd = open(fname, O_CREAT | O_TRUNC | O_EXCL | O_WRONLY,
usr.sbin/extattrctl/extattrctl.c
102
flags &= ~O_EXCL;
usr.sbin/extattrctl/extattrctl.c
97
flags = O_CREAT | O_WRONLY | O_TRUNC | O_EXCL;
usr.sbin/fifolog/lib/fifolog_create.c
54
fd = open(fn, O_WRONLY | O_TRUNC | O_EXCL | O_CREAT, 0644);
usr.sbin/ipfwpcap/ipfwpcap.c
93
fd = open(pidfile, O_WRONLY|O_CREAT|O_EXCL, 0644);
usr.sbin/lpr/lpd/recvjob.c
316
fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD);
usr.sbin/lpr/lpr/lpr.c
629
f = open(n, O_WRONLY | O_EXCL | O_CREAT, FILMOD);
usr.sbin/pw/cpdir.c
128
destfd = openat(rootfd, path, O_RDWR | O_CREAT | O_EXCL,
usr.sbin/pwd_mkdb/pwd_mkdb.c
210
O_RDWR|O_EXCL, PERM_INSECURE, DB_HASH, &openinfo);
usr.sbin/pwd_mkdb/pwd_mkdb.c
217
O_RDWR|O_EXCL, PERM_SECURE, DB_HASH, &openinfo);
usr.sbin/pwd_mkdb/pwd_mkdb.c
274
O_RDWR|O_CREAT|O_EXCL, PERM_INSECURE, DB_HASH, &openinfo);
usr.sbin/pwd_mkdb/pwd_mkdb.c
280
O_RDWR|O_CREAT|O_EXCL, PERM_SECURE, DB_HASH, &openinfo);
usr.sbin/pwd_mkdb/pwd_mkdb.c
299
O_WRONLY|O_CREAT|O_EXCL, PERM_INSECURE)) < 0)
usr.sbin/pwd_mkdb/pwd_mkdb.c
581
if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) < 0)
usr.sbin/services_mkdb/services_mkdb.c
142
db = dbopen(tname, O_RDWR | O_CREAT | O_EXCL,
usr.sbin/yp_mkdb/yp_mkdb.c
192
if ((dbp = open_db(map, O_RDWR|O_EXLOCK|O_EXCL|O_CREAT)) == NULL)