Symbol: O_EXCL
bin/csh/dol.c
829
if (open(tmp, O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 0600) < 0) {
bin/dd/args.c
452
{ "excl", O_EXCL, C_OFLAG },
bin/ksh/exec.c
1154
flags |= O_EXCL;
bin/ksh/io.c
478
fd = open(pathx, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600);
bin/pax/file_subs.c
141
return (open(arcn->name, O_TRUNC | O_EXCL | O_RDWR, 0));
bin/sh/redir.c
412
if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL,
bin/sh/redir.c
958
#ifndef O_EXCL
bin/sh/redir.c
977
O_NOFOLLOW|O_CREAT|O_TRUNC|O_EXCL|O_NOCTTY|O_DIRECTORY|O_REGULAR)
common/dist/zlib/examples/gzlog.c
354
while ((fd = open(log->path, O_CREAT | O_EXCL, 0644)) < 0) {
common/dist/zlib/gzlib.c
139
#ifdef O_EXCL
common/dist/zlib/gzlib.c
239
#ifdef O_EXCL
common/dist/zlib/gzlib.c
240
(exclusive ? O_EXCL : 0) |
common/dist/zlib/gzlib.c
91
#ifdef O_EXCL
crypto/dist/ipsec-tools/src/racoon/plainrsa-gen.c
256
fd = open(fname, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW, S_IRUSR | S_IWUSR);
dist/pf/sbin/pflogd/privsep.c
224
fd = open(ren, O_CREAT|O_EXCL, 0);
lib/libc/db/db/db.c
65
(O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY | \
lib/libc/stdio/flags.c
114
o |= O_EXCL;
lib/libc/stdio/gettemp.c
144
if ((*doopen = open(path, O_CREAT|O_EXCL|O_RDWR|oflags,
lib/libc/time/zic.c
1651
int oflags = O_WRONLY | O_BINARY | O_CREAT | O_EXCL;
lib/libperfuse/ops.c
1391
mode &= ~(O_CREAT|O_EXCL|O_APPEND);
lib/librefuse/refuse.c
601
fi.flags = O_WRONLY | O_CREAT | O_EXCL;
lib/librefuse/refuse.c
790
fi->flags = (mode & ~(O_CREAT | O_EXCL | O_TRUNC)) - 1;
lib/librumpuser/rumpuser_file.c
208
TESTSET(RUMPUSER_OPEN_EXCL, O_EXCL);
lib/libutil/passwd.c
124
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, 0600);
lib/libutil/passwd.c
127
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL,
libexec/atrun/atrun.c
273
O_WRONLY | O_CREAT | O_EXCL, S_IWUSR | S_IRUSR)) == -1)
libexec/mail.local/mail.local.c
223
if((lfd = open(lpath, O_CREAT|O_WRONLY|O_EXCL,
libexec/mail.local/mail.local.c
245
(mbfd = open(path, O_APPEND|O_CREAT|O_WRONLY|O_EXLOCK|O_EXCL,
libexec/makewhatis/makewhatis.c
378
outfd = open(whatisdb_new, O_WRONLY|O_CREAT|O_EXCL,
sbin/dump/snapshot.c
122
fd = open(fss.fss_bstore, O_CREAT|O_EXCL|O_WRONLY, 0600);
sbin/gpt/gpt.c
503
mode = (gpt->flags & GPT_READONLY) ? O_RDONLY : O_RDWR|O_EXCL;
sbin/gpt/gpt.c
520
gpt->fd = open(dev, O_RDWR|O_EXCL|O_CREAT, 0644);
share/examples/refuse/fanoutfs/fanoutfs.c
174
if ((fdto = open(to, O_WRONLY | O_CREAT | O_EXCL, st.st_mode & 07777)) < 0) {
share/examples/refuse/fanoutfs/fanoutfs.c
436
if ((fd = open(name, O_RDWR | O_CREAT | O_EXCL, 0666)) < 0) {
share/examples/refuse/icfs/icfs.c
337
if ((fd = open(name, O_RDWR | O_CREAT | O_EXCL, 0666)) < 0) {
sys/coda/coda_venus.c
153
if (from & O_EXCL) to |= C_O_EXCL; \
sys/coda/coda_vnops.c
228
int flag = ap->a_mode & (~O_EXCL);
sys/coda/coda_vnops.c
242
if (flag & (FWRITE | O_TRUNC | O_CREAT | O_EXCL)) {
sys/compat/linux/common/linux_file.c
107
res |= cvtto_bsd_mask(lflags, LINUX_O_EXCL, O_EXCL);
sys/compat/linux/common/linux_file.c
133
res |= cvtto_linux_mask(bflags, O_EXCL, LINUX_O_EXCL);
sys/fs/nfs/client/nfs_clrpcops.c
1922
if (fmode & O_EXCL) {
sys/fs/nfs/client/nfs_clrpcops.c
1993
if (fmode & O_EXCL) {
sys/fs/nfs/client/nfs_clvnops.c
1555
fmode |= O_EXCL;
sys/fs/nfs/client/nfs_clvnops.c
1597
if (NFS_ISV34(dvp) && (fmode & O_EXCL) &&
sys/fs/nfs/client/nfs_clvnops.c
1599
fmode &= ~O_EXCL;
sys/fs/nfs/client/nfs_clvnops.c
1602
} else if (NFS_ISV34(dvp) && (fmode & O_EXCL)) {
sys/fs/union/union_subr.c
894
int fmode = FFLAGS(O_WRONLY|O_CREAT|O_TRUNC|O_EXCL);
sys/fs/unionfs/unionfs_subr.c
610
fmode = FFLAGS(O_WRONLY | O_CREAT | O_TRUNC | O_EXCL);
sys/kern/sys_mqueue.c
530
if (oflag & O_EXCL) {
sys/kern/uipc_sem.c
701
if (oflag & O_EXCL) {
sys/kern/vfs_vnops.c
200
if ((fmode & O_EXCL) == 0 &&
sys/kern/vfs_vnops.c
203
if ((fmode & O_EXCL) == 0)
sys/kern/vfs_vnops.c
269
if (fmode & O_EXCL)
sys/kern/vfs_vnops.c
289
if (fmode & O_EXCL) {
sys/kern/vfs_vnops.c
304
KASSERT((fmode & O_EXCL) == 0);
sys/miscfs/procfs/procfs_vnops.c
393
if (((pfs->pfs_flags & FWRITE) && (ap->a_mode & O_EXCL)) ||
sys/miscfs/procfs/procfs_vnops.c
394
((pfs->pfs_flags & O_EXCL) && (ap->a_mode & FWRITE))) {
sys/miscfs/procfs/procfs_vnops.c
405
pfs->pfs_flags = ap->a_mode & (FWRITE|O_EXCL);
sys/miscfs/procfs/procfs_vnops.c
444
if ((ap->a_fflag & FWRITE) && (pfs->pfs_flags & O_EXCL))
sys/miscfs/procfs/procfs_vnops.c
445
pfs->pfs_flags &= ~(FWRITE|O_EXCL);
sys/rump/kern/lib/libsys_cygwin/rump_cygwin_compat.c
154
flags = sflags & (3 | O_APPEND | O_ASYNC | O_CREAT | O_TRUNC | O_EXCL);
sys/rump/kern/lib/libsys_sunos/rump_sunos_compat.c
203
flags |= (sflags & 0x400) ? O_EXCL : 0;
sys/sys/fcntl.h
141
O_ASYNC|O_SYNC|O_CREAT|O_TRUNC|O_EXCL|O_DSYNC|\
sys/ufs/lfs/ulfs_extattr.c
233
error = vn_open(NULL, pb, 0, O_CREAT|O_EXCL|O_RDWR, 0600,
sys/ufs/ufs/ufs_extattr.c
233
error = vn_open(NULL, pb, 0, O_CREAT|O_EXCL|O_RDWR, 0600,
tests/fs/ffs/h_quota2_tests.c
187
fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644);
tests/fs/ffs/h_quota2_tests.c
197
fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644);
tests/fs/ffs/h_quota2_tests.c
263
fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644);
tests/fs/ffs/h_quota2_tests.c
317
O_EXCL| O_CREAT | O_RDWR, 0644);
tests/fs/vfs/t_vnops.c
524
RL(fd = rump_sys_open(buf, O_RDWR|O_CREAT|O_EXCL, 0666));
tests/fs/vfs/t_vnops.c
556
fd = rump_sys_open(buf, O_RDWR|O_CREAT|O_EXCL, 0666);
tests/fs/vfs/t_vnops.c
615
RL(fd = rump_sys_open(name, O_RDWR|O_CREAT|O_EXCL, 0666));
tests/fs/vfs/t_vnops.c
623
(fd = rump_sys_open(name, O_RDWR|O_CREAT|O_EXCL, 0666)));
tests/kernel/t_ksem.c
115
ATF_REQUIRE_EQ(_ksem_open("/ksem_b", O_CREAT | O_EXCL, 0644, 0, &ksem),
tests/kernel/t_ksem.c
121
ATF_REQUIRE_EQ(_ksem_open("/ksem_b", O_CREAT | O_EXCL, 0644, 1, &ksem1),
tests/kernel/t_ksem.c
92
ATF_REQUIRE_EQ(_ksem_open("/ksem_x", O_CREAT | O_EXCL, 0644, 0, &ksem),
tests/kernel/t_lockf.c
130
fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666);
tests/kernel/t_lockf.c
225
fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666);
tests/kernel/t_sysv.c
156
fd = open(token_key, O_RDWR | O_CREAT | O_EXCL, 0600);
tests/lib/libc/sys/t_futex_ops.c
225
RL(bs_fd = open(bs_path, O_RDWR | O_CREAT | O_EXCL, 0644));
tests/lib/libpthread/t_sem.c
129
semp = sem_open("/foo", O_CREAT | O_EXCL, 0644, 0);
tests/lib/librt/t_sem.c
135
sem_a = sem_open("/sem_a", O_CREAT | O_EXCL, 0644, 0);
tests/lib/librt/t_sem.c
225
master_region = get_shared_region(O_RDWR | O_CREAT | O_EXCL);
tests/lib/librt/t_sem.c
302
sem = sem_open("/sem_c", O_CREAT | O_EXCL, 0644, 0);
tests/lib/librt/t_sem.c
326
sem = sem_open("/sem_d", O_CREAT | O_EXCL, 0777, 0);
tests/lib/librt/t_sem.c
328
sem2 = sem_open("/sem_d", O_CREAT | O_EXCL, 0777, 0);
tests/lib/librt/t_sem.c
90
sem_b = sem_open("/sem_b", O_CREAT | O_EXCL, 0644, 0);
tests/lib/semaphore/sem.c
257
rv = sem_open(SEM1, O_CREAT | O_EXCL);
tests/net/tcp/t_tcp_connect_port.c
112
fd = open(SYSCTLBAKFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL,
usr.bin/gencat/gencat.c
175
ofd = open(catfile, O_WRONLY | O_CREAT | O_EXCL, 0666);
usr.bin/gzip/gzip.c
1381
out = open(outfile, O_WRONLY | O_CREAT | O_EXCL, 0600);
usr.bin/gzip/gzip.c
1570
zfd = open(outfile, O_WRONLY|O_CREAT|O_EXCL, 0600);
usr.bin/mail/dotlock.c
85
O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_SYNC|O_CLOEXEC, 0);
usr.bin/mail/mime_detach.c
126
flags = (detach_ctl.overwrite ? 0 : O_EXCL) | O_CREAT | O_TRUNC | O_WRONLY;
usr.bin/patch/inp.c
398
if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) < 0)
usr.bin/shlock/shlock.c
140
while ((fd = open(tempname, O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_EXCL, 0644))
usr.sbin/dev_mkdb/dev_mkdb.c
115
db_compat = dbopen(db_name_tmp, O_CREAT|O_EXCL|O_EXLOCK|O_RDWR|O_TRUNC,
usr.sbin/dev_mkdb/dev_mkdb.c
77
fd = open(db_name_tmp, O_CREAT|O_EXCL|O_WRONLY, FILE_PERMISSION);
usr.sbin/extattrctl/extattrctl.c
108
flags = O_CREAT | O_WRONLY | O_TRUNC | O_EXCL;
usr.sbin/extattrctl/extattrctl.c
113
flags &= ~O_EXCL;
usr.sbin/lpr/lpd/printjob.c
734
n = open(tempfile, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0664);
usr.sbin/lpr/lpd/printjob.c
899
pfd = open(tempremote, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0664);
usr.sbin/lpr/lpd/recvjob.c
219
fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD);
usr.sbin/lpr/lpr/lpr.c
542
f = open(n, O_WRONLY | O_EXCL | O_CREAT, FILMOD);
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
164
db = dbopen(buf, O_RDWR | O_CREAT | O_EXCL,
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
215
db = dbopen(NULL, O_RDWR | O_CREAT | O_EXCL, 0, DB_HASH, NULL);
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
318
xdb = dbopen(NULL, O_RDWR | O_CREAT | O_EXCL, 0, DB_HASH, NULL);
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
431
DB *udb = dbopen(NULL, O_RDWR | O_CREAT | O_EXCL, 0,
usr.sbin/pwd_mkdb/pwd_mkdb.c
351
flags = O_RDWR | O_CREAT | O_EXCL;
usr.sbin/pwd_mkdb/pwd_mkdb.c
399
if ((tfd = open(oldpwdfile, O_WRONLY | O_CREAT | O_EXCL,
usr.sbin/pwd_mkdb/pwd_mkdb.c
645
if ((to_fd = open(to, O_WRONLY | O_CREAT | O_EXCL, mode)) < 0) {
usr.sbin/rpcbind/warmstart.c
81
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR);
usr.sbin/services_mkdb/output_db.c
74
db = dbopen(tname, O_RDWR | O_CREAT | O_EXCL,
usr.sbin/tpctl/data.c
278
if ((fd = open(tempfile, O_RDWR|O_CREAT|O_EXCL, 0644)) < 0) {