/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | bash.c | 356 if(np=nv_open("HOSTTYPE",shp->var_tree,0)) in bash_init() 358 if(np=nv_open("MACHTYPE",shp->var_tree,0)) in bash_init() 360 if(np=nv_open("BASH_VERSION",shp->var_tree,0)) in bash_init() 362 if(np=nv_open("BASH_VERSINFO",shp->var_tree,0)) in bash_init() 381 if(np=nv_open("BASH_ENV",shp->var_tree,0)) in bash_init() 390 if(np=nv_open("GLOBIGNORE",shp->var_tree,0)) in bash_init() 415 if(np = nv_open("SHELLOPTS", shp->var_tree, NV_NOADD)) in bash_init()
|
H A D | name.c | 323 if(shp->namespace && nv_dict(shp->namespace)==shp->var_tree) in nv_setlist() 378 np = nv_open(cp,shp->var_tree,flag|NV_ASSIGN); in nv_setlist() 533 np = nv_open(cp,shp->prefix_root?shp->prefix_root:shp->var_tree,flag); in nv_setlist() 624 np = nv_open(cp,shp->prefix_root?shp->prefix_root:shp->var_tree,flags); in nv_setlist() 671 nv_open(shtp.nodes[0]->nvname,shp->var_tree,NV_ASSIGN|NV_VARNAME|NV_NOADD|NV_NOFAIL); in nv_setlist() 769 if(root==shp->var_tree) in nv_create() 797 if(root==shp->var_tree) in nv_create() 827 Dt_t *dp = dtview(shp->var_tree,(Dt_t*)0); in nv_create() 830 dtview(shp->var_tree,rp->sdict); in nv_create() 832 if(np = nv_search(name,shp->var_tree,0)) in nv_create() [all …]
|
H A D | arith.c | 70 Dt_t *root = shp->var_tree; in scope() 82 …if((!(np = nv_open(cp,shp->var_tree,assign|NV_VARNAME|NV_NOADD|NV_NOFAIL)) || nv_isnull(np)) && sh… in scope() 91 np = nv_open(cp,shp->var_tree,assign|NV_VARNAME); in scope() 165 np = nv_open(sub,shp->var_tree,NV_VARNAME|assign); in scope() 309 Dt_t *root = (lvalue->emode&ARITH_COMP)?shp->var_base:shp->var_tree; in arith()
|
H A D | nvtree.c | 161 dp->root = sh.last_root?sh.last_root:sh.var_tree; in nv_diropen() 980 Dt_t *save_tree = sh.var_tree; in walk_tree() 993 shp->var_tree = shp->last_root; in walk_tree() 1009 walk.root = shp->last_root?shp->last_root:shp->var_tree; in walk_tree() 1018 Dt_t *dp = shp->var_tree; in walk_tree() 1029 shp->var_tree = save_tree; in walk_tree() 1031 shp->var_tree = dp; in walk_tree() 1051 shp->var_tree = save_tree; in walk_tree() 1075 shp->var_tree = save_tree; in walk_tree() 1128 …Namval_t *mp = val?nv_open(val,shp->var_tree,NV_VARNAME|NV_NOADD|NV_NOASSIGN|NV_ARRAY|NV_NOFAIL):… in put_tree()
|
H A D | xec.c | 687 nr->root = shp->var_tree; in set_instance() 697 if(shp->var_tree!=shp->var_base && !nv_search((char*)nq,nr->root,HASH_BUCKET|HASH_NOSCOPE)) in set_instance() 765 nv_open(name,shp->var_tree,NV_IDENT|NV_NOADD); in sh_coinit() 851 Dt_t *top = shp->var_tree; in sh_coexec() 870 shp->var_tree = top; in sh_coexec() 948 if(shp->var_tree==oroot) in enter_namespace() 950 shp->var_tree = shp->var_tree->view; in enter_namespace() 956 if(shp->var_tree==shp->var_base) in enter_namespace() 957 shp->var_tree = nv_dict(nsp); in enter_namespace() 960 for(root=shp->var_tree; root->view!=oroot;root=root->view); in enter_namespace() [all …]
|
H A D | init.c | 369 Namval_t *mp = dtsearch(shp->var_tree,np); in put_restricted() 1628 shp->last_root = shp->var_tree; in sh_reinit() 1641 nv_scan(shp->var_tree,sh_envnolocal,(void*)&data,NV_EXPORT,0); in sh_reinit() 1642 nv_scan(shp->var_tree,sh_envnolocal,(void*)&data,NV_ARRAY,NV_ARRAY); in sh_reinit() 1650 if(dp==shp->var_tree) in sh_reinit() 1651 shp->var_tree = dtview(dp,0); in sh_reinit() 1829 shp->var_base = shp->var_tree = inittree(shp,shtab_variables); in nv_init() 2078 np = nv_search(cp+2,shp->var_tree,NV_ADD); in env_init()
|
H A D | args.c | 170 np = nv_open(opt_info.arg,ap->sh->var_tree,NV_NOASSIGN|NV_ARRAY|NV_VARNAME); in sh_argopts() 228 np = nv_open("BASH_VERSION",ap->sh->var_tree,0); in sh_argopts() 230 np = nv_open("MACHTYPE",ap->sh->var_tree,0); in sh_argopts()
|
H A D | subshell.c | 261 dp = shp->var_tree; in sh_assignok() 282 Dt_t *walk, *root=shp->var_tree; in sh_assignok() 511 sp->var = shp->var_tree; in sh_subshell()
|
H A D | fault.c | 627 nv_scan(shp->var_tree,array_notify,(void*)0,NV_ARRAY,NV_ARRAY); in sh_done() 641 if(nv_search("VMTRACE", shp->var_tree,0)) in sh_done()
|
H A D | nvtype.c | 550 if(val && (nq=nv_open(val,sh.var_tree,NV_VARNAME|NV_ARRAY|NV_NOADD|NV_NOFAIL))) in put_type() 629 np = nv_open(cp=stakptr(offset), sh.var_tree, NV_NOADD|NV_VARNAME); in typeinfo() 1228 mp = nv_open(stakptr(offset), sh.var_tree, NV_VARNAME); in nv_mkinttype() 1447 mp = nv_open(stakptr(offset), sh.var_tree, NV_VARNAME); in nv_mkstruct() 1459 tp = nv_open(stakptr(offset), sh.var_tree, NV_VARNAME|NV_NOADD|NV_NOFAIL); in nv_mkstruct() 1499 tp = nv_open(stakptr(offset), sh.var_tree, NV_VARNAME); in nv_mkstruct()
|
H A D | nvdisc.c | 257 …if(val && (tp=nv_type(np)) && (nr=nv_open(val,sh.var_tree,NV_VARNAME|NV_ARRAY|NV_NOADD|NV_NOFAIL))… in assign() 1059 if(*name=='.' && root==sh.var_tree && !dp) in nv_search() 1069 if(sh.namespace && !(mode&HASH_NOSCOPE) && root==sh.var_tree) in nv_search() 1425 return(shp->var_tree); in nv_dict()
|
H A D | expand.c | 150 GLOBIGNORENOD = nv_open("GLOBIGNORE",shp->var_tree,0); in path_expand()
|
H A D | trestore.c | 292 com->comnamp = (void*)nv_open(cmdname,shp->var_tree,NV_VARNAME|NV_NOADD|NV_NOARRAY); in r_comarg()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | typeset.c | 132 return(setall(argv,flag,tdata.sh->var_tree, &tdata)); in b_readonly() 183 Namval_t *np = nv_search((char*)PATHNOD,tdata.sh->var_tree,HASH_BUCKET); in b_alias() 225 troot = tdata.sh->var_tree; in b_typeset() 431 tdata.tp = nv_open(stkptr(stkp,offset),tdata.sh->var_tree,NV_VARNAME|NV_NOARRAY|NV_NOASSIGN); in b_typeset() 436 tdata.tp = nv_open(stkptr(stkp,offset),tdata.sh->var_tree,NV_VARNAME|NV_NOARRAY|NV_NOASSIGN); in b_typeset() 667 if(troot!=shp->var_tree && (nv_isnull(np) || !print_namval(sfstdout,np,0,tp))) in setall() 677 …if(comvar || (shp->last_root==shp->var_tree && (tp->tp || (!shp->st.real_fun && (nvflags&NV_STATIC… in setall() 682 if(troot==shp->var_tree) in setall() 789 if(troot!=shp->var_tree) in setall() 820 hp = dtvnext(shp->var_tree); in setall() [all …]
|
H A D | poll_solaris.c | 287 array_np = nv_open(varname, shp->var_tree, NV_NOFAIL|NV_NOADD); in b_poll() 324 np = nv_open_fmt(shp->var_tree, NV_NOFAIL|NV_NOADD, "%s[%s].fd", varname, subname); in b_poll() 333 np = nv_open_fmt(shp->var_tree, NV_NOFAIL|NV_NOADD, "%s[%s].events", varname, subname); in b_poll() 355 np = nv_open_fmt(shp->var_tree, NV_VARNAME|NV_ARRAY|NV_NOFAIL, "%s", eventarrayname); in b_poll() 369 np = nv_open_fmt(shp->var_tree, NV_NOFAIL, "%s[%s].revents", varname, subname); in b_poll()
|
H A D | shiocmd_solaris.c | 115 dp->format = nv_search(stkptr(stkstd,offset),sh.var_tree,NV_ADD); in make_time() 232 nq = nv_search(stkptr(stkstd,offset),sh.var_tree,NV_ADD); in sh_newnode() 579 np = nv_open(argv[0], shp->var_tree, NV_ARRAY|NV_VARNAME|NV_NOASSIGN); in b_open() 702 np = nv_open(argv[0], shp->var_tree, NV_ARRAY|NV_VARNAME|NV_NOASSIGN); in b_tmpfile() 777 np = nv_open(argv[0],shp->var_tree,NV_ARRAY|NV_VARNAME|NV_NOASSIGN); in b_dup() 849 np = nv_open(argv[0],shp->var_tree,NV_ARRAY|NV_VARNAME|NV_NOASSIGN); in b_stat()
|
H A D | getopts.c | 96 np = nv_open(argv[1],shp->var_tree,NV_NOASSIGN|NV_VARNAME); in b_getopts() 181 np = nv_open(nv_name(OPTARGNOD),shp->var_tree,0); in b_getopts()
|
H A D | misc.c | 127 nv_scan(shp->var_tree,noexport,0,NV_EXPORT,NV_EXPORT); in B_login() 133 (*cp=0,np=nv_search(arg->argval,shp->var_tree,0))) in B_login() 265 shp->st.var_local = shp->st.save_tree = shp->var_tree; in b_dot_cmd() 276 prevscope->save_tree = shp->var_tree; in b_dot_cmd()
|
H A D | read.c | 240 np = nv_open(name,shp->var_tree,oflags); in sh_readline() 274 if(dtvnext(shp->var_tree) || shp->namespace) in sh_readline() 275 np = nv_open(nv_name(REPLYNOD),shp->var_tree,0); in sh_readline() 321 Namval_t *mp = nv_open(name,shp->var_tree,oflags|NV_NOREF); in sh_readline() 783 np = nv_open(name,shp->var_tree,NV_NOASSIGN|NV_VARNAME); in sh_readline()
|
H A D | enum.c | 230 tp = nv_open(stakptr(n), shp->var_tree, NV_VARNAME); in enum_create()
|
H A D | alarm.c | 262 np = nv_open(argv[0],shp->var_tree,NV_NOARRAY|NV_VARNAME|NV_NOASSIGN); in b_alarm()
|
H A D | mkservice.c | 453 np = nv_open(var,sh.var_tree,NV_ARRAY|NV_VARNAME|NV_NOASSIGN); in b_mkservice()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | shell.h | 127 Dt_t *var_tree; member 138 Dt_t *var_tree; /* for shell variables */ member
|
/illumos-gate/usr/src/cmd/ast/ksh/builtins/ |
H A D | alias.c | 208 np = nv_open("exitval", shp->var_tree, 0); in script_builtin_main()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/ |
H A D | hexpand.c | 167 if((np = nv_open("histchars",sh.var_tree,0)) && (cp = nv_getval(np)))
|