Home
last modified time | relevance | path

Searched refs:FREAD (Results 1 – 25 of 168) sorted by relevance

1234567

/titanic_44/usr/src/uts/common/syscall/
H A Dpipe.c132 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()
205 (void) VOP_CLOSE(vp1, FWRITE|FREAD, 1, (offset_t)0, fp1->f_cred, NULL); in pipe()
206 (void) VOP_CLOSE(vp2, FWRITE|FREAD, 1, (offset_t)0, fp2->f_cred, NULL); in pipe()
H A Dstrcalls.c90 if ((error = msgio(fdes, ctl, data, &rv, FREAD, &pri, in getmsg()
156 error = msgio(fdes, ctl, data, &rv, FREAD, &pri, &flags); in getpmsg()
234 if (mode == FREAD) { in msgio()
319 if ((error = msgio32(fdes, ctl, data, &rv, FREAD, &pri, in getmsg32()
385 error = msgio32(fdes, ctl, data, &rv, FREAD, &pri, &flags); in getpmsg32()
472 if (mode == FREAD) { in msgio32()
H A Dgetdents.c96 if (!(fp->f_flag & FREAD)) { in getdents32()
214 if (!(fp->f_flag & FREAD)) { in getdents64()
H A Dopen.c81 if ((filemode & (FREAD|FWRITE)) || in copen()
205 if ((filemode & (FREAD|FWRITE|FSEARCH|FEXEC|FXATTRDIROPEN)) != 0) { in copen()
/titanic_44/usr/src/uts/common/io/
H A Dl_strplumb.c71 error = fassign(&vp, FREAD|FWRITE, fd); in kstr_open()
73 error = VOP_OPEN(&vp, FREAD|FWRITE, CRED(), NULL); in kstr_open()
138 ret = VOP_CLOSE(vp, FREAD|FWRITE, 1, (offset_t)0, CRED(), NULL); in kstr_close()
229 error = ldi_open_by_name(SAD_ADM, FREAD|FWRITE, in kstr_autopush()
237 error = ldi_open_by_name(SAD_USR, FREAD|FWRITE, in kstr_autopush()
259 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush()
290 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush()
306 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush()
345 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush()
349 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush()
H A Dstrplumb.c351 if ((err = ldi_open_by_name(rootfs.bo_devname, FREAD|FWRITE, CRED(), in strplumb_dev()
393 if ((err = ldi_open_by_name(name, FREAD|FWRITE, CRED(), &mux_lh, in strplumb_dev()
399 FREAD|FWRITE|FNOCTTY|FKIOCTL, CRED(), in strplumb_dev()
412 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in strplumb_dev()
419 if ((err = ldi_open_by_name(rootfs.bo_devname, FREAD|FWRITE, CRED(), in strplumb_dev()
436 FREAD|FWRITE|FNOCTTY|FKIOCTL, CRED(), in strplumb_dev()
458 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in strplumb_dev()
461 (void) ldi_close(mux_lh, FREAD|FWRITE, CRED()); in strplumb_dev()
664 rc = ldi_open_by_name(clonepath, FREAD|FWRITE, CRED(), &lh, li); in getmacaddr()
678 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in getmacaddr()
[all …]
H A Dconsconfig_dacf.c601 FREAD|FWRITE|FNOCTTY, kcred, &lh, sp->cons_li) != 0) in consconfig_setup_polledio()
618 (void) ldi_close(lh, FREAD|FWRITE, kcred); in consconfig_setup_polledio()
630 (void) ldi_close(lh, FREAD|FWRITE, kcred); in consconfig_setup_polledio()
768 err = ldi_open_by_dev(&wc_dev, OTYP_CHR, FREAD|FWRITE|FNOCTTY, in consconfig_relink_wc()
799 (void) ldi_close(wc_lh, FREAD|FWRITE, kcred); in consconfig_relink_wc()
824 if (ldi_open_by_name(CONSKBD_PATH, FREAD|FWRITE|FNOCTTY, in cons_build_upper_layer()
833 if (ldi_open_by_name(CONSMS_PATH, FREAD|FWRITE|FNOCTTY, in cons_build_upper_layer()
919 if (ldi_open_by_dev(&wc_dev, OTYP_CHR, FREAD|FWRITE|FNOCTTY, kcred, in cons_build_upper_layer()
938 (void) ldi_close(wc_lh, FREAD|FWRITE, kcred); in cons_build_upper_layer()
1392 FREAD|FWRITE|FNOCTTY, kcred, &new_lh, sp->cons_li); in consconfig_init_input()
[all …]
H A Dtty_pts.c414 ptcpollwakeup(pty, FREAD); /* permit controller to read */ in ptslwput()
474 ptcpollwakeup(pty, FREAD); /* soup's on! */ in ptslwput()
857 ptcpollwakeup(pty, FREAD); in ptslioctl()
869 ptcpollwakeup(pty, FREAD); in ptslioctl()
990 flag = FREAD; in ptcpollwakeup()
995 if (flag & FREAD) { in ptcpollwakeup()
/titanic_44/usr/src/cmd/ipf/tools/
H A Dipftest.c332 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 …]
/titanic_44/usr/src/lib/libbc/inc/include/sys/
H A Dfile.h58 #define FMASK (FREAD|FWRITE|FAPPEND|FSYNC|FNBIO|FNONBIO)
59 #define FCNTLCANT (FREAD|FWRITE|FMARK|FDEFER|FSHLOCK|FEXLOCK)
/titanic_44/usr/src/uts/common/io/softmac/
H A Dsoftmac_main.c705 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 …]
/titanic_44/usr/src/uts/sun4u/montecarlo/io/ttymux_dacf/
H A Dttymux_dacf.c144 #define OFLAGS FREAD|FWRITE|FNOCTTY|FNONBLOCK
535 vn_open(fspath, UIO_SYSSPACE, FREAD, 0, &vp, 0, 0) != 0) { in fs_devtype()
539 VOP_CLOSE(vp, FREAD, 1, (offset_t)0, CRED(), NULL); in fs_devtype()
571 if ((rv = VOP_OPEN(vp, FREAD+FWRITE+FNOCTTY, CRED(), NULL)) != 0) { in open_stream()
575 if ((rv = falloc(*vp, FREAD+FWRITE+FNOCTTY, &fp, NULL)) != 0) { in open_stream()
589 VOP_CLOSE(*vp, FREAD+FWRITE+FNOCTTY, 1, (offset_t)0, CRED(), NULL); in open_stream()
640 FREAD+FWRITE+FNOCTTY, K_TO_K, CRED(), &(cn->sm_muxid))) != 0) { in link_aconsole()
672 VOP_CLOSE(lvp, FREAD+FWRITE+FNOCTTY, 1, (offset_t)0, CRED(), NULL); in link_aconsole()
/titanic_44/usr/src/uts/common/fs/sockfs/
H A Dnl7c.c363 ret = vn_open(portconf, UIO_SYSSPACE, FREAD, 0, &vp, 0, 0); in ncaportconf_read()
503 (void) VOP_CLOSE(vp, FREAD, 1, (offset_t)0, CRED(), NULL); in ncaportconf_read()
529 ret = vn_open(ncakmod, UIO_SYSSPACE, FREAD, 0, &vp, 0, 0); in ncakmodconf_read()
606 (void) VOP_CLOSE(vp, FREAD, 1, (offset_t)0, CRED(), NULL); in ncakmodconf_read()
651 ret = vn_open(ncalogd, UIO_SYSSPACE, FREAD, 0, &vp, 0, 0); in ncalogdconf_read()
806 (void) VOP_CLOSE(vp, FREAD, 1, (offset_t)0, CRED(), NULL); in ncalogdconf_read()
/titanic_44/usr/src/uts/common/avs/ns/solaris/
H A Dnsc_raw.c381 OTYP_BLK, FREAD|FWRITE, cred, &cdi->lh, li); in _raw_open()
412 (void) ldi_close(cdi->lh, FWRITE|FREAD, cred); in _raw_open()
464 rc = ldi_close(cdi->lh, FREAD|FWRITE, cred); in _raw_close()
608 flags = FKIOCTL | FREAD | FWRITE | DATAMODEL_NATIVE; in _raw_get_bsize()
783 flag = FREAD | FWRITE | ddi_mmap_get_model(); in nskern_bsize()
/titanic_44/usr/src/uts/i86pc/io/amd_iommu/
H A Damd_iommu.c352 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()
/titanic_44/usr/src/uts/common/klm/
H A Dnlm_service.c375 F_REMOTELOCK | FREAD | FWRITE, in nlm_do_test()
553 flags = F_REMOTELOCK | FREAD | FWRITE; in nlm_do_lock()
720 F_REMOTELOCK | FREAD | FWRITE, in nlm_block()
837 F_REMOTELOCK | FREAD | FWRITE, in nlm_do_cancel()
924 F_REMOTELOCK | FREAD | FWRITE, in nlm_do_unlock()
1170 FREAD | FWRITE, CRED(), NULL); in nlm_do_share()
1232 FREAD | FWRITE, CRED(), NULL); in nlm_do_unshare()
/titanic_44/usr/src/uts/common/inet/ip/
H A Dkeysock.c243 err = ldi_open_by_name(IP6DEV, FREAD|FWRITE, cr, &ip6_lh, li); in keysock_plumb_ipsec()
250 err = ldi_open_by_name(IPSECAHDEV, FREAD|FWRITE, cr, &lh, li); in keysock_plumb_ipsec()
260 (void) ldi_close(lh, FREAD|FWRITE, cr); in keysock_plumb_ipsec()
264 FREAD+FWRITE+FNOCTTY+FKIOCTL, cr, &muxid); in keysock_plumb_ipsec()
267 (void) ldi_close(lh, FREAD|FWRITE, cr); in keysock_plumb_ipsec()
270 (void) ldi_close(lh, FREAD|FWRITE, cr); in keysock_plumb_ipsec()
275 FREAD|FWRITE, cr, &lh, li); in keysock_plumb_ipsec()
286 (void) ldi_close(lh, FREAD|FWRITE, cr); in keysock_plumb_ipsec()
290 FREAD+FWRITE+FNOCTTY+FKIOCTL, cr, &muxid); in keysock_plumb_ipsec()
294 (void) ldi_close(lh, FREAD|FWRITE, cr); in keysock_plumb_ipsec()
[all …]
/titanic_44/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv_deleg.c1626 fflags |= FREAD; in rfs4_deleg_state()
1672 vn_open_upgrade(vp, FREAD); in rfs4_deleg_state()
1676 ((fflags & FREAD) && vn_has_other_opens(vp, V_READ)) || in rfs4_deleg_state()
1677 (((fflags & FREAD) == 0) && vn_is_opened(vp, V_READ)) || in rfs4_deleg_state()
1690 ((fflags & FREAD) && vn_has_other_opens(vp, V_READ)) || in rfs4_deleg_state()
1691 (((fflags & FREAD) == 0) && vn_is_opened(vp, V_READ)) || in rfs4_deleg_state()
1713 vn_open_upgrade(vp, FREAD|FWRITE); in rfs4_deleg_state()
1773 vn_open_downgrade(fp->rf_vp, FREAD); in rfs4_return_deleg()
1777 vn_open_downgrade(fp->rf_vp, FREAD|FWRITE); in rfs4_return_deleg()
/titanic_44/usr/src/uts/common/io/audio/impl/
H A Daudio_sun.c378 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 Daudio_oss.c513 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 …]
/titanic_44/usr/src/uts/common/inet/sockmods/
H A Dsockmod_rds.c60 ret = ldi_open_by_name(RDSV3_DEVICE_NAME, FREAD | FWRITE, kcred, in _init()
/titanic_44/usr/src/ucbhead/sys/
H A Dfile.h84 #define FREAD 0x01 macro
/titanic_44/usr/src/uts/common/fs/ufs/
H A Dufs_vfsops.c314 oflag = FREAD; in ufs_mount()
317 oflag = FREAD | FWRITE; in ufs_mount()
525 (void) VOP_CLOSE(vp, FREAD|FWRITE, 1, in ufs_mountroot()
538 error = VOP_OPEN(&devvp, FREAD|FWRITE, CRED(), NULL); in ufs_mountroot()
540 (void) VOP_CLOSE(devvp, FREAD|FWRITE, 1, in ufs_mountroot()
831 (vfsp->vfs_flag & VFS_RDONLY) ? FREAD : FREAD|FWRITE, in mountfs()
1197 FKIOCTL|FNATIVE|FREAD, CRED(), &status) == 0) { in mountfs()
1365 FREAD : FREAD|FWRITE, 1, (offset_t)0, cr, NULL); in mountfs()
/titanic_44/usr/src/tools/cscope-fast/
H A Dcrossref.c55 #define FREAD "r" /* fopen for reading */ macro
87 if ((yyin = vpfopen(srcfile, FREAD)) == NULL) { in crossref()
/titanic_44/usr/src/uts/sun4u/opl/io/oplmsu/
H A Doplmsu.c1100 ldi_open_by_dev(&devt, OTYP_CHR, (FREAD|FWRITE), kcred, lhp, *lip); in oplmsu_open_msu()
1134 rval = ldi_open_by_name(pathname, (FREAD|FWRITE|FEXCL), kcred, &lh, li); in oplmsu_plink_serial()
1157 (void) ldi_close(lh, (FREAD|FWRITE|FEXCL), kcred); in oplmsu_plink_serial()
1243 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_attach()
1255 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_attach()
1269 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_attach()
1299 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_attach()
1406 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_detach()
1412 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_dr_detach()
1625 (void) ldi_close(msu_lh, (FREAD|FWRITE), kcred); in oplmsu_conf_stream()
[all …]

1234567