/illumos-gate/usr/src/contrib/ast/src/lib/libast/cdt/ |
H A D | dtopen.c | 31 static int _dttype2005(Dt_t* dt, int type) in _dttype2005() 39 Dt_t* _dtopen(Dtdisc_t* disc, Dtmethod_t* meth, unsigned long version) in _dtopen() 41 Dt_t* _dtopen(disc, meth, version) in _dtopen() 48 Dt_t *dt, pdt; 52 return NIL(Dt_t*); 54 dt = NIL(Dt_t*); 58 memset(&pdt, 0, sizeof(Dt_t)); 65 return NIL(Dt_t*); /* something bad happened */ 70 return NIL(Dt_t*); 83 return NIL(Dt_t*); [all …]
|
H A D | dtview.c | 35 static Void_t* dtvsearch(Dt_t* dt, reg Void_t* obj, reg int type) in dtvsearch() 38 Dt_t* dt; in dtvsearch() 44 Dt_t *d, *p; 67 n = nky = NIL(Void_t*); p = NIL(Dt_t*); 124 Dt_t* dtview(reg Dt_t* dt, reg Dt_t* view) in dtview() 126 Dt_t* dtview(dt,view) in dtview() 127 reg Dt_t* dt; in dtview() 128 reg Dt_t* view; 131 reg Dt_t* d; 134 return NIL(Dt_t*); [all …]
|
H A D | dtcomp.c | 33 extern Dtlink_t* dtflatten(Dt_t* d) in dtflatten() 39 extern Dtlink_t* dtextract(Dt_t* d) in dtextract() 45 extern Dtlink_t* dtrestore(Dt_t* d, Void_t* l) in dtrestore() 51 extern ssize_t dtsize(Dt_t* d) in dtsize() 57 extern ssize_t dtstat(Dt_t* d) in dtstat()
|
H A D | dtclose.c | 29 int dtclose(Dt_t* dt) in dtclose() 32 Dt_t* dt; in dtclose() 36 Dt_t pdt; 49 dtview(dt,NIL(Dt_t*)); 52 memcpy(&pdt, dt, sizeof(Dt_t));
|
H A D | dtnew.c | 38 eventf(Dt_t* dt, int op, void* data, Dtdisc_t* disc) in eventf() 49 memoryf(Dt_t* dt, void* addr, size_t size, Dtdisc_t* disc) in memoryf() 58 Dt_t* 61 Dt_t* dt; in _dtnew() 77 Dt_t*
|
H A D | dtwalk.c | 31 int dtwalk(Dt_t* dt, int (*userf)(Dt_t*, Void_t*, Void_t*), Void_t* data) in dtwalk() argument 34 Dt_t* dt; in dtwalk() 40 Dt_t *walk;
|
H A D | dtlist.c | 36 int dtlistprint(Dt_t* dt, Dtlink_t* here, char* (*objprintf)(Void_t*) ) in dtlistprint() 62 Void_t* lfirstlast(Dt_t* dt, int type) in lfirstlast() 65 Dt_t* dt; in lfirstlast() 84 Void_t* lclear(Dt_t* dt) in lclear() 87 Dt_t* dt; in lclear() 110 Void_t* llist(Dt_t* dt, Dtlink_t* lnk, int type) in llist() 113 Dt_t* dt; in llist() 145 static Void_t* liststat(Dt_t* dt, Dtstat_t* st) in liststat() 148 Dt_t* dt; in liststat() 163 static Void_t* dtlist(Dt_t* dt, Void_t* obj, int type) in dtlist() [all …]
|
H A D | dtdisc.c | 32 static Void_t* dtmemory(Dt_t* dt, Void_t* addr, size_t size, Dtdisc_t* disc) in dtmemory() 35 Dt_t* dt; /* dictionary */ in dtmemory() 52 Dtdisc_t* dtdisc(Dt_t* dt, Dtdisc_t* disc, int type) in dtdisc() 55 Dt_t* dt; in dtdisc()
|
H A D | dttree.c | 38 int dttreeprint(Dt_t* dt, Dtlink_t* here, int lev, char* (*objprintf)(Void_t*) ) in dttreeprint() 87 Void_t* tfirstlast(Dt_t* dt, int type) in tfirstlast() 90 Dt_t* dt; in tfirstlast() 116 static Void_t* tclear(Dt_t* dt) in tclear() 119 Dt_t* dt; in tclear() 143 static Void_t* tlist(Dt_t* dt, Dtlink_t* list, int type) in tlist() 146 Dt_t* dt; in tlist() 226 static Void_t* tstat(Dt_t* dt, Dtstat_t* st) in tstat() 229 Dt_t* dt; in tstat() 272 static void toptimize(Dt_t* dt) in toptimize() [all …]
|
H A D | dthash.c | 45 static int htable(Dt_t* dt) in htable() 95 static Void_t* hclear(Dt_t* dt) in hclear() 114 static Void_t* hfirst(Dt_t* dt) in hfirst() 129 static Void_t* hnext(Dt_t* dt, Dtlink_t* l) in hnext() 151 static Void_t* hflatten(Dt_t* dt, int type) in hflatten() 200 static Void_t* hlist(Dt_t* dt, Dtlink_t* list, int type) in hlist() 222 static Void_t* hstat(Dt_t* dt, Dtstat_t* st) in hstat() 250 static Void_t* dthashchain(Dt_t* dt, Void_t* obj, int type) in dthashchain() 253 Dt_t* dt; in dthashchain() 386 static int hashevent(Dt_t* dt, int event, Void_t* arg) in hashevent()
|
H A D | dtmethod.c | 30 Dtmethod_t* dtmethod(Dt_t* dt, Dtmethod_t* meth) in dtmethod() 33 Dt_t* dt; in dtmethod() 82 int dtcustomize(Dt_t* dt, int type, int action) in dtcustomize()
|
H A D | cdtlib.h | 64 Dt_t dict; /* when DT_INDATA is requested */ 170 extern Dtlink_t* _dtmake _ARG_((Dt_t*, Void_t*, int)); 171 extern void _dtfree _ARG_((Dt_t*, Dtlink_t*, int)); 172 extern int _dtlock _ARG_((Dt_t*, int));
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | cdt.h | 66 typedef struct _dt_s Dt_t; typedef 68 typedef Void_t* (*Dtsearch_f)_ARG_((Dt_t*,Void_t*,int)); 69 typedef Void_t* (*Dtmake_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 70 typedef void (*Dtfree_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 71 typedef int (*Dtcompar_f)_ARG_((Dt_t*,Void_t*,Void_t*,Dtdisc_t*)); 72 typedef unsigned int (*Dthash_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 73 typedef Void_t* (*Dtmemory_f)_ARG_((Dt_t*,Void_t*,size_t,Dtdisc_t*)); 74 typedef int (*Dtevent_f)_ARG_((Dt_t*,int,Void_t*,Dtdisc_t*)); 75 typedef int (*Dttype_f)_ARG_((Dt_t*,int)); 112 int (*eventf)_ARG_((Dt_t*, int, Void_t*)); [all …]
|
H A D | dt.h | 34 extern Dt_t* dtnew(Vmalloc_t*, Dtdisc_t*, Dtmethod_t*); 35 extern Dt_t* _dtnew(Vmalloc_t*, Dtdisc_t*, Dtmethod_t*, unsigned long);
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | tsearch.c | 55 extern Void_t* dtfinger(Dt_t*); 77 static int treecompare(Dt_t* dt, char* one, char* two, Dtdisc_t* disc) in treecompare() 80 Dt_t* dt; in treecompare() 112 reg Dt_t* dt; 116 (!(dt = *((Dt_t**)rootp)) && !(dt = dtopen((Dtdisc_t*)(&Treedisc),Dtoset))) ) 148 reg Dt_t* dt; 151 if(!rootp || !(dt = *((Dt_t**)rootp)) ) 174 reg Dt_t* dt; 178 if(!rootp || !(dt = *((Dt_t**)rootp)) ) 236 if(root && (o = (Tree_t*)dtfinger((Dt_t*)root)) )
|
H A D | hsearch.c | 69 static void hashfree(Dt_t* dt, Void_t* obj, Dtdisc_t* disc) in hashfree() 72 Dt_t* dt; in hashfree() 81 static Dt_t* Hashtab; /* object dictionary */ 112 Hashtab = NIL(Dt_t*); in hdestroy()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | defs.h | 76 Dt_t *save_tree; /* var_tree for calling function */ 78 Dt_t *var_local; /* local level variables for name() */ 159 Dt_t *track_tree; /* for tracked aliases*/ \ 160 Dt_t *var_base; /* global level variables */ \ 161 Dt_t *openmatch; \ 254 Dt_t *first_root; \ 255 Dt_t *prefix_root; \ 256 Dt_t *last_root; \ 257 Dt_t *prev_root; \ 258 Dt_t *fpathdict; \ [all …]
|
H A D | nval.h | 37 #define Hashtab_t Dt_t 64 Namval_t *(*nextf)(Namval_t*, Dt_t*, Namfun_t*); 96 Dt_t *table; /* for subscripts */ 266 extern Namval_t *nv_create(const char*, Dt_t*, int,Namfun_t*); 267 extern void nv_delete(Namval_t*, Dt_t*, int); 268 extern Dt_t *nv_dict(Namval_t*); 280 extern Namval_t *nv_open(const char*,Dt_t*,int); 284 extern int nv_scan(Dt_t*,void(*)(Namval_t*,void*),void*,int,int); 286 extern void nv_setref(Namval_t*, Dt_t*,int); 294 extern Namval_t *nv_search(const char *, Dt_t*, int);
|
H A D | shell.h | 127 Dt_t *var_tree; 138 Dt_t *var_tree; /* for shell variables */ 139 Dt_t *fun_tree; /* for shell functions */ 140 Dt_t *alias_tree; /* for alias names */ 141 Dt_t *bltin_tree; /* for builtin commands */ 174 extern Dt_t *sh_bltin_tree(void);
|
H A D | name.h | 90 Dt_t *root; 110 Dt_t *sdict; /* dictionary for statics */ 111 Dt_t *fdict; /* dictionary node belongs to */ 208 extern Namval_t *nv_bfsearch(const char*, Dt_t*, Namval_t**, char**); 214 extern Namval_t *nv_mount(Namval_t*, const char *name, Dt_t*); 216 extern int nv_compare(Dt_t*, Void_t*, Void_t*, Dtdisc_t*);
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | name.c | 44 static Dt_t *Refdict; 98 Dt_t *root; 99 Dt_t *last_root; 223 Dt_t *root = nv_dict(shp->last_table); in nv_addnode() 242 Dt_t *root = nv_dict(shp->last_table); in nv_addnode() 445 Dt_t *last_root = shp->last_root; in nv_setlist() 756 Namval_t *nv_create(const char *name, Dt_t *root, int flags, Namfun_t *dp) in nv_create() 827 Dt_t *dp = dtview(shp->var_tree,(Dt_t*)0); in nv_create() 851 nv_delete(np,(Dt_t*)0,NV_NOFREE); in nv_create() 1267 void nv_delete(Namval_t* np, Dt_t *root, int flags) in nv_delete() [all …]
|
H A D | subshell.c | 59 Dt_t *dict; 71 Dt_t *var; /* variable table at time of subshell */ 73 Dt_t *sfun; /* function scope for subshell */ 74 Dt_t *salias;/* alias scope for subshell */ 249 Dt_t *dp; in sh_assignok() 282 Dt_t *walk, *root=shp->var_tree; in sh_assignok() 388 Dt_t *sh_subaliastree(int create) in sh_subaliastree() 406 Dt_t *sh_subfuntree(int create) in sh_subfuntree() 420 static void table_unset(register Dt_t *root,int fun) in table_unset()
|
H A D | nvtree.c | 37 Dt_t *root; 41 Namval_t *(*nextnode)(Namval_t*,Dt_t*,Namfun_t*); 241 dp->root = (Dt_t*)np; in nv_diropen() 248 dp->hp = (*dp->nextnode)(np,(Dt_t*)0,nfp); in nv_diropen() 311 dp->hp = (*dp->nextnode)(np,(Dt_t*)0,dp->fun); in nv_dirnext() 320 Dt_t *root; in nv_dirnext() 325 root = (Dt_t*)np; in nv_dirnext() 354 dp->hp = (*dp->nextnode)(np,(Dt_t*)0,nfp); in nv_dirnext() 572 Dt_t *root; 980 Dt_t *save_tree = sh.var_tree; in walk_tree() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | findlib.h | 78 Dt_t* namedict; 79 Dt_t* indexdict;
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | typeset.c | 58 Dt_t *scanroot; 67 static void print_all(Sfio_t*, Dt_t*, struct tdata*); 68 static void print_scan(Sfio_t*, int, Dt_t*, int, struct tdata*); 69 static int unall(int, char**, Dt_t*, Shell_t*); 70 static int setall(char**, int, Dt_t*, struct tdata*); 139 register Dt_t *troot; in b_alias() 214 Dt_t *troot; in b_typeset() 473 Dt_t *root = tp->sh->last_root; in print_value() 528 static int setall(char **argv,register int flag,Dt_t *troot,struct tdata *tp) in setall() 816 Dt_t *hp=0; in setall() [all …]
|