| /xnu-12377.61.12/bsd/kern/ |
| H A D | tty_dev.c | 310 ptcwakeup(tp, FREAD | FWRITE); in ptsopen() 361 ptsstop(tp, FREAD | FWRITE); in ptsclose() 450 ptcwakeup(tp, FREAD); in ptsstart() 476 if (flag & FREAD) { in ptcwakeup() 592 ttyflush(tp, FREAD | FWRITE); in ptcclose() 739 if (flush & FREAD) { 743 flag |= FREAD; 773 case FREAD: 825 case FREAD: 1011 ptcwakeup(tp, FREAD); [all …]
|
| H A D | tty.c | 418 ttyflush(tp, FREAD | FWRITE); in ttyclose() 538 ttyflush(tp, FREAD | FWRITE); in ttyinput() 622 ttyflush(tp, FREAD | FWRITE); in ttyinput() 640 ttyflush(tp, FREAD); in ttyinput() 1159 flags = FREAD | FWRITE; in ttioctl_locked() 1161 flags &= FREAD | FWRITE; in ttioctl_locked() 1322 ttyflush(tp, FREAD); in ttioctl_locked() 1432 if (suser(kauth_cred_get(), NULL) && (flag & FREAD) == 0) { in ttioctl_locked() 1665 case FREAD: in ttyselect() 1687 case FREAD: in ttyselect() [all …]
|
| H A D | chunklist.c | 207 if ((err = VNOP_OPEN(vp, FREAD, ctx)) != 0) { in validate_root_image() 278 VNOP_CLOSE(vp, FREAD, ctx); in validate_root_image()
|
| H A D | tty_tty.c | 247 error = VNOP_SELECT(ttyvp, flag, FREAD | FWRITE, wql, &context); in cttyselect()
|
| H A D | subr_log.c | 302 if (rw != FREAD) { in logselect() 320 if (rw != FREAD) { in oslogselect()
|
| H A D | posix_shm.c | 380 if ((fmode & (FREAD | FWRITE)) == 0) { in shm_open() 723 mode_t mode_req = ((mode & FREAD) ? S_IRUSR : 0) | in pshm_access()
|
| H A D | sys_socket.c | 311 case FREAD: in soo_select()
|
| H A D | imageboot.c | 620 if ((err = VNOP_OPEN(vp, FREAD, ctx)) != 0) { in imageboot_read_file_internal() 726 VNOP_CLOSE(vp, FREAD, ctx); in imageboot_read_file_internal()
|
| H A D | sys_pipe.c | 412 rf->f_flag = FREAD; in pipe() 1270 case FREAD: in pipe_select() 1624 if (fp->f_flag & FREAD) { in pipe_kqfilter()
|
| H A D | kern_descrip.c | 1880 if (((flags & (FREAD | FWRITE)) | wfp->f_flag) != wfp->f_flag) { in dupfdopen() 2698 if ((fp->f_flag & FREAD) == 0) { in sys_fcntl__OPENFROM() 2873 fflag |= FREAD; in sys_fcntl_nocancel() 3102 if ((fflag & FREAD) == 0) { in sys_fcntl_nocancel() 3145 if ((fflag & FREAD) == 0) { in sys_fcntl_nocancel() 3907 (fp->f_flag & FREAD) == 0) { in sys_fcntl_nocancel() 5509 if ((fp->f_flag & FREAD) && (xsecurity == USER_ADDR_NULL)) { in fstat()
|
| H A D | kern_guarded.c | 990 if ((FREAD | FWRITE) != (fp->f_flag & (FREAD | FWRITE))) { in vnguard_sysc_setguard()
|
| /xnu-12377.61.12/bsd/miscfs/fifofs/ |
| H A D | fifo_vnops.c | 159 if ((ap->a_mode & (FREAD | FWRITE)) == 0) { in fifo_open() 160 ap->a_mode |= FREAD; in fifo_open() 230 if (ap->a_mode & FREAD) { in fifo_open() 254 if ((ap->a_mode & FREAD) && (ap->a_mode & O_NONBLOCK) == 0) { in fifo_open() 416 if (ap->a_fflag & FREAD) { in fifo_ioctl() 446 if (ap->a_which & FREAD) { in fifo_select() 487 if ((fflag & (FREAD | FWRITE)) == 0) { in fifo_close_internal() 488 fflag |= FREAD; in fifo_close_internal() 502 if (fflag & FREAD) { in fifo_close_internal()
|
| /xnu-12377.61.12/bsd/sys/ |
| H A D | fcntl.h | 112 #define FREAD 0x00000001 macro 244 #define FMASK (FREAD|FWRITE|FAPPEND|FASYNC|FFSYNC|FFDSYNC|FNONBLOCK|FEXEC)
|
| H A D | event_private.h | 527 return FREAD; in knote_get_seltype()
|
| /xnu-12377.61.12/bsd/tests/ |
| H A D | vm_parameter_validation_kern_bsd.c | 43 if (!(fp->fp_glob->fg_flag & FREAD)) { in get_control_from_fd()
|
| /xnu-12377.61.12/bsd/vm/ |
| H A D | vm_compressor_backing_file.c | 54 (O_CREAT | O_TRUNC | O_NOFOLLOW_ANY | FREAD | FWRITE), in vm_swapfile_open() 428 if ((error = vnode_open(volume_name, FREAD, 0, 0, &vp, ctx))) { in vm_swap_vol_get_capacity()
|
| /xnu-12377.61.12/bsd/miscfs/routefs/ |
| H A D | routefs_ops.c | 238 …error = vnode_lookup(routefs_mp_p->route_path, FREAD | O_DIRECTORY, &routefs_mp_p->route_rvp, ctx); in routefs_root() 455 error = vnode_lookup(args.route_path, FREAD | O_DIRECTORY, &args.route_rvp, ctx); in routefs_kernel_mount()
|
| /xnu-12377.61.12/bsd/vfs/ |
| H A D | vfs_vnops.c | 605 } else if ((fmode & (FREAD | FWRITE | FEXEC)) == FEXEC) { in vn_open_auth() 612 fmode | FREAD, NULL, NULL, ctx); in vn_open_auth() 706 if ((fmode & (FREAD | FWRITE | FEXEC)) == FEXEC) { in vn_open_auth() 707 error = VNOP_OPEN(vp, fmode | FREAD, ctx); in vn_open_auth() 2289 if ((fp->fp_glob->fg_flag & (FREAD | FWRITE)) == 0) { in vnio_openfd()
|
| H A D | vfs_xattr.c | 1668 fileflags = FREAD | O_SHLOCK; in default_getxattr_doubleagent() 1764 if ((error = open_xattrfile(vp, FREAD | O_SHLOCK, &xfg, &fsize, NULL, in default_listxattr_doubleagent() 1924 fileflags = FREAD | FWRITE | O_EXLOCK; in default_setxattr_doubleagent() 2027 fileflags = FREAD | FWRITE | O_EXLOCK; in default_removexattr_doubleagent()
|
| H A D | vfs_exclave_fs.c | 1085 flags |= FREAD; in exclave_fs_open_internal() 1164 int flags = FREAD; in vfs_exclave_fs_close()
|
| /xnu-12377.61.12/bsd/skywalk/channel/ |
| H A D | channel_syscalls.c | 87 case FREAD: in chop_select() 252 fp->fp_glob->fg_flag &= ~(FREAD | FWRITE); in __channel_open()
|
| /xnu-12377.61.12/bsd/skywalk/nexus/ |
| H A D | nexus_syscalls.c | 141 fp->fp_glob->fg_flag |= (FREAD | FWRITE); in __nexus_open()
|
| /xnu-12377.61.12/iokit/bsddev/ |
| H A D | IOKitBSDInit.cpp | 1407 …vnode_error = vnode_open(kdp_corefile_path, (FREAD | FWRITE | O_NOFOLLOW), 0600, 0, &vnode_ptr, vf… in IOProvideCoreFileAccess() 1417 vnode_close(vnode_ptr, FREAD | FWRITE, vfs_context); in IOProvideCoreFileAccess()
|
| /xnu-12377.61.12/bsd/netinet/ |
| H A D | ip_compat.h | 524 #define FREAD READ
|
| /xnu-12377.61.12/bsd/miscfs/devfs/ |
| H A D | devfs_fdesc_support.c | 491 if (!(flags & FREAD)) { in fdesc_attr()
|