Home
last modified time | relevance | path

Searched refs:FWRITE (Results 1 – 25 of 43) sorted by relevance

12

/xnu-8792.61.2/bsd/kern/
H A Dkern_acct.c172 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 Dtty_dev.c302 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 Dkern_symfile.c263 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 Dposix_shm.c378 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 Dtty.c359 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 Dtty_tty.c247 error = VNOP_SELECT(ttyvp, flag, FREAD | FWRITE, wql, &context); in cttyselect()
H A Dkern_shutdown.c348 …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 Dkern_core.c359 …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 Dsys_socket.c325 case FWRITE: in soo_select()
H A Dsys_pipe.c421 wf->f_flag = FWRITE; in pipe()
1281 case FWRITE: in pipe_select()
1634 if (fp->f_flag & FWRITE) { in pipe_kqfilter()
H A Dkern_guarded.c979 if ((FREAD | FWRITE) != (fp->f_flag & (FREAD | FWRITE))) { in vnguard_sysc_setguard()
H A Dsys_generic.c545 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 Dfifo_vnops.c238 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 Dfcntl.h113 #define FWRITE 0x00000002 macro
238 #define FMASK (FREAD|FWRITE|FAPPEND|FASYNC|FFSYNC|FFDSYNC|FNONBLOCK|FEXEC)
H A Devent.h829 return FWRITE; in knote_get_seltype()
/xnu-8792.61.2/bsd/security/audit/
H A Daudit_private.h390 #define AUDIT_OPEN_FLAGS (FWRITE | O_APPEND)
391 #define AUDIT_CLOSE_FLAGS (FWRITE | O_APPEND)
/xnu-8792.61.2/bsd/dev/random/
H A Drandomdev.c147 if (flags & FWRITE) { in random_open()
/xnu-8792.61.2/bsd/skywalk/channel/
H A Dchannel_syscalls.c77 case FWRITE: in chop_select()
256 fp->fp_glob->fg_flag &= ~(FREAD | FWRITE); in __channel_open()
/xnu-8792.61.2/bsd/vfs/
H A Dvfs_vnops.c587 } 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 Dvm_compressor_backing_file.c64 …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 Dnfs_syscalls.c419 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 Dspec_vnops.c325 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 DIOKitBSDInit.cpp1330 …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 Dnexus_syscalls.c141 fp->fp_glob->fg_flag |= (FREAD | FWRITE); in __nexus_open()
/xnu-8792.61.2/bsd/dev/
H A Dmemdev.c202 if ((flags & FWRITE) && (mdev[devid].mdFlags & mdRO)) { in mdevopen()

12