O_EXCL
if (open(tmp, O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 0600) < 0) {
{ "excl", O_EXCL, C_OFLAG },
flags |= O_EXCL;
fd = open(pathx, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600);
return (open(arcn->name, O_TRUNC | O_EXCL | O_RDWR, 0));
if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL,
#ifndef O_EXCL
O_NOFOLLOW|O_CREAT|O_TRUNC|O_EXCL|O_NOCTTY|O_DIRECTORY|O_REGULAR)
while ((fd = open(log->path, O_CREAT | O_EXCL, 0644)) < 0) {
#ifdef O_EXCL
#ifdef O_EXCL
(exclusive ? O_EXCL : 0) |
#ifdef O_EXCL
fd = open(fname, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW, S_IRUSR | S_IWUSR);
fd = open(ren, O_CREAT|O_EXCL, 0);
(O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY | \
o |= O_EXCL;
if ((*doopen = open(path, O_CREAT|O_EXCL|O_RDWR|oflags,
int oflags = O_WRONLY | O_BINARY | O_CREAT | O_EXCL;
mode &= ~(O_CREAT|O_EXCL|O_APPEND);
fi.flags = O_WRONLY | O_CREAT | O_EXCL;
fi->flags = (mode & ~(O_CREAT | O_EXCL | O_TRUNC)) - 1;
TESTSET(RUMPUSER_OPEN_EXCL, O_EXCL);
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, 0600);
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL,
O_WRONLY | O_CREAT | O_EXCL, S_IWUSR | S_IRUSR)) == -1)
if((lfd = open(lpath, O_CREAT|O_WRONLY|O_EXCL,
(mbfd = open(path, O_APPEND|O_CREAT|O_WRONLY|O_EXLOCK|O_EXCL,
outfd = open(whatisdb_new, O_WRONLY|O_CREAT|O_EXCL,
fd = open(fss.fss_bstore, O_CREAT|O_EXCL|O_WRONLY, 0600);
mode = (gpt->flags & GPT_READONLY) ? O_RDONLY : O_RDWR|O_EXCL;
gpt->fd = open(dev, O_RDWR|O_EXCL|O_CREAT, 0644);
if ((fdto = open(to, O_WRONLY | O_CREAT | O_EXCL, st.st_mode & 07777)) < 0) {
if ((fd = open(name, O_RDWR | O_CREAT | O_EXCL, 0666)) < 0) {
if ((fd = open(name, O_RDWR | O_CREAT | O_EXCL, 0666)) < 0) {
if (from & O_EXCL) to |= C_O_EXCL; \
int flag = ap->a_mode & (~O_EXCL);
if (flag & (FWRITE | O_TRUNC | O_CREAT | O_EXCL)) {
res |= cvtto_bsd_mask(lflags, LINUX_O_EXCL, O_EXCL);
res |= cvtto_linux_mask(bflags, O_EXCL, LINUX_O_EXCL);
if (fmode & O_EXCL) {
if (fmode & O_EXCL) {
fmode |= O_EXCL;
if (NFS_ISV34(dvp) && (fmode & O_EXCL) &&
fmode &= ~O_EXCL;
} else if (NFS_ISV34(dvp) && (fmode & O_EXCL)) {
int fmode = FFLAGS(O_WRONLY|O_CREAT|O_TRUNC|O_EXCL);
fmode = FFLAGS(O_WRONLY | O_CREAT | O_TRUNC | O_EXCL);
if (oflag & O_EXCL) {
if (oflag & O_EXCL) {
if ((fmode & O_EXCL) == 0 &&
if ((fmode & O_EXCL) == 0)
if (fmode & O_EXCL)
if (fmode & O_EXCL) {
KASSERT((fmode & O_EXCL) == 0);
if (((pfs->pfs_flags & FWRITE) && (ap->a_mode & O_EXCL)) ||
((pfs->pfs_flags & O_EXCL) && (ap->a_mode & FWRITE))) {
pfs->pfs_flags = ap->a_mode & (FWRITE|O_EXCL);
if ((ap->a_fflag & FWRITE) && (pfs->pfs_flags & O_EXCL))
pfs->pfs_flags &= ~(FWRITE|O_EXCL);
flags = sflags & (3 | O_APPEND | O_ASYNC | O_CREAT | O_TRUNC | O_EXCL);
flags |= (sflags & 0x400) ? O_EXCL : 0;
O_ASYNC|O_SYNC|O_CREAT|O_TRUNC|O_EXCL|O_DSYNC|\
error = vn_open(NULL, pb, 0, O_CREAT|O_EXCL|O_RDWR, 0600,
error = vn_open(NULL, pb, 0, O_CREAT|O_EXCL|O_RDWR, 0600,
fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644);
fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644);
fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644);
O_EXCL| O_CREAT | O_RDWR, 0644);
RL(fd = rump_sys_open(buf, O_RDWR|O_CREAT|O_EXCL, 0666));
fd = rump_sys_open(buf, O_RDWR|O_CREAT|O_EXCL, 0666);
RL(fd = rump_sys_open(name, O_RDWR|O_CREAT|O_EXCL, 0666));
(fd = rump_sys_open(name, O_RDWR|O_CREAT|O_EXCL, 0666)));
ATF_REQUIRE_EQ(_ksem_open("/ksem_b", O_CREAT | O_EXCL, 0644, 0, &ksem),
ATF_REQUIRE_EQ(_ksem_open("/ksem_b", O_CREAT | O_EXCL, 0644, 1, &ksem1),
ATF_REQUIRE_EQ(_ksem_open("/ksem_x", O_CREAT | O_EXCL, 0644, 0, &ksem),
fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666);
fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666);
fd = open(token_key, O_RDWR | O_CREAT | O_EXCL, 0600);
RL(bs_fd = open(bs_path, O_RDWR | O_CREAT | O_EXCL, 0644));
semp = sem_open("/foo", O_CREAT | O_EXCL, 0644, 0);
sem_a = sem_open("/sem_a", O_CREAT | O_EXCL, 0644, 0);
master_region = get_shared_region(O_RDWR | O_CREAT | O_EXCL);
sem = sem_open("/sem_c", O_CREAT | O_EXCL, 0644, 0);
sem = sem_open("/sem_d", O_CREAT | O_EXCL, 0777, 0);
sem2 = sem_open("/sem_d", O_CREAT | O_EXCL, 0777, 0);
sem_b = sem_open("/sem_b", O_CREAT | O_EXCL, 0644, 0);
rv = sem_open(SEM1, O_CREAT | O_EXCL);
fd = open(SYSCTLBAKFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL,
ofd = open(catfile, O_WRONLY | O_CREAT | O_EXCL, 0666);
out = open(outfile, O_WRONLY | O_CREAT | O_EXCL, 0600);
zfd = open(outfile, O_WRONLY|O_CREAT|O_EXCL, 0600);
O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_SYNC|O_CLOEXEC, 0);
flags = (detach_ctl.overwrite ? 0 : O_EXCL) | O_CREAT | O_TRUNC | O_WRONLY;
if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) < 0)
while ((fd = open(tempname, O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_EXCL, 0644))
db_compat = dbopen(db_name_tmp, O_CREAT|O_EXCL|O_EXLOCK|O_RDWR|O_TRUNC,
fd = open(db_name_tmp, O_CREAT|O_EXCL|O_WRONLY, FILE_PERMISSION);
flags = O_CREAT | O_WRONLY | O_TRUNC | O_EXCL;
flags &= ~O_EXCL;
n = open(tempfile, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0664);
pfd = open(tempremote, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0664);
fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD);
f = open(n, O_WRONLY | O_EXCL | O_CREAT, FILMOD);
db = dbopen(buf, O_RDWR | O_CREAT | O_EXCL,
db = dbopen(NULL, O_RDWR | O_CREAT | O_EXCL, 0, DB_HASH, NULL);
xdb = dbopen(NULL, O_RDWR | O_CREAT | O_EXCL, 0, DB_HASH, NULL);
DB *udb = dbopen(NULL, O_RDWR | O_CREAT | O_EXCL, 0,
flags = O_RDWR | O_CREAT | O_EXCL;
if ((tfd = open(oldpwdfile, O_WRONLY | O_CREAT | O_EXCL,
if ((to_fd = open(to, O_WRONLY | O_CREAT | O_EXCL, mode)) < 0) {
fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR);
db = dbopen(tname, O_RDWR | O_CREAT | O_EXCL,
if ((fd = open(tempfile, O_RDWR|O_CREAT|O_EXCL, 0644)) < 0) {