O_CREAT
ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666);
outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
if ((outfile = open(argv[2], O_WRONLY | O_CREAT, 0777)) < 0) {
if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) {
f |= O_CREAT;
fd = open(file, O_RDWR | O_CREAT | O_EXCL, 0644);
oflags |= O_CREAT;
fp = open_file_as_root(init_ex_path, O_CREAT | O_WRONLY, 0600);
if (!xrcd && !(cmd.oflags & O_CREAT)) {
cfile = filp_open(cache_file, O_CREAT | O_RDWR | O_LARGEFILE, 0600);
O_CREAT | O_NONBLOCK | O_RDWR, /*mode*/0, DB_HASH,
struct file *file = filp_open(path, O_RDWR | O_CREAT | O_TRUNC, 0600);
flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC;
int ret, flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC;
int flags = O_RDWR | O_CREAT | O_TRUNC;
if (!(flags & O_CREAT))
{ O_CREAT, P9_DOTL_CREATE },
if (!(flags & O_CREAT))
int op = (flags & O_CREAT) ? CEPH_MDS_OP_CREATE : CEPH_MDS_OP_OPEN;
if (flags & (O_WRONLY|O_RDWR|O_CREAT|O_TRUNC))
flags = file->f_flags & ~(O_CREAT|O_EXCL);
ceph_sys2wire(O_CREAT);
if (flags & O_CREAT) {
if (flags & O_CREAT) {
err = ceph_mdsc_do_request(mdsc, (flags & O_CREAT) ? dir : NULL, req);
if (!err && (flags & O_CREAT) && !req->r_reply_info.head->is_dentry)
if (flags & O_CREAT)
int open_flags = O_CREAT | O_WRONLY | O_NOFOLLOW | O_LARGEFILE | O_EXCL;
flags &= ~(O_CREAT | O_EXCL | O_TRUNC);
if (!(flags & O_CREAT))
inarg.flags = open_flags & ~(O_CREAT | O_EXCL | O_NOCTTY);
return excl && (flags & O_CREAT) ? -EEXIST : 0;
if (!(flags & O_CREAT))
fd = open64(name, O_CREAT | O_RDWR, mode);
if (open_flag & O_CREAT)
if (open_flag & O_CREAT) {
open_flag &= ~O_CREAT;
if (!dentry->d_inode && (open_flag & O_CREAT)) {
if (open_flag & O_CREAT) {
if (open_flag & O_CREAT) {
if (!(open_flag & O_CREAT)) {
if (open_flag & (O_CREAT | O_TRUNC | O_WRONLY | O_RDWR)) {
if (open_flag & O_CREAT)
if (open_flag & O_CREAT)
if (open_flag & O_CREAT) {
flags &= ~O_CREAT;
if (open_flags & O_CREAT) {
if (!(open_flags & O_CREAT) && !d_in_lookup(dentry)) {
if (open_flags & O_CREAT) {
open_flags |= O_CREAT;
openflags &= ~(O_CREAT|O_EXCL);
if (flags & O_CREAT) {
!(o_arg->open_flags & O_CREAT))
if (o_arg->open_flags & O_CREAT) {
if ((opendata->o_arg.open_flags & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) &&
switch (arg->open_flags & O_CREAT) {
oflags = O_CREAT | O_LARGEFILE;
#define WILL_CREATE(flags) (flags & (O_CREAT | __O_TMPFILE))
if ((flags & (O_DIRECTORY | O_CREAT)) == (O_DIRECTORY | O_CREAT))
if (flags & O_CREAT) {
if (flags & (O_TRUNC | O_CREAT | __O_TMPFILE))
int flags = O_CREAT | O_WRONLY | O_TRUNC;
f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);
file->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);
if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC))
else if ((oflags & O_CREAT) == O_CREAT)
if (!(oflags & O_CREAT)) {
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_CREAT) {
if ((flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
else if ((flags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC))
else if ((flags & O_CREAT) == O_CREAT)
oflags |= O_CREAT;
oflags &= ~O_CREAT;
if (!(open_flags & O_CREAT))
if (open_flags & (O_CREAT | O_TRUNC)) {
} else if (open_flags & O_CREAT) {
if (!(flags & O_CREAT))
if (file->f_flags & O_CREAT) {
(O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
{ O_CREAT, "O_CREAT" }, \
#ifndef O_CREAT
int openflags = O_WRONLY|O_CREAT|O_LARGEFILE;
file = filp_open("/initrd.image", O_WRONLY|O_CREAT|O_LARGEFILE, 0700);
return open->how.flags & (O_TRUNC | O_CREAT | __O_TMPFILE);
if (u_attr && oflag & O_CREAT) {
if (!(oflag & O_CREAT))
if ((oflag & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL))
{ O_CREAT, "O_CREAT" },
if (!(bits & (O_CREAT|O_TMPFILE)))
"{ 0x%x, \"O_CREAT\" }, ", O_CREAT);
fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);
fd = open(depfile_path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
fd_map = open(tmp_file, O_WRONLY | O_TRUNC | O_CREAT, sb.st_mode);
if (flags & O_CREAT)
O_TRUNC | O_CREAT | O_NOCTTY | O_EXCL);
fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC,
fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
ofd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE);
fd = open(filepath, O_WRONLY | O_CREAT | O_TRUNC, 0600);
outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644);
O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744);
fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0644 /* rw-r--r-- */);
if (flags & O_CREAT) {
if (flags & O_CREAT) {
flags = O_WRONLY | O_CREAT | O_TRUNC;
flags = O_WRONLY | O_CREAT | O_APPEND;
linker->fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, 0644);
dst_fd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, 0400);
fd = open(path, O_RDWR|O_CREAT|O_CLOEXEC, 0640);
fd = open("output", O_RDWR|O_CREAT|O_TRUNC, 0644);
fd = open(SESSION_OUTPUT, O_RDWR|O_CREAT|O_TRUNC, 0644);
fd = open(dump_path, O_CREAT|O_TRUNC|O_RDWR, 0666);
file = openat(hwmon_dirfd, "name", O_WRONLY | O_CREAT, 0600);
file = openat(hwmon_dirfd, item->name, O_WRONLY | O_CREAT, 0600);
fd = open(buf, O_RDWR | O_CREAT, 0600);
file = openat(dirfd, name, O_WRONLY | O_CREAT, 0600);
file = openat(dirfd, "perf-pmu-test/events/test-event", O_WRONLY | O_CREAT, 0600);
file = openat(dirfd, "perf-pmu-test/type", O_WRONLY | O_CREAT, 0600);
if (!(flags & O_CREAT))
fd = open(output_name, O_CREAT | O_WRONLY | (opts->force ? O_TRUNC : O_EXCL), 0666);
int fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC, S_IRUSR|S_IWUSR);
ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR);
fd = open(filename, O_CREAT|O_TRUNC|O_WRONLY, 0644);
fd = open(cpath, O_CREAT | O_RDWR, 0644);
kcore->fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0400);
sem_open(semaphore_name, O_EXCL | O_CREAT, 0755,
pid_file_handle = open(pidfile, O_RDWR | O_CREAT, 0600);
out_fd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC, 0666);
fd = shm_open("/tmp_shmem", O_CREAT | O_RDWR, 0644);
fd = open(path, O_CREAT | O_RDWR, 0644);
tmp_fd = open(TMP_FILE, O_RDONLY | O_CREAT);
localfd = open("/tmp/d_path_loadgen.txt", O_CREAT | O_RDONLY, 0644);
fd = open(testfile, O_CREAT | O_RDONLY, 0644);
fd = open(testfile, O_CREAT | O_RDWR, 0644);
fd = open(testfile, O_CREAT | O_RDONLY, 0644);
fd = shm_open(filename, O_CREAT | O_RDWR, 0600);
fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0666);
false, 4, O_CREAT | O_RDWR, 0600) == KSFT_PASS)
true, 4, O_CREAT | O_RDWR, 0600)) {
int to = open(toname, O_CREAT | O_WRONLY | O_EXCL, 0700);
fd = open(path, O_CREAT | O_RDONLY | O_CLOEXEC, 0600);
fd = open(path, O_RDWR | O_CREAT, 0600);
fd = open(path, O_WRONLY | O_CREAT, 0600);
int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755);
fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755);
ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644);
int fd = open("/tmp/aa", O_RDWR | O_CREAT | O_EXCL, 0600);
fd = open(path, O_CREAT | O_RDONLY | O_CLOEXEC, 0644);
fd = openat(ovl, "test", O_RDWR | O_CREAT, 0644);
fd = open(fw_path, O_WRONLY | O_CREAT, 0600);
fd = open(SHM_PATH, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644);
sem = sem_open("vm_sem", O_CREAT | O_EXCL, 0644, 0);
fd = openat(curr, "file.txt", O_CREAT | O_TRUNC | O_WRONLY,
O_RDWR | O_CREAT | O_TRUNC,
O_RDWR | O_CREAT | O_TRUNC,
filed = open(file, O_RDWR|O_CREAT, 0664);
fd = open(finfo.path, O_DSYNC | O_CREAT | O_RDWR | O_TRUNC | O_EXCL,
fd = open(fname, O_RDWR | O_CREAT, 0664);
fd = open(probe_file, O_RDWR|O_CREAT, 0600);
fd = open(__FILE__".tmp2", O_RDWR | O_CREAT, 0666);
fd = open(__FILE__".tmp0", O_RDWR | O_CREAT, 0777);
shm_fd = shm_open(data->filename, O_CREAT | O_RDWR, 0666);
fd = open(data->filename, O_CREAT | O_RDWR | O_EXCL, 0666);
test_fd = open(fname, O_RDWR | O_CREAT, 0664);
fd = open(testfile, O_CREAT|O_RDWR, 0664);
*fd = open(testfile, O_CREAT | O_RDWR, 0664);
fd = open(path, O_CREAT | O_RDWR, 0777);
img_fd = openat(-EBADF, "/mnt/C/ext4.img", O_CREAT | O_WRONLY, 0600);
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;
outfile_fd = open(cfg_outfile, O_WRONLY | O_CREAT, 0644);
mq_fd = syscall(__NR_mq_open, "sed", O_CREAT | O_WRONLY, 0600, 0);
int fd = openat(dfd, path, O_CREAT, 0700);
.how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL },
.how.flags = O_PATH | O_CREAT, .err = -EINVAL },
.how.flags = O_CREAT, .how.mode = 0600 },
.how.flags = O_CREAT,
.how.flags = O_CREAT,
.how.flags = O_CREAT,
path = (test->how.flags & O_CREAT) ? "/tmp/ksft.openat2_tmpfile" : ".";
if (test->how.flags & O_CREAT)
fdflags |= O_CREAT;
.path = "newfile1", .how.flags = O_CREAT,
.path = "/newfile2", .how.flags = O_CREAT,
.path = "/creatlink", .how.flags = O_CREAT,
if (!(test->how.flags & O_CREAT))
{ O_CREAT, "O_CREAT" },
{ O_CREAT, "O_CREAT" },
fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
int fd = open(path, O_WRONLY|O_CREAT|O_CLOEXEC, 0644);
q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL);
fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU);
fd = open("/tmp/vringh_test-file", O_RDWR|O_CREAT|O_TRUNC, 0600);
O_WRONLY | O_CREAT | O_LARGEFILE | O_TRUNC,