O_EXCL
f |= O_EXCL;
fd = open(tempdir, O_CLOEXEC | O_RDWR | O_EXCL | O_TMPFILE, 0700);
fd = open(file, O_RDWR | O_CREAT | O_EXCL, 0644);
(mce_chrdev_open_count && (file->f_flags & O_EXCL))) {
if (file->f_flags & O_EXCL)
else if (file->f_flags & O_EXCL)
backing_dev = filp_open(file_name, O_RDWR | O_LARGEFILE | O_EXCL, 0);
if ((nvram_open_cnt && (file->f_flags & O_EXCL)) ||
if (file->f_flags & O_EXCL)
ret = dfl_feature_dev_use_begin(fdata, filp->f_flags & O_EXCL);
ret = dfl_feature_dev_use_begin(fdata, filp->f_flags & O_EXCL);
if (filp->f_flags & O_EXCL)
if (xrcd && cmd.oflags & O_EXCL) {
data->ccb_excl = fp->f_flags & O_EXCL;
if (fp->f_flags & O_EXCL || hw->ccb_alloc[slot]->ccb_excl) {
if (flags & O_EXCL) {
if ((flags & O_EXCL) && (O_RDONLY == (flags & O_ACCMODE)))
if (flags & O_EXCL) {
if (flags & O_EXCL)
if (flags & O_EXCL) {
(acpi_thermal_rel_chrdev_count && (file->f_flags & O_EXCL))) {
if (file->f_flags & O_EXCL)
(xen_mce_chrdev_open_count && (file->f_flags & O_EXCL))) {
if (file->f_flags & O_EXCL)
if (uflags & O_EXCL)
{ O_EXCL, P9_DOTL_EXCL },
flags = file->f_flags & ~(O_CREAT|O_EXCL);
ceph_sys2wire(O_EXCL);
if (flags & O_EXCL)
unsigned short flags = coda_file->f_flags & (~O_EXCL);
unsigned short flags = (coda_file->f_flags) & (~O_EXCL);
int open_flags = O_CREAT | O_WRONLY | O_NOFOLLOW | O_LARGEFILE | O_EXCL;
!(flags & O_EXCL) && !capable(CAP_FSETID)) {
flags &= ~(O_CREAT | O_EXCL | O_TRUNC);
inarg.flags = open_flags & ~(O_CREAT | O_EXCL | O_NOCTTY);
bool excl = !!(flags & O_EXCL);
if (open_flag & O_EXCL)
mode, open_flag & O_EXCL);
if (open_flag & O_EXCL)
if ((open_flag & O_EXCL) && !(file->f_mode & FMODE_CREATED))
if (!(open_flag & O_EXCL)) {
} else if (error != -EEXIST || open_flags & O_EXCL)
return nfs_do_create(dir, dentry, mode, excl ? O_EXCL : 0);
if (flags & O_EXCL) {
openflags &= ~(O_CREAT|O_EXCL);
if (open_mode & (O_EXCL|O_TRUNC))
if (data->o_arg.open_flags & O_EXCL) {
if (o_arg->open_flags & O_EXCL)
if ((opendata->o_arg.open_flags & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) &&
oflags |= O_EXCL;
if (flags & O_EXCL) {
f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);
file->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);
(O_RDONLY | O_WRONLY | O_RDWR | O_NONBLOCK | O_CLOEXEC | O_EXCL)
psblk_file = filp_open(devpath, O_RDWR | O_DSYNC | O_NOATIME | O_EXCL, 0);
if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
unsigned oflags = O_EXCL | O_CREAT | O_RDWR;
~(O_CREAT | O_EXCL | O_TRUNC);
oflags &= ~(O_CREAT | O_EXCL | O_TRUNC);
cflags &= ~(O_CREAT | O_EXCL | O_TRUNC);
if (flags & O_EXCL)
} else if (flags & O_EXCL)
if ((flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
err = vboxsf_dir_create(parent, dentry, mode, false, flags & O_EXCL, &handle);
if (tmpfile->f_flags & O_EXCL)
(O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
{ O_EXCL, "O_EXCL" }, \
#ifndef O_EXCL
#define PIDFD_THREAD O_EXCL
#define O_NOTIFICATION_PIPE O_EXCL /* Parameter to pipe2() selecting notification pipe */
if ((oflag & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL))
{ O_EXCL, "O_EXCL" },
"{ 0x%x, \"O_EXCL\" }, ", O_EXCL);
swap_file = file_open_name(name, O_RDWR | O_LARGEFILE | O_EXCL, 0);
O_TRUNC | O_CREAT | O_NOCTTY | O_EXCL);
fd = open(output_name, O_CREAT | O_WRONLY | (opts->force ? O_TRUNC : O_EXCL), 0666);
kcore->fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0400);
sem_open(semaphore_name, O_EXCL | O_CREAT, 0755,
tid_fd = syscall(SYS_pidfd_open, sys_gettid(), O_EXCL);
int to = open(toname, O_CREAT | O_WRONLY | O_EXCL, 0700);
return open(".", O_TMPFILE | O_RDWR | O_EXCL);
return openat(fd_tmpfs_detached, ".", O_TMPFILE | O_RDWR | O_EXCL, 0600);
int fd = open("/tmp/aa", O_RDWR | O_CREAT | O_EXCL, 0600);
sem = sem_open("vm_sem", O_CREAT | O_EXCL, 0644, 0);
fd = open(path, O_TMPFILE | O_EXCL | O_RDWR, 0600);
fd = open(finfo.path, O_DSYNC | O_CREAT | O_RDWR | O_TRUNC | O_EXCL,
fd = open(data->filename, O_CREAT | O_RDWR | O_EXCL, 0666);
fd = open("/mnt/A/AA/B/b", O_RDWR | O_CLOEXEC | O_CREAT | O_EXCL, 0777);
fd = open("/mnt/A/AA/B/b", O_RDWR | O_CLOEXEC | O_CREAT | O_EXCL, 0777);
int flags = O_RDWR | O_EXCL | O_CREAT;
int flags = O_RDWR | O_EXCL | O_CREAT;
int flags = O_RDWR | O_EXCL | O_CREAT | O_NONBLOCK;
.how.flags = O_PATH | O_EXCL, .err = -EINVAL },
#define PIDFD_THREAD O_EXCL
O_EXCL);
fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_EXCL|O_TMPFILE, 0700);