/osnet-11/usr/src/lib/libast/common/cdt/ |
H A D | dtclose.c | 29 int dtclose(reg Dt_t* dt) argument 31 int dtclose(dt) 32 reg Dt_t* dt; 38 if(!dt || dt->nview > 0 ) /* can't close if being viewed */ 42 disc = dt->disc; 44 (ev = (*disc->eventf)(dt,DT_CLOSE,NIL(Void_t*),disc)) < 0) 47 if(dt->view) /* turn off viewing */ 48 dtview(dt,NIL(Dt_t*)); 51 { (void)(*(dt [all...] |
H A D | dtextract.c | 30 Dtlink_t* dtextract(reg Dt_t* dt) argument 32 Dtlink_t* dtextract(dt) 33 reg Dt_t* dt; 38 if(dt->data->type&(DT_OSET|DT_OBAG) ) 39 list = dt->data->here; 40 else if(dt->data->type&(DT_SET|DT_BAG)) 41 { list = dtflatten(dt); 42 for(ends = (s = dt->data->htab) + dt->data->ntab; s < ends; ++s) 45 else /*if(dt [all...] |
H A D | dtrestore.c | 32 int dtrestore(reg Dt_t* dt, reg Dtlink_t* list) argument 34 int dtrestore(dt, list) 35 reg Dt_t* dt; 41 reg Dtsearch_f searchf = dt->meth->searchf; 43 type = dt->data->type&DT_FLATTEN; 47 list = dt->data->here; 50 { if(dt->data->size != 0) 54 dt->data->type &= ~DT_FLATTEN; 56 if(dt->data->type&(DT_SET|DT_BAG)) 57 { dt [all...] |
H A D | dtsize.c | 39 int dtsize(Dt_t* dt) argument 41 int dtsize(dt) 42 Dt_t* dt; 48 UNFLATTEN(dt); 50 if(dt->data->size < 0) /* !(dt->data->type&(DT_SET|DT_BAG)) */ 51 { if(dt->data->type&(DT_OSET|DT_OBAG)) 52 dt->data->size = treecount(dt->data->here); 53 else if(dt [all...] |
H A D | dtopen.c | 38 Dt_t* dt = (Dt_t*)Version; /* shut-up unuse warning */ local 46 if(!(dt = (Dt_t*) malloc(sizeof(Dt_t)))) 50 dt->searchf = NIL(Dtsearch_f); 51 dt->meth = NIL(Dtmethod_t*); 52 dt->disc = NIL(Dtdisc_t*); 53 dtdisc(dt,disc,0); 54 dt->type = DT_MALLOC; 55 dt->nview = 0; 56 dt->view = dt [all...] |
H A D | dtmethod.c | 30 Dtmethod_t* dtmethod(Dt_t* dt, Dtmethod_t* meth) argument 32 Dtmethod_t* dtmethod(dt, meth) 33 Dt_t* dt; 38 reg Dtdisc_t* disc = dt->disc; 39 reg Dtmethod_t* oldmeth = dt->meth; 45 (*disc->eventf)(dt,DT_METH,(Void_t*)meth,disc) < 0) 48 dt->data->minp = 0; 51 list = dtflatten(dt); 53 if(dt->data->type&(DT_LIST|DT_STACK|DT_QUEUE) ) 54 dt [all...] |
H A D | dtdisc.c | 25 ** dt : dictionary 32 static Void_t* dtmemory(Dt_t* dt,Void_t* addr,size_t size,Dtdisc_t* disc) argument 34 static Void_t* dtmemory(dt, addr, size, disc) 35 Dt_t* dt; /* dictionary */ 52 Dtdisc_t* dtdisc(Dt_t* dt, Dtdisc_t* disc, int type) argument 54 Dtdisc_t* dtdisc(dt,disc,type) 55 Dt_t* dt; 65 if(!(old = dt->disc) ) /* initialization call from dtopen() */ 66 { dt->disc = disc; 67 if(!(dt [all...] |
H A D | dtwalk.c | 31 int dtwalk(reg Dt_t* dt, int (*userf)(Dt_t*, Void_t*, Void_t*), Void_t* data) argument 33 int dtwalk(dt,userf,data) 34 reg Dt_t* dt; 43 for(obj = dtfirst(dt); obj; ) 44 { if(!(walk = dt->walk) ) 45 walk = dt; 46 next = dtnext(dt,obj);
|
H A D | dthash.c | 25 ** dt: dictionary 34 static void dthtab(Dt_t* dt) argument 36 static void dthtab(dt) 37 Dt_t* dt; 43 if(dt->data->minp > 0 && dt->data->ntab > 0) /* fixed table size */ 45 dt->data->minp = 0; 47 n = dt->data->ntab; 48 if(dt->disc && dt 100 dthash(Dt_t* dt, reg Void_t* obj, int type) argument [all...] |
H A D | dtrenew.c | 31 Void_t* dtrenew(Dt_t* dt, reg Void_t* obj) argument 33 Void_t* dtrenew(dt, obj) 34 Dt_t* dt; 40 reg Dtdisc_t* disc = dt->disc; 42 UNFLATTEN(dt); 44 if(!(e = dt->data->here) || _DTOBJ(e,disc->link) != obj) 47 if(dt->data->type&(DT_STACK|DT_QUEUE|DT_LIST)) 49 else if(dt->data->type&(DT_OSET|DT_OBAG) ) 51 dt->data->here = e->left; 53 { dt [all...] |
H A D | dtflatten.c | 31 Dtlink_t* dtflatten(Dt_t* dt) argument 33 Dtlink_t* dtflatten(dt) 34 Dt_t* dt; 40 if(dt->data->type&DT_FLATTEN ) 41 return dt->data->here; 44 if(dt->data->type&(DT_SET|DT_BAG)) 45 { for(ends = (s = dt->data->htab) + dt->data->ntab; s < ends; ++s) 56 else if(dt->data->type&(DT_LIST|DT_STACK|DT_QUEUE) ) 57 list = dt [all...] |
H A D | dtview.c | 31 static Void_t* dtvsearch(Dt_t* dt, reg Void_t* obj, reg int type) argument 33 static Void_t* dtvsearch(dt,obj,type) 34 Dt_t* dt; 46 return (*(dt->meth->searchf))(dt,obj,type); 49 ((type&(DT_FIRST|DT_LAST)) && !(dt->meth->type&(DT_OBAG|DT_OSET)) ) ) 50 { for(d = dt; d; d = d->view) 53 dt->walk = d; 57 if(dt->meth->type & (DT_OBAG|DT_OSET) ) 62 for(d = dt; 118 dtview(reg Dt_t* dt, reg Dt_t* view) argument [all...] |
H A D | dtlist.c | 30 static Void_t* dtlist(reg Dt_t* dt, reg Void_t* obj, reg int type) argument 32 static Void_t* dtlist(dt, obj, type) 33 reg Dt_t* dt; 44 UNFLATTEN(dt); 45 disc = dt->disc; _DTDSC(disc,ky,sz,lk,cmpf); 46 dt->type &= ~DT_FOUND; 50 { if((r = dt->data->head) ) 53 dt->data->here = r; 58 { if((dt->data->type&DT_LIST) || !(r = dt [all...] |
H A D | dttreeset.c | 53 int dttreeset(Dt_t* dt, int minp, int balance) argument 55 int dttreeset(dt, minp, balance) 56 Dt_t* dt; 63 if(dt->meth->type != DT_OSET) 66 size = dtsize(dt); 76 if((dt->data->minp = minp + (minp%2)) > DT_MINP) 77 dt->data->minp = DT_MINP; 80 dt->data->here = treebalance(dtflatten(dt), size);
|
H A D | dtnew.c | 28 #include <dt.h> 38 eventf(Dt_t* dt, int op, void* data, Dtdisc_t* disc) argument 43 if (dc->odisc->eventf && (r = (*dc->odisc->eventf)(dt, op, data, dc->odisc))) 49 memoryf(Dt_t* dt, void* addr, size_t size, Dtdisc_t* disc) argument 61 Dt_t* dt; local 70 if (dt = dtopen(&dc.ndisc, meth)) 71 dtdisc(dt, disc, DT_SAMECMP|DT_SAMEHASH); 72 return dt;
|
H A D | dttree.c | 25 ** dt: dictionary being searched 33 static Void_t* dttree(Dt_t* dt, Void_t* obj, int type) argument 35 static Void_t* dttree(dt,obj,type) 36 Dt_t* dt; 49 UNFLATTEN(dt); 50 disc = dt->disc; _DTDSC(disc,ky,sz,lk,cmpf); 51 dt->type &= ~DT_FOUND; 53 root = dt->data->here; 65 (*disc->freef)(dt,_DTOBJ(root,lk),disc); 67 (*dt [all...] |
H A D | dtstat.c | 76 int dtstat(reg Dt_t* dt, Dtstat_t* ds, int all) argument 78 int dtstat(dt, ds, all) 79 reg Dt_t* dt; 87 UNFLATTEN(dt); 91 ds->dt_size = dtsize(dt); 92 ds->dt_meth = dt->data->type&DT_METHODS; 97 if(dt->data->type&(DT_SET|DT_BAG)) 98 { dthstat(dt->data,ds,NIL(int*)); 108 dthstat(dt->data,ds,Count); 110 else if(dt [all...] |
H A D | dthdr.h | 64 #define UNFLATTEN(dt) \ 65 ((dt->data->type&DT_FLATTEN) ? dtrestore(dt,NIL(Dtlink_t*)) : 0)
|
/osnet-11/usr/src/grub/grub2/grub-core/lib/arc/ |
H A D | datetime.c | 29 struct grub_arc_timeinfo *dt; local 32 dt = GRUB_ARC_FIRMWARE_VECTOR->gettime (); 34 datetime->year = dt->y; 35 datetime->month = dt->m; 36 datetime->day = dt->d; 37 datetime->hour = dt->h; 38 datetime->minute = dt->min; 39 datetime->second = dt->s;
|
/osnet-11/usr/src/grub/grub2/grub-core/commands/ |
H A D | lsacpi.c | 73 struct grub_acpi_madt_entry_interrupt_override *dt = (void *) d; local 75 dt->bus, dt->source, dt->global_sys_interrupt, 76 dt->flags); 81 struct grub_acpi_madt_entry_sapic *dt = (void *) d; local 84 dt->id, dt->global_sys_interrupt_base, 85 dt->addr); 90 struct grub_acpi_madt_entry_lsapic *dt local 104 struct grub_acpi_madt_entry_platform_int_source *dt = (void *) d; local [all...] |
/osnet-11/usr/src/lib/libast/common/comp/ |
H A D | tsearch.c | 75 static int treecompare(Dt_t* dt, char* one, char* two, Dtdisc_t* disc) argument 77 static int treecompare(dt, one, two, disc) 78 Dt_t* dt; 110 reg Dt_t* dt; local 114 (!(dt = *((Dt_t**)rootp)) && !(dt = dtopen((Dtdisc_t*)(&Treedisc),Dtorder))) ) 120 if(!(o = (Tree_t*)dtmatch(dt,key)) ) 124 dtinsert(dt,o); 128 *rootp = (Void_t*)dt; 130 dtclose(dt); 146 reg Dt_t* dt; local 172 reg Dt_t* dt; local [all...] |
/osnet-11/usr/src/lib/libshell/common/sh/ |
H A D | env.c | 41 Dt_t *dt; member in struct:_env_ 61 static int compare(Dt_t *dt, Void_t* key1, Void_t* key2, Dtdisc_t* disc) argument 103 for(vp=(Evar_t*)dtfirst(ep->dt);vp; vp=(Evar_t*)dtnext(ep->dt,vp)) 122 Evar_t *vp = (Evar_t*)dtmatch(ep->dt,(void*)str); 149 if(!(vp=dtinsert(ep->dt,vp))) 168 Evar_t *vp = (Evar_t*)dtmatch(ep->dt,(void*)str); 174 dtdelete(ep->dt,vp); 197 if(!(ep->dt = dtopen(&env_disc,Dtoset))) 235 for(vp=(Evar_t*)dtfirst(ep->dt);v [all...] |
/osnet-11/usr/src/lib/libast/amd64/include/ast/ |
H A D | cdt.h | 86 /* for hash dt, > 0: fixed table size */ 217 extern Dtdisc_t* dtdisc _ARG_((Dt_t* dt, Dtdisc_t*, int)); 243 #define _DT(dt) ((Dt_t*)(dt)) 250 #define _DTCMP(dt,k1,k2,dc,cmpf,sz) \ 251 ((cmpf) ? (*cmpf)(dt,k1,k2,dc) : \ 253 #define _DTHSH(dt,ky,dc,sz) ((dc)->hashf ? (*(dc)->hashf)(dt,ky,dc) : dtstrhash(0,ky,sz) ) 256 #define _DTMTCH(dt,key,action) \ 259 _dc = (dt) [all...] |
/osnet-11/usr/src/lib/libast/common/include/ |
H A D | cdt.h | 86 /* for hash dt, > 0: fixed table size */ 217 extern Dtdisc_t* dtdisc _ARG_((Dt_t* dt, Dtdisc_t*, int)); 243 #define _DT(dt) ((Dt_t*)(dt)) 250 #define _DTCMP(dt,k1,k2,dc,cmpf,sz) \ 251 ((cmpf) ? (*cmpf)(dt,k1,k2,dc) : \ 253 #define _DTHSH(dt,ky,dc,sz) ((dc)->hashf ? (*(dc)->hashf)(dt,ky,dc) : dtstrhash(0,ky,sz) ) 256 #define _DTMTCH(dt,key,action) \ 259 _dc = (dt) [all...] |
/osnet-11/usr/src/lib/libast/i386/include/ast/ |
H A D | cdt.h | 86 /* for hash dt, > 0: fixed table size */ 217 extern Dtdisc_t* dtdisc _ARG_((Dt_t* dt, Dtdisc_t*, int)); 243 #define _DT(dt) ((Dt_t*)(dt)) 250 #define _DTCMP(dt,k1,k2,dc,cmpf,sz) \ 251 ((cmpf) ? (*cmpf)(dt,k1,k2,dc) : \ 253 #define _DTHSH(dt,ky,dc,sz) ((dc)->hashf ? (*(dc)->hashf)(dt,ky,dc) : dtstrhash(0,ky,sz) ) 256 #define _DTMTCH(dt,key,action) \ 259 _dc = (dt) [all...] |