Home
last modified time | relevance | path

Searched refs:NV_NOFREE (Results 1 – 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/data/
H A Daliases.c33 "2d", NV_NOFREE, "set -f;_2d",
35 "autoload", NV_NOFREE, "typeset -fu",
36 "command", NV_NOFREE, "command ",
37 "compound", NV_NOFREE|BLT_DCL, "typeset -C",
38 "fc", NV_NOFREE, "hist",
39 "float", NV_NOFREE|BLT_DCL, "typeset -lE",
40 "functions", NV_NOFREE, "typeset -f",
41 "hash", NV_NOFREE, "alias -t --",
42 "history", NV_NOFREE, "hist -l",
43 "integer", NV_NOFREE|BLT_DCL, "typeset -li",
[all …]
H A Dvariables.c41 "PS2", NV_NOFREE, "> ",
42 "IFS", NV_NOFREE, " \t\n",
47 "SHELL", NV_NOFREE, "/bin/" SH_STD,
49 "MAILCHECK", NV_NOFREE|NV_INTEGER, (char*)0,
50 "RANDOM", NV_NOFREE|NV_INTEGER, (char*)0,
51 "ENV", NV_NOFREE, (char*)0,
54 "HISTEDIT", NV_NOFREE, (char*)0,
55 "HISTCMD", NV_NOFREE|NV_INTEGER, (char*)0,
56 "FCEDIT", NV_NOFREE, &e_defedit[0],
59 "PS3", NV_NOFREE, "#? ",
[all …]
H A Dbuiltins.c49 #define CMDLIST(f) SH_CMDLIB_DIR "/" Q(f), NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f),
/illumos-gate/usr/src/cmd/ast/libshell/common/
H A Dillumos_cmdlist.h46 { "/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
48 { "/usr/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
50 { "/sbin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
52 { "/usr/sbin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
55 { "/usr/xpg6/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
57 { "/usr/xpg4/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
61 { "/usr/gnu/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
70 { "/usr/ast/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dnvdisc.c281 nv_onattr(SH_VALNOD,NV_NOFREE); in assign()
286 nv_putval(SH_VALNOD, val, (flags&NV_INTEGER)?flags:NV_NOFREE); in assign()
345 if((nq=vp->disc[n]) && !nv_isattr(nq,NV_NOFREE)) in assign()
382 nv_onattr(SH_VALNOD,NV_NOFREE); in lookup()
608 if(!val && !(flag&NV_NOFREE)) in putdisc()
615 if((mp=vp->bltins[i]) && !nv_isattr(mp,NV_NOFREE)) in putdisc()
619 if(mp->nvfun && !nv_isattr(mp,NV_NOFREE)) in putdisc()
936 mp->nvflag |= np->nvflag&~(NV_ARRAY|NV_MINIMAL|NV_NOFREE); in nv_clone()
956 nv_offattr(mp,NV_NOFREE); in nv_clone()
959 nv_offattr(mp,NV_NOFREE); in nv_clone()
[all …]
H A Darray.c211 nofree = nv_isattr(mp,NV_NOFREE); in array_getup()
239 nv_onattr(np,NV_NOFREE); in array_getup()
241 nv_offattr(np,NV_NOFREE); in array_getup()
424 if(!nv_clone(tp,nq,flags|NV_NOFREE)) in nv_arraysettype()
496 mp->nvflag |= (np->nvflag&~(NV_MINIMAL|NV_NOFREE)); in array_clone()
525 if((flags&NV_NOFREE) && !is_associative(ap)) in array_clone()
527 else if(nq && (flags&NV_NOFREE)) in array_clone()
530 nv_onattr(nq,NV_NOFREE); in array_clone()
610 int scan,nofree = nv_isattr(np,NV_NOFREE); in array_putval()
624 if(!nv_isattr(np,NV_NOFREE)) in array_putval()
[all …]
H A Dnvtype.c252 nv_onattr(np,NV_NOFREE); in put_chtype()
313 nq ->nvflag = NV_REF|NV_NOFREE|NV_MINIMAL; in fixnode()
352 nv_offattr(nq,NV_NOFREE); in fixnode()
356 nv_offattr(nq,NV_NOFREE); in fixnode()
414 if(flags==(NV_NOFREE|NV_ARRAY)) in clone_type()
606 if(nv_isattr(mp,NV_NOFREE) && mp->nvalue.cp) in clone_inttype()
787 nv_onattr(mp,NV_NOFREE); in std_disc()
987 nv_onattr(mnodes[j],NV_NOFREE); in nv_mktype()
1015 nq->nvflag = np->nvflag|NV_NOFREE|NV_MINIMAL; in nv_mktype()
1041 nv_onattr(nq,NV_NOFREE); in nv_mktype()
[all …]
H A Darith.c86 nv_onattr(&FunNode,NV_NOFREE|NV_LDOUBLE|NV_RDONLY); in scope()
102 else if(assign==NV_ASSIGN && nv_isnull(np) && !nv_isattr(np, ~(NV_MINIMAL|NV_NOFREE))) in scope()
339 nv_onattr(np,NV_NOFREE|NV_LDOUBLE|NV_RDONLY); in arith()
346 nv_onattr(np,NV_NOFREE|NV_LDOUBLE|NV_RDONLY); in arith()
463 nv_offattr(&node,NV_RDONLY|NV_NOFREE); in arith()
465 if(nv_isattr(&node,NV_NOFREE)) in arith()
H A Dname.c225 nv_delete(np,root,NV_NOFREE); in nv_addnode()
243 nv_delete(sp->nodes[0],root,NV_NOFREE); in nv_addnode()
395 if(nv_isattr(np,NV_NOFREE) && nv_isnull(np)) in nv_setlist()
396 nv_offattr(np,NV_NOFREE); in nv_setlist()
497 …if(!(arg->argflag&ARG_APPEND) && nv_isattr(np,NV_BINARY|NV_NOFREE|NV_RAW)!=(NV_BINARY|NV_NOFREE|NV… in nv_setlist()
587 L_ARGNOD->nvflag = NV_REF|NV_NOFREE; in nv_setlist()
851 nv_delete(np,(Dt_t*)0,NV_NOFREE); in nv_create()
905 nv_onattr(np,NV_INTEGER|NV_NOFREE); in nv_create()
1015 nofree = NV_NOFREE; in nv_create()
1285 if(root || !(flags&NV_NOFREE)) in nv_delete()
[all …]
H A Dbash.c357 nv_putval(np, BASH_HOSTTYPE, NV_NOFREE); in bash_init()
359 nv_putval(np, BASH_MACHTYPE, NV_NOFREE); in bash_init()
361 nv_putval(np, BASH_VERSION, NV_NOFREE); in bash_init()
H A Dsubshell.c294 nv_delete(mp,walk,NV_NOFREE); in sh_assignok()
307 if(nv_isattr(np,NV_NOFREE)) in sh_assignok()
309 nv_clone(np,mp,(add?(nv_isnull(np)?0:NV_NOFREE)|NV_ARRAY:NV_MOVE)); in sh_assignok()
352 flags |= NV_NOFREE; in nv_restore()
356 nv_putval(mp, nv_getval(np),np->nvflag|NV_NOFREE|NV_RDONLY); in nv_restore()
431 flag = NV_NOFREE; in table_unset()
759 if(nv_isattr(pwdnod,NV_NOFREE)) in sh_subshell()
H A Dnvtree.c432 if(!fp && !nv_isattr(np,~(NV_MINIMAL|NV_NOFREE))) in nv_attribute()
438 …else if((!np->nvalue.cp||np->nvalue.cp==Empty) && nv_isattr(np,~NV_NOFREE)==NV_MINIMAL && strcmp(n… in nv_attribute()
444 if ((attr=nv_isattr(np,~NV_NOFREE)) || fp) in nv_attribute()
499 if((ap && (ap->nelem&ARRAY_TREE)) || (!ap && nv_isattr(np,NV_NOFREE))) in nv_attribute()
757 if(sh.subshell || (wp->flags!=NV_RDONLY) || nv_isattr(np,NV_MINIMAL|NV_NOFREE)) in outval()
759 nv_delete(np,wp->root,nv_isattr(np,NV_MINIMAL)?NV_NOFREE:0); in outval()
788 …if((np->nvalue.cp && np->nvalue.cp!=Empty) || nv_isattr(np,~(NV_MINIMAL|NV_NOFREE)) || nv_isvtree(… in outval()
1121 if(!val && !fp->next && nv_isattr(np,NV_NOFREE)) in put_tree()
H A Dxec.c490 nv_onattr(SH_LEVELNOD,NV_INT16|NV_NOFREE); in init_level()
547 …un || !SH_LEVELNOD->nvfun->disc || nv_isattr(SH_LEVELNOD,NV_INT16|NV_NOFREE)!=(NV_INT16|NV_NOFREE)) in sh_debug()
558 nv_putval(SH_PATHNAMENOD,shp->st.filename,NV_NOFREE); in sh_debug()
559 nv_putval(SH_FUNNAMENOD,shp->st.funname,NV_NOFREE); in sh_debug()
705 nv_putval(SH_NAMENOD, cp, NV_NOFREE); in set_instance()
708 L_ARGNOD->nvflag = NV_REF|NV_NOFREE; in set_instance()
713 nv_putval(SH_SUBSCRNOD,nr->sub=sp,NV_NOFREE); in set_instance()
2940 nv_onattr(L_ARGNOD,NV_NOFREE); in sh_exec()
2945 nv_offattr(L_ARGNOD,NV_NOFREE); in sh_exec()
3310 SH_VALNOD->nvflag = NV_LDOUBLE|NV_NOFREE; in sh_mathfun()
[all …]
H A Dinit.c749 if(shp->lastarg && !nv_isattr(np,NV_NOFREE)) in put_lastarg()
752 nv_offattr(np,NV_NOFREE); in put_lastarg()
816 nv_onattr(np,NV_NOFREE|NV_ARRAY); in sh_setmatch()
1012 nv_onattr(np,NV_MINIMAL|NV_NOFREE|NV_LDOUBLE|NV_RDONLY); in math_init()
1624 nv_delete(np,dp,NV_NOFREE); in sh_reinit()
1682 nv_onattr(SHLVL,NV_INTEGER|NV_EXPORT|NV_NOFREE); in sh_reinit()
1803 nv_onattr(np,NV_RDONLY|NV_MINIMAL|NV_NOFREE|NV_INTEGER); in stat_init()
2058 nv_onattr(mp,NV_NOFREE); in env_init()
H A Dpath.c268 nv_offattr(PWDNOD,NV_NOFREE); in path_pwd()
283 nv_offattr(PWDNOD,NV_NOFREE); in path_pwd()
287 nv_onattr(PWDNOD,NV_NOFREE|NV_EXPORT); in path_pwd()
613 nv_delete(np,funtree,NV_NOFREE); in funload()
1722 nv_delete(rp->np,rp->fdict,NV_NOFREE); in path_unsetfpath()
1810 nv_setattr(np,NV_TAGGED|NV_NOFREE); in path_alias()
H A Dmain.c378 nv_putval(SH_PATHNAMENOD, shp->st.filename ,NV_NOFREE); in exfile()
H A Dmacro.c1339 if(nv_isattr(np,NV_NOFREE)) in varsub()
1340 nv_offattr(np,NV_NOFREE); in varsub()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dnval.h144 #define NV_NOFREE 0x200 /* don't free the space when releasing value */ macro
181 #define NV_ASSIGN NV_NOFREE /* assignment is possible */
H A Dname.h122 #define NV_NOCHANGE (NV_EXPORT|NV_IMPORT|NV_RDONLY|NV_TAGGED|NV_NOFREE|NV_ARRAY)
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dtypeset.c644 if(nv_isnull(np) && !nv_isarray(np) && nv_isattr(np,NV_NOFREE)) in setall()
645 nv_offattr(np,NV_NOFREE); in setall()
689 nv_onattr(np,NV_ARRAY|(comvar?NV_NOFREE:0)); in setall()
707 nv_onattr(np,NV_NOFREE); in setall()
1253 if(!nv_isnull(np) || nv_size(np) || nv_isattr(np,~(NV_MINIMAL|NV_NOFREE))) in unall()
1256 nv_delete(np,dp,NV_NOFREE); in unall()
1320 if(nv_isattr(np,NV_NOFREE)) in print_namval()
1457 …nv_search(*argv++,root,0)) && np!=onp && (!nv_isnull(np) || np->nvfun || nv_isattr(np,~NV_NOFREE))) in print_scan()
H A Dmisc.c279 nv_putval(SH_PATHNAMENOD, shp->st.filename ,NV_NOFREE); in b_dot_cmd()
316 nv_putval(SH_PATHNAMENOD, shp->st.filename ,NV_NOFREE); in b_dot_cmd()
H A Dcd_pwd.c207 nv_onattr(pwdnod,NV_NOFREE|NV_EXPORT); in b_cd()
H A Denum.c162 if(nv_isattr(np,NV_NOFREE)) in put_enum()
H A Dshiocmd_solaris.c235 nv_putval(nq,val,fp->flags|NV_NOFREE); in sh_newnode()
358 if(np->nvalue && !nv_isattr(np,NV_NOFREE)) in put_classval()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dedit.c1585 nv_putval(ED_CHRNOD,inbuff,NV_NOFREE);
1586 nv_putval(ED_COLNOD,(char*)&ep->e_col,NV_NOFREE|NV_INTEGER);
1587 nv_putval(ED_TXTNOD,(char*)cp,NV_NOFREE);
1588 nv_putval(ED_MODENOD,ep->e_vi_insert,NV_NOFREE);

12