/titanic_51/usr/src/lib/libshell/common/bltins/ |
H A D | whence.c | 167 if((np=nv_search(name,shp->alias_tree,0)) in whence() 244 if(!np && (np=nv_search(name,shp->track_tree,0))) in whence() 252 if(*cp=='/' && (np=nv_search(cp,shp->bltin_tree,0))) in whence()
|
H A D | typeset.c | 475 if((np=nv_search(name,shp->bltin_tree,0)) && nv_isattr(np,BLT_SPC)) in b_common() 479 else if((np=nv_search(name,troot,0)) && !is_afunction(np)) in b_common() 502 if((np=nv_search(stkptr(shp->stk,offset),troot,0)) && np->nvalue.cp) in b_common() 511 np = nv_search(name,troot,NV_ADD); in b_common() 1185 …if((np=nv_search(*argv++,root,0)) && np!=onp && (!nv_isnull(np) || np->nvfun || nv_isattr(np,~NV_N… in print_scan()
|
H A D | getopts.c | 40 if(nv_search(s,sh.fun_tree,0)) in infof()
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | whence.c | 167 if((np=nv_search(name,shp->alias_tree,0)) in whence() 251 if(!np && (np=nv_search(name,shp->track_tree,0))) in whence() 259 if(*cp=='/' && (np=nv_search(cp,shp->bltin_tree,0))) in whence()
|
H A D | getopts.c | 41 if((shp->namespace && sh_fsearch(shp,s,0)) || nv_search(s,shp->fun_tree,0)) in infof() 43 if(nv_search(s,shp->fun_tree,0)) in infof()
|
H A D | typeset.c | 183 Namval_t *np = nv_search((char*)PATHNOD,tdata.sh->var_tree,HASH_BUCKET); in b_alias() 573 if((np=nv_search(name,shp->bltin_tree,0)) && nv_isattr(np,BLT_SPC)) in setall() 595 if(np=nv_search(name,troot,0)) in setall() 626 np = nv_search(stkptr(shp->stk,offset),troot,0); in setall() 637 np = nv_search(name,troot,NV_ADD); in setall() 1091 if(!addr && (np = nv_search(arg,context->shp->bltin_tree,0))) in b_builtin() 1261 else if(shp->var_tree==troot && shp->var_tree!=shp->var_base && nv_search((char*)np,shp->var_tree,HASH_BUCKET|HASH_NOSCOPE)) in unall() 1457 if((np=nv_search(*argv++,root,0)) && np!=onp && (!nv_isnull(np) || np->nvfun || nv_isattr(np,~NV_NOFREE))) in print_scan()
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | arith.c | 104 if((lvalue->emode&ARITH_COMP) && dtvnext(root) && ((sdict && (mp=nv_search(cp,sdict,flags&~NV_ADD))) || (mp=nv_search(cp,root,flags&~(NV_ADD))) || (nsdict && (mp=nv_search(cp,nsdict,flags&~(NV_ADD|HASH_NOSCOPE)))) )) in scope() 184 if(ap && ap->table && (nq=nv_search(nv_getsub(np),ap->table,NV_ADD))) in scope() 280 if(np=nv_search(stkptr(shp->stk,off),shp->fun_tree,0)) in arith()
|
H A D | array.c | 379 mp = nv_search(cp, ap->header.table, NV_ADD); in array_find() 414 if(nq = nv_search(sub, ap->table, NV_ADD)) in nv_arraysettype() 515 mq = nv_search(name,ap->table,NV_ADD); in array_clone() 858 mp = nv_search("0", ap->header.table,NV_ADD); in array_grow() 1264 mp = nv_search(cp, ap->header.table, NV_ADD); in nv_putsub() 1688 if(!ap->header.scope || (Dt_t*)ap->header.scope==ap->header.table || !nv_search(ap->cur->nvname,(Dt_t*)ap->header.scope,0)) in nv_associative() 1765 if(sh.subshell && (mp=nv_search(sp,ap->header.table,0)) && nv_isnull(mp)) in nv_associative() 1767 if((mp || (mp=nv_search(sp,ap->header.table,mode))) && nv_isnull(mp) && (mode&NV_ADD)) in nv_associative() 1775 if(!ap->header.scope || !nv_search(sp,dtvnext(ap->header.table),0)) in nv_associative() 1792 mp = nv_search(s in nv_associative() [all...] |
H A D | path.c | 636 np = nv_search(name,shp->fun_tree,0); in funload() 691 if(!(flag&1) && (np=nv_search(name,shp->track_tree,0)) && !nv_isattr(np,NV_NOALIAS) && (pp=(Pathcomp_t*)np->nvalue.cp)) in path_search() 703 if(!pp && (np=nv_search(name,shp->fun_tree,0))&&np->nvalue.ip) in path_search() 727 if(np=nv_search(name,shp->track_tree,NV_ADD)) in path_search() 770 if(*stakptr(PATH_OFFSET)=='/' && nv_search(stakptr(PATH_OFFSET),shp->bltin_tree,0)) in path_absolute() 861 if(*stakptr(PATH_OFFSET)=='/' && nv_search(stakptr(PATH_OFFSET),shp->bltin_tree,0)) in path_absolute() 893 np = nv_search(stakptr(n),shp->bltin_tree,0); in path_absolute() 1065 np=nv_search(argv[0],shp->track_tree,0); in path_spawn()
|
H A D | nvdisc.c | 1045 Namval_t *nv_search(const char *name, Dt_t *root, int mode) in nv_search() function 1125 return(var?nv_search(name,root,0):0); in nv_bfsearch() 1155 return(nv_search(name,root,0)); in nv_bfsearch() 1161 np = nv_search(stakptr(offset),root,0); in nv_bfsearch() 1200 if(np = nv_search(name,sh.bltin_tree,0)) in sh_addbuiltin() 1233 if(!np && !(np = nv_search(path,sh.bltin_tree,bltin?NV_ADD:0))) in sh_addbuiltin() 1496 return(nv_search(fname,sh_subfuntree(add&NV_ADD),add)); in sh_fsearch()
|
H A D | name.c | 226 np = nv_search(sp->rp->nvname,root,NV_ADD); in nv_addnode() 379 if((arg->argflag&ARG_APPEND) && (tp->tre.tretyp&COMMSK)==TCOM && tp->com.comset && !nv_isvtree(np) && (((ap=nv_arrayptr(np)) && !ap->fun && !nv_opensub(np)) || (!ap && nv_isarray(np) && tp->com.comarg && !((mp=nv_search(tp->com.comarg->argval,shp->fun_tree,0)) && nv_isattr(mp,BLT_DCL))))) in nv_setlist() 832 if(np = nv_search(name,shp->var_tree,0)) in nv_create() 841 if(!(nq = nv_search((char*)np,shp->var_base,HASH_BUCKET))) in nv_create() 874 np = nv_search(name,root,HASH_NOSCOPE|NV_ADD); in nv_create() 881 if(np || (np = nv_search(name,root,mode))) in nv_create() 1179 if(ap && ap->table && (nq=nv_search(sub,ap->table,n))) in nv_create() 1386 np = nv_search(name,root,mode); in nv_open() 1412 np = nv_search(name, root, (flags&NV_NOADD)?0:NV_ADD); in nv_open() 1489 np = nv_search(nam in nv_open() [all...] |
H A D | xec.c | 697 if(shp->var_tree!=shp->var_base && !nv_search((char*)nq,nr->root,HASH_BUCKET|HASH_NOSCOPE)) in set_instance() 945 path = nv_search(PATHNOD->nvname,oroot,HASH_NOSCOPE); in enter_namespace() 946 fpath = nv_search(FPATHNOD->nvname,oroot,HASH_NOSCOPE); in enter_namespace() 965 if(path && (path = nv_search(PATHNOD->nvname,shp->var_tree,HASH_NOSCOPE)) && (val=nv_getval(path))) in enter_namespace() 967 if(fpath && (fpath = nv_search(FPATHNOD->nvname,shp->var_tree,HASH_NOSCOPE)) && (val=nv_getval(fpath))) in enter_namespace() 1283 np=nv_search(com0,shp->fun_tree,0); in sh_exec() 1286 Namval_t *mp=nv_search(com0,shp->bltin_tree,0); in sh_exec() 1293 if((np=nv_search(com0,shp->track_tree,0)) && !nv_isattr(np,NV_NOALIAS) && np->nvalue.cp) in sh_exec() 1294 np=nv_search(nv_getval(np),shp->bltin_tree,0); in sh_exec() 1512 np = nv_search(com in sh_exec() [all...] |
/titanic_51/usr/src/lib/libshell/common/include/ |
H A D | nval.h | 283 extern Namval_t *nv_search(const char *, Dt_t*, int); 307 # define nv_search(np,a,b) nv_open(np,a,((b)?0:NV_NOADD))
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | nval.h | 294 extern Namval_t *nv_search(const char *, Dt_t*, int); 318 # define nv_search(np,a,b) nv_open(np,a,((b)?0:NV_NOADD))
|
/titanic_51/usr/src/lib/libshell/common/sh/ |
H A D | array.c | 275 mp = nv_search(cp, ap->header.table, NV_ADD); in array_find() 310 if(nq = nv_search(sub, ap->table, NV_ADD)) in nv_arraysettype() 411 mq = nv_search(name,ap->table,NV_ADD); in array_clone() 679 mp = nv_search("0", ap->header.table,NV_ADD); in array_grow() 1204 …if(!ap->header.scope || (Dt_t*)ap->header.scope==ap->header.table || !nv_search(ap->cur->nvname,(D… in nv_associative() 1281 if(sh.subshell && (mp=nv_search(sp,ap->header.table,0)) && nv_isnull(mp)) in nv_associative() 1283 if((mp || (mp=nv_search(sp,ap->header.table,mode))) && nv_isnull(mp) && (mode&NV_ADD)) in nv_associative() 1291 if(!ap->header.scope || !nv_search(sp,dtvnext(ap->header.table),0)) in nv_associative() 1308 mp = nv_search(sp,ap->header.table,NV_ADD); in nv_associative()
|
H A D | arith.c | 95 …lvalue->emode&ARITH_COMP) && dtvnext(root) && ((mp=nv_search(cp,root,flags))||(sdict && (mp=nv_sea… in scope()
|
H A D | name.c | 215 np = nv_search(sp->rp->nvname,root,NV_ADD); in nv_addnode() 755 if(np = nv_search(name,shp->var_tree,0)) in nv_create() 788 np = nv_search(name,root,HASH_NOSCOPE|NV_ADD); in nv_create() 791 if(np || (np = nv_search(name,root,mode))) in nv_create() 993 if(ap && ap->table && (nq=nv_search(sub,ap->table,n))) in nv_create() 1157 np = nv_search(name,root,mode); in nv_open() 1183 np = nv_search(name, root, (flags&NV_NOADD)?0:NV_ADD); in nv_open() 1259 np = nv_search(name, funroot, c); in nv_open() 1317 if(nv_search((char*)np,shp->var_base,HASH_BUCKET)) in nv_open() 2206 … if(rp->fname && shp->fpathdict && (rq = (struct Ufunction*)nv_search(rp->fname,shp->fpathdict,0))) in _nv_unset() [all …]
|
H A D | path.c | 710 …if((np=nv_search(name,shp->track_tree,0)) && !nv_isattr(np,NV_NOALIAS) && (pp=(Pathcomp_t*)np->nva… in path_search() 720 if(!pp && (np=nv_search(name,shp->fun_tree,HASH_NOSCOPE))&&np->nvalue.ip) in path_search() 744 if(np=nv_search(name,shp->track_tree,NV_ADD)) in path_search() 783 if(*stakptr(PATH_OFFSET)=='/' && nv_search(stakptr(PATH_OFFSET),sh.bltin_tree,0)) in path_absolute() 854 np = nv_search(stakptr(n),sh.bltin_tree,0); in path_absolute() 1028 np=nv_search(argv[0],shp->track_tree,0); in path_spawn()
|
/titanic_51/usr/src/lib/libshell/amd64/include/ast/ |
H A D | nval.h | 294 extern __MANGLE__ Namval_t *nv_search __PROTO__((const char *, Dt_t*, int)); 319 # define nv_search(np,a,b) nv_open(np,a,((b)?0:NV_NOADD))
|
/titanic_51/usr/src/lib/libshell/sparc/include/ast/ |
H A D | nval.h | 294 extern __MANGLE__ Namval_t *nv_search __PROTO__((const char *, Dt_t*, int)); 319 # define nv_search(np,a,b) nv_open(np,a,((b)?0:NV_NOADD))
|
/titanic_51/usr/src/lib/libshell/sparcv9/include/ast/ |
H A D | nval.h | 294 extern __MANGLE__ Namval_t *nv_search __PROTO__((const char *, Dt_t*, int)); 319 # define nv_search(np,a,b) nv_open(np,a,((b)?0:NV_NOADD))
|
/titanic_51/usr/src/lib/libshell/i386/include/ast/ |
H A D | nval.h | 294 extern __MANGLE__ Namval_t *nv_search __PROTO__((const char *, Dt_t*, int)); 319 # define nv_search(np,a,b) nv_open(np,a,((b)?0:NV_NOADD))
|
/titanic_51/usr/src/lib/libshell/common/edit/ |
H A D | completion.c | 416 …if(*cp=='/' && (pp=path_dirfind(sh.pathlist,cp,'/')) && (np=nv_search(begin,sh.track_tree,NV_ADD))) in ed_expand() 506 if (isalnum(i)&&(np=nv_search(ep->e_macro,sh.alias_tree,HASH_SCOPE))&&(out=nv_getval(np))) in ed_macro()
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/edit/ |
H A D | completion.c | 434 if(*cp=='/' && (pp=path_dirfind(ep->sh->pathlist,cp,'/')) && (np=nv_search(begin,ep->sh->track_tree,NV_ADD))) in ed_expand() 524 if (isalnum(i)&&(np=nv_search(ep->e_macro,ep->sh->alias_tree,HASH_SCOPE))&&(out=nv_getval(np))) in ed_macro()
|
/titanic_51/usr/src/lib/libshell/ |
H A D | mapfile-vers | 118 nv_search;
|