Home
last modified time | relevance | path

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

123

/Linux-v5.4/include/uapi/asm-generic/
Dfcntl.h32 #ifndef O_TRUNC
33 #define O_TRUNC 00001000 /* not fcntl */ macro
/Linux-v5.4/tools/include/uapi/asm-generic/
Dfcntl.h31 #ifndef O_TRUNC
32 #define O_TRUNC 00001000 /* not fcntl */ macro
/Linux-v5.4/arch/alpha/include/uapi/asm/
Dfcntl.h6 #define O_TRUNC 02000 /* not fcntl */ macro
/Linux-v5.4/arch/sparc/include/uapi/asm/
Dfcntl.h8 #define O_TRUNC 0x0400 /* not fcntl */ macro
/Linux-v5.4/arch/mips/include/uapi/asm/
Dfcntl.h18 #define O_TRUNC 0x0200 /* not fcntl */ macro
/Linux-v5.4/include/linux/
Dfcntl.h9 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/Linux-v5.4/Documentation/filesystems/
Dmandatory-locking.txt92 O_TRUNC flag set should be rejected. The Linux implementation follows the SVID
93 definition, which is the "Right Thing", since only calls with O_TRUNC can
96 HP-UX even disallows open() with O_TRUNC for a file with advisory locks, not
134 4. Calls to open() with O_TRUNC, or to creat(), on a existing file that has
/Linux-v5.4/arch/powerpc/boot/
Dmktree.c87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
/Linux-v5.4/tools/testing/selftests/kcmp/
Dkcmp_test.c42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
/Linux-v5.4/tools/testing/selftests/exec/
Dexecveat.c141 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); in exe_cp()
384 fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755); in prerequisites()
/Linux-v5.4/tools/perf/util/
Ddata.c57 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); in perf_data__create_dir()
266 fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC, in open_file_write()
/Linux-v5.4/tools/include/nolibc/
Dnolibc.h447 #define O_TRUNC 0x200 macro
627 #define O_TRUNC 0x200 macro
812 #define O_TRUNC 0x200 macro
1009 #define O_TRUNC 0x200 macro
1215 #define O_TRUNC 0x0200 macro
1412 #define O_TRUNC 0x1000 macro
/Linux-v5.4/samples/bpf/
Dtest_overhead_user.c39 fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_task_rename()
/Linux-v5.4/tools/usb/usbip/src/
Dusbip_attach.c63 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); in record_connection()
/Linux-v5.4/tools/hv/
Dhv_fcopy_daemon.c75 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744); in hv_start_fcopy()
/Linux-v5.4/arch/arm/vdso/
Dvdsomunge.c179 outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in main()
/Linux-v5.4/kernel/trace/
Dtrace_dynevent.c181 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in dyn_event_open()
/Linux-v5.4/fs/coda/
Dcoda_linux.c57 if (flags & O_TRUNC) in coda_flags_to_cflags()
/Linux-v5.4/security/apparmor/include/
Dfile.h229 if (flags & O_TRUNC) in aa_map_file_to_perms()
/Linux-v5.4/tools/io_uring/
Dio_uring-cp.c243 outfd = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC, 0644); in main()
/Linux-v5.4/arch/alpha/boot/tools/
Dobjstrip.c99 ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666); in main()
/Linux-v5.4/tools/firmware/
Dihex2fw.c120 outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644); in main()
/Linux-v5.4/fs/nfs/
Dnfs4file.c66 if (openflags & O_TRUNC) { in nfs4_file_open()
/Linux-v5.4/tools/bpf/
Dbpf_jit_disasm.c306 ofd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE); in main()
/Linux-v5.4/fs/
Dopen.c812 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC); in do_dentry_open()
1003 if (flags & O_TRUNC) in build_open_flags()
1155 return ksys_open(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode); in SYSCALL_DEFINE2()

123