Home
last modified time | relevance | path

Searched refs:O_CREAT (Results 1 – 25 of 118) sorted by relevance

12345

/linux-6.15/tools/testing/selftests/openat2/
H A Dopenat2_test.c172 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
185 .how.flags = O_PATH | O_CREAT, .err = -EINVAL }, in test_openat2_flags()
201 .how.flags = O_CREAT, .how.mode = 0600 }, in test_openat2_flags()
206 .how.flags = O_CREAT, in test_openat2_flags()
209 .how.flags = O_CREAT, in test_openat2_flags()
229 .how.flags = O_CREAT, in test_openat2_flags()
259 path = (test->how.flags & O_CREAT) ? "/tmp/ksft.openat2_tmpfile" : "."; in test_openat2_flags()
292 if (test->how.flags & O_CREAT) in test_openat2_flags()
293 fdflags |= O_CREAT; in test_openat2_flags()
H A Dresolve_test.c286 .path = "newfile1", .how.flags = O_CREAT, in test_openat2_opath_tests()
291 .path = "/newfile2", .how.flags = O_CREAT, in test_openat2_opath_tests()
296 .path = "/creatlink", .how.flags = O_CREAT, in test_openat2_opath_tests()
455 if (!(test->how.flags & O_CREAT)) in test_openat2_opath_tests()
H A Dhelpers.c49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
/linux-6.15/fs/smb/client/
H A Ddir.c288 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
290 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC))
292 else if ((oflags & O_CREAT) == O_CREAT)
461 if (!(oflags & O_CREAT)) {
509 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
560 unsigned oflags = O_EXCL | O_CREAT | O_RDWR;
/linux-6.15/include/uapi/asm-generic/
H A Dfcntl.h22 #ifndef O_CREAT
23 #define O_CREAT 00000100 /* not fcntl */ macro
/linux-6.15/tools/testing/selftests/cachestat/
H A Dtest_cachestat.c216 int fd = shm_open(filename, O_CREAT | O_RDWR, 0600); in test_cachestat_shmem()
290 false, 4, O_CREAT | O_RDWR, 0600) == KSFT_PASS) in main()
298 true, 4, O_CREAT | O_RDWR, 0600)) { in main()
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dfs_kfuncs.c22 fd = open(testfile, O_CREAT | O_RDONLY, 0644); in test_get_xattr()
120 fd = open(testfile, O_CREAT | O_RDONLY, 0644); in test_set_remove_xattr()
209 fd = open(testfile, O_CREAT | O_RDWR, 0644); in test_fsverity()
/linux-6.15/arch/parisc/include/uapi/asm/
H A Dfcntl.h6 #define O_CREAT 000000400 /* not fcntl */ macro
/linux-6.15/arch/mips/include/uapi/asm/
H A Dfcntl.h17 #define O_CREAT 0x0100 /* not fcntl */ macro
/linux-6.15/arch/alpha/include/uapi/asm/
H A Dfcntl.h5 #define O_CREAT 01000 /* not fcntl */ macro
/linux-6.15/tools/testing/selftests/efivarfs/
H A Dcreate-read.c26 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
H A Dopen-unlink.c89 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
/linux-6.15/arch/sparc/include/uapi/asm/
H A Dfcntl.h7 #define O_CREAT 0x0200 /* not fcntl */ macro
/linux-6.15/rust/kernel/fs/
H A Dfile.rs30 pub const O_CREAT: u32 = bindings::O_CREAT; constant
/linux-6.15/tools/perf/tests/
H A Dpmu.c88 file = openat(dirfd, "perf-pmu-test/type", O_WRONLY | O_CREAT, 0600); in test_pmu_get()
113 file = openat(dirfd, name, O_WRONLY | O_CREAT, 0600); in test_pmu_get()
132 file = openat(dirfd, "perf-pmu-test/events/test-event", O_WRONLY | O_CREAT, 0600); in test_pmu_get()
H A Dhwmon_pmu.c101 file = openat(hwmon_dirfd, "name", O_WRONLY | O_CREAT, 0600); in test_pmu_get()
118 file = openat(hwmon_dirfd, item->name, O_WRONLY | O_CREAT, 0600); in test_pmu_get()
/linux-6.15/include/linux/
H A Dfcntl.h10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/linux-6.15/tools/testing/selftests/timers/
H A Dmqueue-lat.c66 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()
/linux-6.15/include/trace/misc/
H A Dfs.h28 { O_CREAT, "O_CREAT" }, \
/linux-6.15/tools/perf/trace/beauty/
H A Dopen_flags.c84 if (!(flags & O_CREAT)) in syscall_arg__scnprintf_open_flags()
/linux-6.15/fs/
H A Dopen.c972 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC); in do_dentry_open()
1211 #define WILL_CREATE(flags) (flags & (O_CREAT | __O_TMPFILE))
1275 if ((flags & (O_DIRECTORY | O_CREAT)) == (O_DIRECTORY | O_CREAT)) in build_open_flags()
1321 if (flags & O_CREAT) { in build_open_flags()
1346 if (flags & (O_TRUNC | O_CREAT | __O_TMPFILE)) in build_open_flags()
1518 int flags = O_CREAT | O_WRONLY | O_TRUNC; in SYSCALL_DEFINE2()
/linux-6.15/tools/testing/selftests/fchmodat2/
H A Dfchmodat2_test.c32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
/linux-6.15/tools/testing/selftests/mqueue/
H A Dmq_open_tests.c202 int flags = O_RDWR | O_EXCL | O_CREAT; in test_queue()
224 int flags = O_RDWR | O_EXCL | O_CREAT; in test_queue_fail()
/linux-6.15/tools/testing/selftests/filelock/
H A Dofdlocks.c39 int fd = open("/tmp/aa", O_RDWR | O_CREAT | O_EXCL, 0600); in main()
/linux-6.15/arch/powerpc/boot/
H A Dmktree.c87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()

12345