/illumos-gate/usr/src/uts/common/syscall/ |
H A D | pipe.c | 132 if (error = falloc(vp1, FWRITE|FREAD, &fp1, &fd1)) { in pipe() 138 if (error = falloc(vp2, FWRITE|FREAD, &fp2, &fd2)) in pipe() 144 if (error = fifo_stropen(&vp1, FWRITE|FREAD, fp1->f_cred, 0, 0)) in pipe() 147 if (error = fifo_stropen(&vp2, FWRITE|FREAD, fp2->f_cred, 0, 0)) { in pipe() 148 (void) VOP_CLOSE(vp1, FWRITE|FREAD, 1, (offset_t)0, in pipe() 210 (void) VOP_CLOSE(vp1, FWRITE|FREAD, 1, (offset_t)0, fp1->f_cred, NULL); in pipe() 211 (void) VOP_CLOSE(vp2, FWRITE|FREAD, 1, (offset_t)0, fp2->f_cred, NULL); in pipe()
|
H A D | strcalls.c | 87 if ((error = msgio(fdes, ctl, data, &rv, FREAD, &pri, in getmsg() 153 error = msgio(fdes, ctl, data, &rv, FREAD, &pri, &flags); in getpmsg() 231 if (mode == FREAD) { in msgio() 316 if ((error = msgio32(fdes, ctl, data, &rv, FREAD, &pri, in getmsg32() 382 error = msgio32(fdes, ctl, data, &rv, FREAD, &pri, &flags); in getpmsg32() 469 if (mode == FREAD) { in msgio32()
|
H A D | getdents.c | 96 if (!(fp->f_flag & FREAD)) { in getdents32() 214 if (!(fp->f_flag & FREAD)) { in getdents64()
|
H A D | open.c | 82 if ((filemode & (FREAD|FWRITE)) || in copen() 206 if ((filemode & (FREAD|FWRITE|FSEARCH|FEXEC|FXATTRDIROPEN)) != 0) { in copen()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | l_strplumb.c | 69 error = fassign(&vp, FREAD|FWRITE, fd); in kstr_open() 71 error = VOP_OPEN(&vp, FREAD|FWRITE, CRED(), NULL); in kstr_open() 136 ret = VOP_CLOSE(vp, FREAD|FWRITE, 1, (offset_t)0, CRED(), NULL); in kstr_close() 227 error = ldi_open_by_name(SAD_ADM, FREAD|FWRITE, in kstr_autopush() 235 error = ldi_open_by_name(SAD_USR, FREAD|FWRITE, in kstr_autopush() 257 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush() 288 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush() 304 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush() 343 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush() 347 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush()
|
H A D | strplumb.c | 363 if ((err = ldi_open_by_name(rootfs.bo_devname, FREAD|FWRITE, CRED(), in strplumb_dev() 405 if ((err = ldi_open_by_name(name, FREAD|FWRITE, CRED(), &mux_lh, in strplumb_dev() 411 FREAD|FWRITE|FNOCTTY|FKIOCTL, CRED(), in strplumb_dev() 424 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in strplumb_dev() 431 if ((err = ldi_open_by_name(rootfs.bo_devname, FREAD|FWRITE, CRED(), in strplumb_dev() 448 FREAD|FWRITE|FNOCTTY|FKIOCTL, CRED(), in strplumb_dev() 470 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in strplumb_dev() 473 (void) ldi_close(mux_lh, FREAD|FWRITE, CRED()); in strplumb_dev() 692 rc = ldi_open_by_name(clonepath, FREAD|FWRITE, CRED(), &lh, li); in getmacaddr() 706 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in getmacaddr() [all …]
|
H A D | consconfig_dacf.c | 612 FREAD|FWRITE|FNOCTTY, kcred, &lh, sp->cons_li) != 0) in consconfig_setup_polledio() 629 (void) ldi_close(lh, FREAD|FWRITE, kcred); in consconfig_setup_polledio() 641 (void) ldi_close(lh, FREAD|FWRITE, kcred); in consconfig_setup_polledio() 780 err = ldi_open_by_dev(&wc_dev, OTYP_CHR, FREAD|FWRITE|FNOCTTY, in consconfig_relink_wc() 811 (void) ldi_close(wc_lh, FREAD|FWRITE, kcred); in consconfig_relink_wc() 836 if (ldi_open_by_name(CONSKBD_PATH, FREAD|FWRITE|FNOCTTY, in cons_build_upper_layer() 845 if (ldi_open_by_name(CONSMS_PATH, FREAD|FWRITE|FNOCTTY, in cons_build_upper_layer() 931 if (ldi_open_by_dev(&wc_dev, OTYP_CHR, FREAD|FWRITE|FNOCTTY, kcred, in cons_build_upper_layer() 949 (void) ldi_close(wc_lh, FREAD|FWRITE, kcred); in cons_build_upper_layer() 1411 FREAD|FWRITE|FNOCTTY, kcred, &new_lh, sp->cons_li); in consconfig_init_input() [all …]
|
H A D | tty_pts.c | 414 ptcpollwakeup(pty, FREAD); /* permit controller to read */ in ptslwput() 475 ptcpollwakeup(pty, FREAD); /* soup's on! */ in ptslwput() 859 ptcpollwakeup(pty, FREAD); in ptslioctl() 871 ptcpollwakeup(pty, FREAD); in ptslioctl() 992 flag = FREAD; in ptcpollwakeup() 997 if (flag & FREAD) { in ptcpollwakeup()
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipftest.c | 332 i = iplioctl(IPL_LOGIPF, cmd, data, FWRITE|FREAD); in ipftestioctl() 354 i = iplioctl(IPL_LOGNAT, cmd, data, FWRITE|FREAD); in ipnattestioctl() 376 i = iplioctl(IPL_LOGSTATE, cmd, data, FWRITE|FREAD); in ipstatetestioctl() 398 i = iplioctl(IPL_LOGAUTH, cmd, data, FWRITE|FREAD); in ipauthtestioctl() 420 i = iplioctl(IPL_LOGSCAN, cmd, data, FWRITE|FREAD); in ipscantestioctl() 442 i = iplioctl(IPL_LOGSYNC, cmd, data, FWRITE|FREAD); in ipsynctestioctl() 464 i = iplioctl(IPL_LOGLOOKUP, cmd, data, FWRITE|FREAD); in ipooltestioctl() 482 i = iplioctl(IPL_LOGIPF, cmd, data, FWRITE|FREAD); 500 i = iplioctl(IPL_LOGNAT, cmd, data, FWRITE|FREAD); 518 i = iplioctl(IPL_LOGSTATE, cmd, data, FWRITE|FREAD); [all …]
|
/illumos-gate/usr/src/uts/common/io/softmac/ |
H A D | softmac_main.c | 705 err = ldi_open_by_dev(&dev, OTYP_CHR, FREAD|FWRITE, kcred, &lh, li); in softmac_mac_register() 709 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register() 725 if (ldi_open_by_dev(&dev, OTYP_CHR, FREAD|FWRITE, kcred, &lh, in softmac_mac_register() 745 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register() 755 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register() 762 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register() 773 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register() 790 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register() 803 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register() 858 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register() [all …]
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | fcntl.h | 87 #define FREAD 0x0001 macro 153 #define FMASK (FREAD|FWRITE|FAPPEND|FASYNC|FFSYNC|FNONBLOCK|O_DIRECT|FEXEC)
|
/illumos-gate/usr/src/uts/common/klm/ |
H A D | nlm_service.c | 381 F_REMOTELOCK | FREAD | FWRITE, in nlm_do_test() 566 flags = F_REMOTELOCK | FREAD | FWRITE; in nlm_do_lock() 750 F_REMOTELOCK | FREAD | FWRITE, in nlm_block() 801 F_REMOTELOCK | FREAD | FWRITE, in nlm_block() 905 F_REMOTELOCK | FREAD | FWRITE, in nlm_do_cancel() 992 F_REMOTELOCK | FREAD | FWRITE, in nlm_do_unlock() 1238 FREAD | FWRITE, CRED(), NULL); in nlm_do_share() 1300 FREAD | FWRITE, CRED(), NULL); in nlm_do_unshare()
|
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/ |
H A D | fake_rw.c | 68 fflag = FREAD; in fake_pread() 140 fflag = FREAD | FWRITE; in fake_pwrite()
|
/illumos-gate/usr/src/uts/i86pc/io/amd_iommu/ |
H A D | amd_iommu.c | 352 if (!(flag & (FREAD|FWRITE))) { in amd_iommu_open() 387 if (!(flag & (FREAD|FWRITE))) { in amd_iommu_close() 426 if (!(mode & (FREAD|FWRITE))) { in amd_iommu_ioctl()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | keysock.c | 246 err = ldi_open_by_name(IP6DEV, FREAD|FWRITE, cr, &ip6_lh, li); in keysock_plumb_ipsec() 253 err = ldi_open_by_name(IPSECAHDEV, FREAD|FWRITE, cr, &lh, li); in keysock_plumb_ipsec() 263 (void) ldi_close(lh, FREAD|FWRITE, cr); in keysock_plumb_ipsec() 267 FREAD+FWRITE+FNOCTTY+FKIOCTL, cr, &muxid); in keysock_plumb_ipsec() 270 (void) ldi_close(lh, FREAD|FWRITE, cr); in keysock_plumb_ipsec() 273 (void) ldi_close(lh, FREAD|FWRITE, cr); in keysock_plumb_ipsec() 278 FREAD|FWRITE, cr, &lh, li); in keysock_plumb_ipsec() 289 (void) ldi_close(lh, FREAD|FWRITE, cr); in keysock_plumb_ipsec() 293 FREAD+FWRITE+FNOCTTY+FKIOCTL, cr, &muxid); in keysock_plumb_ipsec() 297 (void) ldi_close(lh, FREAD|FWRITE, cr); in keysock_plumb_ipsec() [all …]
|
/illumos-gate/usr/src/uts/common/io/audio/impl/ |
H A D | audio_sun.c | 378 if (oflag & FREAD) in devaudio_proc_hold() 384 if (oflag & FREAD) in devaudio_proc_hold() 391 if (oflag & FREAD) in devaudio_proc_hold() 417 if (oflag & FREAD) { in devaudio_proc_hold() 435 proc->p_oflag |= FREAD; in devaudio_proc_hold() 495 proc->p_oflag &= ~FREAD; in devaudio_proc_release() 1081 if (oflag & FREAD) { in devaudio_open() 1095 oflag &= ~(FWRITE | FREAD); in devaudioctl_open()
|
H A D | audio_oss.c | 513 if (oflag & FREAD) { in oss_open() 611 if (oflag & FREAD) { in sndctl_dsp_speed() 650 if (oflag & FREAD) { in sndctl_dsp_setfmt() 658 } else if (oflag & FREAD) { in sndctl_dsp_setfmt() 707 if (oflag & FREAD) { in sndctl_dsp_channels() 715 } else if (oflag & FREAD) { in sndctl_dsp_channels() 795 if (oflag & FREAD) { in sndctl_dsp_gettrigger() 821 if ((oflag & FREAD) && (triggers & PCM_ENABLE_INPUT)) { in sndctl_dsp_settrigger() 1002 if (auclnt_get_oflag(c) & FREAD) { in sndctl_dsp_halt_input() 1463 else if (oflag & FREAD) in sndctl_dsp_getblksize() [all …]
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_vfsops.c | 315 oflag = FREAD; in ufs_mount() 318 oflag = FREAD | FWRITE; in ufs_mount() 526 (void) VOP_CLOSE(vp, FREAD|FWRITE, 1, in ufs_mountroot() 539 error = VOP_OPEN(&devvp, FREAD|FWRITE, CRED(), NULL); in ufs_mountroot() 541 (void) VOP_CLOSE(devvp, FREAD|FWRITE, 1, in ufs_mountroot() 832 (vfsp->vfs_flag & VFS_RDONLY) ? FREAD : FREAD|FWRITE, in mountfs() 1198 FKIOCTL|FNATIVE|FREAD, CRED(), &status) == 0) { in mountfs() 1366 FREAD : FREAD|FWRITE, 1, (offset_t)0, cr, NULL); in mountfs()
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/fksmbcl/ |
H A D | fksmbcl_main.c | 437 error = vn_open(rdir, 0, FREAD, 0, &vp, 0, 0); in do_dir() 475 error = vn_open(rdir, 0, FREAD|FXATTRDIROPEN, 0, &vp, 0, 0); in do_dirx() 596 error = vn_open(rname, 0, FREAD, 0, &vp, 0, 0); in do_get() 642 int oflg = FREAD|FWRITE|FCREAT; in do_put()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_srv_deleg.c | 1643 fflags |= FREAD; in rfs4_deleg_state() 1689 vn_open_upgrade(vp, FREAD); in rfs4_deleg_state() 1693 ((fflags & FREAD) && vn_has_other_opens(vp, V_READ)) || in rfs4_deleg_state() 1694 (((fflags & FREAD) == 0) && vn_is_opened(vp, V_READ)) || in rfs4_deleg_state() 1707 ((fflags & FREAD) && vn_has_other_opens(vp, V_READ)) || in rfs4_deleg_state() 1708 (((fflags & FREAD) == 0) && vn_is_opened(vp, V_READ)) || in rfs4_deleg_state() 1730 vn_open_upgrade(vp, FREAD|FWRITE); in rfs4_deleg_state() 1790 vn_open_downgrade(fp->rf_vp, FREAD); in rfs4_return_deleg() 1794 vn_open_downgrade(fp->rf_vp, FREAD|FWRITE); in rfs4_return_deleg()
|
/illumos-gate/usr/src/uts/sun4u/opl/io/oplmsu/ |
H A D | oplmsu.c | 1103 ldi_open_by_dev(&devt, OTYP_CHR, (FREAD|FWRITE), kcred, lhp, *lip); in oplmsu_open_msu() 1137 rval = ldi_open_by_name(pathname, (FREAD|FWRITE|FEXCL), kcred, &lh, li); in oplmsu_plink_serial() 1160 (void) ldi_close(lh, (FREAD|FWRITE|FEXCL), kcred); in oplmsu_plink_serial() 1246 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_attach() 1258 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_attach() 1272 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_attach() 1302 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_attach() 1409 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_detach() 1415 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_detach() 1626 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_conf_stream() [all …]
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | crossref.c | 53 #define FREAD "r" /* fopen for reading */ macro 85 if ((yyin = vpfopen(srcfile, FREAD)) == NULL) { in crossref()
|
/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_vfsops.c | 290 oflag = FREAD; in udf_mount() 293 oflag = FREAD | FWRITE; in udf_mount() 580 (void) VOP_CLOSE(vp, FREAD|FWRITE, 1, in udf_mountroot() 644 (vfsp->vfs_flag & VFS_RDONLY) ? FREAD : FREAD|FWRITE, in ud_mountfs() 951 FREAD : FREAD|FWRITE, 1, (offset_t)0, cr, NULL); in ud_mountfs() 1618 FKIOCTL|FREAD|FNATIVE, CRED(), &rval)) != 0) { in ud_get_last_block() 1627 FKIOCTL|FREAD|FNATIVE, CRED(), &rval)) != 0) { in ud_get_last_block() 1855 FKIOCTL|FREAD|FNATIVE, CRED(), &rval) != 0) { in ud_get_lbsize()
|
/illumos-gate/usr/src/ucbhead/sys/ |
H A D | file.h | 82 #define FREAD 0x01 macro
|
/illumos-gate/usr/src/uts/common/inet/sockmods/ |
H A D | sockmod_rds.c | 60 ret = ldi_open_by_name(RDSV3_DEVICE_NAME, FREAD | FWRITE, kcred, in _init()
|