Searched refs:O_TRUNC (Results 1 - 25 of 79) sorted by relevance

1234

/linux-master/arch/alpha/include/uapi/asm/
H A Dfcntl.h6 #define O_TRUNC 02000 /* not fcntl */ macro
/linux-master/arch/mips/include/uapi/asm/
H A Dfcntl.h18 #define O_TRUNC 0x0200 /* not fcntl */ macro
/linux-master/arch/sparc/include/uapi/asm/
H A Dfcntl.h8 #define O_TRUNC 0x0400 /* not fcntl */ macro
/linux-master/include/uapi/asm-generic/
H A Dfcntl.h32 #ifndef O_TRUNC
33 #define O_TRUNC 00001000 /* not fcntl */ macro
/linux-master/tools/include/uapi/asm-generic/
H A Dfcntl.h32 #ifndef O_TRUNC
33 #define O_TRUNC 00001000 /* not fcntl */ macro
/linux-master/include/linux/
H A Dfcntl.h10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Draw_tp_test_run.c35 comm_fd = open("/proc/self/comm", O_WRONLY|O_TRUNC);
H A Dtest_overhead.c24 fd = open("/proc/self/comm", O_WRONLY|O_TRUNC);
/linux-master/include/trace/misc/
H A Dfs.h31 { O_TRUNC, "O_TRUNC" }, \
/linux-master/tools/testing/selftests/fchmodat2/
H A Dfchmodat2_test.c32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644);
/linux-master/arch/powerpc/boot/
H A Dmktree.c87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) {
/linux-master/tools/testing/selftests/bpf/benchs/
H A Dbench_rename.c56 ctx.fd = open("/proc/self/comm", O_WRONLY|O_TRUNC);
/linux-master/tools/objtool/
H A Dobjtool.c38 d = open(name, O_CREAT|O_WRONLY|O_TRUNC, 0644);
/linux-master/security/apparmor/include/
H A Dfile.h120 if (flags & O_TRUNC)
/linux-master/arch/arm/vdso/
H A Dvdsomunge.c179 outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
/linux-master/tools/hv/
H A Dhv_fcopy_daemon.c75 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744);
/linux-master/kernel/trace/
H A Dtrace_recursion_record.c187 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) {
/linux-master/tools/testing/selftests/kcmp/
H A Dkcmp_test.c42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644);
/linux-master/tools/usb/usbip/src/
H A Dusbip_attach.c63 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU);
/linux-master/fs/vboxsf/
H A Dfile.c72 if (file->f_flags & O_TRUNC)
78 if (file->f_flags & O_TRUNC)
/linux-master/tools/testing/selftests/landlock/
H A Dfs_test.c1936 dst_fd = open(dst_path, O_WRONLY | O_TRUNC | O_CLOEXEC);
3455 * Checks read right: truncate and open with O_TRUNC work, unless the
3459 EXPECT_EQ(0, test_open(file_r, O_RDONLY | O_TRUNC));
3460 EXPECT_EQ(EACCES, test_open(file_r, O_WRONLY | O_TRUNC));
3464 * Checks write right: truncate and open with O_TRUNC work, unless the
3468 EXPECT_EQ(EACCES, test_open(file_w, O_RDONLY | O_TRUNC));
3469 EXPECT_EQ(0, test_open(file_w, O_WRONLY | O_TRUNC));
3477 EXPECT_EQ(EACCES, test_open(file_none, O_RDONLY | O_TRUNC));
3478 EXPECT_EQ(EACCES, test_open(file_none, O_WRONLY | O_TRUNC));
3539 EXPECT_EQ(0, test_open(file_rwt, O_RDONLY | O_TRUNC));
[all...]
/linux-master/tools/perf/util/
H A Ddata.c60 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR);
306 fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC,
/linux-master/tools/testing/selftests/exec/
H A Dexecveat.c157 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755);
406 fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755);
/linux-master/tools/firmware/
H A Dihex2fw.c120 outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644);
/linux-master/tools/bpf/
H A Dbpf_jit_disasm.c309 ofd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE);

Completed in 649 milliseconds

1234