/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | nval.h | 43 typedef struct Namval Namval_t; typedef 57 void (*putval)(Namval_t*, const char*, int, Namfun_t*); 58 char *(*getval)(Namval_t*, Namfun_t*); 59 Sfdouble_t (*getnum)(Namval_t*, Namfun_t*); 60 char *(*setdisc)(Namval_t*, const char*, Namval_t*, Namfun_t*); 61 Namval_t *(*createf)(Namval_t*, const char*, int, Namfun_t*); 62 Namfun_t *(*clonef)(Namval_t*, Namval_t*, int, Namfun_t*); 63 char *(*namef)(Namval_t*, Namfun_t*); 64 Namval_t *(*nextf)(Namval_t*, Dt_t*, Namfun_t*); 65 Namval_t *(*typef)(Namval_t*, Namfun_t*); [all …]
|
H A D | name.h | 88 Namval_t *np; 89 Namval_t *table; 107 Namval_t *nspace; /* pointer to name space */ 112 Namval_t *np; /* function node pointer */ 183 extern int array_maxindex(Namval_t*); 184 extern char *nv_endsubscript(Namval_t*, char*, int); 185 extern Namfun_t *nv_cover(Namval_t*); 186 extern Namarr_t *nv_arrayptr(Namval_t*); 187 extern int nv_arrayisset(Namval_t*, Namarr_t*); 188 extern int nv_arraysettype(Namval_t*, Namval_t*,const char*,int); [all …]
|
H A D | defs.h | 130 Namval_t *bltin_nodes; 131 Namval_t *bltin_cmds; 162 Namval_t *namespace; /* current active namespace*/ \ 163 Namval_t *last_table; /* last table used in last nv_open */ \ 164 Namval_t *prev_table; /* previous table used in nv_open */ \ 172 Namval_t *posix_fun; /* points to last name() function */ \ 266 Namval_t *typeinit; \ 392 extern Shell_t *nv_shell(Namval_t*); 400 extern Namval_t *sh_assignok(Namval_t*,int); 410 extern void sh_envput(Env_t*, Namval_t*); [all …]
|
H A D | shell.h | 182 extern int sh_fun(Namval_t*,Namval_t*, char*[]); 188 extern Namval_t *sh_addbuiltin(const char*, int(*)(int, char*[],Shbltin_t*), void*);
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | nvdisc.c | 31 static void assign(Namval_t*,const char*,int,Namfun_t*); 43 char *nv_getv(Namval_t *np, register Namfun_t *nfp) in nv_getv() 75 Sfdouble_t nv_getn(Namval_t *np, register Namfun_t *nfp) in nv_getn() 122 void nv_putv(Namval_t *np, const char *value, int flags, register Namfun_t *nfp) in nv_putv() 167 #define BLOCKED ((Namval_t*)&nv_local) 172 Namval_t *disc[5]; 178 Namval_t *np; 193 static struct blocked *block_info(Namval_t *np, struct blocked *pp) in block_info() 227 static void chktfree(register Namval_t *np, register struct vardisc *vp) in chktfree() 247 static void assign(Namval_t *np,const char* val,int flags,Namfun_t *handle) in assign() [all …]
|
H A D | nvtree.c | 38 Namval_t *hp; 39 Namval_t *table; 40 Namval_t *otable; 41 Namval_t *(*nextnode)(Namval_t*,Dt_t*,Namfun_t*); 49 char *nv_getvtree(Namval_t*, Namfun_t *); 50 static void put_tree(Namval_t*, const char*, int,Namfun_t*); 51 static char *walk_tree(Namval_t*, Namval_t*, int); 53 static int read_tree(Namval_t* np, Sfio_t *iop, int n, Namfun_t *dp) in read_tree() 70 static Namval_t *create_tree(Namval_t *np,const char *name,int flag,Namfun_t *dp) in create_tree() 86 static Namfun_t *clone_tree(Namval_t *np, Namval_t *mp, int flags, Namfun_t *fp){ in clone_tree() [all …]
|
H A D | nvtype.c | 83 Namval_t *np; 84 Namval_t *parent; 85 Namval_t *bp; 86 Namval_t *cp; 88 Namval_t *nsp; 134 static void put_type(Namval_t*, const char*, int, Namfun_t*); 135 static Namval_t* create_type(Namval_t*, const char*, int, Namfun_t*); 136 static Namfun_t* clone_type(Namval_t*, Namval_t*, int, Namfun_t*); 137 static Namval_t* next_type(Namval_t*, Dt_t*, Namfun_t*); 156 size_t nv_datasize(Namval_t *np, size_t *offset) in nv_datasize() [all …]
|
H A D | array.c | 56 Namval_t *pos; 57 Namval_t *nextpos; 58 Namval_t *cur; 77 static void array_fixed_setdata(Namval_t*,Namarr_t*,struct fixed_array*); 80 static Namarr_t *array_scope(Namval_t *np, Namarr_t *ap, int flags) in array_scope() 121 static int array_unscope(Namval_t *np,Namarr_t *ap) in array_unscope() 139 static int array_covered(Namval_t *np, struct index_array *ap) in array_covered() 154 static void array_setptr(register Namval_t *np, struct index_array *old, struct index_array *new) in array_setptr() 182 static struct index_array *array_grow(Namval_t*, struct index_array*,int); 185 int array_maxindex(Namval_t *np) in array_maxindex() [all …]
|
H A D | init.c | 163 Namval_t *ifsnp; 238 static void rehash(register Namval_t *np,void *data) in rehash() 255 static void put_ed(register Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_ed() 284 static void put_history(register Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_history() 311 static void put_optindex(Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_optindex() 320 static Sfdouble_t nget_optindex(register Namval_t* np, Namfun_t *fp) in nget_optindex() 325 static Namfun_t *clone_optindex(Namval_t* np, Namval_t *mp, int flags, Namfun_t *fp) in clone_optindex() 336 static void put_restricted(register Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_restricted() 369 Namval_t *mp = dtsearch(shp->var_tree,np); in put_restricted() 380 static void put_cdpath(register Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_cdpath() [all …]
|
H A D | arith.c | 42 static Namval_t Infnod = 48 static Namval_t NaNnod = 54 static Namval_t FunNode = 60 static Namval_t *scope(register Namval_t *np,register struct lval *lvalue,int assign) in scope() 64 register Namval_t *mp; in scope() 74 return((Namval_t*)lvalue->ovalue); in scope() 139 Namval_t *nq; in scope() 230 register Namval_t *np = (Namval_t*)(lvalue->value); in arith() 250 register Namval_t *np; in arith() 258 str = nv_endsubscript((Namval_t*)0,str,0); in arith() [all …]
|
H A D | name.c | 43 static Namval_t NullNode; 47 offsetof(struct Namref,np),sizeof(struct Namval_t*),sizeof(struct Namref) 64 static void attstore(Namval_t*,void*); 66 static void pushnam(Namval_t*,void*); 67 static char *staknam(Namval_t*, char*); 75 Namval_t *tp; 86 Namval_t **nodes; 87 Namval_t *rp; 101 Namval_t *np; 102 Namval_t *last_table; [all …]
|
H A D | subshell.c | 58 Namval_t *child; 60 Namval_t *node; 223 int nv_subsaved(register Namval_t *np) in nv_subsaved() 243 Namval_t *sh_assignok(register Namval_t *np,int add) in sh_assignok() 245 register Namval_t *mp; in sh_assignok() 250 Namval_t *mpnext; in sh_assignok() 281 Namval_t fake; in sh_assignok() 295 *((Namval_t**)mp) = lp->child; in sh_assignok() 301 mp = (Namval_t*)&lp->dict; in sh_assignok() 320 register Namval_t *mp, *np; in nv_restore() [all …]
|
H A D | xec.c | 67 static void sh_funct(Shell_t *,Namval_t*, int, char*[], struct argnod*,int); 79 Namval_t *node; 81 Namval_t **nref; 280 Namval_t *np=com->comnamp; in p_comarg() 453 static void put_level(Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_level() 505 Namval_t *np = SH_COMMANDNOD; in sh_debug() 677 static int set_instance(Shell_t *shp,Namval_t *nq, Namval_t *node, struct Namref *nr) in set_instance() 681 Namval_t *np; in set_instance() 682 if(!nv_isattr(nq,NV_MINIMAL|NV_EXPORT|NV_ARRAY) && (np=(Namval_t*)nq->nvenv) && nv_isarray(np)) in set_instance() 719 static void unset_instance(Namval_t *nq, Namval_t *node, struct Namref *nr,long mode) in unset_instance() [all …]
|
H A D | expand.c | 148 static Namval_t *GLOBIGNORENOD; in path_expand() 221 register Namval_t *np; in scantree() 225 np = (Namval_t*)dtfirst(tree); in scantree() 226 for(;np && !nv_isnull(np);(np = (Namval_t*)dtnext(tree,np))) in scantree()
|
H A D | shcomp.c | 74 Namval_t *np; in main() 140 …if((t->tre.tretyp&(COMMSK|COMSCAN))==0 && t->com.comnamp && strcmp(nv_name((Namval_t*)t->com.comna… in main()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | shiocmd_solaris.c | 44 Namval_t *format; 48 static char *get_time(Namval_t* np, Namfun_t* nfp) in get_time() 57 static void put_time(Namval_t* np, const char* val, int flag, Namfun_t* nfp) in put_time() 87 static Namval_t *create_time(Namval_t *np, const char *name, int flags, Namfun_t *nfp) in create_time() 91 return((Namval_t*)0); in create_time() 106 static Namval_t *make_time(Namval_t* np) in make_time() 112 return((Namval_t*)0); in make_time() 124 static char *get_mode(Namval_t* np, Namfun_t* nfp) in get_mode() 130 static void put_mode(Namval_t* np, const char* val, int flag, Namfun_t* nfp) in put_mode() 162 static Namval_t *make_mode(Namval_t* np) in make_mode() [all …]
|
H A D | enum.c | 99 Namval_t *np; in enuminfo() 103 np = *(Namval_t**)(fp+1); in enuminfo() 123 static Namfun_t *clone_enum(Namval_t* np, Namval_t *mp, int flags, Namfun_t *fp) in clone_enum() 131 static void put_enum(Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_enum() 166 static char* get_enum(register Namval_t* np, Namfun_t *fp) in get_enum() 177 static Sfdouble_t get_nenum(register Namval_t* np, Namfun_t *fp) in get_nenum() 191 Namval_t *np, *tp; in enum_create() 198 Namval_t *np; in enum_create() 277 Namval_t *mp,*bp; in lib_init()
|
H A D | mkservice.c | 124 Namval_t* node; 125 Namval_t* disc[elementsof(disctab)-1]; 284 register Namval_t* nq = sp->disc[ACCEPT]; in Accept() 312 register Namval_t* nq; in Action() 346 static char* setdisc(Namval_t* np, const char* event, Namval_t* action, Namfun_t* fp) in setdisc() 352 register Namval_t* nq; in setdisc() 375 static void putval(Namval_t* np, const char* val, int flag, Namfun_t* fp) in putval() 411 register Namval_t* np; in b_mkservice()
|
H A D | alarm.c | 41 Namval_t *node; 42 Namval_t *action; 162 static char *setdisc(Namval_t *np, const char *event, Namval_t* action, Namfun_t in setdisc() 183 static void putval(Namval_t* np, const char* val, int flag, Namfun_t* fp) in putval() 236 register Namval_t *np; in b_alarm()
|
H A D | typeset.c | 48 Namval_t *tp; 65 static int print_namval(Sfio_t*, Namval_t*, int, struct tdata*); 66 static void print_attribute(Namval_t*,void*); 71 static void pushname(Namval_t*,void*); 72 static void(*nullscan)(Namval_t*,void*); 74 static Namval_t *load_class(const char *name) in load_class() 183 Namval_t *np = nv_search((char*)PATHNOD,tdata.sh->var_tree,HASH_BUCKET); in b_alias() 302 if((tdata.wctname = opt_info.arg) && !nv_mapchar((Namval_t*)0,tdata.wctname)) in b_typeset() 461 static void print_value(Sfio_t *iop, Namval_t *np, struct tdata *tp) in print_value() 474 Namval_t *nsp = tp->sh->namespace; in print_value() [all …]
|
H A D | poll_solaris.c | 181 Namval_t *nv_open_fmt(Dt_t *dict, int flags, const char *namefmt, ...) in nv_open_fmt() 242 Namval_t *np; in b_poll() 284 Namval_t *array_np, *array_np_sub; in b_poll()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | shcmd.h | 46 # define Namval_t void macro 67 Namval_t* (*shbltin)(const char*, Shbltin_f, void*); 71 Namval_t* bnode; 72 Namval_t* vnode; 82 # undef Namval_t
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | syslog.c | 44 static const Namval_t attempt[] = 55 const Namval_t log_facility[] = 82 const Namval_t log_severity[] = 254 register Namval_t* p; 266 p = (Namval_t*)&attempt[log.attempt++];
|
H A D | syslog.h | 113 extern const Namval_t log_facility[]; 114 extern const Namval_t log_severity[];
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tminit.c | 56 static const Namval_t options[] = 183 switch (((Namval_t*)p)->value) in tmopt() 193 tm_info.flags |= ((Namval_t*)p)->value; in tmopt() 195 tm_info.flags &= ~((Namval_t*)p)->value; in tmopt()
|