Home
last modified time | relevance | path

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

12345

/linux/tools/testing/selftests/openat2/
H A Dopenat2_test.c
H A Dresolve_test.c
H A Dhelpers.c
/linux/tools/testing/selftests/cachestat/
H A Dtest_cachestat.c235 fd = shm_open(filename, O_CREAT | O_RDWR, 0600); in run_cachestat_test()
237 fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0666); in run_cachestat_test()
330 false, 4, O_CREAT | O_RDWR, 0600) == KSFT_PASS) in main()
338 true, 4, O_CREAT | O_RDWR, 0600)) { in main()
/linux/tools/include/nolibc/
H A Dfcntl.h71 return open(path, O_CREAT | O_WRONLY | O_TRUNC, mode);
/linux/tools/include/uapi/asm-generic/
H A Dfcntl.h
/linux/include/uapi/asm-generic/
H A Dfcntl.h26 #ifndef O_CREAT
27 #define O_CREAT (1 << 6) /* not fcntl */
23 #define O_CREAT global() macro
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfs_kfuncs.c22 fd = open(testfile, O_CREAT | O_RDONLY, 0644); in test_xattr()
120 fd = open(testfile, O_CREAT | O_RDONLY, 0644); in test_fsverity()
209 fd = open(testfile, O_CREAT | O_RDWR, 0644);
H A Dcgroup_xattr.c52 tmp_fd = open(TMP_FILE, O_RDONLY | O_CREAT); in test_read_cgroup_xattr()
/linux/rust/kernel/fs/
H A Dfile.rs37 pub const O_CREAT: u32 = bindings::O_CREAT; constant
/linux/arch/parisc/include/uapi/asm/
H A Dfcntl.h6 #define O_CREAT (1 << 8) /* not fcntl */ macro
/linux/arch/mips/include/uapi/asm/
H A Dfcntl.h17 #define O_CREAT (1 << 8) /* not fcntl */ macro
/linux/arch/alpha/include/uapi/asm/
H A Dfcntl.h5 #define O_CREAT (1 << 9) /* not fcntl */ macro
/linux/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/arch/sparc/include/uapi/asm/
H A Dfcntl.h7 #define O_CREAT (1 << 9) /* not fcntl */ macro
/linux/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.c108 file = openat(hwmon_dirfd, "name", O_WRONLY | O_CREAT, 0600); in test_pmu_get()
125 file = openat(hwmon_dirfd, item->name, O_WRONLY | O_CREAT, 0600); in test_pmu_get()
/linux/include/linux/
H A Dfcntl.h11 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/linux/tools/testing/selftests/timers/
H A Dmqueue-lat.c66 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()
/linux/tools/perf/trace/beauty/
H A Dopen_flags.c86 if (!(flags & O_CREAT)) in syscall_arg__scnprintf_open_flags()
/linux/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/tools/testing/selftests/mm/
H A Drmap.c334 shm_fd = shm_open(data->filename, O_CREAT | O_RDWR, 0666); in TEST_F()
359 fd = open(data->filename, O_CREAT | O_RDWR | O_EXCL, 0666); in TEST_F()
/linux/tools/testing/selftests/fchmodat2/
H A Dfchmodat2_test.c39 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
/linux/fs/smb/client/
H A Ddir.c318 if (oflags & O_CREAT) {
552 if (!(oflags & O_CREAT)) {
602 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
660 unsigned oflags = O_EXCL | O_CREAT | O_RDWR;

12345