Home
last modified time | relevance | path

Searched refs:nv_getval (Results 1 – 25 of 30) sorted by relevance

12

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dcd_pwd.c90 dir = nv_getval(HOME); in b_cd()
92 dir = nv_getval(opwdnod); in b_cd()
184 if(dir == nv_getval(opwdnod) || argc==2) in b_cd()
H A Denum.c239 sz += strlen(nv_getval(np)); in enum_create()
254 sp = nv_getval(np); in enum_create()
H A Dhist.c218 if(!arg && !(arg=nv_getval(sh_scoped(shp,HISTEDIT))) && !(arg=nv_getval(sh_scoped(shp,FCEDNOD)))) in b_hist()
H A Dprint.c606 cp = nv_getval(np); in fmtbase64()
629 cp = nv_getval(np); in fmtbase64()
639 cp = nv_getval(np); in fmtbase64()
H A Dwhence.c169 && (cp=nv_getval(np))) in whence()
H A Dpoll_solaris.c337 s = nv_getval(np); in b_poll()
H A Dshiocmd_solaris.c52 char *format = nv_getval(dp->format); in get_time()
305 if(!(fmtq=nv_getval(np)) || !(fmtq=sh_fmtq(fmtq))) in genvalue()
H A Dtypeset.c184 nv_putval(np,nv_getval(np),NV_RDONLY); in b_alias()
520 if(!(name = nv_getval(np))) in print_value()
648 else if((ap=nv_arrayptr(np)) && nv_aindex(np)>0 && ap->nelem==1 && nv_getval(np)==Empty) in setall()
1372 if(cp=nv_getval(np)) in print_namval()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dexpand.c145 cp=nv_getval(sh_scoped(shp,FIGNORENOD)); in path_expand()
151 cp=nv_getval(sh_scoped(shp,GLOBIGNORENOD)); in path_expand()
188 gp->gl_fignore = nv_getval(sh_scoped(shp,FIGNORENOD)); in path_expand()
H A Dmacro.c177 if(mp->ifsp=nv_getval(sh_scoped(shp,IFSNOD))) in sh_mactrim()
212 if(mp->ifsp=nv_getval(sh_scoped(shp,IFSNOD))) in sh_macexpand()
285 mp->ifsp = nv_getval(sh_scoped(shp,IFSNOD)); in sh_machere()
1447 v = nv_getval(np); in varsub()
1675 v = nv_getval(np); in varsub()
1680 v = nv_getval(np); in varsub()
1879 v = nv_getval(np); in varsub()
1929 v = nv_getval(np); in varsub()
1977 v = nv_getval(np); in varsub()
2164 mp->ifsp = nv_getval(np); in comsubst()
[all …]
H A Dmain.c229 if(name = sh_mactry(shp,nv_getval(ENVNOD))) in sh_main()
281 …if(((type = sh_type(cp = av[0])) & SH_TYPE_SH) && (name = nv_getval(L_ARGNOD)) && (!((type = sh_ty… in sh_main()
509 if((mail=nv_getval(MAILPNOD)) || (mail=nv_getval(MAILNOD))) in exfile()
H A Dinit.c260 if(*name=='E' && nv_getval(sh_scoped(shp,VISINOD))) in put_ed()
262 if(!(cp=val) && (*name=='E' || !(cp=nv_getval(sh_scoped(shp,EDITNOD))))) in put_ed()
294 if(np==HISTFILE && (cp=nv_getval(np)) && strcmp(val,cp)==0) in put_history()
370 if(mp && (val=nv_getval(mp))) in put_restricted()
433 else if(name==(LANGNOD)->nvname && (!(name=nv_getval(LCALLNOD)) || !*name)) in put_lang()
954 if(cp = nv_getval(np)) in put_vpath()
1116 stakputs(nv_getval(PATHNOD)); in newconf()
1386 sfprintf(shp->strbuf,"%s/.kshrc",nv_getval(HOME)); in sh_init()
1397 char *cp=nv_getval(L_ARGNOD); in sh_init()
1415 else if(cp = nv_getval(PWDNOD)) in sh_init()
[all …]
H A Dnvtype.c464 cp = nv_getval(nr); in clone_type()
471 nv_putval(nq,nv_getval(nr),NV_RDONLY); in clone_type()
663 sfprintf(out," with default value \b%s\b.]",nv_getval(np)); in typeinfo()
699 cp = sh_fmtq(nv_getval(nq)); in typeinfo()
1001 sp = nv_getval(np); in nv_mktype()
1011 char *val=nv_getval(np); in nv_mktype()
1363 val = strdup(nv_getval(np)); in nv_settype()
1653 cp = nv_getval(L_ARGNOD); in sh_outtype()
H A Dname.c160 if(!(val = nv_getval(np))) in sh_envput()
2220 else if(value=nv_getval(np)) in pushnam()
2411 if(cp = nv_getval(np)) in sh_envnolocal()
2462 nv_putval(nq, strdup(nv_getval(nq)), NV_RDONLY); in table_unset()
2464 nv_putval(nq, nv_getval(nq), NV_RDONLY); in table_unset()
2786 char *nv_getval(register Namval_t *np) in nv_getval() function
2987 else if((str=nv_getval(np)) && *str!=0) in nv_getnum()
3074 if (sp = nv_getval(np)) in nv_newattr()
3163 return(nv_getval(np)); in sh_getenv()
3207 return(nv_getval(np)); in sh_setenviron()
[all …]
H A Dnvdisc.c67 cp = nv_getval(np); in nv_getv()
264 nv_putval(np,nv_getval(nr), 0); in assign()
319 cp = nv_getval(SH_VALNOD); in assign()
400 else if(cp = nv_getval(SH_VALNOD)) in lookup()
1000 return(np->nvalue.np?nv_getval(np->nvalue.np):0); in clone_getv()
H A Dxec.c965 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(fpa… in enter_namespace()
1162 if(!nv_getval(SH_FUNNAMENOD)) in sh_exec()
1294 np=nv_search(nv_getval(np),shp->bltin_tree,0); in sh_exec()
1648 nv_getval(RANDNOD); in sh_exec()
2307 if(!(val=nv_getval(sh_scoped(shp,REPLYNOD)))) in sh_exec()
2358 if((cp=nv_getval(sh_scoped(shp,REPLYNOD))) && *cp==0) in sh_exec()
2655 format = nv_getval(np); in sh_exec()
3035 if(!(cp=nv_getval(sh_scoped(shp,PS4NOD)))) in sh_trace()
3289 …if((cp = nv_getval(np)) && (mp = nv_search(nv_name(np), shp->var_tree, NV_ADD|HASH_NOSCOPE)) && nv… in local_exports()
[all …]
H A Darray.c421 sfprintf(sh.strbuf,"%s=%s",nv_name(nq),nv_getval(np)); in nv_arraysettype()
544 nv_putval(mp,nv_getval(np),NV_RDONLY); in array_clone()
575 cp = nv_getval(mp); in array_getval()
999 value = nv_getval(np); in nv_setarray()
1137 if(nv_getval(np)==Empty) in nv_nextsub()
1614 return(nv_getval(np)); in nv_getsub()
H A Dpath.c251 cp = nv_getval(PWDNOD); in path_pwd()
254 cp = nv_getval(HOME); in path_pwd()
1114 s = nv_getval(np); in path_spawn()
1347 if(shp->gd->hist_ptr && (path=nv_getval(HISTFILE)) && strcmp(path,shp->gd->hist_ptr->histname)) in exscript()
H A Dargs.c229 sfputr(sfstdout, nv_getval(np),-1); in sh_argopts()
231 sfprintf(sfstdout, " (%s)\n", nv_getval(np)); in sh_argopts()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dhistory.c94 # define nv_getval(s) getenv(#s) macro
96 # define nv_getval(s) getenv("s") macro
138 if(!np || !(acctfile=nv_getval(np))) in acctinit()
240 if(!(histname = nv_getval(HISTFILE))) in sh_histinit()
243 if(cp=nv_getval(HOME)) in sh_histinit()
304 if(cp=nv_getval(HISTSIZE)) in sh_histinit()
H A Dedit.c517 register char *cp = nv_getval(COLUMNS); in ed_window()
766 …if(ep->e_term && (term=nv_getval(ep->e_term)) && strlen(term)<sizeof(ep->e_termname) && strcmp(ter… in ed_setup()
769 if(pp=nv_getval(SH_SUBSCRNOD)) in ed_setup()
777 if(ep->e_default && (pp = nv_getval(ep->e_default))) in ed_setup()
1592 if((cp = nv_getval(ED_CHRNOD)) == inbuff)
1667 if(!(hp=ep->sh->gd->hist_ptr) && (!nv_getval(HISTFILE) || !sh_histinit(ep->sh)))
H A Dhexpand.c167 if((np = nv_open("histchars",sh.var_tree,0)) && (cp = nv_getval(np)))
H A Dcompletion.c524 if (isalnum(i)&&(np=nv_search(ep->e_macro,ep->sh->alias_tree,HASH_SCOPE))&&(out=nv_getval(np))) in ed_macro()
/illumos-gate/usr/src/cmd/ast/libshell/
H A Dmapfile-vers101 nv_getval;
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dnval.h272 extern char *nv_getval(Namval_t*);

12