Home
last modified time | relevance | path

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

12345678910>>...23

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dvi.c757 vp->lastrepeat = vp->repeat; in cntlmode()
774 vp->repeat = vp->lastrepeat; in cntlmode()
793 vp->lastrepeat = vp->repeat; in cntlmode()
863 if(vp->ed->hoff >= vp->ed->hmax) in cntlmode()
1038 if(vp->repeat > vp->ed->nhlist-vp->ed->hoff) in cntlmode()
1040 curhline = vp->ed->hlist[vp->repeat+vp->ed->hoff-1]->index; in cntlmode()
1703 backword(vp,vp->repeat, motion); in mvcursor()
1807 forward(vp,vp->repeat, motion); in mvcursor()
2047 vp->long_line = vp->long_char; in refresh()
2320 if(vp->first_wind==vp->ofirst_wind && cur_virt>vp->ocur_virt && vp->ocur_virt!=INVALID) in sync_cursor()
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_vnode.c82 ((vp)->v_type != VCHR && (vp)->v_type != VBLK && \
83 (vp)->v_type != VFIFO && vn_is_readonly(vp))
85 #define VOPSTATS_UPDATE(vp, counter) ((void)vp) argument
88 #define VOPXID_MAP_CR(vp, cr) ((void)vp) argument
585 bzero(vp, sizeof (*vp)); in vn_cache_constructor()
846 if ((vp->v_rdcnt > 1) || (vp->v_wrcnt > 1)) in vn_has_other_opens()
850 if ((vp->v_rdcnt > 1) && (vp->v_wrcnt > 1)) in vn_has_other_opens()
882 if (vp->v_rdcnt && vp->v_wrcnt) in vn_is_opened()
886 if (vp->v_rdcnt || vp->v_wrcnt) in vn_is_opened()
1571 (*(vp)->v_op->vop_inactive)(vp, cr, ct); in fop_inactive()
[all …]
/illumos-gate/usr/src/uts/common/fs/lofs/
H A Dlofs_vnops.c59 vp, vp->v_count, realvp(vp), realvp(vp)->v_count); in lo_open()
63 vp = rvp = realvp(vp); in lo_open()
114 vp = realvp(vp); in lo_close()
125 vp = realvp(vp); in lo_read()
136 vp = realvp(vp); in lo_write()
153 vp = realvp(vp); in lo_ioctl()
160 vp = realvp(vp); in lo_setfl()
194 vp = realvp(vp); in lo_setattr()
213 vp = realvp(vp); in lo_access()
223 vp = realvp(vp); in lo_fsync()
[all …]
/illumos-gate/usr/src/cmd/csh/
H A Dsh.exp.c120 if (**vp && eq(**vp, S_BARBAR /* "||" */)) { in exp0()
123 (*vp)++; in exp0()
144 if (**vp && eq(**vp, S_ANDAND /* "&&" */)) { in exp1()
147 (*vp)++; in exp1()
168 if (**vp && eq(**vp, S_BAR /* "|" */)) { in exp2()
171 (*vp)++; in exp2()
192 if (**vp && eq(**vp, S_HAT /* "^" */)) { in exp2a()
216 if (**vp && eq(**vp, S_AND /* "&" */)) { in exp2b()
291 if (**vp && eq(**vp, S_EQ /* "=" */)) in exp3()
471 if (*vp == 0 || **vp == 0 || ***vp != ')') in exp6()
[all …]
H A Dsh.set.c67 if (vp == p || !letter(*vp)) in doset()
171 udvar(vp); in getvx()
197 if (vp == p || !letter(*vp)) in dolet()
209 vp = savestr(vp); in dolet()
252 set(vp, operate(op, value(vp), p)); in dolet()
277 --(*vp); in xset()
294 if (*vp) in operate()
390 return (vp == 0 || vp->vec[0] == 0 ? S_ /* "" */ : vp->vec[0]); in value1()
401 for (; vp; vp = vp->v_right) { in madrof()
402 if (vp->v_left && (vp1 = madrof(pat, vp->v_left))) in madrof()
[all …]
/illumos-gate/usr/src/uts/common/fs/
H A Dvnode.c77 ((vp)->v_type != VCHR && (vp)->v_type != VBLK && \
78 (vp)->v_type != VFIFO && vn_is_readonly(vp))
2586 if (vp == NULL || vp->v_femhead == NULL) { in vnevent_rename_src()
2596 if (vp == NULL || vp->v_femhead == NULL) { in vnevent_rename_dest()
2605 if (vp == NULL || vp->v_femhead == NULL) { in vnevent_rename_dest_dir()
2614 if (vp == NULL || vp->v_femhead == NULL) { in vnevent_remove()
2840 if (vp->v_rdcnt && vp->v_wrcnt) in vn_is_opened()
2844 if (vp->v_rdcnt || vp->v_wrcnt) in vn_is_opened()
2903 if (vp->v_mmap_read && vp->v_mmap_write) in vn_is_mapped()
2907 if (vp->v_mmap_read || vp->v_mmap_write) in vn_is_mapped()
[all …]
H A Dlookup.c165 VN_HOLD(vp); in lookuppnatcred()
293 if (VN_CMP(vp, rootvp) || VN_CMP(vp, zonevp)) { in lookuppnvp()
297 cvp = vp; in lookuppnvp()
409 if (error = audit_savepath(pnp, vp, vp, error, cr)) in lookuppnvp()
616 vp = cvp; in lookuppnvp()
642 (VN_CMP(vp, rootvp) || (vp->v_flag & VROOT) || vp == startvp)) in lookuppnvp()
749 vp = uvp; in vn_under()
948 if (vn_ismntpt(vp) && traverse(&vp) != 0) { in localpath()
966 if (vn_ismntpt(vp) && traverse(&vp) != 0) in localpath()
1189 vp = vn_under(vp); in dirtopath()
[all …]
/illumos-gate/usr/src/cmd/awk/
H A Dtran.c108 if (&vp->sval == FS || &vp->sval == RS || in setfree()
109 &vp->sval == OFS || &vp->sval == ORS || in setfree()
395 NN(vp->nval), f, vp->tval)); in setfval()
407 vp, vp->nval, vp->sval, vp->fval, vp->tval); in funnyvar()
418 (void *)vp, NN(vp->nval), s, vp->tval, donerec, donefld)); in setsval()
443 (void *)vp, NN(vp->nval), t, (void *)t, in setsval()
466 vp->fval = atof(vp->sval); /* best guess */ in getfval()
467 if (is_number(vp->sval) && !(vp->tval&CON)) in getfval()
471 (void *)vp, NN(vp->nval), vp->fval, vp->tval)); in getfval()
537 } else if ((vp->tval & DONTFREE) != 0 || !isnum(vp) || isfld(vp)) { in get_str_val()
[all …]
/illumos-gate/usr/src/cmd/oawk/
H A Dtran.c200 error(FATAL, "funny variable %o: %ws %ws %g %o", vp, vp->nval, in setfval()
201 vp->sval, vp->fval, vp->tval); in setfval()
207 if ((vp->tval & FLD) && vp->nval == 0) { in setfval()
222 maxmfld = vp; in setfval()
236 vp->sval, vp->fval, vp->tval); in setsval()
241 if ((vp->tval & FLD) && vp->nval == 0) { in setsval()
247 maxmfld = vp; in setsval()
268 vp->sval, vp->fval, vp->tval); in getfval()
275 vp->fval = watof(vp->sval); in getfval()
302 vp->sval, vp->fval, vp->tval); in getsval()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Denv.c103 for(vp=(Evar_t*)dtfirst(ep->dt);vp; vp=(Evar_t*)dtnext(ep->dt,vp)) in env_get()
123 if(vp && strcmp(str,vp->un.ptr)==0) in env_add()
127 if(vp) in env_add()
133 ep->env[vp->index>>ENV_BITS] = vp->un.ptr; in env_add()
149 if(!(vp=dtinsert(ep->dt,vp))) in env_add()
169 if(!vp) in env_delete()
215 vp->un.next = (vp+1); in env_open()
216 vp++; in env_open()
235 for(vp=(Evar_t*)dtfirst(ep->dt);vp; vp=vpnext) in env_close()
240 for(top=0,vp = ep->freelist; vp; vp = vpnext) in env_close()
[all …]
H A Dstreval.c92 #define getchr(vp) (*(vp)->nextchr++) argument
93 #define peekchr(vp) (*(vp)->nextchr) argument
94 #define ungetchr(vp) ((vp)->nextchr--) argument
122 vp->errchr = vp->nextchr; in _seterror()
513 vp->errchr = vp->nextchr; in gettok()
520 vp->errchr = vp->nextchr; in gettok()
622 vp->nextchr = vp->errchr; in expr()
660 vp->stakmaxsize = vp->staksize; in expr()
727 vp->stakmaxsize = vp->staksize; in expr()
894 vp->stakmaxsize = vp->staksize; in expr()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dvncache.c59 vp = buf; in vn_cache_constructor()
60 bzero(vp, sizeof (*vp)); in vn_cache_constructor()
63 vp->v_fd = -1; in vn_cache_constructor()
74 vp = buf; in vn_cache_destructor()
125 vnode_t *vp; in vn_alloc() local
133 return (vp); in vn_alloc()
145 ASSERT((vp->v_count == 0) || (vp->v_count == 1)); in vn_free()
152 vp->v_fd = -1; in vn_free()
181 vnode_t *vp; in vncache_lookup() local
189 vn_hold(vp); in vncache_lookup()
[all …]
H A Dfake_vop.c82 vnode_t *vp, in fop_close() argument
112 vnode_t *vp, in fop_read() argument
167 vnode_t *vp, in fop_write() argument
213 vnode_t *vp, in fop_ioctl() argument
470 *vpp = vp; in fop_lookup()
505 vp = NULL; in fop_create()
556 *vpp = vp; in fop_create()
1461 if ((vp->v_rdcnt > 1) || (vp->v_wrcnt > 1)) in vn_has_other_opens()
1465 if ((vp->v_rdcnt > 1) && (vp->v_wrcnt > 1)) in vn_has_other_opens()
1497 if (vp->v_rdcnt && vp->v_wrcnt) in vn_is_opened()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/
H A Dvmalloc.c40 vp->current = &vp->base; in _vm_open()
41 vp->data = vp->current->data; in _vm_open()
42 vp->size = sizeof(vp->current->data); in _vm_open()
44 return vp; in _vm_open()
53 if (!vp) in _vm_close()
61 free(vp); in _vm_close()
72 z = vp->last; in _vm_resize()
81 vp->current = vp->current->next; in _vm_resize()
82 vp->data = vp->current->data; in _vm_resize()
83 vp->size = n ? 0 : sizeof(vp->current->data); in _vm_resize()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dvfstab.h43 #define vfsnull(vp) ((vp)->vfs_special = (vp)->vfs_fsckdev = \ argument
44 (vp)->vfs_mountp = (vp)->vfs_fstype = \
45 (vp)->vfs_fsckpass = (vp)->vfs_automnt = \
48 #define putvfsent(fd, vp)\ argument
50 (vp)->vfs_special ? (vp)->vfs_special : "-", \
51 (vp)->vfs_fsckdev ? (vp)->vfs_fsckdev : "-", \
52 (vp)->vfs_mountp ? (vp)->vfs_mountp : "-", \
53 (vp)->vfs_fstype ? (vp)->vfs_fstype : "-", \
54 (vp)->vfs_fsckpass ? (vp)->vfs_fsckpass : "-", \
55 (vp)->vfs_automnt ? (vp)->vfs_automnt : "-", \
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnftw.c198 vp->savedstatf = vp->statf; in walk()
207 vp->statf = vp->savedstatf; in walk()
304 rc = (*fn)(vp->tmppath, &statb, type, &vp->state); in walk()
334 rc = (*fn)(vp->tmppath, &statb, type, &vp->state); in walk()
368 vp->state.base = (int)(component - vp->tmppath); in walk()
393 base_fullpath = vp->fullpath - vp->home; in walk()
394 base_tmppath = vp->tmppath - vp->home; in walk()
396 tmp = (char *)realloc(vp->home, vp->len); in walk()
405 vp->fullpath = vp->home + base_fullpath; in walk()
406 vp->tmppath = vp->home + base_tmppath; in walk()
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_acl_srv.c83 vnode_t *vp; in acl2_getacl() local
118 VN_RELE(vp); in acl2_getacl()
126 VN_RELE(vp); in acl2_getacl()
197 vnode_t *vp; in acl2_setacl() local
225 VN_RELE(vp); in acl2_setacl()
252 vnode_t *vp; in acl2_getattr() local
264 VN_RELE(vp); in acl2_getattr()
291 vnode_t *vp; in acl2_access() local
307 if (rdonly(ro, vp) && (vp->v_type == VREG || vp->v_type == VDIR)) in acl2_access()
360 VN_RELE(vp); in acl2_access()
[all …]
H A Dnfs4_rnode.c200 vnode_t *vp; in r4flushpages() local
239 vnode_t *vp; in r4inactive() local
368 attr->va_type, (void *)vp, vp->v_type); in r4_do_attrcache()
453 vnode_t *vp; in makenfs4node_by_fh() local
499 return (vp); in makenfs4node_by_fh()
511 vnode_t *vp; in makenfs4node() local
549 return (vp); in makenfs4node()
579 vnode_t *vp; in make_rnode4() local
710 return (vp); in make_rnode4()
1310 if (IS_SWAPVP(vp) || vn_is_readonly(vp)) in r4flush()
[all …]
/illumos-gate/usr/src/uts/common/fs/doorfs/
H A Ddoor_vnops.c175 mutex_enter(&vp->v_lock); in door_inactive()
183 VN_RELE_LOCKED(vp); in door_inactive()
187 mutex_exit(&vp->v_lock); in door_inactive()
196 vn_invalid(vp); in door_inactive()
197 vn_free(vp); in door_inactive()
209 vnode_t *vp = DTOV(dp); in door_bind_thread() local
214 mutex_exit(&vp->v_lock); in door_bind_thread()
220 vnode_t *vp = DTOV(dp); in door_unbind_thread() local
227 VN_HOLD_LOCKED(vp); in door_unbind_thread()
230 mutex_exit(&vp->v_lock); in door_unbind_thread()
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dvars.c61 register struct var *vp; in assign() local
70 vp = lookup(name); in assign()
71 if (vp == NOVAR) { in assign()
77 variables[h] = vp; in assign()
79 vfree(vp->v_value); in assign()
85 prompt = vp->v_value; in assign()
88 if (debug) fprintf(stderr, "assign(%s)=%s\n", vp->v_name, vp->v_value); in assign()
118 for (vp = variables[h]; vp->v_link != vp2; vp = vp->v_link) in deassign()
174 cp = vp->v_value; in value()
191 for (vp = variables[h]; vp != NOVAR; vp = vp->v_link) in lookup()
[all …]
/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_node.c94 struct vnode *vp; in pc_getnode() local
146 pcp->pc_vn = vp; in pc_getnode()
196 vn_exists(vp); in pc_getnode()
223 vp = PCTOV(pcp); in pc_rele()
296 vn_invalid(vp); in pc_rele()
297 vn_free(vp); in pc_rele()
369 vp = PCTOV(pcp); in pc_truncate()
711 VN_HOLD(vp); in pc_diskchanged()
716 VN_RELE(vp); in pc_diskchanged()
743 VN_HOLD(vp); in pc_diskchanged()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_subr2.c167 vnode_t *vp; in sn_inactive() local
235 vnode_t *vp; in smbfs_node_findcreate() local
329 vnode_t *vp; in make_smbnode() local
414 vp = new_vp; in make_smbnode()
507 vnode_t *vp; in smbfs_addfree() local
726 vnode_t *vp; in sn_hashfind() local
880 vnode_t *vp; in smbfs_check_table() local
1019 vnode_t *vp; in sn_destroy_node() local
1035 vn_free(vp); in sn_destroy_node()
1084 if (IS_SWAPVP(vp) || vn_is_readonly(vp)) in smbfs_rflush()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dshare.c86 mutex_enter(&vp->v_lock); in add_share()
135 if (isreadonly(vp)) in add_share()
182 isreadonly(vp)) { in add_share()
222 vp->v_shrlocks = shrl; in add_share()
225 print_shares(vp); in add_share()
228 mutex_exit(&vp->v_lock); in add_share()
305 shrlp = &vp->v_shrlocks; in del_share()
429 shrl = vp->v_shrlocks; in shr_has_remote_shares()
445 return (vp->v_type != VCHR && vp->v_type != VBLK && in isreadonly()
446 vp->v_type != VFIFO && vn_is_readonly(vp)); in isreadonly()
[all …]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockcommon_vnops.c121 struct vnode *vp = *vpp; in socket_vop_open() local
143 so = VTOSO(vp); in socket_vop_close()
149 if (vp->v_stream) in socket_vop_close()
150 strclean(vp); in socket_vop_close()
296 so = VTOSO(vp); in socket_vop_getattr()
432 mutex_enter(&vp->v_lock); in socket_vop_inactive()
437 if (vp->v_count < 1) in socket_vop_inactive()
440 VN_RELE_LOCKED(vp); in socket_vop_inactive()
441 if (vp->v_count != 0) { in socket_vop_inactive()
442 mutex_exit(&vp->v_lock); in socket_vop_inactive()
[all …]
/illumos-gate/usr/src/uts/common/fs/dcfs/
H A Ddc_vnops.c114 #define DCHASH(vp) (((uintptr_t)(vp) >> DCSHFT) % DTABLESIZEC) argument
528 vp = VTODC(vp)->dc_subvp; in dc_realvp()
530 vp = rvp; in dc_realvp()
531 *vpp = vp; in dc_realvp()
712 vn_a.vp = vp; in dc_map()
739 dp = VTODC(vp); in dc_addmap()
757 dp = VTODC(vp); in dc_delmap()
784 vn_exists(vp); in dcnode_constructor()
806 vn_free(vp); in dcnode_destructor()
878 vn_reinit(vp); in dcnode_recycle()
[all …]

12345678910>>...23