| /Linux-v6.6/tools/include/uapi/asm-generic/ |
| D | fcntl.h | 32 #ifndef O_TRUNC 33 #define O_TRUNC 00001000 /* not fcntl */ macro
|
| /Linux-v6.6/include/uapi/asm-generic/ |
| D | fcntl.h | 32 #ifndef O_TRUNC 33 #define O_TRUNC 00001000 /* not fcntl */ macro
|
| /Linux-v6.6/arch/mips/include/uapi/asm/ |
| D | fcntl.h | 18 #define O_TRUNC 0x0200 /* not fcntl */ macro
|
| /Linux-v6.6/arch/alpha/include/uapi/asm/ |
| D | fcntl.h | 6 #define O_TRUNC 02000 /* not fcntl */ macro
|
| /Linux-v6.6/arch/sparc/include/uapi/asm/ |
| D | fcntl.h | 8 #define O_TRUNC 0x0400 /* 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/include/trace/misc/ |
| D | fs.h | 31 { O_TRUNC, "O_TRUNC" }, \
|
| /Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
| D | raw_tp_test_run.c | 35 comm_fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_raw_tp_test_run()
|
| D | test_overhead.c | 24 fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_task_rename()
|
| /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/fs/vboxsf/ |
| D | file.c | 72 if (file->f_flags & O_TRUNC) in vboxsf_file_open() 78 if (file->f_flags & O_TRUNC) in vboxsf_file_open()
|
| /Linux-v6.6/tools/testing/selftests/landlock/ |
| D | fs_test.c | 1822 dst_fd = open(dst_path, O_WRONLY | O_TRUNC | O_CLOEXEC); in copy_binary() 3345 EXPECT_EQ(0, test_open(file_r, O_RDONLY | O_TRUNC)); in TEST_F_FORK() 3346 EXPECT_EQ(EACCES, test_open(file_r, O_WRONLY | O_TRUNC)); in TEST_F_FORK() 3354 EXPECT_EQ(EACCES, test_open(file_w, O_RDONLY | O_TRUNC)); in TEST_F_FORK() 3355 EXPECT_EQ(0, test_open(file_w, O_WRONLY | O_TRUNC)); in TEST_F_FORK() 3363 EXPECT_EQ(EACCES, test_open(file_none, O_RDONLY | O_TRUNC)); in TEST_F_FORK() 3364 EXPECT_EQ(EACCES, test_open(file_none, O_WRONLY | O_TRUNC)); in TEST_F_FORK() 3425 EXPECT_EQ(0, test_open(file_rwt, O_RDONLY | O_TRUNC)); in TEST_F_FORK() 3426 EXPECT_EQ(0, test_open(file_rwt, O_WRONLY | O_TRUNC)); in TEST_F_FORK() 3430 EXPECT_EQ(EACCES, test_open(file_rw, O_RDONLY | O_TRUNC)); in TEST_F_FORK() [all …]
|
| /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()
|
| /Linux-v6.6/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-v6.6/security/apparmor/include/ |
| D | file.h | 154 if (flags & O_TRUNC) in aa_map_file_to_perms()
|
| /Linux-v6.6/tools/testing/selftests/bpf/benchs/ |
| D | bench_rename.c | 56 ctx.fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in setup_ctx()
|
| /Linux-v6.6/kernel/trace/ |
| D | trace_recursion_record.c | 187 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in recursed_function_open()
|
| /Linux-v6.6/arch/arm/vdso/ |
| D | vdsomunge.c | 179 outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in main()
|
| /Linux-v6.6/tools/usb/usbip/src/ |
| D | usbip_attach.c | 63 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); in record_connection()
|
| /Linux-v6.6/tools/hv/ |
| D | hv_fcopy_daemon.c | 75 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744); in hv_start_fcopy()
|
| /Linux-v6.6/fs/coda/ |
| D | coda_linux.c | 57 if (flags & O_TRUNC) in coda_flags_to_cflags()
|
| /Linux-v6.6/samples/bpf/ |
| D | test_overhead_user.c | 46 fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_task_rename()
|
| /Linux-v6.6/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() 294 fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC, in open_file_write()
|