Home
last modified time | relevance | path

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

12

/xnu-8020.121.3/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 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 Dkern_symfile.c258 fmode = (kIOPolledFileCreate & iflags) ? (O_CREAT | FWRITE) : FWRITE; in kern_open_file_for_direct_io()
586 vnode_close(ref->vp, FWRITE, ref->ctx); in kern_open_file_for_direct_io()
614 vnode_close(ref->vp, FWRITE, ref->ctx); in kern_open_file_for_direct_io()
711 error = vnode_close(ref->vp, FWRITE, ref->ctx); in kern_close_file_for_direct_io()
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 Dkern_guarded.c691 if ((fp->f_flag & FWRITE) == 0) { in guarded_write_np()
732 if ((fp->f_flag & FWRITE) == 0) { in guarded_pwrite_np()
827 if ((fp->f_flag & FWRITE) == 0) { in guarded_writev_np()
1067 if ((FREAD | FWRITE) != (fp->f_flag & (FREAD | FWRITE))) { in vnguard_sysc_setguard()
H A Dkern_core.c318 …if ((error = vnode_open(name, (O_CREAT | FWRITE | O_NOFOLLOW), S_IRUSR, VNODE_LOOKUP_NOFOLLOW, &vp… in coredump()
587 error1 = vnode_close(vp, FWRITE, ctx); in coredump()
H A Dtty_tty.c247 error = VNOP_SELECT(ttyvp, flag, FREAD | FWRITE, wql, &context); in cttyselect()
H A Dkern_shutdown.c341 …if ((error = vnode_open(PROC_SHUTDOWN_LOG, (O_CREAT | FWRITE | O_NOFOLLOW), 0644, 0, &sd_logvp, ct… in sd_openlog()
362 error = vnode_close(sd_logvp, FWRITE, ctx); in sd_closelog()
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 Dsys_generic.c523 if ((fp->f_flag & FWRITE) == 0) { in write_nocancel()
573 if ((fp->f_flag & FWRITE) == 0) { in pwrite_nocancel()
690 if ((fp->f_flag & FWRITE) == 0) { in preparefilewrite()
990 if ((fp->f_flag & (FREAD | FWRITE)) == 0) { in ioctl()
1654 static int flag[3] = { FREAD, FWRITE, 0 }; in selscan()
H A Dkern_descrip.c1792 if (((flags & (FREAD | FWRITE)) | wfp->f_flag) != wfp->f_flag) { in dupfdopen()
2224 if (rw == UIO_WRITE && !(fp->f_flag & FWRITE)) { in fd_rdwr()
3064 if ((fflag & FWRITE) == 0) { in sys_fcntl_nocancel()
3109 if ((fflag & FWRITE) == 0) { in sys_fcntl_nocancel()
3228 if ((fp->f_flag & FWRITE) == 0) { in sys_fcntl_nocancel()
3315 if ((fp->f_flag & FWRITE) == 0) { in sys_fcntl_nocancel()
3357 if ((fp->f_flag & FWRITE) == 0) { in sys_fcntl_nocancel()
/xnu-8020.121.3/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-8020.121.3/bsd/sys/
H A Dfcntl.h113 #define FWRITE 0x00000002 macro
222 #define FMASK (FREAD|FWRITE|FAPPEND|FASYNC|FFSYNC|FFDSYNC|FNONBLOCK)
H A Devent.h826 return FWRITE; in knote_get_seltype()
/xnu-8020.121.3/bsd/security/audit/
H A Daudit_private.h390 #define AUDIT_OPEN_FLAGS (FWRITE | O_APPEND)
391 #define AUDIT_CLOSE_FLAGS (FWRITE | O_APPEND)
/xnu-8020.121.3/bsd/dev/vn/
H A Dvn.c241 if ((flags & FWRITE) && (vn->sc_flags & VNF_READONLY)) { in vnopen()
1127 flags = FREAD | FWRITE; in vniocattach_file()
1141 flags &= ~FWRITE; in vniocattach_file()
1205 flags = FREAD | FWRITE; in vniocattach_shadow()
1296 (void)vn_close(vn->sc_shadow_vp, FREAD | FWRITE, ctx); in vnclear()
/xnu-8020.121.3/bsd/dev/random/
H A Drandomdev.c147 if (flags & FWRITE) { in random_open()
/xnu-8020.121.3/bsd/vm/
H A Dvm_compressor_backing_file.c63 …if ((error = vnode_open(path, (O_CREAT | O_TRUNC | FREAD | FWRITE), S_IRUSR | S_IWUSR, 0, vp, ctx)… in vm_swapfile_open()
/xnu-8020.121.3/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-8020.121.3/iokit/bsddev/
H A DIOKitBSDInit.cpp1282 …vnode_error = vnode_open(kIOCoreDumpPath, (FREAD | FWRITE | O_NOFOLLOW), 0600, 0, &vnode_ptr, vfs_… in IOProvideCoreFileAccess()
1292 vnode_close(vnode_ptr, FREAD | FWRITE, vfs_context); in IOProvideCoreFileAccess()
/xnu-8020.121.3/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-8020.121.3/bsd/skywalk/nexus/
H A Dnexus_syscalls.c127 fp->fp_glob->fg_flag &= ~(FREAD | FWRITE); in __nexus_open()
/xnu-8020.121.3/bsd/nfs/
H A Dnfs_syscalls.c704 if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT)) { in fhopen()
749 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) { in fhopen()
765 if (fmode & (FWRITE | O_TRUNC)) { in fhopen()

12