| /Linux-v6.6/tools/testing/selftests/openat2/ |
| 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() 291 if (test->how.flags & O_CREAT) in test_openat2_flags() 292 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-v6.6/fs/smb/client/ |
| D | dir.c | 281 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) 283 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) 285 else if ((oflags & O_CREAT) == O_CREAT) 446 if (!(oflags & O_CREAT)) { 494 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) 545 unsigned oflags = O_EXCL | O_CREAT | O_RDWR;
|
| /Linux-v6.6/tools/include/uapi/asm-generic/ |
| D | fcntl.h | 23 #ifndef O_CREAT 24 #define O_CREAT 00000100 /* not fcntl */ macro
|
| /Linux-v6.6/include/uapi/asm-generic/ |
| D | fcntl.h | 23 #ifndef O_CREAT 24 #define O_CREAT 00000100 /* not fcntl */ macro
|
| /Linux-v6.6/tools/testing/selftests/cachestat/ |
| D | test_cachestat.c | 215 int fd = shm_open(filename, O_CREAT | O_RDWR, 0600); in test_cachestat_shmem() 289 false, 4, O_CREAT | O_RDWR, 0600) == KSFT_PASS) in main() 297 true, 4, O_CREAT | O_RDWR, 0600)) { in main()
|
| /Linux-v6.6/arch/parisc/include/uapi/asm/ |
| D | fcntl.h | 6 #define O_CREAT 000000400 /* not fcntl */ macro
|
| /Linux-v6.6/arch/mips/include/uapi/asm/ |
| D | fcntl.h | 17 #define O_CREAT 0x0100 /* not fcntl */ macro
|
| /Linux-v6.6/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-v6.6/arch/alpha/include/uapi/asm/ |
| D | fcntl.h | 5 #define O_CREAT 01000 /* not fcntl */ macro
|
| /Linux-v6.6/arch/sparc/include/uapi/asm/ |
| D | fcntl.h | 7 #define O_CREAT 0x0200 /* not fcntl */ macro
|
| /Linux-v6.6/include/linux/ |
| D | fcntl.h | 10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
|
| /Linux-v6.6/tools/testing/selftests/timers/ |
| D | mqueue-lat.c | 66 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()
|
| /Linux-v6.6/include/trace/misc/ |
| D | fs.h | 28 { O_CREAT, "O_CREAT" }, \
|
| /Linux-v6.6/fs/ |
| D | open.c | 945 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC); in do_dentry_open() 1203 #define WILL_CREATE(flags) (flags & (O_CREAT | __O_TMPFILE)) 1269 if ((flags & (O_DIRECTORY | O_CREAT)) == (O_DIRECTORY | O_CREAT)) in build_open_flags() 1315 if (flags & O_CREAT) { in build_open_flags() 1340 if (flags & (O_TRUNC | O_CREAT | __O_TMPFILE)) in build_open_flags() 1509 int flags = O_CREAT | O_WRONLY | O_TRUNC; in SYSCALL_DEFINE2()
|
| /Linux-v6.6/tools/perf/trace/beauty/ |
| D | open_flags.c | 84 if (!(flags & O_CREAT)) in syscall_arg__scnprintf_open_flags()
|
| /Linux-v6.6/tools/testing/selftests/fchmodat2/ |
| D | fchmodat2_test.c | 32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
|
| /Linux-v6.6/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-v6.6/tools/testing/selftests/filelock/ |
| D | ofdlocks.c | 39 int fd = open("/tmp/aa", O_RDWR | O_CREAT | O_EXCL, 0600); in main()
|
| /Linux-v6.6/tools/testing/selftests/firmware/ |
| D | fw_namespace.c | 57 fd = open(fw_path, O_WRONLY | O_CREAT, 0600); in setup_fw()
|
| /Linux-v6.6/tools/objtool/ |
| D | objtool.c | 38 d = open(name, O_CREAT|O_WRONLY|O_TRUNC, 0644); in objtool_create_backup()
|
| /Linux-v6.6/arch/powerpc/boot/ |
| D | mktree.c | 87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
|
| /Linux-v6.6/tools/testing/selftests/kcmp/ |
| D | kcmp_test.c | 42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
|