| /xnu-8792.61.2/bsd/kern/ |
| H A D | kern_acct.c | 172 if ((error = vn_open(&nd, FWRITE, 0))) { in acct() 179 vn_close(nd.ni_vp, FWRITE, ctx); in acct() 186 vn_close(nd.ni_vp, FWRITE, ctx); in acct() 207 FWRITE, vfs_context_current()); in acct() 384 (void) vn_close(suspend_acctp, FWRITE, vfs_context_kernel()); in acctwatch() 402 (void) vn_close(acctp, FWRITE, vfs_context_kernel()); in acctwatch()
|
| H A D | tty_dev.c | 302 ptcwakeup(tp, FREAD | FWRITE); in ptsopen() 347 ptsstop(tp, FREAD | FWRITE); in ptsclose() 380 ptcwakeup(tp, FWRITE); in ptsread() 467 if (flag & FWRITE) { in ptcwakeup() 545 ttyflush(tp, FREAD | FWRITE); in ptcclose() 697 flag |= FWRITE; 699 if (flush & FWRITE) { 743 case FWRITE: 804 case FWRITE: 1033 ttyflush(tp, FREAD | FWRITE);
|
| H A D | kern_symfile.c | 263 fmode = (kIOPolledFileCreate & iflags) ? (O_CREAT | FWRITE) : FWRITE; in kern_open_file_for_direct_io() 591 vnode_close(ref->vp, FWRITE, ref->ctx); in kern_open_file_for_direct_io() 619 vnode_close(ref->vp, FWRITE, ref->ctx); in kern_open_file_for_direct_io() 720 error = vnode_close(ref->vp, FWRITE, ref->ctx); in kern_close_file_for_direct_io()
|
| H A D | posix_shm.c | 378 if ((fmode & (FREAD | FWRITE)) == 0) { in shm_open() 564 if (!(fp->f_flag & FWRITE)) { in pshm_truncate() 722 ((mode & FWRITE) ? S_IWUSR : 0); in pshm_access() 768 if (!(fp->f_flag & FWRITE)) { in pshm_mmap() 1003 error = pshm_access(pinfo, FWRITE, kauth_cred_get(), p); in shm_unlink()
|
| H A D | tty.c | 359 ttyflush(tp, FREAD | FWRITE); in ttyclose() 477 ttyflush(tp, FREAD | FWRITE); in ttyinput() 545 ttyflush(tp, FWRITE); in ttyinput() 561 ttyflush(tp, FREAD | FWRITE); in ttyinput() 1094 flags = FREAD | FWRITE; in ttioctl_locked() 1096 flags &= FREAD | FWRITE; in ttioctl_locked() 1562 case FWRITE: in ttyselect() 1579 case FWRITE: in ttyselect() 1728 if (rw & FWRITE) { in ttyflush() 1742 if (rw & FWRITE) { in ttyflush() [all …]
|
| H A D | tty_tty.c | 247 error = VNOP_SELECT(ttyvp, flag, FREAD | FWRITE, wql, &context); in cttyselect()
|
| H A D | kern_shutdown.c | 348 …if ((error = vnode_open(PROC_SHUTDOWN_LOG, (O_CREAT | FWRITE | O_NOFOLLOW), 0644, 0, &sd_logvp, ct… in sd_openlog() 369 error = vnode_close(sd_logvp, FWRITE, ctx); in sd_closelog()
|
| H A D | kern_core.c | 359 …if ((error = vnode_open(name, (O_CREAT | FWRITE | O_NOFOLLOW), S_IRUSR, VNODE_LOOKUP_NOFOLLOW, &vp… in coredump() 658 error1 = vnode_close(vp, FWRITE, ctx); in coredump()
|
| H A D | sys_socket.c | 325 case FWRITE: in soo_select()
|
| H A D | sys_pipe.c | 421 wf->f_flag = FWRITE; in pipe() 1281 case FWRITE: in pipe_select() 1634 if (fp->f_flag & FWRITE) { in pipe_kqfilter()
|
| H A D | kern_guarded.c | 979 if ((FREAD | FWRITE) != (fp->f_flag & (FREAD | FWRITE))) { in vnguard_sysc_setguard()
|
| H A D | sys_generic.c | 545 if ((fp->f_flag & FWRITE) == 0) { in preparefilewrite() 557 if ((fp->f_flag & FWRITE) == 0) { in preparefilewrite() 931 if ((fp->f_flag & (FREAD | FWRITE)) == 0) { in ioctl() 1595 static int flag[3] = { FREAD, FWRITE, 0 }; in selscan()
|
| /xnu-8792.61.2/bsd/miscfs/fifofs/ |
| H A D | fifo_vnops.c | 238 if (ap->a_mode & FWRITE) { in fifo_open() 264 if (ap->a_mode & FWRITE) { in fifo_open() 415 if (ap->a_fflag & FWRITE) { in fifo_ioctl() 445 if (ap->a_which & FWRITE) { in fifo_select() 499 if (fflag & FWRITE) { in fifo_close_internal()
|
| /xnu-8792.61.2/bsd/sys/ |
| H A D | fcntl.h | 113 #define FWRITE 0x00000002 macro 238 #define FMASK (FREAD|FWRITE|FAPPEND|FASYNC|FFSYNC|FFDSYNC|FNONBLOCK|FEXEC)
|
| H A D | event.h | 829 return FWRITE; in knote_get_seltype()
|
| /xnu-8792.61.2/bsd/security/audit/ |
| H A D | audit_private.h | 390 #define AUDIT_OPEN_FLAGS (FWRITE | O_APPEND) 391 #define AUDIT_CLOSE_FLAGS (FWRITE | O_APPEND)
|
| /xnu-8792.61.2/bsd/dev/random/ |
| H A D | randomdev.c | 147 if (flags & FWRITE) { in random_open()
|
| /xnu-8792.61.2/bsd/skywalk/channel/ |
| H A D | channel_syscalls.c | 77 case FWRITE: in chop_select() 256 fp->fp_glob->fg_flag &= ~(FREAD | FWRITE); in __channel_open()
|
| /xnu-8792.61.2/bsd/vfs/ |
| H A D | vfs_vnops.c | 587 } else if ((fmode & (FREAD | FWRITE | FEXEC)) == FEXEC) { in vn_open_auth() 668 if ((fmode & (FREAD | FWRITE | FEXEC)) == FEXEC) { in vn_open_auth() 832 if (vp->v_tag == VT_HFS && (flags & FWRITE) && vp->v_writecount == 1) { in vn_close() 2243 if ((fp->fp_glob->fg_flag & (FREAD | FWRITE)) == 0) { in vnio_openfd()
|
| /xnu-8792.61.2/bsd/vm/ |
| H A D | vm_compressor_backing_file.c | 64 …if ((error = vnode_open(path, (O_CREAT | O_TRUNC | FREAD | FWRITE), S_IRUSR | S_IWUSR, 0, vp, ctx)… in vm_swapfile_open()
|
| /xnu-8792.61.2/bsd/nfs/ |
| H A D | nfs_syscalls.c | 419 if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT)) { in fhopen() 464 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) { in fhopen() 480 if (fmode & (FWRITE | O_TRUNC)) { in fhopen()
|
| /xnu-8792.61.2/bsd/miscfs/specfs/ |
| H A D | spec_vnops.c | 325 if (cred != FSCRED && (ap->a_mode & FWRITE)) { in spec_open() 403 (ap->a_mode & FWRITE) && bdevsw[maj].d_type == D_DISK) { in spec_open() 431 if (!VNOP_IOCTL(vp, DKIOCSETBLOCKSIZE, (caddr_t)&size512, FWRITE, ap->a_context)) { in spec_open() 438 if (VNOP_IOCTL(vp, DKIOCSETBLOCKSIZE, (caddr_t)&blksize, FWRITE, ap->a_context)) { in spec_open()
|
| /xnu-8792.61.2/iokit/bsddev/ |
| H A D | IOKitBSDInit.cpp | 1330 …vnode_error = vnode_open(kIOCoreDumpPath, (FREAD | FWRITE | O_NOFOLLOW), 0600, 0, &vnode_ptr, vfs_… in IOProvideCoreFileAccess() 1340 vnode_close(vnode_ptr, FREAD | FWRITE, vfs_context); in IOProvideCoreFileAccess()
|
| /xnu-8792.61.2/bsd/skywalk/nexus/ |
| H A D | nexus_syscalls.c | 141 fp->fp_glob->fg_flag |= (FREAD | FWRITE); in __nexus_open()
|
| /xnu-8792.61.2/bsd/dev/ |
| H A D | memdev.c | 202 if ((flags & FWRITE) && (mdev[devid].mdFlags & mdRO)) { in mdevopen()
|