/titanic_44/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() 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 D | strcalls.c | 132 error = msgio(fdes, ctl, data, &rv, FWRITE, &pri, &realflags); in putmsg() 178 error = msgio(fdes, ctl, data, &rv, FWRITE, &pri, &flags); in putpmsg() 361 error = msgio32(fdes, ctl, data, &rv, FWRITE, &pri, &realflags); in putmsg32() 407 error = msgio32(fdes, ctl, data, &rv, FWRITE, &pri, &flags); in putpmsg32()
|
H A D | acctctl.c | 165 error = VOP_CLOSE(info->ac_vnode, FWRITE, 1, 0, in ac_file_set() 245 FCREAT | FWRITE | FOFFMAX, 0600, &vp, CRCREAT, 0)) != 0) { in ac_file_set() 280 if ((error = VOP_CLOSE(vp, FWRITE, 1, 0, CRED(), NULL)) != 0) { in ac_file_set() 567 (void) VOP_CLOSE(info->ac_vnode, FWRITE, 1, 0, kcred, NULL); in exacct_free_info()
|
H A D | open.c | 81 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 D | l_strplumb.c | 71 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 D | strplumb.c | 351 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 D | consconfig_dacf.c | 601 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 …]
|
/titanic_44/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 …]
|
H A D | ip_fil.c | 251 if (!(mode & FWRITE)) { 305 if (!(mode & FWRITE)) 318 if (!(mode & FWRITE)) { 328 if (!(mode & FWRITE)) 345 if (!(mode & FWRITE)) 354 if (!(mode & FWRITE)) 361 if (!(mode & FWRITE)) 373 if (!(mode & FWRITE)) 379 if (!(mode & FWRITE)) 391 if (!(mode & FWRITE)) [all …]
|
/titanic_44/usr/src/lib/libbc/inc/include/sys/ |
H A D | file.h | 58 #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 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 …]
|
/titanic_44/usr/src/uts/sun4u/io/ |
H A D | ppm_plat.c | 60 (intptr_t)index, FWRITE | FKIOCTL, kcred, NULL); in ppm_cpu_next() 101 FWRITE | FKIOCTL, kcred, NULL); in ppm_cpu_pre_chng() 136 (intptr_t)dc->m_un.kio.val, FWRITE | FKIOCTL, in ppm_cpu_go() 173 FWRITE | FKIOCTL, kcred, NULL); in ppm_cpu_post_chng()
|
/titanic_44/usr/src/uts/common/os/ |
H A D | acct.c | 130 (void) VOP_CLOSE(ag->acctvp, FWRITE, 1, (offset_t)0, kcred, in acct_shutdown() 282 error = VOP_CLOSE(vp, FWRITE, 1, (offset_t)0, CRED(), in sysacct() 296 if ((error = vn_open(fname, UIO_USERSPACE, FWRITE, in sysacct() 335 (void) VOP_CLOSE(vp, FWRITE, 1, (offset_t)0, CRED(), NULL); in sysacct()
|
/titanic_44/usr/src/uts/i86pc/io/fipe/ |
H A D | fipe_drv.c | 100 if ((mode & FWRITE) == 0) { in fipe_ioctl() 111 if ((mode & FWRITE) == 0) { in fipe_ioctl() 135 if ((mode & FWRITE) == 0) { in fipe_ioctl()
|
/titanic_44/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_srv_deleg.c | 1458 if (mode == FWRITE || fp->rf_dinfo.rd_dtype == OPEN_DELEGATE_WRITE) { in rfs4_check_delegated_byfp() 1628 fflags |= FWRITE; in rfs4_deleg_state() 1637 if (((fflags & FWRITE) && vn_has_other_opens(vp, V_WRITE)) || in rfs4_deleg_state() 1638 (((fflags & FWRITE) == 0) && vn_is_opened(vp, V_WRITE)) || in rfs4_deleg_state() 1649 if (((fflags & FWRITE) && vn_has_other_opens(vp, V_WRITE)) || in rfs4_deleg_state() 1650 (((fflags & FWRITE) == 0) && vn_is_opened(vp, V_WRITE)) || in rfs4_deleg_state() 1674 if (((fflags & FWRITE) && vn_has_other_opens(vp, V_WRITE)) || in rfs4_deleg_state() 1675 (((fflags & FWRITE) == 0) && vn_is_opened(vp, V_WRITE)) || in rfs4_deleg_state() 1688 if (((fflags & FWRITE) && vn_has_other_opens(vp, V_WRITE)) || in rfs4_deleg_state() 1689 (((fflags & FWRITE) == 0) && vn_is_opened(vp, V_WRITE)) || in rfs4_deleg_state() [all …]
|
/titanic_44/usr/src/uts/common/io/audio/impl/ |
H A D | audio_oss.c | 503 if (oflag & FWRITE) { in oss_open() 616 if (oflag & FWRITE) { in sndctl_dsp_speed() 646 if (oflag & FWRITE) { in sndctl_dsp_setfmt() 656 if (oflag & FWRITE) { in sndctl_dsp_setfmt() 702 if (oflag & FWRITE) { in sndctl_dsp_channels() 713 if (oflag & FWRITE) { in sndctl_dsp_channels() 744 if (auclnt_get_oflag(c) & FWRITE) { in sndctl_dsp_post() 789 if (oflag & FWRITE) { in sndctl_dsp_gettrigger() 815 if ((oflag & FWRITE) && (triggers & PCM_ENABLE_OUTPUT)) { in sndctl_dsp_settrigger() 979 if (auclnt_get_oflag(c) & FWRITE) { in sndctl_dsp_silence() [all …]
|
/titanic_44/usr/src/uts/sun4u/montecarlo/io/ttymux_dacf/ |
H A D | ttymux_dacf.c | 144 #define OFLAGS FREAD|FWRITE|FNOCTTY|FNONBLOCK 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/cpr/ |
H A D | cpr_misc.c | 479 FCREAT|FWRITE, 0600, &C_VP, CRCREAT, 0)) { in cpr_alloc_statefile() 737 (void) VOP_CLOSE(C_VP, FWRITE, 1, (offset_t)0, CRED(), NULL); in cpr_statef_close() 772 if (rc = cpr_open_deffile(FCREAT|FWRITE, &vp)) in cpr_write_deffile() 779 (void) VOP_CLOSE(vp, FWRITE, 1, (offset_t)0, CRED(), NULL); in cpr_write_deffile() 801 cpr_open_deffile(FCREAT|FWRITE, &vp)) in cpr_clear_definfo() 805 (void) VOP_CLOSE(vp, FWRITE, 1, (offset_t)0, CRED(), NULL); in cpr_clear_definfo()
|
/titanic_44/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_raw.c | 381 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 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()
|
/titanic_44/usr/src/uts/common/klm/ |
H A D | nlm_service.c | 375 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 D | keysock.c | 243 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/objfs/ |
H A D | objfs_common.c | 42 if ((flag & (FOFFMAX | FWRITE)) != FOFFMAX) in objfs_dir_open()
|
/titanic_44/usr/src/uts/common/fs/sockfs/ |
H A D | nl7clogd.c | 280 ret = VOP_CLOSE(nca_fio_vp(&fio), FCREAT|FWRITE|FAPPEND|FTRUNC, in logd_log_write() 310 ret = vn_open(nca_fio_name(&fio), UIO_SYSSPACE, FCREAT|FWRITE|FTRUNC, in logd_log_write() 494 FCREAT|FWRITE|FAPPEND, 0600, &vp, 0, 0); in nl7c_logd_init() 532 FCREAT|FWRITE|FTRUNC, 0600, &nca_fio_vp(&fio), 0, 0); in nl7c_logd_init()
|
/titanic_44/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()
|