Home
last modified time | relevance | path

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

123456789

/illumos-gate/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()
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 Dstrcalls.c129 error = msgio(fdes, ctl, data, &rv, FWRITE, &pri, &realflags); in putmsg()
175 error = msgio(fdes, ctl, data, &rv, FWRITE, &pri, &flags); in putpmsg()
358 error = msgio32(fdes, ctl, data, &rv, FWRITE, &pri, &realflags); in putmsg32()
404 error = msgio32(fdes, ctl, data, &rv, FWRITE, &pri, &flags); in putpmsg32()
H A Dacctctl.c165 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 Dopen.c82 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 Dl_strplumb.c69 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 Dstrplumb.c363 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 Dconsconfig_dacf.c612 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 …]
/illumos-gate/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 …]
H A Dip_fil.c251 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 …]
/illumos-gate/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 …]
/illumos-gate/usr/src/uts/sun4u/io/
H A Dppm_plat.c60 (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()
/illumos-gate/usr/src/uts/common/os/
H A Dacct.c130 (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()
/illumos-gate/usr/src/uts/i86pc/io/fipe/
H A Dfipe_drv.c100 if ((mode & FWRITE) == 0) { in fipe_ioctl()
111 if ((mode & FWRITE) == 0) { in fipe_ioctl()
135 if ((mode & FWRITE) == 0) { in fipe_ioctl()
/illumos-gate/usr/src/uts/common/io/audio/impl/
H A Daudio_oss.c503 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 …]
H A Daudio_sun.c376 if (oflag & FWRITE) in devaudio_proc_hold()
382 if (oflag & FWRITE) in devaudio_proc_hold()
389 if (oflag & FWRITE) in devaudio_proc_hold()
395 if (oflag & FWRITE) { in devaudio_proc_hold()
414 proc->p_oflag |= FWRITE; in devaudio_proc_hold()
491 proc->p_oflag &= ~FWRITE; in devaudio_proc_release()
1095 oflag &= ~(FWRITE | FREAD); in devaudioctl_open()
/illumos-gate/usr/src/boot/sys/sys/
H A Dfcntl.h88 #define FWRITE 0x0002 macro
153 #define FMASK (FREAD|FWRITE|FAPPEND|FASYNC|FFSYNC|FNONBLOCK|O_DIRECT|FEXEC)
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv_deleg.c1471 if (mode == FWRITE || fp->rf_dinfo.rd_dtype == OPEN_DELEGATE_WRITE) { in rfs4_check_delegated_byfp()
1645 fflags |= FWRITE; in rfs4_deleg_state()
1654 if (((fflags & FWRITE) && vn_has_other_opens(vp, V_WRITE)) || in rfs4_deleg_state()
1655 (((fflags & FWRITE) == 0) && vn_is_opened(vp, V_WRITE)) || in rfs4_deleg_state()
1666 if (((fflags & FWRITE) && vn_has_other_opens(vp, V_WRITE)) || in rfs4_deleg_state()
1667 (((fflags & FWRITE) == 0) && vn_is_opened(vp, V_WRITE)) || in rfs4_deleg_state()
1691 if (((fflags & FWRITE) && vn_has_other_opens(vp, V_WRITE)) || in rfs4_deleg_state()
1692 (((fflags & FWRITE) == 0) && vn_is_opened(vp, V_WRITE)) || in rfs4_deleg_state()
1705 if (((fflags & FWRITE) && vn_has_other_opens(vp, V_WRITE)) || in rfs4_deleg_state()
1706 (((fflags & FWRITE) == 0) && vn_is_opened(vp, V_WRITE)) || in rfs4_deleg_state()
[all …]
/illumos-gate/usr/src/uts/common/cpr/
H A Dcpr_misc.c481 FCREAT|FWRITE, 0600, &C_VP, CRCREAT, 0)) { in cpr_alloc_statefile()
739 (void) VOP_CLOSE(C_VP, FWRITE, 1, (offset_t)0, CRED(), NULL); in cpr_statef_close()
774 if (rc = cpr_open_deffile(FCREAT|FWRITE, &vp)) in cpr_write_deffile()
781 (void) VOP_CLOSE(vp, FWRITE, 1, (offset_t)0, CRED(), NULL); in cpr_write_deffile()
803 cpr_open_deffile(FCREAT|FWRITE, &vp)) in cpr_clear_definfo()
807 (void) VOP_CLOSE(vp, FWRITE, 1, (offset_t)0, CRED(), NULL); in cpr_clear_definfo()
/illumos-gate/usr/src/uts/common/klm/
H A Dnlm_service.c381 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/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()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dkeysock.c246 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/lib/smbclnt/libfksmbfs/common/
H A Dfake_open.c121 if (filemode & (FWRITE|FTRUNC)) in vn_open()
182 if (filemode & (FWRITE|FTRUNC)) { in vn_open()
/illumos-gate/usr/src/uts/sun4u/opl/io/oplmsu/
H A Doplmsu.c1103 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/uts/common/fs/objfs/
H A Dobjfs_common.c40 if ((flag & (FOFFMAX | FWRITE)) != FOFFMAX) in objfs_dir_open()
/illumos-gate/usr/src/ucbhead/sys/
H A Dfile.h83 #define FWRITE 0x02 macro

123456789