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

/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_bsm_klib.c695 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY);
707 case (O_RDONLY | O_CREAT | O_TRUNC):
710 case (O_RDONLY | O_TRUNC):
719 case (O_RDWR | O_CREAT | O_TRUNC):
722 case (O_RDWR | O_TRUNC):
731 case (O_WRONLY | O_CREAT | O_TRUNC):
734 case (O_WRONLY | O_TRUNC):
H A Dposix_shm.c547 if (fmode & O_TRUNC) {
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dfcntl.h138 #define O_TRUNC 0x0400 /* truncate to zero length */ macro
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_vnops.c183 * O_TRUNC flag will be cleared in '*fmodep' to indicate to the
308 fmode &= ~O_TRUNC;
359 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) {
375 if (fmode & (FWRITE | O_TRUNC)) {
382 if ((fmode & O_APPEND) && !(fmode & O_TRUNC)) {
H A Dvfs_syscalls.c2197 if ((flags & O_TRUNC) && ((error = vnode_setsize(vp, (off_t)0, 0, ctx)) != 0))
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/union/
H A Dunion_subr.c920 int fmode = FFLAGS(O_WRONLY|O_CREAT|O_TRUNC|O_EXCL);
1232 int fmode = FFLAGS(O_WRONLY|O_CREAT|O_TRUNC|O_EXCL);
H A Dunion_vnops.c582 error = union_copyup(un, (mode&O_TRUNC) == 0, ap->a_context);
779 * handle the case of open with O_TRUNC and O_CREAT.
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dnfs_syscalls.c544 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) {
553 if (fmode & (FWRITE | O_TRUNC))
/macosx-10.5.8/xnu-1228.15.4/libsa/
H A Dkld_patch.c2856 fd = open(outName, O_WRONLY|O_CREAT|O_TRUNC, 0666);
/macosx-10.5.8/xnu-1228.15.4/tools/tests/xnu_quick_test/
H A Dtests.c530 /* test O_TRUNC and O_APPEND case */
531 my_fd = open( my_pathp, (O_RDWR | O_TRUNC | O_APPEND), 0 );

Completed in 209 milliseconds