Symbol: O_CREAT
arch/alpha/boot/tools/objstrip.c
99
ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666);
arch/arm/vdso/vdsomunge.c
179
outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
arch/mips/boot/elf2ecoff.c
507
if ((outfile = open(argv[2], O_WRONLY | O_CREAT, 0777)) < 0) {
arch/powerpc/boot/mktree.c
87
if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) {
arch/um/os-Linux/file.c
180
f |= O_CREAT;
arch/um/os-Linux/umid.c
222
fd = open(file, O_RDWR | O_CREAT | O_EXCL, 0644);
drivers/block/zloop.c
1079
oflags |= O_CREAT;
drivers/crypto/ccp/sev-dev.c
332
fp = open_file_as_root(init_ex_path, O_CREAT | O_WRONLY, 0600);
drivers/infiniband/core/uverbs_cmd.c
591
if (!xrcd && !(cmd.oflags & O_CREAT)) {
drivers/mtd/nand/raw/nandsim.c
542
cfile = filp_open(cache_file, O_CREAT | O_RDWR | O_LARGEFILE, 0600);
drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c
132
O_CREAT | O_NONBLOCK | O_RDWR, /*mode*/0, DB_HASH,
drivers/target/target_core_alua.c
859
struct file *file = filp_open(path, O_RDWR | O_CREAT | O_TRUNC, 0600);
drivers/target/target_core_file.c
124
flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC;
drivers/target/target_core_file.c
829
int ret, flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC;
drivers/target/target_core_pr.c
1961
int flags = O_RDWR | O_CREAT | O_TRUNC;
fs/9p/vfs_inode.c
787
if (!(flags & O_CREAT))
fs/9p/vfs_inode_dotl.c
169
{ O_CREAT, P9_DOTL_CREATE },
fs/9p/vfs_inode_dotl.c
249
if (!(flags & O_CREAT))
fs/ceph/file.c
204
int op = (flags & O_CREAT) ? CEPH_MDS_OP_CREATE : CEPH_MDS_OP_OPEN;
fs/ceph/file.c
206
if (flags & (O_WRONLY|O_RDWR|O_CREAT|O_TRUNC))
fs/ceph/file.c
400
flags = file->f_flags & ~(O_CREAT|O_EXCL);
fs/ceph/file.c
63
ceph_sys2wire(O_CREAT);
fs/ceph/file.c
857
if (flags & O_CREAT) {
fs/ceph/file.c
898
if (flags & O_CREAT) {
fs/ceph/file.c
957
err = ceph_mdsc_do_request(mdsc, (flags & O_CREAT) ? dir : NULL, req);
fs/ceph/file.c
967
if (!err && (flags & O_CREAT) && !req->r_reply_info.head->is_dentry)
fs/coda/coda_linux.c
60
if (flags & O_CREAT)
fs/coredump.c
884
int open_flags = O_CREAT | O_WRONLY | O_NOFOLLOW | O_LARGEFILE | O_EXCL;
fs/fuse/dir.c
893
flags &= ~(O_CREAT | O_EXCL | O_TRUNC);
fs/fuse/dir.c
947
if (!(flags & O_CREAT))
fs/fuse/file.c
33
inarg.flags = open_flags & ~(O_CREAT | O_EXCL | O_NOCTTY);
fs/gfs2/inode.c
1396
return excl && (flags & O_CREAT) ? -EEXIST : 0;
fs/gfs2/inode.c
1401
if (!(flags & O_CREAT))
fs/hostfs/hostfs_user.c
199
fd = open64(name, O_CREAT | O_RDWR, mode);
fs/namei.c
4444
if (open_flag & O_CREAT)
fs/namei.c
4459
if (open_flag & O_CREAT) {
fs/namei.c
4470
open_flag &= ~O_CREAT;
fs/namei.c
4495
if (!dentry->d_inode && (open_flag & O_CREAT)) {
fs/namei.c
4533
if (open_flag & O_CREAT) {
fs/namei.c
4549
if (open_flag & O_CREAT) {
fs/namei.c
4586
if (!(open_flag & O_CREAT)) {
fs/namei.c
4596
if (open_flag & (O_CREAT | O_TRUNC | O_WRONLY | O_RDWR)) {
fs/namei.c
4604
if (open_flag & O_CREAT)
fs/namei.c
4615
if (open_flag & O_CREAT)
fs/namei.c
4669
if (open_flag & O_CREAT) {
fs/namei.c
5050
flags &= ~O_CREAT;
fs/nfs/dir.c
2145
if (open_flags & O_CREAT) {
fs/nfs/dir.c
2159
if (!(open_flags & O_CREAT) && !d_in_lookup(dentry)) {
fs/nfs/dir.c
2319
if (open_flags & O_CREAT) {
fs/nfs/dir.c
2406
open_flags |= O_CREAT;
fs/nfs/nfs4file.c
55
openflags &= ~(O_CREAT|O_EXCL);
fs/nfs/nfs4proc.c
1399
if (flags & O_CREAT) {
fs/nfs/nfs4proc.c
2724
!(o_arg->open_flags & O_CREAT))
fs/nfs/nfs4proc.c
2731
if (o_arg->open_flags & O_CREAT) {
fs/nfs/nfs4proc.c
3191
if ((opendata->o_arg.open_flags & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) &&
fs/nfs/nfs4xdr.c
1466
switch (arg->open_flags & O_CREAT) {
fs/nfsd/nfs4proc.c
212
oflags = O_CREAT | O_LARGEFILE;
fs/open.c
1133
#define WILL_CREATE(flags) (flags & (O_CREAT | __O_TMPFILE))
fs/open.c
1205
if ((flags & (O_DIRECTORY | O_CREAT)) == (O_DIRECTORY | O_CREAT))
fs/open.c
1272
if (flags & O_CREAT) {
fs/open.c
1299
if (flags & (O_TRUNC | O_CREAT | __O_TMPFILE))
fs/open.c
1448
int flags = O_CREAT | O_WRONLY | O_TRUNC;
fs/open.c
963
f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | __O_REGULAR);
fs/overlayfs/file.c
216
file->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);
fs/smb/client/dir.c
318
if (oflags & O_CREAT) {
fs/smb/client/dir.c
552
if (!(oflags & O_CREAT)) {
fs/smb/client/dir.c
602
if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
fs/smb/client/dir.c
660
unsigned oflags = O_EXCL | O_CREAT | O_RDWR;
fs/smb/client/file.c
1310
~(O_CREAT | O_EXCL | O_TRUNC);
fs/smb/client/file.c
2603
oflags &= ~(O_CREAT | O_EXCL | O_TRUNC);
fs/smb/client/file.c
2604
cflags &= ~(O_CREAT | O_EXCL | O_TRUNC);
fs/smb/client/file.c
451
if (flags & O_CREAT) {
fs/smb/client/file.c
477
if ((flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
fs/smb/client/file.c
479
else if ((flags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC))
fs/smb/client/file.c
481
else if ((flags & O_CREAT) == O_CREAT)
fs/smb/server/smb2pdu.c
2437
oflags |= O_CREAT;
fs/smb/server/smb2pdu.c
2441
oflags &= ~O_CREAT;
fs/smb/server/smb2pdu.c
2894
if (!(open_flags & O_CREAT))
fs/smb/server/smb2pdu.c
3634
if (open_flags & (O_CREAT | O_TRUNC)) {
fs/smb/server/smb2pdu.c
3718
} else if (open_flags & O_CREAT) {
fs/vboxsf/dir.c
328
if (!(flags & O_CREAT))
fs/vboxsf/file.c
66
if (file->f_flags & O_CREAT) {
include/linux/fcntl.h
11
(O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
include/trace/misc/fs.h
28
{ O_CREAT, "O_CREAT" }, \
include/uapi/asm-generic/fcntl.h
26
#ifndef O_CREAT
init/initramfs.c
390
int openflags = O_WRONLY|O_CREAT|O_LARGEFILE;
init/initramfs.c
706
file = filp_open("/initrd.image", O_WRONLY|O_CREAT|O_LARGEFILE, 0700);
io_uring/openclose.c
50
return open->how.flags & (O_TRUNC | O_CREAT | __O_TMPFILE);
ipc/mqueue.c
1498
if (u_attr && oflag & O_CREAT) {
ipc/mqueue.c
870
if (!(oflag & O_CREAT))
ipc/mqueue.c
880
if ((oflag & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL))
kernel/trace/trace_syscalls.c
164
{ O_CREAT, "O_CREAT" },
kernel/trace/trace_syscalls.c
196
if (!(bits & (O_CREAT|O_TMPFILE)))
kernel/trace/trace_syscalls.c
408
"{ 0x%x, \"O_CREAT\" }, ", O_CREAT);
scripts/dtc/util.c
327
fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);
scripts/kconfig/confdata.c
145
fd = open(depfile_path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
scripts/recordmcount.c
344
fd_map = open(tmp_file, O_WRONLY | O_TRUNC | O_CREAT, sb.st_mode);
security/apparmor/include/file.h
127
if (flags & O_CREAT)
security/integrity/ima/ima_crypto.c
267
O_TRUNC | O_CREAT | O_NOCTTY | O_EXCL);
tools/accounting/getdelays.c
581
fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC,
tools/accounting/procacct.c
347
fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
tools/bpf/bpf_jit_disasm.c
311
ofd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE);
tools/bpf/bpftool/prog.c
749
fd = open(filepath, O_WRONLY | O_CREAT | O_TRUNC, 0600);
tools/firmware/ihex2fw.c
120
outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644);
tools/hv/hv_fcopy_uio_daemon.c
162
O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744);
tools/hv/hv_kvp_daemon.c
277
fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0644 /* rw-r--r-- */);
tools/include/nolibc/fcntl.h
71
return open(path, O_CREAT | O_WRONLY | O_TRUNC, mode);
tools/include/nolibc/stdio.h
69
flags = O_WRONLY | O_CREAT | O_TRUNC;
tools/include/nolibc/stdio.h
72
flags = O_WRONLY | O_CREAT | O_APPEND;
tools/lib/bpf/linker.c
250
linker->fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, 0644);
tools/objtool/builtin-check.c
219
dst_fd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, 0400);
tools/perf/builtin-daemon.c
1149
fd = open(path, O_RDWR|O_CREAT|O_CLOEXEC, 0640);
tools/perf/builtin-daemon.c
1203
fd = open("output", O_RDWR|O_CREAT|O_TRUNC, 0644);
tools/perf/builtin-daemon.c
363
fd = open(SESSION_OUTPUT, O_RDWR|O_CREAT|O_TRUNC, 0644);
tools/perf/jvmti/jvmti_agent.c
284
fd = open(dump_path, O_CREAT|O_TRUNC|O_RDWR, 0666);
tools/perf/tests/builtin-test.c
1240
fd = open(junit_filename, O_CREAT | O_TRUNC | O_WRONLY | O_NOFOLLOW, 0644);
tools/perf/tests/hwmon_pmu.c
108
file = openat(hwmon_dirfd, "name", O_WRONLY | O_CREAT, 0600);
tools/perf/tests/hwmon_pmu.c
125
file = openat(hwmon_dirfd, item->name, O_WRONLY | O_CREAT, 0600);
tools/perf/tests/kallsyms-split.c
81
fd = open(buf, O_RDWR | O_CREAT, 0600);
tools/perf/tests/pmu.c
113
file = openat(dirfd, name, O_WRONLY | O_CREAT, 0600);
tools/perf/tests/pmu.c
132
file = openat(dirfd, "perf-pmu-test/events/test-event", O_WRONLY | O_CREAT, 0600);
tools/perf/tests/pmu.c
88
file = openat(dirfd, "perf-pmu-test/type", O_WRONLY | O_CREAT, 0600);
tools/perf/tests/workloads/jitdump.c
71
fd = open(filename, O_CREAT | O_EXCL | O_RDWR, 0644);
tools/perf/trace/beauty/open_flags.c
86
if (!(flags & O_CREAT))
tools/perf/util/data-convert-json.c
382
fd = open(output_name, O_CREAT | O_WRONLY | (opts->force ? O_TRUNC : O_EXCL), 0666);
tools/perf/util/data.c
304
int fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC, S_IRUSR|S_IWUSR);
tools/perf/util/data.c
75
ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR);
tools/perf/util/jitdump.c
89
fd = open(filename, O_CREAT|O_TRUNC|O_WRONLY, 0644);
tools/perf/util/probe-file.c
483
fd = open(cpath, O_CREAT | O_RDWR, 0644);
tools/perf/util/symbol-elf.c
2033
kcore->fd = open(filename, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, 0400);
tools/power/acpi/os_specific/service_layers/osunixxf.c
644
sem_open(semaphore_name, O_EXCL | O_CREAT, 0755,
tools/power/x86/intel-speed-select/isst-daemon.c
204
pid_file_handle = open(pidfile, O_RDWR | O_CREAT | O_NOFOLLOW, 0600);
tools/spi/spidev_test.c
160
out_fd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC, 0666);
tools/testing/selftests/bpf/prog_tests/cgroup_iter_memcg.c
76
fd = open(path, O_CREAT | O_RDWR, 0644);
tools/testing/selftests/bpf/prog_tests/cgroup_xattr.c
52
tmp_fd = open(TMP_FILE, O_RDONLY | O_CREAT);
tools/testing/selftests/bpf/prog_tests/d_path.c
71
localfd = open("/tmp/d_path_loadgen.txt", O_CREAT | O_RDONLY, 0644);
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
120
fd = open(testfile, O_CREAT | O_RDONLY, 0644);
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
209
fd = open(testfile, O_CREAT | O_RDWR, 0644);
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
22
fd = open(testfile, O_CREAT | O_RDONLY, 0644);
tools/testing/selftests/cachestat/test_cachestat.c
235
fd = shm_open(filename, O_CREAT | O_RDWR, 0600);
tools/testing/selftests/cachestat/test_cachestat.c
237
fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0666);
tools/testing/selftests/cachestat/test_cachestat.c
330
false, 4, O_CREAT | O_RDWR, 0600) == KSFT_PASS)
tools/testing/selftests/cachestat/test_cachestat.c
338
true, 4, O_CREAT | O_RDWR, 0600)) {
tools/testing/selftests/capabilities/test_execve.c
151
int to = open(toname, O_CREAT | O_WRONLY | O_EXCL, 0700);
tools/testing/selftests/core/close_range_test.c
649
fd = open(path, O_CREAT | O_RDONLY | O_CLOEXEC, 0600);
tools/testing/selftests/efivarfs/create-read.c
26
fd = open(path, O_RDWR | O_CREAT, 0600);
tools/testing/selftests/efivarfs/open-unlink.c
89
fd = open(path, O_WRONLY | O_CREAT, 0600);
tools/testing/selftests/exec/execveat.c
159
int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755);
tools/testing/selftests/exec/execveat.c
439
fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755);
tools/testing/selftests/fchmodat2/fchmodat2_test.c
39
ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644);
tools/testing/selftests/filelock/ofdlocks.c
39
int fd = open("/tmp/aa", O_RDWR | O_CREAT | O_EXCL, 0600);
tools/testing/selftests/filesystems/empty_mntns/clone3_empty_mntns_test.c
681
fd = open("/testfile", O_CREAT | O_RDWR, 0644);
tools/testing/selftests/filesystems/empty_mntns/empty_mntns_test.c
514
fd = open("/test", O_CREAT | O_RDWR, 0644);
tools/testing/selftests/filesystems/empty_mntns/empty_mntns_test.c
590
fd = open("/testfile", O_CREAT | O_RDWR, 0644);
tools/testing/selftests/filesystems/empty_mntns/overmount_chroot_test.c
133
fd = open("/newroot/layer_0", O_CREAT | O_RDWR, 0644);
tools/testing/selftests/filesystems/empty_mntns/overmount_chroot_test.c
154
fd = open(marker, O_CREAT | O_RDWR, 0644);
tools/testing/selftests/filesystems/file_stressor.c
127
fd = open(path, O_CREAT | O_RDONLY | O_CLOEXEC, 0644);
tools/testing/selftests/filesystems/openat2/emptypath_test.c
29
fd = open(EMPTYPATH_TEST_FILE, O_CREAT | O_WRONLY, S_IRWXU);
tools/testing/selftests/filesystems/openat2/helpers.h
67
int fd = openat(dfd, path, O_CREAT, 0700);
tools/testing/selftests/filesystems/openat2/openat2_test.c
168
.how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL },
tools/testing/selftests/filesystems/openat2/openat2_test.c
181
.how.flags = O_PATH | O_CREAT, .err = -EINVAL },
tools/testing/selftests/filesystems/openat2/openat2_test.c
197
.how.flags = O_CREAT, .how.mode = 0600 },
tools/testing/selftests/filesystems/openat2/openat2_test.c
202
.how.flags = O_CREAT,
tools/testing/selftests/filesystems/openat2/openat2_test.c
205
.how.flags = O_CREAT,
tools/testing/selftests/filesystems/openat2/openat2_test.c
225
.how.flags = O_CREAT,
tools/testing/selftests/filesystems/openat2/openat2_test.c
245
path = (test->how.flags & O_CREAT) ? "/tmp/ksft.openat2_tmpfile" : ".";
tools/testing/selftests/filesystems/openat2/openat2_test.c
279
if (test->how.flags & O_CREAT)
tools/testing/selftests/filesystems/openat2/openat2_test.c
280
fdflags |= O_CREAT;
tools/testing/selftests/filesystems/openat2/resolve_test.c
376
.path = "newfile1", .how.flags = O_CREAT,
tools/testing/selftests/filesystems/openat2/resolve_test.c
381
.path = "/newfile2", .how.flags = O_CREAT,
tools/testing/selftests/filesystems/openat2/resolve_test.c
386
.path = "/creatlink", .how.flags = O_CREAT,
tools/testing/selftests/filesystems/openat2/resolve_test.c
45
if (!(how.flags & O_CREAT))
tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c
108
fd = openat(ovl, "test", O_RDWR | O_CREAT, 0644);
tools/testing/selftests/firmware/fw_namespace.c
53
fd = open(fw_path, O_WRONLY | O_CREAT, 0600);
tools/testing/selftests/futex/functional/futex_wait.c
111
fd = open(SHM_PATH, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
tools/testing/selftests/kcmp/kcmp_test.c
42
fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644);
tools/testing/selftests/kvm/hardware_disable_test.c
156
sem = sem_open("vm_sem", O_CREAT | O_EXCL, 0644, 0);
tools/testing/selftests/landlock/fs_bench.c
189
fd = openat(curr, "file.txt", O_CREAT | O_TRUNC | O_WRONLY,
tools/testing/selftests/memfd/memfd_test.c
616
O_RDWR | O_CREAT | O_TRUNC,
tools/testing/selftests/memfd/memfd_test.c
634
O_RDWR | O_CREAT | O_TRUNC,
tools/testing/selftests/mm/gup_test.c
219
filed = open(file, O_RDWR|O_CREAT, 0664);
tools/testing/selftests/mm/khugepaged.c
329
fd = open(finfo.path, O_CREAT | O_RDWR | O_TRUNC | O_EXCL,
tools/testing/selftests/mm/memory-failure.c
254
fd = open(fname, O_RDWR | O_CREAT, 0664);
tools/testing/selftests/mm/merge.c
536
fd = open(probe_file, O_RDWR|O_CREAT, 0600);
tools/testing/selftests/mm/pagemap_ioctl.c
1239
fd = open(__FILE__".tmp2", O_RDWR | O_CREAT, 0666);
tools/testing/selftests/mm/pagemap_ioctl.c
1713
fd = open(__FILE__".tmp0", O_RDWR | O_CREAT, 0777);
tools/testing/selftests/mm/rmap.c
334
shm_fd = shm_open(data->filename, O_CREAT | O_RDWR, 0666);
tools/testing/selftests/mm/rmap.c
359
fd = open(data->filename, O_CREAT | O_RDWR | O_EXCL, 0666);
tools/testing/selftests/mm/soft-dirty.c
149
test_fd = open(fname, O_RDWR | O_CREAT, 0664);
tools/testing/selftests/mm/split_huge_page_test.c
511
fd = open(testfile, O_CREAT|O_RDWR, 0664);
tools/testing/selftests/mm/split_huge_page_test.c
618
*fd = open(testfile, O_CREAT | O_RDWR, 0664);
tools/testing/selftests/mm/write_to_hugetlbfs.c
172
fd = open(path, O_CREAT | O_RDWR, 0777);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1046
img_fd = openat(-EBADF, "/mnt/C/ext4.img", O_CREAT | O_WRONLY, 0600);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
626
fd = open("/mnt/A/AA/B/b", O_RDWR | O_CLOEXEC | O_CREAT | O_EXCL, 0777);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
675
fd = open("/mnt/A/AA/B/b", O_RDWR | O_CLOEXEC | O_CREAT | O_EXCL, 0777);
tools/testing/selftests/mqueue/mq_open_tests.c
202
int flags = O_RDWR | O_EXCL | O_CREAT;
tools/testing/selftests/mqueue/mq_open_tests.c
224
int flags = O_RDWR | O_EXCL | O_CREAT;
tools/testing/selftests/mqueue/mq_perf_tests.c
294
int flags = O_RDWR | O_EXCL | O_CREAT | O_NONBLOCK;
tools/testing/selftests/net/busy_poller.c
282
outfile_fd = open(cfg_outfile, O_WRONLY | O_CREAT, 0644);
tools/testing/selftests/net/netlink-dumps.c
247
mq_fd = syscall(__NR_mq_open, "sed", O_CREAT | O_WRONLY, 0600, 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
398
{ O_CREAT, "O_CREAT" },
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
400
{ O_CREAT, "O_CREAT" },
tools/testing/selftests/powerpc/utils.c
132
fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
tools/testing/selftests/proc/proc-pidns.c
34
int fd = open(path, O_WRONLY|O_CREAT|O_CLOEXEC, 0644);
tools/testing/selftests/timers/mqueue-lat.c
66
q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL);
tools/usb/usbip/src/usbip_attach.c
63
fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU);
tools/virtio/vringh_test.c
149
fd = open("/tmp/vringh_test-file", O_RDWR|O_CREAT|O_TRUNC, 0600);
usr/gen_init_cpio.c
677
O_WRONLY | O_CREAT | O_LARGEFILE | O_TRUNC,