/Linux-v5.10/tools/testing/selftests/openat2/ |
D | openat2_test.c | 167 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 180 .how.flags = O_PATH | O_CREAT, .err = -EINVAL }, in test_openat2_flags() 196 .how.flags = O_CREAT, .how.mode = 0600 }, in test_openat2_flags() 201 .how.flags = O_CREAT, in test_openat2_flags() 204 .how.flags = O_CREAT, in test_openat2_flags() 218 .how.flags = O_CREAT, in test_openat2_flags() 243 path = (test->how.flags & O_CREAT) ? "/tmp/ksft.openat2_tmpfile" : "."; in test_openat2_flags() 266 if (test->how.flags & O_CREAT) in test_openat2_flags() 267 fdflags |= O_CREAT; in test_openat2_flags()
|
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()
|
D | helpers.c | 49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
|
/Linux-v5.10/tools/include/uapi/asm-generic/ |
D | fcntl.h | 22 #ifndef O_CREAT 23 #define O_CREAT 00000100 /* not fcntl */ macro 93 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
|
/Linux-v5.10/include/uapi/asm-generic/ |
D | fcntl.h | 23 #ifndef O_CREAT 24 #define O_CREAT 00000100 /* not fcntl */ macro 94 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
|
/Linux-v5.10/fs/cifs/ |
D | dir.c | 326 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in cifs_do_create() 328 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) in cifs_do_create() 330 else if ((oflags & O_CREAT) == O_CREAT) in cifs_do_create() 486 if (!(oflags & O_CREAT)) { in cifs_atomic_open() 535 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in cifs_atomic_open() 581 unsigned oflags = O_EXCL | O_CREAT | O_RDWR; in cifs_create()
|
/Linux-v5.10/arch/parisc/include/uapi/asm/ |
D | fcntl.h | 6 #define O_CREAT 000000400 /* not fcntl */ macro
|
/Linux-v5.10/tools/testing/selftests/efivarfs/ |
D | create-read.c | 26 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
|
D | open-unlink.c | 89 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
|
/Linux-v5.10/arch/alpha/include/uapi/asm/ |
D | fcntl.h | 5 #define O_CREAT 01000 /* not fcntl */ macro
|
/Linux-v5.10/arch/sparc/include/uapi/asm/ |
D | fcntl.h | 7 #define O_CREAT 0x0200 /* not fcntl */ macro
|
/Linux-v5.10/arch/mips/include/uapi/asm/ |
D | fcntl.h | 17 #define O_CREAT 0x0100 /* not fcntl */ macro
|
/Linux-v5.10/tools/testing/selftests/vm/ |
D | hugepage-mmap.c | 70 fd = open(FILE_NAME, O_CREAT | O_RDWR, 0755); in main()
|
D | gup_benchmark.c | 97 filed = open(file, O_RDWR|O_CREAT); in main()
|
D | write_to_hugetlbfs.c | 167 fd = open(path, O_CREAT | O_RDWR, 0777); in main()
|
/Linux-v5.10/include/linux/ |
D | fcntl.h | 10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
|
/Linux-v5.10/tools/testing/selftests/timers/ |
D | mqueue-lat.c | 66 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()
|
/Linux-v5.10/tools/perf/trace/beauty/ |
D | open_flags.c | 84 if (!(flags & O_CREAT)) in syscall_arg__scnprintf_open_flags()
|
/Linux-v5.10/tools/testing/selftests/mqueue/ |
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-v5.10/arch/powerpc/boot/ |
D | mktree.c | 87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
|
/Linux-v5.10/tools/testing/selftests/firmware/ |
D | fw_namespace.c | 57 fd = open(fw_path, O_WRONLY | O_CREAT, 0600); in setup_fw()
|
/Linux-v5.10/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
|
/Linux-v5.10/tools/testing/selftests/exec/ |
D | execveat.c | 143 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); in exe_cp() 390 fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755); in prerequisites()
|
/Linux-v5.10/tools/perf/util/ |
D | data.c | 57 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); in perf_data__create_dir() 273 fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC, in open_file_write()
|
/Linux-v5.10/tools/include/nolibc/ |
D | nolibc.h | 444 #define O_CREAT 0x40 macro 624 #define O_CREAT 0x40 macro 809 #define O_CREAT 0x40 macro 1006 #define O_CREAT 0x40 macro 1214 #define O_CREAT 0x0100 macro 1409 #define O_CREAT 0x100 macro
|