Home
last modified time | relevance | path

Searched refs:Namval_t (Results 1 – 25 of 74) sorted by relevance

123

/titanic_50/usr/src/lib/libshell/common/include/
H A Dnval.h43 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 Dname.h83 Namval_t *np;
84 Namval_t *table;
95 Namval_t *nspace; /* pointer to name space */
100 Namval_t *np; /* function node pointer */
167 extern int array_maxindex(Namval_t*);
168 extern char *nv_endsubscript(Namval_t*, char*, int);
169 extern Namfun_t *nv_cover(Namval_t*);
170 extern Namarr_t *nv_arrayptr(Namval_t*);
171 extern int nv_arrayisset(Namval_t*, Namarr_t*);
172 extern int nv_arraysettype(Namval_t*, Namval_t*,const char*,int);
[all …]
H A Ddefs.h127 Namval_t *namespace; /* current active namespace*/ \
128 Namval_t *last_table; /* last table used in last nv_open */ \
129 Namval_t *prev_table; /* previous table used in nv_open */ \
137 Namval_t *bltin_nodes; /* pointer to built-in variables */ \
138 Namval_t *bltin_cmds; /* pointer to built-in commands */ \
139 Namval_t *posix_fun; /* points to last name() function */ \
236 Namval_t *typeinit; \
355 extern Shell_t *nv_shell(Namval_t*);
364 extern Namval_t *sh_assignok(Namval_t*,int);
372 extern void sh_envput(Env_t*, Namval_t*);
[all …]
/titanic_50/usr/src/lib/libshell/i386/include/ast/
H A Dnval.h52 typedef struct Namval Namval_t; typedef
66 void (*putval) __PROTO__((Namval_t*, const char*, int, Namfun_t*));
67 char *(*getval) __PROTO__((Namval_t*, Namfun_t*));
68 Sfdouble_t (*getnum) __PROTO__((Namval_t*, Namfun_t*));
69 char *(*setdisc) __PROTO__((Namval_t*, const char*, Namval_t*, Namfun_t*));
70 Namval_t *(*createf) __PROTO__((Namval_t*, const char*, int, Namfun_t*));
71 Namfun_t *(*clonef) __PROTO__((Namval_t*, Namval_t*, int, Namfun_t*));
72 char *(*namef) __PROTO__((Namval_t*, Namfun_t*));
73 Namval_t *(*nextf) __PROTO__((Namval_t*, Dt_t*, Namfun_t*));
74 Namval_t *(*typef) __PROTO__((Namval_t*, Namfun_t*));
[all …]
/titanic_50/usr/src/lib/libshell/sparc/include/ast/
H A Dnval.h52 typedef struct Namval Namval_t; typedef
66 void (*putval) __PROTO__((Namval_t*, const char*, int, Namfun_t*));
67 char *(*getval) __PROTO__((Namval_t*, Namfun_t*));
68 Sfdouble_t (*getnum) __PROTO__((Namval_t*, Namfun_t*));
69 char *(*setdisc) __PROTO__((Namval_t*, const char*, Namval_t*, Namfun_t*));
70 Namval_t *(*createf) __PROTO__((Namval_t*, const char*, int, Namfun_t*));
71 Namfun_t *(*clonef) __PROTO__((Namval_t*, Namval_t*, int, Namfun_t*));
72 char *(*namef) __PROTO__((Namval_t*, Namfun_t*));
73 Namval_t *(*nextf) __PROTO__((Namval_t*, Dt_t*, Namfun_t*));
74 Namval_t *(*typef) __PROTO__((Namval_t*, Namfun_t*));
[all …]
/titanic_50/usr/src/lib/libshell/sparcv9/include/ast/
H A Dnval.h52 typedef struct Namval Namval_t; typedef
66 void (*putval) __PROTO__((Namval_t*, const char*, int, Namfun_t*));
67 char *(*getval) __PROTO__((Namval_t*, Namfun_t*));
68 Sfdouble_t (*getnum) __PROTO__((Namval_t*, Namfun_t*));
69 char *(*setdisc) __PROTO__((Namval_t*, const char*, Namval_t*, Namfun_t*));
70 Namval_t *(*createf) __PROTO__((Namval_t*, const char*, int, Namfun_t*));
71 Namfun_t *(*clonef) __PROTO__((Namval_t*, Namval_t*, int, Namfun_t*));
72 char *(*namef) __PROTO__((Namval_t*, Namfun_t*));
73 Namval_t *(*nextf) __PROTO__((Namval_t*, Dt_t*, Namfun_t*));
74 Namval_t *(*typef) __PROTO__((Namval_t*, Namfun_t*));
[all …]
/titanic_50/usr/src/lib/libshell/amd64/include/ast/
H A Dnval.h52 typedef struct Namval Namval_t; typedef
66 void (*putval) __PROTO__((Namval_t*, const char*, int, Namfun_t*));
67 char *(*getval) __PROTO__((Namval_t*, Namfun_t*));
68 Sfdouble_t (*getnum) __PROTO__((Namval_t*, Namfun_t*));
69 char *(*setdisc) __PROTO__((Namval_t*, const char*, Namval_t*, Namfun_t*));
70 Namval_t *(*createf) __PROTO__((Namval_t*, const char*, int, Namfun_t*));
71 Namfun_t *(*clonef) __PROTO__((Namval_t*, Namval_t*, int, Namfun_t*));
72 char *(*namef) __PROTO__((Namval_t*, Namfun_t*));
73 Namval_t *(*nextf) __PROTO__((Namval_t*, Dt_t*, Namfun_t*));
74 Namval_t *(*typef) __PROTO__((Namval_t*, Namfun_t*));
[all …]
/titanic_50/usr/src/lib/libshell/common/sh/
H A Dnvdisc.c41 char *nv_getv(Namval_t *np, register Namfun_t *nfp) in nv_getv()
73 Sfdouble_t nv_getn(Namval_t *np, register Namfun_t *nfp) in nv_getn()
116 void nv_putv(Namval_t *np, const char *value, int flags, register Namfun_t *nfp) in nv_putv()
158 #define BLOCKED ((Namval_t*)&nv_local)
163 Namval_t *disc[5];
169 Namval_t *np;
184 static struct blocked *block_info(Namval_t *np, struct blocked *pp) in block_info()
218 static void chktfree(register Namval_t *np, register struct vardisc *vp) in chktfree()
238 static void assign(Namval_t *np,const char* val,int flags,Namfun_t *handle) in assign()
242 register Namval_t *nq = vp->disc[type]; in assign()
[all …]
H A Darray.c56 Namval_t *pos;
57 Namval_t *nextpos;
58 Namval_t *cur;
61 static Namarr_t *array_scope(Namval_t *np, Namarr_t *ap, int flags) in array_scope()
86 static int array_unscope(Namval_t *np,Namarr_t *ap) in array_unscope()
104 static int array_covered(Namval_t *np, struct index_array *ap) in array_covered()
115 static void array_setptr(register Namval_t *np, struct index_array *old, struct index_array *new) in array_setptr()
143 static struct index_array *array_grow(Namval_t*, struct index_array*,int);
146 int array_maxindex(Namval_t *np) in array_maxindex()
156 static union Value *array_getup(Namval_t *np, Namarr_t *arp, int update) in array_getup()
[all …]
H A Dnvtree.c38 Namval_t *hp;
39 Namval_t *table;
40 Namval_t *otable;
41 Namval_t *(*nextnode)(Namval_t*,Dt_t*,Namfun_t*);
48 char *nv_getvtree(Namval_t*, Namfun_t *);
49 static void put_tree(Namval_t*, const char*, int,Namfun_t*);
50 static char *walk_tree(Namval_t*, Namval_t*, int);
52 static int read_tree(Namval_t* np, Sfio_t *iop, int n, Namfun_t *dp) in read_tree()
69 static Namval_t *create_tree(Namval_t *np,const char *name,int flag,Namfun_t *dp) in create_tree()
85 static Namfun_t *clone_tree(Namval_t *np, Namval_t *mp, int flags, Namfun_t *fp){ in clone_tree()
[all …]
H A Dnvtype.c82 Namval_t *np;
83 Namval_t *parent;
84 Namval_t *bp;
85 Namval_t *cp;
128 static void put_type(Namval_t*, const char*, int, Namfun_t*);
129 static Namval_t* create_type(Namval_t*, const char*, int, Namfun_t*);
130 static Namfun_t* clone_type(Namval_t*, Namval_t*, int, Namfun_t*);
131 static Namval_t* next_type(Namval_t*, Dt_t*, Namfun_t*);
150 static size_t datasize(Namval_t *np, size_t *offset) in datasize()
207 static char *name_chtype(Namval_t *np, Namfun_t *fp) in name_chtype()
[all …]
H A Darith.c38 static Namval_t Infnod =
45 static Namval_t NaNnod =
52 static Namval_t FunNode =
59 static Namval_t *scope(Shell_t *shp,register Namval_t *np,register struct lval *lvalue,int assign) in scope()
63 register Namval_t *mp; in scope()
123 register Namval_t *np = (Namval_t*)(lvalue->value); in arith()
140 register Namval_t *np; in arith()
148 str = nv_endsubscript((Namval_t*)0,str,0); in arith()
156 str = nv_endsubscript((Namval_t*)0,cp=str,NV_SUBQUOTE)-1; in arith()
309 register Namval_t *np = (Namval_t*)(lvalue->value); in arith()
H A Dname.c54 static void attstore(Namval_t*,void*);
56 static void pushnam(Namval_t*,void*);
57 static char *staknam(Namval_t*, char*);
67 Namval_t *tp;
77 Namval_t **nodes;
78 Namval_t *rp;
92 Namval_t *np;
93 Namval_t *last_table;
106 static void(*nullscan)(Namval_t*,void*);
138 void sh_envput(Env_t* ep,Namval_t *np) in sh_envput()
[all …]
H A Dinit.c122 Namval_t *ifsnp;
187 static void rehash(register Namval_t *np,void *data) in rehash()
204 static void put_ed(register Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_ed()
233 static void put_history(register Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_history()
257 static void put_optindex(Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_optindex()
266 static Sfdouble_t nget_optindex(register Namval_t* np, Namfun_t *fp) in nget_optindex()
271 static Namfun_t *clone_optindex(Namval_t* np, Namval_t *mp, int flags, Namfun_t *fp) in clone_optindex()
282 static void put_restricted(register Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_restricted()
315 Namval_t *mp = dtsearch(shp->var_tree,np); in put_restricted()
326 static void put_cdpath(register Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_cdpath()
[all …]
H A Dsubshell.c50 Namval_t *child;
52 Namval_t *node;
226 int nv_subsaved(register Namval_t *np) in nv_subsaved()
246 Namval_t *sh_assignok(register Namval_t *np,int add) in sh_assignok()
248 register Namval_t *mp; in sh_assignok()
254 Namval_t *mpnext; in sh_assignok()
288 Namval_t fake; in sh_assignok()
302 *((Namval_t**)mp) = lp->child; in sh_assignok()
308 mp = (Namval_t*)&lp->dict; in sh_assignok()
325 register Namval_t *mp, *np; in nv_restore()
[all …]
/titanic_50/usr/src/lib/libshell/common/bltins/
H A Dshiocmd_solaris.c44 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 Denum.c99 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()
165 static char* get_enum(register Namval_t* np, Namfun_t *fp) in get_enum()
176 static Sfdouble_t get_nenum(register Namval_t* np, Namfun_t *fp) in get_nenum()
190 Namval_t *np, *tp; in enum_create()
197 Namval_t *np; in enum_create()
276 Namval_t *mp,*bp; in lib_init()
H A Dmkservice.c124 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 Dalarm.c41 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()
/titanic_50/usr/src/lib/libast/common/include/
H A Dshcmd.h35 # define Namval_t void macro
52 Namval_t *(*shbltin)(const char*, Shbltin_f, void*);
56 Namval_t *bnode;
57 Namval_t *vnode;
67 # undef Namval_t
/titanic_50/usr/src/lib/libast/amd64/include/ast/
H A Dshcmd.h44 # define Namval_t void macro
61 Namval_t *(*shbltin) __PROTO__((const char*, Shbltin_f, __V_*));
65 Namval_t *bnode;
66 Namval_t *vnode;
76 # undef Namval_t
/titanic_50/usr/src/lib/libast/sparcv9/include/ast/
H A Dshcmd.h44 # define Namval_t void macro
61 Namval_t *(*shbltin) __PROTO__((const char*, Shbltin_f, __V_*));
65 Namval_t *bnode;
66 Namval_t *vnode;
76 # undef Namval_t
/titanic_50/usr/src/lib/libast/sparc/include/ast/
H A Dshcmd.h44 # define Namval_t void macro
61 Namval_t *(*shbltin) __PROTO__((const char*, Shbltin_f, __V_*));
65 Namval_t *bnode;
66 Namval_t *vnode;
76 # undef Namval_t
/titanic_50/usr/src/lib/libast/i386/include/ast/
H A Dshcmd.h44 # define Namval_t void macro
61 Namval_t *(*shbltin) __PROTO__((const char*, Shbltin_f, __V_*));
65 Namval_t *bnode;
66 Namval_t *vnode;
76 # undef Namval_t
/titanic_50/usr/src/lib/libast/common/comp/
H A Dsyslog.c44 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++];

123