| /freebsd-12-stable/contrib/nvi/vi/ |
| D | v_left.c | 30 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 …]
|
| D | v_scroll.c | 66 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 …]
|
| D | v_itxt.c | 65 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 …]
|
| D | v_mark.c | 34 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 …]
|
| D | v_right.c | 30 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 …]
|
| D | v_section.c | 61 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 …]
|
| D | v_paragraph.c | 63 v_paragraphf(SCR *sp, VICMD *vp) in v_paragraphf() argument 86 if (ISMOTION(vp)) { in v_paragraphf() 87 if (vp->m_start.cno == 0) in v_paragraphf() 88 F_SET(vp, VM_LMODE); in v_paragraphf() 90 vp->m_stop = vp->m_start; in v_paragraphf() 91 vp->m_stop.cno = 0; in v_paragraphf() 92 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_paragraphf() 94 if (vp->m_start.cno <= vp->m_stop.cno) in v_paragraphf() 95 F_SET(vp, VM_LMODE); in v_paragraphf() 100 lno = vp->m_start.lno; in v_paragraphf() [all …]
|
| D | v_search.c | 37 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 …]
|
| D | v_word.c | 76 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 …]
|
| D | v_xchar.c | 30 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 …]
|
| D | v_ch.c | 34 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 …]
|
| D | vi.c | 65 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 …]
|
| D | v_sentence.c | 51 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-12-stable/sys/security/mac/ |
| D | mac_vfs.c | 86 struct vnode *vp, struct label *intlabel); 139 mac_vnode_init(struct vnode *vp) in mac_vnode_init() argument 143 vp->v_label = mac_vnode_label_alloc(); in mac_vnode_init() 145 vp->v_label = NULL; in mac_vnode_init() 193 mac_vnode_destroy(struct vnode *vp) in mac_vnode_destroy() argument 196 if (vp->v_label != NULL) { in mac_vnode_destroy() 197 mac_vnode_label_free(vp->v_label); in mac_vnode_destroy() 198 vp->v_label = NULL; in mac_vnode_destroy() 231 mac_devfs_update(struct mount *mp, struct devfs_dirent *de, struct vnode *vp) in mac_devfs_update() argument 234 MAC_POLICY_PERFORM_NOSLEEP(devfs_update, mp, de, de->de_label, vp, in mac_devfs_update() [all …]
|
| /freebsd-12-stable/sys/kern/ |
| D | vfs_subr.c | 103 static void delmntque(struct vnode *vp); 107 static int vtryrecycle(struct vnode *vp); 120 static int v_inval_buf_range_locked(struct vnode *vp, struct bufobj *bo, 338 struct vnode *vp; in sysctl_try_reclaim_vnode() local 360 vp = nd.ni_vp; in sysctl_try_reclaim_vnode() 362 if ((vp->v_iflag & VI_DOOMED) != 0) { in sysctl_try_reclaim_vnode() 374 vgone(vp); in sysctl_try_reclaim_vnode() 386 struct vnode *vp; in sysctl_ftry_reclaim_vnode() local 400 vp = fp->f_vnode; in sysctl_ftry_reclaim_vnode() 402 error = vn_lock(vp, LK_EXCLUSIVE); in sysctl_ftry_reclaim_vnode() [all …]
|
| D | vfs_hash.c | 61 vfs_hash_index(struct vnode *vp) in vfs_hash_index() argument 64 return (vp->v_hash + vp->v_mount->mnt_hashseed); in vfs_hash_index() 78 struct vnode *vp; in vfs_hash_get() local 83 LIST_FOREACH(vp, vfs_hash_bucket(mp, hash), v_hashlist) { in vfs_hash_get() 84 if (vp->v_hash != hash) in vfs_hash_get() 86 if (vp->v_mount != mp) in vfs_hash_get() 88 if (fn != NULL && fn(vp, arg)) in vfs_hash_get() 90 vhold(vp); in vfs_hash_get() 92 error = vget(vp, flags | LK_VNHELD, td); in vfs_hash_get() 97 *vpp = vp; in vfs_hash_get() [all …]
|
| /freebsd-12-stable/contrib/gdb/gdb/ |
| D | xcoffsolib.c | 41 struct vmap *vp = vmap; in xcoff_solib_address() local 45 if (vp == NULL) in xcoff_solib_address() 47 for (vp = vp->nxt; vp; vp = vp->nxt) in xcoff_solib_address() 48 if (vp->tstart <= addr && addr < vp->tend) in xcoff_solib_address() 52 vp->name, in xcoff_solib_address() 53 *vp->member ? "(" : "", in xcoff_solib_address() 54 vp->member, in xcoff_solib_address() 55 *vp->member ? ")" : ""); in xcoff_solib_address() 67 struct vmap *vp = vmap; in solib_info() local 73 if (vp == NULL || vp->nxt == NULL) in solib_info() [all …]
|
| /freebsd-12-stable/bin/sh/ |
| D | var.c | 163 struct var *vp; in initvar() local 167 for (ip = varinit ; (vp = ip->var) != NULL ; ip++) { in initvar() 168 if (find_var(ip->text, &vpp, &vp->name_len) != NULL) in initvar() 170 vp->next = *vpp; in initvar() 171 *vpp = vp; in initvar() 172 vp->text = __DECONST(char *, ip->text); in initvar() 173 vp->flags = ip->flags | VSTRFIXED | VTEXTFIXED; in initvar() 174 vp->func = ip->func; in initvar() 326 struct var *vp, **vpp; in setvareq() local 333 vp = find_var(s, &vpp, &nlen); in setvareq() [all …]
|
| /freebsd-12-stable/contrib/one-true-awk/ |
| D | tran.c | 74 setfree(Cell *vp) in setfree() argument 76 if (&vp->sval == FS || &vp->sval == RS || in setfree() 77 &vp->sval == OFS || &vp->sval == ORS || in setfree() 78 &vp->sval == OFMT || &vp->sval == CONVFMT || in setfree() 79 &vp->sval == FILENAME || &vp->sval == SUBSEP) in setfree() 80 vp->tval |= DONTFREE; in setfree() 82 vp->tval &= ~DONTFREE; in setfree() 307 Awkfloat setfval(Cell *vp, Awkfloat f) /* set float val of a Cell */ in setfval() argument 312 if ((vp->tval & (NUM | STR)) == 0) in setfval() 313 funnyvar(vp, "assign to"); in setfval() [all …]
|
| /freebsd-12-stable/sys/sys/ |
| D | vnode.h | 216 #define VN_KNLIST_EMPTY(vp) ((vp)->v_pollinfo == NULL || \ argument 217 KNLIST_EMPTY(&(vp)->v_pollinfo->vpi_selinfo.si_note)) 219 #define VN_KNOTE(vp, b, a) \ argument 221 if (!VN_KNLIST_EMPTY(vp)) \ 222 KNOTE(&vp->v_pollinfo->vpi_selinfo.si_note, (b), \ 225 #define VN_KNOTE_LOCKED(vp, b) VN_KNOTE(vp, b, KNF_LISTLOCKED) argument 226 #define VN_KNOTE_UNLOCKED(vp, b) VN_KNOTE(vp, b, 0) argument 419 #define VREF(vp) vref(vp) argument 438 #define VI_LOCK(vp) mtx_lock(&(vp)->v_interlock) argument 439 #define VI_LOCK_FLAGS(vp, flags) mtx_lock_flags(&(vp)->v_interlock, (flags)) argument [all …]
|
| /freebsd-12-stable/contrib/tcsh/ |
| D | sh.exp.c | 184 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-12-stable/sys/ddb/ |
| D | db_variables.c | 63 struct db_variable *vp; in db_find_variable() local 68 for (vp = db_vars; vp < db_evars; vp++) { in db_find_variable() 69 if (!strcmp(db_tok_string, vp->name)) { in db_find_variable() 70 *varp = vp; in db_find_variable() 74 for (vp = db_regs; vp < db_eregs; vp++) { in db_find_variable() 75 if (!strcmp(db_tok_string, vp->name)) { in db_find_variable() 76 *varp = vp; in db_find_variable() 88 struct db_variable *vp; in db_get_variable() local 90 if (!db_find_variable(&vp)) in db_get_variable() 93 return (db_read_variable(vp, valuep)); in db_get_variable() [all …]
|
| /freebsd-12-stable/sys/fs/nullfs/ |
| D | null_vnops.c | 337 struct vnode *lvp, *vp; in null_add_writecount() local 340 vp = ap->a_vp; in null_add_writecount() 341 lvp = NULLVPTOLOWERVP(vp); in null_add_writecount() 342 VI_LOCK(vp); in null_add_writecount() 344 VNASSERT(vp->v_writecount >= 0, vp, ("wrong null writecount")); in null_add_writecount() 345 VNASSERT(vp->v_writecount + ap->a_inc >= 0, vp, in null_add_writecount() 349 vp->v_writecount += ap->a_inc; in null_add_writecount() 350 VI_UNLOCK(vp); in null_add_writecount() 365 struct vnode *vp, *ldvp, *lvp; in null_lookup() local 378 vp = lvp = NULL; in null_lookup() [all …]
|
| /freebsd-12-stable/sys/fs/nfsclient/ |
| D | nfs_clnode.c | 102 struct vnode *vp; in ncl_nget() local 134 vp = nvp; in ncl_nget() 135 KASSERT(vp->v_bufobj.bo_bsize != 0, ("ncl_nget: bo_bsize == 0")); in ncl_nget() 136 vp->v_bufobj.bo_ops = &buf_ops_newnfs; in ncl_nget() 137 vp->v_data = np; in ncl_nget() 138 np->n_vnode = vp; in ncl_nget() 152 lockmgr(vp->v_vnlock, LK_EXCLUSIVE | LK_NOWITNESS, NULL); in ncl_nget() 153 VN_LOCK_AREC(vp); in ncl_nget() 154 VN_LOCK_ASHARE(vp); in ncl_nget() 161 if (vp->v_type == VNON) in ncl_nget() [all …]
|
| /freebsd-12-stable/sys/security/mac_bsdextended/ |
| D | ugidfw_vnode.c | 64 ugidfw_vnode_check_access(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_access() argument 68 return (ugidfw_check_vp(cred, vp, ugidfw_accmode2mbi(accmode))); in ugidfw_vnode_check_access() 96 ugidfw_vnode_check_deleteacl(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_deleteacl() argument 100 return (ugidfw_check_vp(cred, vp, MBI_ADMIN)); in ugidfw_vnode_check_deleteacl() 104 ugidfw_vnode_check_deleteextattr(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_deleteextattr() argument 108 return (ugidfw_check_vp(cred, vp, MBI_WRITE)); in ugidfw_vnode_check_deleteextattr() 112 ugidfw_vnode_check_exec(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_exec() argument 117 return (ugidfw_check_vp(cred, vp, MBI_READ|MBI_EXEC)); in ugidfw_vnode_check_exec() 121 ugidfw_vnode_check_getacl(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_getacl() argument 125 return (ugidfw_check_vp(cred, vp, MBI_STAT)); in ugidfw_vnode_check_getacl() [all …]
|