| /linux/include/uapi/asm-generic/ |
| H A D | fcntl.h | 31 #ifndef O_TRUNC 32 #define O_TRUNC 00001000 /* not fcntl */ macro
|
| /linux/rust/kernel/fs/ |
| H A D | file.rs | 82 pub const O_TRUNC: u32 = bindings::O_TRUNC; constant
|
| /linux/arch/mips/include/uapi/asm/ |
| H A D | fcntl.h | 18 #define O_TRUNC 0x0200 /* not fcntl */ macro
|
| /linux/arch/alpha/include/uapi/asm/ |
| H A D | fcntl.h | 6 #define O_TRUNC 02000 /* not fcntl */ macro
|
| /linux/arch/sparc/include/uapi/asm/ |
| H A D | fcntl.h | 8 #define O_TRUNC 0x0400 /* 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/fs/vboxsf/ |
| H A 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/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/bpf/prog_tests/ |
| H A D | raw_tp_test_run.c | 35 comm_fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_raw_tp_test_run()
|
| H A D | test_overhead.c | 24 fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_task_rename()
|
| /linux/include/trace/misc/ |
| H A D | fs.h | 31 { O_TRUNC, "O_TRUNC" }, \
|
| /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/testing/selftests/kcmp/ |
| H A D | kcmp_test.c | 42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
|
| /linux/security/apparmor/include/ |
| H A D | file.h | 125 if (flags & O_TRUNC) in aa_map_file_to_perms()
|
| /linux/tools/testing/selftests/bpf/benchs/ |
| H A D | bench_rename.c | 56 ctx.fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in setup_ctx()
|
| /linux/tools/testing/selftests/landlock/ |
| H A D | fs_bench.c | 189 fd = openat(curr, "file.txt", O_CREAT | O_TRUNC | O_WRONLY, in main()
|
| H A D | fs_test.c | 2025 dst_fd = open(dst_path, O_WRONLY | O_TRUNC | O_CLOEXEC); in copy_file() 3737 EXPECT_EQ(0, test_open(file_r, O_RDONLY | O_TRUNC)); in TEST_F_FORK() 3738 EXPECT_EQ(EACCES, test_open(file_r, O_WRONLY | O_TRUNC)); in TEST_F_FORK() 3746 EXPECT_EQ(EACCES, test_open(file_w, O_RDONLY | O_TRUNC)); in TEST_F_FORK() 3747 EXPECT_EQ(0, test_open(file_w, O_WRONLY | O_TRUNC)); in TEST_F_FORK() 3755 EXPECT_EQ(EACCES, test_open(file_none, O_RDONLY | O_TRUNC)); in TEST_F_FORK() 3756 EXPECT_EQ(EACCES, test_open(file_none, O_WRONLY | O_TRUNC)); in TEST_F_FORK() 3817 EXPECT_EQ(0, test_open(file_rwt, O_RDONLY | O_TRUNC)); in TEST_F_FORK() 3818 EXPECT_EQ(0, test_open(file_rwt, O_WRONLY | O_TRUNC)); in TEST_F_FORK() 3822 EXPECT_EQ(EACCES, test_open(file_rw, O_RDONLY | O_TRUNC)); in TEST_F_FORK() [all …]
|
| /linux/tools/testing/selftests/exec/ |
| H A D | execveat.c | 159 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); in exe_cp() 439 fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755); in prerequisites()
|
| /linux/tools/perf/util/ |
| H A D | data.c | 60 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); in perf_data__create_dir() 284 int fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC, S_IRUSR|S_IWUSR); in open_file_write()
|
| /linux/kernel/trace/ |
| H A D | trace_recursion_record.c | 187 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in recursed_function_open()
|
| /linux/arch/arm/vdso/ |
| H A D | vdsomunge.c | 179 outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in main()
|
| /linux/tools/usb/usbip/src/ |
| H A D | usbip_attach.c | 63 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); in record_connection()
|
| /linux/fs/coda/ |
| H A D | coda_linux.c | 57 if (flags & O_TRUNC) in coda_flags_to_cflags()
|
| /linux/fs/ |
| H A D | open.c | 965 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC); in do_dentry_open() 1260 if (flags & O_TRUNC) in build_open_flags() 1297 if (flags & (O_TRUNC | O_CREAT | __O_TMPFILE)) in build_open_flags() 1446 int flags = O_CREAT | O_WRONLY | O_TRUNC; in SYSCALL_DEFINE2()
|
| /linux/arch/alpha/boot/tools/ |
| H A D | objstrip.c | 99 ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666); in main()
|