/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | nval.h | 44 typedef struct Namfun Namfun_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 | 27 Namfun_t *nvfun; /* pointer to trap functions */ \ 185 extern Namfun_t *nv_cover(Namval_t*); 202 extern Namfun_t *nv_clone_disc(Namfun_t*, int); 206 extern char *nv_getvtree(Namval_t*, Namfun_t*); 223 extern Namfun_t *nv_mapchar(Namval_t*, const char*);
|
H A D | defs.h | 267 Namfun_t nvfun; \
|
/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() 45 register Namfun_t *fp; in nv_getv() 47 if((fp = nfp) != NIL(Namfun_t*) && !nv_local) in nv_getv() 54 if(!nv_isattr(np,NV_NODISC) || fp==(Namfun_t*)nv_arrayptr(np)) in nv_getv() 75 Sfdouble_t nv_getn(Namval_t *np, register Namfun_t *nfp) in nv_getn() 77 register Namfun_t *fp; in nv_getn() 81 if((fp = nfp) != NIL(Namfun_t*) && !nv_local) in nv_getn() 90 if(!nv_isattr(np,NV_NODISC) || fp==(Namfun_t*)nv_arrayptr(np)) in nv_getn() 122 void nv_putv(Namval_t *np, const char *value, int flags, register Namfun_t *nfp) in nv_putv() [all …]
|
H A D | init.c | 149 Namfun_t hdr; 155 Namfun_t hdr; 162 Namfun_t hdr; 168 Namfun_t hdr; 185 Namfun_t VPATH_init; 188 Namfun_t PATH_init; 189 Namfun_t FPATH_init; 190 Namfun_t CDPATH_init; 191 Namfun_t SHELL_init; 192 Namfun_t ENV_init; [all …]
|
H A D | nvtree.c | 41 Namval_t *(*nextnode)(Namval_t*,Dt_t*,Namfun_t*); 42 Namfun_t *fun; 49 char *nv_getvtree(Namval_t*, Namfun_t *); 50 static void put_tree(Namval_t*, const char*, int,Namfun_t*); 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() 72 register Namfun_t *fp=dp; in create_tree() 86 static Namfun_t *clone_tree(Namval_t *np, Namval_t *mp, int flags, Namfun_t *fp){ in clone_tree() 87 Namfun_t *dp; in clone_tree() 132 static Namfun_t *nextdisc(Namval_t *np) in nextdisc() [all …]
|
H A D | nvtype.c | 74 Namfun_t fun; 81 Namfun_t fun; 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*); 210 static char *name_chtype(Namval_t *np, Namfun_t *fp) in name_chtype() 232 static void put_chtype(Namval_t* np, const char* val, int flag, Namfun_t* fp) in put_chtype() 259 static Namfun_t *clone_chtype(Namval_t* np, Namval_t *mp, int flags, Namfun_t *fp) in clone_chtype() 300 Namfun_t *fp; in fixnode() [all …]
|
H A D | bash.c | 153 static void put_globignore(register Namval_t* np, const char *val, int flags, Namfun_t *fp) in put_globignore() 163 const Namdisc_t SH_GLOBIGNORE_disc = { sizeof(Namfun_t), put_globignore }; 169 Namfun_t hdr; 172 static void put_funcname(register Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_funcname() 384 Namfun_t *fp = calloc(dp->dsize,1); in bash_init() 393 Namfun_t *fp = calloc(dp->dsize,1); in bash_init()
|
H A D | array.c | 123 Namfun_t *fp; in array_unscope() 128 if((fp = nv_disc(np,(Namfun_t*)ap,NV_POP)) && !(fp->nofree&1)) in array_unscope() 156 register Namfun_t **fp = &np->nvfun; in array_setptr() 257 Namfun_t *fp = &arp->hdr; in nv_arrayisset() 393 char *xp = nv_setdisc(np,"get",np,(Namfun_t*)np); in array_find() 447 static Namfun_t *array_clone(Namval_t *np, Namval_t *mp, int flags, Namfun_t *fp) in array_clone() 494 mp->nvfun = (Namfun_t*)ap; in array_clone() 560 static char *array_getval(Namval_t *np, Namfun_t *disc) in array_getval() 587 static Sfdouble_t array_getnum(Namval_t *np, Namfun_t *disc) in array_getnum() 604 static void array_putval(Namval_t *np, const char *string, int flags, Namfun_t *dp) in array_putval() [all …]
|
H A D | name.c | 756 Namval_t *nv_create(const char *name, Dt_t *root, int flags, Namfun_t *dp) in nv_create() 762 Namfun_t *fp=0; in nv_create() 1349 Namfun_t fun; in nv_open() 2530 nv_setdisc(npv,cp,NIL(Namval_t*),(Namfun_t*)npv); in _nv_unset() 2671 Namfun_t hdr; 2680 static void optimize_clear(Namval_t* np, Namfun_t *fp) in optimize_clear() 2684 nv_stack(np,(Namfun_t*)0); in optimize_clear() 2695 static void put_optimize(Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_optimize() 2701 static Namfun_t *clone_optimize(Namval_t* np, Namval_t *mp, int flags, Namfun_t *fp) in clone_optimize() 2703 return((Namfun_t*)0); in clone_optimize() [all …]
|
H A D | arith.c | 457 else if((Namfun_t*)lvalue->ptr && !nv_hasdisc(np,&ENUM_disc) && !nv_isattr(np,NV_INTEGER)) in arith() 460 mp = ((Namfun_t*)lvalue->ptr)->type; in arith()
|
H A D | path.c | 1771 static char *talias_get(Namval_t *np, Namfun_t *nvp) in talias_get() 1783 static void talias_put(register Namval_t* np,const char *val,int flags,Namfun_t *fp) in talias_put() 1795 static Namfun_t talias_init = { &talias_disc, 1 };
|
H A D | xec.c | 444 Namfun_t hdr; 453 static void put_level(Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_level() 461 fp = nv_stack(np, NIL(Namfun_t*)); in put_level() 1434 np->nvfun = (Namfun_t*)bp->ptr; in sh_exec() 2748 cp = nv_setdisc(npv,cp,np,(Namfun_t*)npv); in sh_exec()
|
H A D | io.c | 365 Namfun_t hdr; 369 static Sfdouble_t nget_cur_eof(register Namval_t* np, Namfun_t *fp) in nget_cur_eof()
|
H A D | macro.c | 1436 v = nv_getvtree(np,(Namfun_t*)0); in varsub()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | shiocmd_solaris.c | 43 Namfun_t fun; 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() 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() 165 Namfun_t *nfp = newof(NULL,Namfun_t,1,0); in make_mode() 220 Namfun_t fun; 241 static Namval_t *fieldcreate(Namval_t *np, const char *name, int flags, Namfun_t *nfp) in fieldcreate() 347 static char *get_classval(Namval_t* np, Namfun_t* nfp) in get_classval() [all …]
|
H A D | enum.c | 91 Namfun_t hdr; 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()
|
H A D | alarm.c | 40 Namfun_t fun; 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() 215 tp = (struct tevent*)nv_stack(np, (Namfun_t*)0); in putval() 272 nv_stack(np,(Namfun_t*)tp); in b_alarm()
|
H A D | mkservice.c | 117 Namfun_t fun; 346 static char* setdisc(Namval_t* np, const char* event, Namval_t* action, Namfun_t* fp) in setdisc() 375 static void putval(Namval_t* np, const char* val, int flag, Namfun_t* fp) in putval() 456 nv_stack(np, (Namfun_t*)sp); in b_mkservice()
|
H A D | read.c | 211 Namfun_t *nfp; in sh_readline()
|
H A D | print.c | 592 Namfun_t *fp; in fmtbase64()
|
H A D | typeset.c | 734 Namfun_t *fp; in setall()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/ |
H A D | builtins.mm | 614 Namfun_t fun;
|