Home
last modified time | relevance | path

Searched refs:vp (Results 1 – 25 of 466) sorted by relevance

12345678910>>...19

/freebsd/contrib/nvi/vi/
H A Dv_left.c30 v_left(SCR *sp, VICMD *vp) in v_left() argument
38 if (vp->m_start.cno == 0) { in v_left()
44 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_left()
45 if (vp->m_start.cno > cnt) in v_left()
46 vp->m_stop.cno = vp->m_start.cno - cnt; in v_left()
48 vp->m_stop.cno = 0; in v_left()
55 if (ISMOTION(vp)) in v_left()
56 --vp->m_start.cno; in v_left()
57 vp->m_final = vp->m_stop; in v_left()
68 v_cfirst(SCR *sp, VICMD *vp) in v_cfirst() argument
[all …]
H A Dv_scroll.c66 v_lgoto(SCR *sp, VICMD *vp) in v_lgoto() argument
70 if (F_ISSET(vp, VC_C1SET)) { in v_lgoto()
71 if (!db_exist(sp, vp->count)) { in v_lgoto()
76 if (vp->count == 1) { in v_lgoto()
82 v_eof(sp, &vp->m_start); in v_lgoto()
85 vp->m_stop.lno = vp->count; in v_lgoto()
89 vp->m_stop.lno = nlines ? nlines : 1; in v_lgoto()
91 goto_adjust(vp); in v_lgoto()
103 v_home(SCR *sp, VICMD *vp) in v_home() argument
105 if (vs_sm_position(sp, &vp->m_stop, in v_home()
[all …]
H A Dv_itxt.c65 v_iA(SCR *sp, VICMD *vp) in v_iA() argument
69 if (!db_get(sp, vp->m_start.lno, 0, NULL, &len)) in v_iA()
74 return (v_ia(sp, vp)); in v_iA()
85 v_ia(SCR *sp, VICMD *vp) in v_ia() argument
92 flags = set_txt_std(sp, vp, 0); in v_ia()
94 sp->lno = vp->m_start.lno; in v_ia()
111 return (v_txt(sp, vp, NULL, p, len, in v_ia()
112 0, OOBLNO, F_ISSET(vp, VC_C1SET) ? vp->count : 1, flags)); in v_ia()
122 v_iI(SCR *sp, VICMD *vp) in v_iI() argument
125 if (nonblank(sp, vp->m_start.lno, &sp->cno)) in v_iI()
[all …]
H A Dv_mark.c34 v_mark(SCR *sp, VICMD *vp) in v_mark() argument
36 return (mark_set(sp, vp->character, &vp->m_start, 1)); in v_mark()
55 v_bmark(SCR *sp, VICMD *vp) in v_bmark() argument
57 return (mark(sp, vp, 1, BQMARK)); in v_bmark()
69 v_fmark(SCR *sp, VICMD *vp) in v_fmark() argument
71 return (mark(sp, vp, 1, FQMARK)); in v_fmark()
81 v_emark(SCR *sp, VICMD *vp) in v_emark() argument
85 smp = HMAP + vp->ev.e_lno; in v_emark()
90 vp->m_stop.lno = smp->lno; in v_emark()
91 vp->m_stop.cno = in v_emark()
[all …]
H A Dv_right.c30 v_right(SCR *sp, VICMD *vp) in v_right() argument
35 if (db_eget(sp, vp->m_start.lno, NULL, &len, &isempty)) { in v_right()
56 vp->m_stop.cno = vp->m_start.cno + in v_right()
57 (F_ISSET(vp, VC_C1SET) ? vp->count : 1); in v_right()
58 if (vp->m_start.cno == len - 1 && !ISMOTION(vp)) { in v_right()
62 if (vp->m_stop.cno >= len) { in v_right()
63 vp->m_stop.cno = len - 1; in v_right()
64 vp->m_final = ISMOTION(vp) ? vp->m_start : vp->m_stop; in v_right()
65 } else if (ISMOTION(vp)) { in v_right()
66 --vp->m_stop.cno; in v_right()
[all …]
H A Dv_section.c61 v_sectionf(SCR *sp, VICMD *vp) in v_sectionf() argument
80 if (ISMOTION(vp)) { in v_sectionf()
81 if (vp->m_start.cno == 0) in v_sectionf()
82 F_SET(vp, VM_LMODE); in v_sectionf()
84 vp->m_stop = vp->m_start; in v_sectionf()
85 vp->m_stop.cno = 0; in v_sectionf()
86 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_sectionf()
88 if (vp->m_start.cno <= vp->m_stop.cno) in v_sectionf()
89 F_SET(vp, VM_LMODE); in v_sectionf()
93 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_sectionf()
[all …]
H A Dv_paragraph.c68 v_paragraphf(SCR *sp, VICMD *vp) in v_paragraphf() argument
91 if (ISMOTION(vp)) { in v_paragraphf()
92 if (vp->m_start.cno == 0) in v_paragraphf()
93 F_SET(vp, VM_LMODE); in v_paragraphf()
95 vp->m_stop = vp->m_start; in v_paragraphf()
96 vp->m_stop.cno = 0; in v_paragraphf()
97 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_paragraphf()
99 if (vp->m_start.cno <= vp->m_stop.cno) in v_paragraphf()
100 F_SET(vp, VM_LMODE); in v_paragraphf()
105 lno = vp->m_start.lno; in v_paragraphf()
[all …]
H A Dv_search.c37 v_searchb(SCR *sp, VICMD *vp) in v_searchb() argument
39 return (v_exaddr(sp, vp, BACKWARD)); in v_searchb()
49 v_searchf(SCR *sp, VICMD *vp) in v_searchf() argument
51 return (v_exaddr(sp, vp, FORWARD)); in v_searchf()
59 v_exaddr(SCR *sp, VICMD *vp, dir_t dir) in v_exaddr() argument
78 if (F_ISSET(vp, VC_ISDOT)) in v_exaddr()
79 return (v_search(sp, vp, in v_exaddr()
83 if (v_tcmd(sp, vp, dir == BACKWARD ? CH_BSEARCH : CH_FSEARCH, in v_exaddr()
100 vp->m_stop.lno = sp->lno; in v_exaddr()
101 vp->m_stop.cno = sp->cno; in v_exaddr()
[all …]
H A Dv_xchar.c30 v_xchar(SCR *sp, VICMD *vp) in v_xchar() argument
35 if (db_eget(sp, vp->m_start.lno, NULL, &len, &isempty)) { in v_xchar()
54 if (F_ISSET(vp, VC_C1SET)) in v_xchar()
55 vp->m_stop.cno += vp->count - 1; in v_xchar()
56 if (vp->m_stop.cno >= len - 1) { in v_xchar()
57 vp->m_stop.cno = len - 1; in v_xchar()
58 vp->m_final.cno = vp->m_start.cno ? vp->m_start.cno - 1 : 0; in v_xchar()
60 vp->m_final.cno = vp->m_start.cno; in v_xchar()
63 F_ISSET(vp, VC_BUFFER) ? &vp->buffer : NULL, in v_xchar()
64 &vp->m_start, &vp->m_stop, 0)) in v_xchar()
[all …]
H A Dv_word.c76 v_wordW(SCR *sp, VICMD *vp) in v_wordW() argument
78 return (fword(sp, vp, BIGWORD)); in v_wordW()
88 v_wordw(SCR *sp, VICMD *vp) in v_wordw() argument
90 return (fword(sp, vp, LITTLEWORD)); in v_wordw()
98 fword(SCR *sp, VICMD *vp, enum which type) in fword() argument
104 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in fword()
105 cs.cs_lno = vp->m_start.lno; in fword()
106 cs.cs_cno = vp->m_start.cno; in fword()
118 if (ISMOTION(vp) && cs.cs_flags != CS_EMP && cnt == 1) { in fword()
119 if (ISCMD(vp->rkp, 'c')) in fword()
[all …]
H A Dv_ch.c34 v_chrepeat(SCR *sp, VICMD *vp) in v_chrepeat() argument
36 vp->character = VIP(sp)->lastckey; in v_chrepeat()
43 return (v_chF(sp, vp)); in v_chrepeat()
45 return (v_chf(sp, vp)); in v_chrepeat()
47 return (v_chT(sp, vp)); in v_chrepeat()
49 return (v_cht(sp, vp)); in v_chrepeat()
63 v_chrrepeat(SCR *sp, VICMD *vp) in v_chrrepeat() argument
68 vp->character = VIP(sp)->lastckey; in v_chrrepeat()
76 rval = v_chf(sp, vp); in v_chrrepeat()
79 rval = v_chF(sp, vp); in v_chrrepeat()
[all …]
H A Dvi.c65 VICMD cmd = { 0 }, *vp; in vi() local
74 vp = &cmd; in vi()
77 F_SET(vp, VM_RCM_SET); in vi()
104 if (F_ISSET(vp, VM_RCM_SET | VM_RCM_SETFNB | VM_RCM_SETNNB)) { in vi()
128 vp->kp = &vikeys[':']; in vi()
133 memset(vp, 0, sizeof(VICMD)); in vi()
148 switch (v_cmd(sp, DOT, vp, NULL, &comcount, &mapped)) { in vi()
164 if (F_ISSET(vp->kp, V_SECURE) && O_ISSET(sp, O_SECURE)) { in vi()
165 ex_emsg(sp, KEY_NAME(sp, vp->key), EXM_SECURE); in vi()
174 if (F_ISSET(vp, VC_ISDOT) && comcount) in vi()
[all …]
H A Dv_sentence.c51 v_sentencef(SCR *sp, VICMD *vp) in v_sentencef() argument
58 cs.cs_lno = vp->m_start.lno; in v_sentencef()
59 cs.cs_cno = vp->m_start.cno; in v_sentencef()
63 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_sentencef()
75 if (vp->m_start.lno != cs.cs_lno || in v_sentencef()
76 vp->m_start.cno != cs.cs_cno) in v_sentencef()
144 if (vp->m_start.lno == cs.cs_lno && vp->m_start.cno == cs.cs_cno) { in v_sentencef()
149 okret: vp->m_stop.lno = cs.cs_lno; in v_sentencef()
150 vp->m_stop.cno = cs.cs_cno; in v_sentencef()
165 if (ISMOTION(vp)) { in v_sentencef()
[all …]
/freebsd/sys/security/mac/
H A Dmac_vfs.c84 struct vnode *vp, struct label *intlabel);
133 mac_mount_check_mount(struct ucred *cred, struct vnode *vp, in mac_mount_check_mount() argument
138 MAC_POLICY_CHECK(mount_check_mount, cred, vp, vp->v_label, vfsp, in mac_mount_check_mount()
140 MAC_CHECK_PROBE5(mount_check_mount, error, cred, vp, vfsp, optlist, in mac_mount_check_mount()
187 mac_vnode_init(struct vnode *vp) in mac_vnode_init() argument
191 vp->v_label = mac_vnode_label_alloc(); in mac_vnode_init()
193 vp->v_label = NULL; in mac_vnode_init()
241 mac_vnode_destroy(struct vnode *vp) in mac_vnode_destroy() argument
244 if (vp->v_label != NULL) { in mac_vnode_destroy()
245 mac_vnode_label_free(vp->v_label); in mac_vnode_destroy()
[all …]
/freebsd/sys/kern/
H A Dvfs_subr.c104 static void delmntque(struct vnode *vp);
108 static int vtryrecycle(struct vnode *vp, bool isvnlru);
111 static void vn_seqc_write_end_free(struct vnode *vp);
114 static void vdropl_recycle(struct vnode *vp);
115 static void vdrop_recycle(struct vnode *vp);
120 static int v_inval_buf_range_locked(struct vnode *vp, struct bufobj *bo,
309 static void vdbatch_dequeue(struct vnode *vp);
433 struct vnode *vp; in sysctl_try_reclaim_vnode() local
455 vp = nd.ni_vp; in sysctl_try_reclaim_vnode()
457 if (VN_IS_DOOMED(vp)) { in sysctl_try_reclaim_vnode()
481 struct vnode *vp; sysctl_ftry_reclaim_vnode() local
593 struct vnode *vp; vn_alloc_marker() local
603 vn_free_marker(struct vnode * vp) vn_free_marker() argument
664 struct vnode *vp; vnode_init() local
712 struct vnode *vp; vnode_fini() local
1257 struct vnode *vp, *mvp; vlrureclaim() local
1383 struct vnode *vp; vnlru_free_impl() local
1921 vtryrecycle(struct vnode * vp,bool isvnlru) vtryrecycle() argument
2087 vn_free(struct vnode * vp) vn_free() argument
2101 struct vnode *vp; getnewvnode() local
2210 freevnode(struct vnode * vp) freevnode() argument
2280 delmntque(struct vnode * vp) delmntque() argument
2303 insmntque1_int(struct vnode * vp,struct mount * mp,bool dtr) insmntque1_int() argument
2359 insmntque(struct vnode * vp,struct mount * mp) insmntque() argument
2365 insmntque1(struct vnode * vp,struct mount * mp) insmntque1() argument
2462 vinvalbuf(struct vnode * vp,int flags,int slpflag,int slptimeo) vinvalbuf() argument
2594 vtruncbuf(struct vnode * vp,off_t length,int blksize) vtruncbuf() argument
2656 v_inval_buf_range(struct vnode * vp,daddr_t startlbn,daddr_t endlbn,int blksize) v_inval_buf_range() argument
2679 v_inval_buf_range_locked(struct vnode * vp,struct bufobj * bo,daddr_t startlbn,daddr_t endlbn) v_inval_buf_range_locked() argument
2866 bgetvp(struct vnode * vp,struct buf * bp) bgetvp() argument
2910 struct vnode *vp; brelvp() local
2989 struct vnode *vp; sync_vnode() local
3241 struct vnode *vp; reassignbuf() local
3320 v_init_counters(struct vnode * vp) v_init_counters() argument
3342 vget_prep_smr(struct vnode * vp) vget_prep_smr() argument
3360 vget_prep(struct vnode * vp) vget_prep() argument
3374 vget_abort(struct vnode * vp,enum vgetstate vs) vget_abort() argument
3399 vget(struct vnode * vp,int flags) vget() argument
3408 vget_finish(struct vnode * vp,int flags,enum vgetstate vs) vget_finish() argument
3433 vget_finish_ref(struct vnode * vp,enum vgetstate vs) vget_finish_ref() argument
3462 vref(struct vnode * vp) vref() argument
3472 vrefact(struct vnode * vp) vrefact() argument
3482 vlazy(struct vnode * vp) vlazy() argument
3506 vunlazy(struct vnode * vp) vunlazy() argument
3535 vunlazy_gone(struct vnode * vp) vunlazy_gone() argument
3555 vdefer_inactive(struct vnode * vp) vdefer_inactive() argument
3581 vdefer_inactive_unlocked(struct vnode * vp) vdefer_inactive_unlocked() argument
3606 vput_final(struct vnode * vp,enum vput_op func) vput_final() argument
3722 vrele(struct vnode * vp) vrele() argument
3736 vput(struct vnode * vp) vput() argument
3753 vunref(struct vnode * vp) vunref() argument
3764 vhold(struct vnode * vp) vhold() argument
3777 vholdnz(struct vnode * vp) vholdnz() argument
3810 vhold_smr(struct vnode * vp) vhold_smr() argument
3849 vhold_recycle_free(struct vnode * vp) vhold_recycle_free() argument
3876 struct vnode *vp; vdbatch_process() local
3930 vdbatch_enqueue(struct vnode * vp) vdbatch_enqueue() argument
3967 vdbatch_dequeue(struct vnode * vp) vdbatch_dequeue() argument
4007 vdropl_final(struct vnode * vp) vdropl_final() argument
4034 vdrop(struct vnode * vp) vdrop() argument
4046 vdropl_impl(struct vnode * vp,bool enqueue) vdropl_impl() argument
4081 vdropl(struct vnode * vp) vdropl() argument
4099 vdropl_recycle(struct vnode * vp) vdropl_recycle() argument
4106 vdrop_recycle(struct vnode * vp) vdrop_recycle() argument
4118 vinactivef(struct vnode * vp) vinactivef() argument
4151 vinactive(struct vnode * vp) vinactive() argument
4197 struct vnode *vp, *mvp, *rootvp = NULL; vflush() local
4312 vrecycle(struct vnode * vp) vrecycle() argument
4326 vrecyclel(struct vnode * vp) vrecyclel() argument
4346 vgone(struct vnode * vp) vgone() argument
4357 vfs_notify_upper(struct vnode * vp,enum vfs_notify_upper_type event) vfs_notify_upper() argument
4397 vgonel(struct vnode * vp) vgonel() argument
4588 vn_printf(struct vnode * vp,const char * fmt,...) vn_printf() argument
4726 struct vnode *vp; DB_SHOW_COMMAND_FLAGS() local
4748 struct vnode *vp; DB_SHOW_COMMAND() local
4764 struct vnode *vp; DB_SHOW_COMMAND() local
5171 vfs_deferred_inactive(struct vnode * vp,int lkflags) vfs_deferred_inactive() argument
5191 vfs_periodic_inactive_filter(struct vnode * vp,void * arg) vfs_periodic_inactive_filter() argument
5200 struct vnode *vp, *mvp; vfs_periodic_inactive() local
5218 vfs_want_msync(struct vnode * vp) vfs_want_msync() argument
5233 vfs_periodic_msync_inactive_filter(struct vnode * vp,void * arg __unused) vfs_periodic_msync_inactive_filter() argument
5246 struct vnode *vp, *mvp; vfs_periodic_msync_inactive() local
5319 v_addpollinfo(struct vnode * vp) v_addpollinfo() argument
5349 vn_pollrecord(struct vnode * vp,struct thread * td,int events) vn_pollrecord() argument
5404 struct vnode *vp; vfs_allocate_syncvnode() local
5460 struct vnode *vp; vfs_deallocate_syncvnode() local
5535 struct vnode *vp = ap->a_vp; sync_reclaim() local
5556 vn_need_pageq_flush(struct vnode * vp) vn_need_pageq_flush() argument
5569 vn_isdisk_error(struct vnode * vp,int * errp) vn_isdisk_error() argument
5592 vn_isdisk(struct vnode * vp) vn_isdisk() argument
5773 extattr_check_cred(struct vnode * vp,int attrnamespace,struct ucred * cred,struct thread * td,accmode_t accmode) extattr_check_cred() argument
5800 assert_vi_locked(struct vnode * vp,const char * str) assert_vi_locked() argument
5807 assert_vi_unlocked(struct vnode * vp,const char * str) assert_vi_unlocked() argument
5814 assert_vop_locked(struct vnode * vp,const char * str) assert_vop_locked() argument
5832 assert_vop_unlocked(struct vnode * vp,const char * str) assert_vop_unlocked() argument
5849 assert_vop_elocked(struct vnode * vp,const char * str) assert_vop_elocked() argument
5936 struct vnode *vp; vop_fplookup_vexec_debugpost() local
5961 vop_fsync_debugprepost(struct vnode * vp,const char * name) vop_fsync_debugprepost() argument
6073 struct vnode *vp = a->a_vp; vop_unlock_debugpre() local
6180 struct vnode *vp; vop_deleteextattr_pre() local
6191 struct vnode *vp; vop_deleteextattr_post() local
6206 struct vnode *vp, *tdvp; vop_link_pre() local
6219 struct vnode *vp, *tdvp; vop_link_post() local
6302 struct vnode *vp; vop_reclaim_post() local
6317 struct vnode *dvp, *vp; vop_remove_pre() local
6331 struct vnode *dvp, *vp; vop_remove_post() local
6390 struct vnode *dvp, *vp; vop_rmdir_pre() local
6404 struct vnode *dvp, *vp; vop_rmdir_post() local
6423 struct vnode *vp; vop_setattr_pre() local
6434 struct vnode *vp; vop_setattr_post() local
6449 struct vnode *vp; vop_setacl_pre() local
6460 struct vnode *vp; vop_setacl_post() local
6471 struct vnode *vp; vop_setextattr_pre() local
6482 struct vnode *vp; vop_setextattr_post() local
6699 struct vnode *vp = arg; vfs_knllock() local
6707 struct vnode *vp = arg; vfs_knlunlock() local
6718 struct vnode *vp = arg; vfs_knl_assert_lock() local
6730 struct vnode *vp = ap->a_vp; vfs_kqfilter() local
6772 struct vnode *vp = (struct vnode *)kn->kn_hook; filt_vfsdetach() local
6783 struct vnode *vp = (struct vnode *)kn->kn_hook; filt_vfsread() local
6812 struct vnode *vp = (struct vnode *)kn->kn_hook; filt_vfswrite() local
6831 struct vnode *vp = (struct vnode *)kn->kn_hook; filt_vfsvnode() local
6851 struct vnode *vp; filt_vfsdump() local
6885 struct vnode *vp; filt_vfscopy() local
6976 struct vnode *vp; vfs_cache_root_fallback() local
7037 struct vnode *vp; vfs_cache_root() local
7061 struct vnode *vp; vfs_cache_root_clear() local
7075 vfs_cache_root_set(struct mount * mp,struct vnode * vp) vfs_cache_root_set() argument
7093 struct vnode *vp; __mnt_vnode_next_all() local
7125 struct vnode *vp; __mnt_vnode_first_all() local
7201 mnt_vnode_next_lazy_relock(struct vnode * mvp,struct mount * mp,struct vnode * vp) mnt_vnode_next_lazy_relock() argument
7247 struct vnode *vp; mnt_vnode_next_lazy() local
7319 struct vnode *vp; __mnt_vnode_first_lazy() local
7354 vn_dir_check_exec(struct vnode * vp,struct componentname * cnp) vn_dir_check_exec() argument
7370 vn_seqc_write_begin_locked(struct vnode * vp) vn_seqc_write_begin_locked() argument
7382 vn_seqc_write_begin(struct vnode * vp) vn_seqc_write_begin() argument
7391 vn_seqc_write_end_locked(struct vnode * vp) vn_seqc_write_end_locked() argument
7402 vn_seqc_write_end(struct vnode * vp) vn_seqc_write_end() argument
7417 vn_seqc_init(struct vnode * vp) vn_seqc_init() argument
7425 vn_seqc_write_end_free(struct vnode * vp) vn_seqc_write_end_free() argument
7433 vn_irflag_set_locked(struct vnode * vp,short toset) vn_irflag_set_locked() argument
7446 vn_irflag_set(struct vnode * vp,short toset) vn_irflag_set() argument
7455 vn_irflag_set_cond_locked(struct vnode * vp,short toset) vn_irflag_set_cond_locked() argument
7465 vn_irflag_set_cond(struct vnode * vp,short toset) vn_irflag_set_cond() argument
7474 vn_irflag_unset_locked(struct vnode * vp,short tounset) vn_irflag_unset_locked() argument
7487 vn_irflag_unset(struct vnode * vp,short tounset) vn_irflag_unset() argument
7496 vn_getsize_locked(struct vnode * vp,off_t * size,struct ucred * cred) vn_getsize_locked() argument
7513 vn_getsize(struct vnode * vp,off_t * size,struct ucred * cred) vn_getsize() argument
7525 vn_set_state_validate(struct vnode * vp,__enum_uint8 (vstate)state) vn_set_state_validate() argument
[all...]
H A Dvfs_hash.c58 vfs_hash_index(struct vnode *vp) in vfs_hash_index() argument
61 return (vp->v_hash + vp->v_mount->mnt_hashseed); in vfs_hash_index()
75 struct vnode *vp; in vfs_hash_get() local
81 LIST_FOREACH(vp, vfs_hash_bucket(mp, hash), v_hashlist) { in vfs_hash_get()
82 if (vp->v_hash != hash) in vfs_hash_get()
84 if (vp->v_mount != mp) in vfs_hash_get()
86 if (fn != NULL && fn(vp, arg)) in vfs_hash_get()
88 vs = vget_prep(vp); in vfs_hash_get()
90 error = vget_finish(vp, flags, vs); in vfs_hash_get()
95 if (vp->v_hash != hash || in vfs_hash_get()
[all …]
/freebsd/bin/sh/
H A Dvar.c155 struct var *vp; in initvar() local
159 for (ip = varinit ; (vp = ip->var) != NULL ; ip++) { in initvar()
160 if (find_var(ip->text, &vpp, &vp->name_len) != NULL) in initvar()
162 vp->next = *vpp; in initvar()
163 *vpp = vp; in initvar()
164 vp->text = __DECONST(char *, ip->text); in initvar()
165 vp->flags = ip->flags | VSTRFIXED | VTEXTFIXED; in initvar()
166 vp->func = ip->func; in initvar()
318 struct var *vp, **vpp; in setvareq() local
325 vp = find_var(s, &vpp, &nlen); in setvareq()
[all …]
/freebsd/sys/fs/fuse/
H A Dfuse_node.h101 #define CACHED_ATTR_LOCK(vp) \ argument
103 ASSERT_VOP_LOCKED(vp, __func__); \
104 if (VOP_ISLOCKED(vp) != LK_EXCLUSIVE) \
105 mtx_lock(&VTOFUD(vp)->cached_attr_mtx); \
108 #define CACHED_ATTR_UNLOCK(vp) \ argument
110 ASSERT_VOP_LOCKED(vp, __func__); \
111 if (VOP_ISLOCKED(vp) != LK_EXCLUSIVE) \
112 mtx_unlock(&VTOFUD(vp)->cached_attr_mtx); \
187 #define VTOFUD(vp) \ argument
188 ((struct fuse_vnode_data *)((vp)->v_data))
[all …]
/freebsd/sys/sys/
H A Dvnode.h212 #define VN_ISDEV(vp) VTYPE_ISDEV((vp)->v_type) argument
231 #define VN_KNOTE(vp, b, a) do { \ argument
232 if ((vp->v_v2flag & V2_KNOTE) != 0) { \
233 KNOTE(&vp->v_pollinfo->vpi_selinfo.si_note, (b), \
237 #define VN_KNOTE_LOCKED(vp, b) VN_KNOTE(vp, b, KNF_LISTLOCKED) argument
238 #define VN_KNOTE_UNLOCKED(vp, b) VN_KNOTE(vp, b, 0) argument
476 #define VI_LOCK(vp) mtx_lock(&(vp)->v_interlock) argument
477 #define VI_LOCK_FLAGS(vp, flags) mtx_lock_flags(&(vp)->v_interlock, (flags)) argument
478 #define VI_TRYLOCK(vp) mtx_trylock(&(vp)->v_interlock) argument
479 #define VI_UNLOCK(vp) mtx_unlock(&(vp)->v_interlock) argument
[all …]
/freebsd/contrib/one-true-awk/
H A Dtran.c297 Awkfloat setfval(Cell *vp, Awkfloat f) /* set float val of a Cell */ in setfval() argument
302 if ((vp->tval & (NUM | STR)) == 0) in setfval()
303 funnyvar(vp, "assign to"); in setfval()
304 if (isfld(vp)) { in setfval()
306 fldno = atoi(vp->nval); in setfval()
310 } else if (&vp->fval == NF) { in setfval()
314 } else if (isrec(vp)) { in setfval()
318 } else if (vp == ofsloc) { in setfval()
322 if (freeable(vp)) in setfval()
323 xfree(vp->sval); /* free any previous string */ in setfval()
[all …]
/freebsd/sys/fs/nullfs/
H A Dnull_subr.c60 #define NULL_NHASH(vp) (&null_node_hashtbl[vfs_hash_index(vp) & null_hash_mask]) argument
107 struct vnode *vp; in null_hashget_locked() local
128 vp = NULLTOV(a); in null_hashget_locked()
129 VNPASS(!VN_IS_DOOMED(vp), vp); in null_hashget_locked()
130 if (vp->v_mount != mp) in null_hashget_locked()
132 vref(vp); in null_hashget_locked()
133 return (vp); in null_hashget_locked()
143 struct vnode *vp; in null_hashget() local
158 vp = NULLTOV(a); in null_hashget()
159 VNPASS(!VN_IS_DOOMED(vp), vp); in null_hashget()
[all …]
H A Dnull_vnops.c209 null_copy_inotify(struct vnode *vp, struct vnode *lvp, short flag) in null_copy_inotify() argument
211 if (__predict_true((vn_irflag_read(vp) & flag) == in null_copy_inotify()
214 VI_LOCK(vp); in null_copy_inotify()
215 if ((vn_irflag_read(vp) & flag) != 0) { in null_copy_inotify()
217 vn_irflag_unset_locked(vp, flag); in null_copy_inotify()
220 vn_irflag_set_locked(vp, flag); in null_copy_inotify()
222 VI_UNLOCK(vp); in null_copy_inotify()
401 struct vnode *lvp, *vp; in null_add_writecount() local
404 vp = ap->a_vp; in null_add_writecount()
405 lvp = NULLVPTOLOWERVP(vp); in null_add_writecount()
[all …]
/freebsd/contrib/tcsh/
H A Dsh.exp.c184 expr(Char ***vp) in expr() argument
186 return (exp0(vp, 0)); in expr()
190 exp0(Char ***vp, int ignore) in exp0() argument
192 tcsh_number_t p1 = exp1(vp, ignore); in exp0()
194 etraci("exp0 p1", p1, vp); in exp0()
195 while (**vp && eq(**vp, STRor2)) { in exp0()
198 (*vp)++; in exp0()
201 exp0(vp, (ignore & TEXP_IGNORE) || p1) : in exp0()
202 exp1(vp, (ignore & TEXP_IGNORE) || p1); in exp0()
205 etraci("exp0 p1", p1, vp); in exp0()
[all …]
/freebsd/sys/ddb/
H A Ddb_variables.c60 struct db_variable *vp; in db_find_variable() local
65 for (vp = db_vars; vp < db_evars; vp++) { in db_find_variable()
66 if (!strcmp(db_tok_string, vp->name)) { in db_find_variable()
67 *varp = vp; in db_find_variable()
71 for (vp = db_regs; vp < db_eregs; vp++) { in db_find_variable()
72 if (!strcmp(db_tok_string, vp->name)) { in db_find_variable()
73 *varp = vp; in db_find_variable()
85 struct db_variable *vp; in db_get_variable() local
87 if (!db_find_variable(&vp)) in db_get_variable()
90 return (db_read_variable(vp, valuep)); in db_get_variable()
[all …]
/freebsd/sys/security/mac_bsdextended/
H A Dugidfw_vnode.c62 ugidfw_vnode_check_access(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_access() argument
66 return (ugidfw_check_vp(cred, vp, ugidfw_accmode2mbi(accmode))); in ugidfw_vnode_check_access()
94 ugidfw_vnode_check_deleteacl(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_deleteacl() argument
98 return (ugidfw_check_vp(cred, vp, MBI_ADMIN)); in ugidfw_vnode_check_deleteacl()
102 ugidfw_vnode_check_deleteextattr(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_deleteextattr() argument
106 return (ugidfw_check_vp(cred, vp, MBI_WRITE)); in ugidfw_vnode_check_deleteextattr()
110 ugidfw_vnode_check_exec(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_exec() argument
115 return (ugidfw_check_vp(cred, vp, MBI_READ|MBI_EXEC)); in ugidfw_vnode_check_exec()
119 ugidfw_vnode_check_getacl(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_getacl() argument
123 return (ugidfw_check_vp(cred, vp, MBI_STAT)); in ugidfw_vnode_check_getacl()
[all …]

12345678910>>...19