/linux/tools/testing/selftests/openat2/ |
A D | openat2_test.c | 171 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 184 .how.flags = O_PATH | O_CREAT, .err = -EINVAL }, in test_openat2_flags() 200 .how.flags = O_CREAT, .how.mode = 0600 }, in test_openat2_flags() 205 .how.flags = O_CREAT, in test_openat2_flags() 208 .how.flags = O_CREAT, in test_openat2_flags() 228 .how.flags = O_CREAT, in test_openat2_flags() 258 path = (test->how.flags & O_CREAT) ? "/tmp/ksft.openat2_tmpfile" : "."; in test_openat2_flags() 281 if (test->how.flags & O_CREAT) in test_openat2_flags() 282 fdflags |= O_CREAT; in test_openat2_flags()
|
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()
|
A D | helpers.c | 49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
|
/linux/tools/include/uapi/asm-generic/ |
A 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/include/uapi/asm-generic/ |
A 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/fs/cifs/ |
A D | dir.c | 271 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in cifs_do_create() 273 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) in cifs_do_create() 275 else if ((oflags & O_CREAT) == O_CREAT) in cifs_do_create() 436 if (!(oflags & O_CREAT)) { in cifs_atomic_open() 485 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in cifs_atomic_open() 531 unsigned oflags = O_EXCL | O_CREAT | O_RDWR; in cifs_create()
|
/linux/arch/parisc/include/uapi/asm/ |
A D | fcntl.h | 6 #define O_CREAT 000000400 /* not fcntl */ macro
|
/linux/tools/testing/selftests/efivarfs/ |
A D | create-read.c | 26 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
|
A D | open-unlink.c | 89 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
|
/linux/arch/alpha/include/uapi/asm/ |
A D | fcntl.h | 5 #define O_CREAT 01000 /* not fcntl */ macro
|
/linux/arch/sparc/include/uapi/asm/ |
A D | fcntl.h | 7 #define O_CREAT 0x0200 /* not fcntl */ macro
|
/linux/arch/mips/include/uapi/asm/ |
A D | fcntl.h | 17 #define O_CREAT 0x0100 /* not fcntl */ macro
|
/linux/tools/testing/selftests/vm/ |
A D | hugepage-mmap.c | 70 fd = open(FILE_NAME, O_CREAT | O_RDWR, 0755); in main()
|
A D | hugepage-mremap.c | 106 int fd = open("/huge/test", O_CREAT | O_RDWR, 0755); in main()
|
/linux/include/linux/ |
A D | fcntl.h | 10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
|
/linux/tools/testing/selftests/timers/ |
A D | mqueue-lat.c | 66 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()
|
/linux/include/trace/events/ |
A D | fs.h | 28 { O_CREAT, "O_CREAT" }, \
|
/linux/tools/testing/selftests/mqueue/ |
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/ |
A D | open_flags.c | 84 if (!(flags & O_CREAT)) in syscall_arg__scnprintf_open_flags()
|
/linux/tools/testing/selftests/exec/ |
A 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/tools/testing/selftests/firmware/ |
A D | fw_namespace.c | 57 fd = open(fw_path, O_WRONLY | O_CREAT, 0600); in setup_fw()
|
/linux/arch/powerpc/boot/ |
A D | mktree.c | 87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
|
/linux/fs/ |
A D | open.c | 837 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC); in do_dentry_open() 1001 #define WILL_CREATE(flags) (flags & (O_CREAT | __O_TMPFILE)) 1105 if (flags & O_CREAT) { in build_open_flags() 1130 if (flags & (O_TRUNC | O_CREAT | O_TMPFILE)) in build_open_flags() 1300 int flags = O_CREAT | O_WRONLY | O_TRUNC; in SYSCALL_DEFINE2()
|
/linux/tools/testing/selftests/kcmp/ |
A D | kcmp_test.c | 42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
|
/linux/tools/include/nolibc/ |
A D | nolibc.h | 421 #define O_CREAT 0x40 macro 601 #define O_CREAT 0x40 macro 786 #define O_CREAT 0x40 macro 983 #define O_CREAT 0x40 macro 1191 #define O_CREAT 0x0100 macro 1386 #define O_CREAT 0x100 macro
|