Home
last modified time | relevance | path

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

12

/xnu-8796.141.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.c305 ptcwakeup(tp, FREAD | FWRITE); in ptsopen()
356 ptsstop(tp, FREAD | FWRITE); in ptsclose()
389 ptcwakeup(tp, FWRITE); in ptsread()
476 if (flag & FWRITE) { in ptcwakeup()
565 ttyflush(tp, FREAD | FWRITE); in ptcclose()
713 flag |= FWRITE;
715 if (flush & FWRITE) {
759 case FWRITE:
820 case FWRITE:
1049 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()
767 if (!(fp->f_flag & FWRITE)) { in pshm_mmap()
997 error = pshm_access(pinfo, FWRITE, kauth_cred_get(), p); in shm_unlink()
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 Dtty.c358 ttyflush(tp, FREAD | FWRITE); in ttyclose()
478 ttyflush(tp, FREAD | FWRITE); in ttyinput()
546 ttyflush(tp, FWRITE); in ttyinput()
562 ttyflush(tp, FREAD | FWRITE); in ttyinput()
1095 flags = FREAD | FWRITE; in ttioctl_locked()
1097 flags &= FREAD | FWRITE; in ttioctl_locked()
1563 case FWRITE: in ttyselect()
1580 case FWRITE: in ttyselect()
1729 if (rw & FWRITE) { in ttyflush()
1743 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.c355 …if ((error = vnode_open(PROC_SHUTDOWN_LOG, (O_CREAT | FWRITE | O_NOFOLLOW), 0644, 0, &sd_logvp, ct… in sd_openlog()
376 error = vnode_close(sd_logvp, FWRITE, ctx); in sd_closelog()
H A Dkern_core.c442 …if ((error = vnode_open(name, (O_CREAT | FWRITE | O_NOFOLLOW), S_IRUSR, VNODE_LOOKUP_NOFOLLOW, &vp… in coredump()
761 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.c977 if ((FREAD | FWRITE) != (fp->f_flag & (FREAD | FWRITE))) { in vnguard_sysc_setguard()
H A Dsys_generic.c540 if ((fp->f_flag & FWRITE) == 0) { in preparefilewrite()
552 if ((fp->f_flag & FWRITE) == 0) { in preparefilewrite()
926 if ((fp->f_flag & (FREAD | FWRITE)) == 0) { in ioctl()
1588 static int flag[3] = { FREAD, FWRITE, 0 }; in selscan()
/xnu-8796.141.3/bsd/miscfs/fifofs/
H A Dfifo_vnops.c159 if ((ap->a_mode & (FREAD | FWRITE)) == 0) { in fifo_open()
242 if (ap->a_mode & FWRITE) { in fifo_open()
268 if (ap->a_mode & FWRITE) { in fifo_open()
419 if (ap->a_fflag & FWRITE) { in fifo_ioctl()
449 if (ap->a_which & FWRITE) { in fifo_select()
483 if ((fflag & (FREAD | FWRITE)) == 0) { in fifo_close_internal()
507 if (fflag & FWRITE) { in fifo_close_internal()
/xnu-8796.141.3/bsd/sys/
H A Dfcntl.h113 #define FWRITE 0x00000002 macro
238 #define FMASK (FREAD|FWRITE|FAPPEND|FASYNC|FFSYNC|FFDSYNC|FNONBLOCK|FEXEC)
H A Devent.h831 return FWRITE; in knote_get_seltype()
/xnu-8796.141.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-8796.141.3/bsd/dev/random/
H A Drandomdev.c147 if (flags & FWRITE) { in random_open()
/xnu-8796.141.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-8796.141.3/bsd/vfs/
H A Dvfs_vnops.c583 } else if ((fmode & (FREAD | FWRITE | FEXEC)) == FEXEC) { in vn_open_auth()
664 if ((fmode & (FREAD | FWRITE | FEXEC)) == FEXEC) { in vn_open_auth()
828 if (vp->v_tag == VT_HFS && (flags & FWRITE) && vp->v_writecount == 1) { in vn_close()
2227 if ((fp->fp_glob->fg_flag & (FREAD | FWRITE)) == 0) { in vnio_openfd()
/xnu-8796.141.3/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-8796.141.3/iokit/bsddev/
H A DIOKitBSDInit.cpp1331 …vnode_error = vnode_open(kIOCoreDumpPath, (FREAD | FWRITE | O_NOFOLLOW), 0600, 0, &vnode_ptr, vfs_… in IOProvideCoreFileAccess()
1341 vnode_close(vnode_ptr, FREAD | FWRITE, vfs_context); in IOProvideCoreFileAccess()
/xnu-8796.141.3/bsd/nfs/
H A Dnfs_syscalls.c450 if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT)) { in fhopen()
495 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) { in fhopen()
511 if (fmode & (FWRITE | O_TRUNC)) { in fhopen()
/xnu-8796.141.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-8796.141.3/bsd/skywalk/nexus/
H A Dnexus_syscalls.c141 fp->fp_glob->fg_flag |= (FREAD | FWRITE); in __nexus_open()
/xnu-8796.141.3/bsd/netinet/
H A Dip_compat.h523 #define FWRITE WRITE

12