O_EXCL
if ((fd2 = hc_open(&DstHost, path, O_WRONLY|O_CREAT|O_EXCL, 0600)) < 0) {
fd2 = hc_open(&DstHost, path, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
if (flags & O_EXCL)
flags |= O_EXCL;
open(to, O_CREAT | O_EXCL | O_TRUNC | O_WRONLY, 0)) < 0) {
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL,
if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0)
flags |= O_EXCL;
if ((fd = open(nstatefile, O_CREAT|O_WRONLY|O_EXCL, 0600)) == -1) {
(O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
o |= O_EXCL;
if ((*doopen = _open(path, O_CREAT|O_EXCL|O_RDWR|oflags,
if (oflag & ~(O_CREAT|O_EXCL)) {
if ((oflag & O_EXCL) == O_EXCL) {
if (errno == EEXIST && (oflag & O_EXCL) == 0) {
O_WRONLY | O_CREAT | O_EXCL, S_IWUSR | S_IRUSR)) < 0)
queuefd = open_locked(it->queuefn, O_CREAT|O_EXCL|O_RDWR, 0660);
O_RDWR | O_CREAT | O_EXCL, 0666)) >= 0) {
#define FLAGS O_RDWR|O_EXLOCK|O_EXCL|O_CREAT
mode = readonly ? O_RDONLY : O_RDWR|O_EXCL;
fd = open(dirfile, O_RDWR|O_CREAT|O_EXCL, 0666);
fd = open(modefile, O_RDWR|O_CREAT|O_EXCL, 0666);
if (flags & O_EXCL)
if (flags & O_EXCL)
if (flags & O_EXCL)
if ((oflag & O_CREAT) && (oflag & O_EXCL)) {
if ((fmode & O_EXCL) == 0 && (fmode & O_NOFOLLOW) == 0)
(fmode & O_EXCL) && !nd->nl_dir_error)
if (fmode & O_EXCL)
if (fmode & O_EXCL) {
fd = open(tmpfile, O_RDWR|O_CREAT|O_EXCL, 0600);
fmode |= O_EXCL;
if (fmode & O_EXCL) {
if (info.v3 && (fmode & O_EXCL) && error == NFSERR_NOTSUPP) {
fmode &= ~O_EXCL;
} else if (info.v3 && (fmode & O_EXCL)) {
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);
assert(SEM_FAILED == sem_open("/foo", O_CREAT | O_EXCL, 0644, 0));
fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666);
O_CREAT | O_TRUNC | O_WRONLY | O_EXCL, 0644)) != -1)
retval = sem_open_should_fail(TEST_PATH, O_CREAT | O_EXCL, 0777, 1, EEXIST);
id = sem_open(TEST_PATH, O_CREAT | O_EXCL, 0777, 1);
out = open(outfile, O_WRONLY | O_CREAT | O_EXCL, 0600);
zfd = open(outfile, O_WRONLY|O_CREAT|O_EXCL, 0600);
if ((fd = open(tracefile, O_CREAT | O_EXCL | O_WRONLY,
fd = open(fname, O_RDWR|O_EXCL|O_CREAT|O_APPEND);
if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) < 0)
while ((fd = open(tmpf, O_RDWR | O_CREAT | O_EXCL, 0644)) == -1){
flags = O_WRONLY | O_CREAT | O_EXCL;
flags &= ~O_EXCL;
if ((f = open(tmp, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0600)) < 0) {
fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD);
f = open(n, O_WRONLY | O_EXCL | O_CREAT, FILMOD);
fd = open(ren, O_CREAT|O_EXCL, 0);
} else if (S_ISREG(st.st_mode) && (outfd = open(dst, O_RDWR | O_CREAT | O_EXCL, st.st_mode)) != -1) {
O_RDWR|O_EXCL, PERM_INSECURE, DB_HASH, &openinfo);
O_RDWR|O_EXCL, PERM_SECURE, DB_HASH, &openinfo);
O_RDWR|O_CREAT|O_EXCL, PERM_INSECURE, DB_HASH, &openinfo);
O_RDWR|O_CREAT|O_EXCL, PERM_SECURE, DB_HASH, &openinfo);
O_WRONLY|O_CREAT|O_EXCL, PERM_INSECURE)) < 0)
if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) < 0)
fd_tmp = open(LISTEN_SOCKET_FILE, O_EXCL | O_CREAT, 0666);
fd2 = open(path_localtime, O_CREAT | O_EXCL | O_WRONLY,
if ((dbp = open_db(map, O_RDWR|O_EXLOCK|O_EXCL|O_CREAT)) == NULL)