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

/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit_bsm_klib.c272 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY);
287 case (O_RDONLY | O_CREAT | O_TRUNC):
291 case (O_RDONLY | O_TRUNC):
303 case (O_RDWR | O_CREAT | O_TRUNC):
307 case (O_RDWR | O_TRUNC):
319 case (O_WRONLY | O_CREAT | O_TRUNC):
323 case (O_WRONLY | O_TRUNC):
369 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY);
384 case (O_RDONLY | O_CREAT | O_TRUNC):
388 case (O_RDONLY | O_TRUNC)
[all...]
/darwin-on-arm/xnu/tools/tests/libMicro/
H A Dfile_lock.c77 file = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
H A Dcascade_fcntl.c114 file = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
H A Dcascade_flock.c126 files[i] = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
H A Dcascade_lockf.c121 files[i] = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
/darwin-on-arm/xnu/SETUP/setsegname/
H A Dsetsegname.c238 int fd = open(output_name, O_WRONLY|O_CREAT|O_TRUNC, 0755);
/darwin-on-arm/xnu/bsd/sys/
H A Dfcntl.h143 #define O_TRUNC 0x0400 /* truncate to zero length */ macro
/darwin-on-arm/xnu/tools/tests/libMicro/apple/
H A Dlmbench_bw_mmap_rd.c182 if ((dfd = open(dst, O_CREAT|O_TRUNC|O_RDWR, mode)) < 0) {
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dcontent_protection_test.c558 fd = open(filepath, O_RDWR | O_TRUNC | O_CLOEXEC);
H A Dtests.c536 /* test O_TRUNC and O_APPEND case */
537 my_fd = open( my_pathp, (O_RDWR | O_TRUNC | O_APPEND), 0 );
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_syscalls.c578 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) {
587 if (fmode & (FWRITE | O_TRUNC))
/darwin-on-arm/xnu/SETUP/kextsymboltool/
H A Dkextsymboltool.c699 fd = open(output_name, O_WRONLY|O_CREAT|O_TRUNC, 0755);
/darwin-on-arm/xnu/bsd/kern/
H A Dposix_shm.c562 if (fmode & O_TRUNC) {
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_vnops.c333 * O_TRUNC flag will be cleared in '*fmodep' to indicate to the
615 fmode &= ~O_TRUNC;
H A Dvfs_subr.c5421 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) {
5450 if (fmode & (FWRITE | O_TRUNC)) {
5457 if ((fmode & O_APPEND) && !(fmode & O_TRUNC)) {
H A Dvfs_syscalls.c3081 if ((flags & O_TRUNC) && ((error = vnode_setsize(vp, (off_t)0, 0, ctx)) != 0))
8084 if (fmode & (FWRITE | O_TRUNC)) {
8091 if ((fmode & O_APPEND) && !(fmode & O_TRUNC)) {

Completed in 231 milliseconds