Home
last modified time | relevance | path

Searched refs:O_TRUNC (Results 1 – 25 of 70) sorted by relevance

123

/linux/tools/include/uapi/asm-generic/
H A Dfcntl.h
/linux/rust/kernel/fs/
H A Dfile.rs82 pub const O_TRUNC: u32 = bindings::O_TRUNC; constant
/linux/tools/testing/selftests/bpf/prog_tests/
H A Draw_tp_test_run.c35 comm_fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_raw_tp_test_run()
H A Dtest_overhead.c24 fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_task_rename()
/linux/tools/testing/selftests/fchmodat2/
H A Dfchmodat2_test.c39 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
/linux/arch/powerpc/boot/
H A Dmktree.c87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
/linux/include/trace/misc/
H A Dfs.h31 { O_TRUNC, "O_TRUNC" }, \
/linux/tools/testing/selftests/kcmp/
H A Dkcmp_test.c42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
/linux/security/apparmor/include/
H A Dfile.h125 if (flags & O_TRUNC) in aa_map_file_to_perms()
/linux/tools/testing/selftests/bpf/benchs/
H A Dbench_rename.c56 ctx.fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in setup_ctx()
/linux/arch/arm/vdso/
H A Dvdsomunge.c179 outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in main()
/linux/tools/usb/usbip/src/
H A Dusbip_attach.c63 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); in record_connection()
/linux/tools/testing/selftests/exec/
H A Dexecveat.c159 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 Ddata.c75 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); in perf_data__create_dir()
304 int fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC, S_IRUSR|S_IWUSR); in open_file()
/linux/tools/hv/
H A Dhv_fcopy_daemon.c
/linux/fs/coda/
H A Dcoda_linux.c57 if (flags & O_TRUNC) in coda_flags_to_cflags()
/linux/arch/alpha/boot/tools/
H A Dobjstrip.c99 ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666); in main()
/linux/tools/testing/selftests/cachestat/
H A Dtest_cachestat.c237 fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0666); in run_cachestat_test()
/linux/tools/testing/selftests/landlock/
H A Dfs_test.c1926 dst_fd = open(dst_path, O_WRONLY | O_TRUNC | O_CLOEXEC); in test_relative_path()
3709 * Checks read right: truncate and open with O_TRUNC work, unless the in TEST_F_FORK()
3713 EXPECT_EQ(0, test_open(file_r, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3714 EXPECT_EQ(EACCES, test_open(file_r, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3718 * Checks write right: truncate and open with O_TRUNC work, unless the in TEST_F_FORK()
3722 EXPECT_EQ(EACCES, test_open(file_w, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3723 EXPECT_EQ(0, test_open(file_w, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3731 EXPECT_EQ(EACCES, test_open(file_none, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3732 EXPECT_EQ(EACCES, test_open(file_none, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3789 EXPECT_EQ(0, test_open(file_rwt, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
[all...]
/linux/tools/firmware/
H A Dihex2fw.c120 outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644); in main()
/linux/tools/objtool/
H A Dbuiltin-check.c226 dst_fd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, 0400); in copy_file()
/linux/tools/bpf/
H A Dbpf_jit_disasm.c311 ofd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE); in main()
/linux/tools/testing/selftests/ring-buffer/
H A Dmap_test.c28 fd = open(path, O_WRONLY | O_TRUNC); in __tracefs_write()
/linux/fs/smb/client/
H A Dfile.c459 if (flags & O_TRUNC) in cifs_posix_convert_flags()
479 else if ((flags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) in cifs_get_disposition()
483 else if ((flags & O_TRUNC) == O_TRUNC) in cifs_get_disposition()
1103 if (file->f_flags & O_TRUNC) { in cifs_open()
1335 ~(O_CREAT | O_EXCL | O_TRUNC); in cifs_reopen_file()
2628 oflags &= ~(O_CREAT | O_EXCL | O_TRUNC); in open_flags_match()
2629 cflags &= ~(O_CREAT | O_EXCL | O_TRUNC); in open_flags_match()
/linux/tools/perf/jvmti/
H A Djvmti_agent.c284 fd = open(dump_path, O_CREAT|O_TRUNC|O_RDWR, 0666); in jvmti_open()

123