O_EXCL
flags |= O_EXCL;
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_EXCL,
fd = open(path0, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, 0600);
(O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
(O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
fd = shm_open(t, O_RDWR | O_EXCL | O_CREAT, 0600);
(O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC | O_CLOFORK | O_NOFOLLOW)
o |= O_EXCL;
flags |= O_CREAT | O_EXCL | O_RDWR;
#define SAFE_MODE (O_CREAT | O_EXCL | O_RDWR)
sempshared = sem_open(name, O_CREAT | O_EXCL, 0, value);
if (oflag & ~(O_CREAT | O_EXCL)) {
sempshared = sem_open(name, O_CREAT | O_EXCL, 0, value);
if (oflag & ~(O_CREAT | O_EXCL)) {
fd = open(pw_lck, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0600);
fd = open(pw_lck, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0600);
#ifdef O_EXCL
#ifdef O_EXCL
(exclusive ? O_EXCL : 0) |
#ifdef O_EXCL
fd = open(new, O_RDWR|O_CREAT|O_EXCL, 0666);
if ((lfd = open(lpath, O_CREAT|O_WRONLY|O_EXCL,
if ((mbfd = open(path, O_APPEND|O_CREAT|O_EXCL|O_WRONLY|O_EXLOCK,
buf[0] = open(path, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR);
fd = open(buf, O_CREAT|O_EXCL|O_RDWR, 0600);
{ O_EXCL, "O_EXCL" },
rval = open(STR(0), O_CREAT | O_EXCL, NUM(1));
c_open(O_EXCL|O_CREAT|O_RDWR);
if ((fd = open("1", O_WRONLY | O_CREAT | O_EXCL, 0644)) == -1)
if ((fd = open("2", O_WRONLY | O_CREAT | O_EXCL, 0644)) == -1)
if ((fd = open("3", O_WRONLY | O_CREAT | O_EXCL, 0644)) == -1)
fd = open(saltfile, O_RDWR|O_CREAT|O_EXCL, 0600);
fd = open(dirfile, O_RDWR|O_CREAT|O_EXCL, 0666);
fd = open(modefile, O_RDWR|O_CREAT|O_EXCL, 0666);
fd = open(saltfile, O_RDWR|O_CREAT|O_EXCL, 0600);
if (flags & O_EXCL)
if (filp->f_flags & O_EXCL)
oflags = O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW |
if ((fmode & O_EXCL) == 0 && (fmode & O_NOFOLLOW) == 0)
if (fmode & O_EXCL)
if (fmode & O_EXCL) {
if (flags & O_EXCL)
flags = OFLAGS(ap->a_mode) & ~(O_CREAT|O_EXCL|O_TRUNC);
fmode |= O_EXCL;
if (fmode & O_EXCL) {
if (info.nmi_v3 && (fmode & O_EXCL) && error == NFSERR_NOTSUPP) {
fmode &= ~O_EXCL;
} else if (info.nmi_v3 && (fmode & O_EXCL)) {
fd = open(atfile, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR);
if ((fd = open(path, O_WRONLY | O_CREAT | O_EXCL, 0444)) == -1)
if ((fd = open(buf, O_WRONLY|O_CREAT|O_EXCL, 0666 & ~cvs_umask))
if ((fd = open(tracefile, O_CREAT | O_EXCL | O_WRONLY,
tfd = open(tagfilename, O_WRONLY | O_CREAT | O_EXCL, 0644);
ofd = open(outfilename, O_WRONLY | O_CREAT | O_EXCL, 0644);
if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) == -1)
O_WRONLY | O_NOFOLLOW | O_TRUNC | O_CREAT | O_EXCL,
flags |= O_CREAT | O_EXCL | O_RDWR;
sizeof(enckey), O_EXCL, 0600);
sizeof(pubkey), O_EXCL, 0666);
flags |= O_EXCL;
flags = O_WRONLY|O_CREAT|O_EXCL|O_NOFOLLOW;
flags &= ~(O_EXCL|O_NOFOLLOW);
flags = O_CREAT | O_EXCL;
if ((fd = open(imgfile_path, O_RDWR | O_CREAT | O_TRUNC | O_EXCL,
fd = open(path, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW, 0660);
if ((fo = open(".railmag", O_CREAT|O_WRONLY|O_EXCL, FILMOD)) < 0) {
n = open(tempfile, O_WRONLY|O_CREAT|O_EXCL, 0664);
if ((fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD)) < 0)
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);
udb = dbopen(NULL, O_RDWR | O_CREAT | O_EXCL, 0, DB_HASH, NULL);
while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) == -1) {
O_RDWR|O_CREAT|O_EXCL, PERM_SECURE, DB_HASH, &openinfo);
dp = dbopen(buf, O_RDWR|O_CREAT|O_EXCL, PERM_INSECURE,
O_WRONLY|O_CREAT|O_EXCL, PERM_INSECURE)) == -1)
if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) == -1)
f |= O_CREAT | O_EXCL;
flags |= O_EXCL;
fd = open(tmp, O_CREAT | O_EXCL | O_WRONLY, 0600);
if ((fd = open(buffer, O_CREAT|O_EXCL, 0)) == -1) {
return open(buf, O_RDWR | O_CREAT | O_EXCL, 0600);
if ((fd = open(path, O_RDWR | O_CREAT | O_EXCL, 0600)) == -1) {
fd = open(imgfile_path, O_RDWR | O_CREAT | O_TRUNC | O_EXCL,
fd = open(imgfile_path, O_RDWR | O_CREAT | O_TRUNC | O_EXCL,