/linux/tools/testing/selftests/openat2/ |
H A D | openat2_test.c | 172 .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 D | resolve_test.c | 286 .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 D | helpers.c | 49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
|
/linux/fs/smb/client/ |
H A D | dir.c | 288 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/tools/testing/selftests/cachestat/ |
H A D | test_cachestat.c | 216 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/tools/include/uapi/asm-generic/ |
H A D | fcntl.h |
|
/linux/include/uapi/asm-generic/ |
H A D | fcntl.h | 23 #ifndef O_CREAT 24 #define O_CREAT 00000100 /* not fcntl */ macro
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | fs_kfuncs.c | 21 fd = open(testfile, O_CREAT | O_RDONLY, 0644); in test_xattr() 80 fd = open(testfile, O_CREAT | O_RDWR, 0644); in test_fsverity()
|
/linux/arch/parisc/include/uapi/asm/ |
H A D | fcntl.h | 6 #define O_CREAT 000000400 /* not fcntl */ macro
|
/linux/arch/mips/include/uapi/asm/ |
H A D | fcntl.h | 17 #define O_CREAT 0x0100 /* not fcntl */ macro
|
/linux/tools/perf/tests/ |
H A D | pmu.c | 88 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()
|
/linux/arch/alpha/include/uapi/asm/ |
H A D | fcntl.h | 5 #define O_CREAT 01000 /* not fcntl */ macro
|
/linux/tools/testing/selftests/efivarfs/ |
H A D | create-read.c | 26 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
|
H A D | open-unlink.c | 89 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
|
/linux/arch/sparc/include/uapi/asm/ |
H A D | fcntl.h | 7 #define O_CREAT 0x0200 /* not fcntl */ macro
|
/linux/include/linux/ |
H A D | fcntl.h | 10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
|
/linux/tools/testing/selftests/timers/ |
H A D | mqueue-lat.c | 66 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()
|
/linux/include/trace/misc/ |
H A D | fs.h | 28 { O_CREAT, "O_CREAT" }, \
|
/linux/tools/testing/selftests/mqueue/ |
H A D | mq_open_tests.c | 202 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/perf/trace/beauty/ |
H A D | open_flags.c | 84 if (!(flags & O_CREAT)) in syscall_arg__scnprintf_open_flags()
|
/linux/tools/testing/selftests/fchmodat2/ |
H A D | fchmodat2_test.c | 32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
|
/linux/tools/testing/selftests/firmware/ |
H A D | fw_namespace.c | 53 fd = open(fw_path, O_WRONLY | O_CREAT, 0600); in setup_fw()
|
/linux/arch/powerpc/boot/ |
H A D | mktree.c | 87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
|
/linux/tools/objtool/ |
H A D | objtool.c | 38 d = open(name, O_CREAT|O_WRONLY|O_TRUNC, 0644); in objtool_create_backup()
|
/linux/security/apparmor/include/ |
H A D | file.h | 122 if (flags & O_CREAT) in aa_map_file_to_perms()
|