Home
last modified time | relevance | path

Searched refs:Namfun_t (Results 1 – 23 of 23) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dnval.h44 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 Dname.h27 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 Ddefs.h267 Namfun_t nvfun; \
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dnvdisc.c31 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 Dinit.c149 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 Dnvtree.c41 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 Dnvtype.c74 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 Dbash.c153 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 Darray.c123 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 Dname.c756 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 Darith.c457 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 Dpath.c1771 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 Dxec.c444 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 Dio.c365 Namfun_t hdr;
369 static Sfdouble_t nget_cur_eof(register Namval_t* np, Namfun_t *fp) in nget_cur_eof()
H A Dmacro.c1436 v = nv_getvtree(np,(Namfun_t*)0); in varsub()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dshiocmd_solaris.c43 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 Denum.c91 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 Dalarm.c40 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 Dmkservice.c117 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 Dread.c211 Namfun_t *nfp; in sh_readline()
H A Dprint.c592 Namfun_t *fp; in fmtbase64()
H A Dtypeset.c734 Namfun_t *fp; in setall()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/
H A Dbuiltins.mm614 Namfun_t fun;