/titanic_50/usr/src/lib/libast/common/comp/ |
H A D | tsearch.c | 61 Void_t* key; 66 int(* comparf)_ARG_((const Void_t*, const Void_t*)); 84 return (*((Treedisc_t*)disc)->comparf)((Void_t*)one,(Void_t*)two); 101 Void_t* tsearch(const Void_t* key, Void_t** rootp, in tsearch() argument 102 int(*comparf)(const Void_t*,const Void_t*) ) in tsearch() argument 104 Void_t* tsearch(key, rootp, comparf) in tsearch() 105 Void_t* key; in tsearch() 106 Void_t** rootp; 115 return NIL(Void_t*); 122 return NIL(Void_t*); [all …]
|
/titanic_50/usr/src/lib/libast/amd64/include/ast/ |
H A D | vmalloc.h | 43 typedef Void_t* (*Vmemory_f)_ARG_((Vmalloc_t*, Void_t*, size_t, size_t, Vmdisc_t*)); 44 typedef int (*Vmexcept_f)_ARG_((Vmalloc_t*, int, Void_t*, Vmdisc_t*)); 64 { Void_t* (*allocf)_ARG_((Vmalloc_t*,size_t)); 65 Void_t* (*resizef)_ARG_((Vmalloc_t*,Void_t*,size_t,int)); 66 int (*freef)_ARG_((Vmalloc_t*,Void_t*)); 67 long (*addrf)_ARG_((Vmalloc_t*,Void_t*)); 68 long (*sizef)_ARG_((Vmalloc_t*,Void_t*)); 70 Void_t* (*alignf)_ARG_((Vmalloc_t*,size_t,size_t)); 78 Void_t* func; /* calling function */ 151 extern Vmalloc_t* vmmopen _ARG_(( char*, Void_t*, size_t )); [all …]
|
H A D | cdt.h | 46 typedef Void_t* (*Dtsearch_f)_ARG_((Dt_t*,Void_t*,int)); 47 typedef Void_t* (*Dtmake_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 48 typedef void (*Dtfree_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 49 typedef int (*Dtcompar_f)_ARG_((Dt_t*,Void_t*,Void_t*,Dtdisc_t*)); 50 typedef unsigned int (*Dthash_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 51 typedef Void_t* (*Dtmemory_f)_ARG_((Dt_t*,Void_t*,size_t,Dtdisc_t*)); 52 typedef int (*Dtevent_f)_ARG_((Dt_t*,int,Void_t*,Dtdisc_t*)); 65 Void_t* obj; /* user object */ 125 Void_t* user; /* for user's usage */ 226 extern int dtwalk _ARG_((Dt_t*, int(*)(Dt_t*,Void_t*,Void_t*), Void_t*)); [all …]
|
/titanic_50/usr/src/lib/libast/sparc/include/ast/ |
H A D | vmalloc.h | 43 typedef Void_t* (*Vmemory_f)_ARG_((Vmalloc_t*, Void_t*, size_t, size_t, Vmdisc_t*)); 44 typedef int (*Vmexcept_f)_ARG_((Vmalloc_t*, int, Void_t*, Vmdisc_t*)); 64 { Void_t* (*allocf)_ARG_((Vmalloc_t*,size_t)); 65 Void_t* (*resizef)_ARG_((Vmalloc_t*,Void_t*,size_t,int)); 66 int (*freef)_ARG_((Vmalloc_t*,Void_t*)); 67 long (*addrf)_ARG_((Vmalloc_t*,Void_t*)); 68 long (*sizef)_ARG_((Vmalloc_t*,Void_t*)); 70 Void_t* (*alignf)_ARG_((Vmalloc_t*,size_t,size_t)); 78 Void_t* func; /* calling function */ 151 extern Vmalloc_t* vmmopen _ARG_(( char*, Void_t*, size_t )); [all …]
|
H A D | cdt.h | 46 typedef Void_t* (*Dtsearch_f)_ARG_((Dt_t*,Void_t*,int)); 47 typedef Void_t* (*Dtmake_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 48 typedef void (*Dtfree_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 49 typedef int (*Dtcompar_f)_ARG_((Dt_t*,Void_t*,Void_t*,Dtdisc_t*)); 50 typedef unsigned int (*Dthash_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 51 typedef Void_t* (*Dtmemory_f)_ARG_((Dt_t*,Void_t*,size_t,Dtdisc_t*)); 52 typedef int (*Dtevent_f)_ARG_((Dt_t*,int,Void_t*,Dtdisc_t*)); 65 Void_t* obj; /* user object */ 125 Void_t* user; /* for user's usage */ 226 extern int dtwalk _ARG_((Dt_t*, int(*)(Dt_t*,Void_t*,Void_t*), Void_t*)); [all …]
|
/titanic_50/usr/src/lib/libast/sparcv9/include/ast/ |
H A D | vmalloc.h | 43 typedef Void_t* (*Vmemory_f)_ARG_((Vmalloc_t*, Void_t*, size_t, size_t, Vmdisc_t*)); 44 typedef int (*Vmexcept_f)_ARG_((Vmalloc_t*, int, Void_t*, Vmdisc_t*)); 64 { Void_t* (*allocf)_ARG_((Vmalloc_t*,size_t)); 65 Void_t* (*resizef)_ARG_((Vmalloc_t*,Void_t*,size_t,int)); 66 int (*freef)_ARG_((Vmalloc_t*,Void_t*)); 67 long (*addrf)_ARG_((Vmalloc_t*,Void_t*)); 68 long (*sizef)_ARG_((Vmalloc_t*,Void_t*)); 70 Void_t* (*alignf)_ARG_((Vmalloc_t*,size_t,size_t)); 78 Void_t* func; /* calling function */ 151 extern Vmalloc_t* vmmopen _ARG_(( char*, Void_t*, size_t )); [all …]
|
H A D | cdt.h | 46 typedef Void_t* (*Dtsearch_f)_ARG_((Dt_t*,Void_t*,int)); 47 typedef Void_t* (*Dtmake_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 48 typedef void (*Dtfree_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 49 typedef int (*Dtcompar_f)_ARG_((Dt_t*,Void_t*,Void_t*,Dtdisc_t*)); 50 typedef unsigned int (*Dthash_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 51 typedef Void_t* (*Dtmemory_f)_ARG_((Dt_t*,Void_t*,size_t,Dtdisc_t*)); 52 typedef int (*Dtevent_f)_ARG_((Dt_t*,int,Void_t*,Dtdisc_t*)); 65 Void_t* obj; /* user object */ 125 Void_t* user; /* for user's usage */ 226 extern int dtwalk _ARG_((Dt_t*, int(*)(Dt_t*,Void_t*,Void_t*), Void_t*)); [all …]
|
/titanic_50/usr/src/lib/libast/common/include/ |
H A D | vmalloc.h | 43 typedef Void_t* (*Vmemory_f)_ARG_((Vmalloc_t*, Void_t*, size_t, size_t, Vmdisc_t*)); 44 typedef int (*Vmexcept_f)_ARG_((Vmalloc_t*, int, Void_t*, Vmdisc_t*)); 64 { Void_t* (*allocf)_ARG_((Vmalloc_t*,size_t)); 65 Void_t* (*resizef)_ARG_((Vmalloc_t*,Void_t*,size_t,int)); 66 int (*freef)_ARG_((Vmalloc_t*,Void_t*)); 67 long (*addrf)_ARG_((Vmalloc_t*,Void_t*)); 68 long (*sizef)_ARG_((Vmalloc_t*,Void_t*)); 70 Void_t* (*alignf)_ARG_((Vmalloc_t*,size_t,size_t)); 78 Void_t* func; /* calling function */ 151 extern Vmalloc_t* vmmopen _ARG_(( char*, Void_t*, size_t )); [all …]
|
H A D | cdt.h | 46 typedef Void_t* (*Dtsearch_f)_ARG_((Dt_t*,Void_t*,int)); 47 typedef Void_t* (*Dtmake_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 48 typedef void (*Dtfree_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 49 typedef int (*Dtcompar_f)_ARG_((Dt_t*,Void_t*,Void_t*,Dtdisc_t*)); 50 typedef unsigned int (*Dthash_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 51 typedef Void_t* (*Dtmemory_f)_ARG_((Dt_t*,Void_t*,size_t,Dtdisc_t*)); 52 typedef int (*Dtevent_f)_ARG_((Dt_t*,int,Void_t*,Dtdisc_t*)); 65 Void_t* obj; /* user object */ 125 Void_t* user; /* for user's usage */ 226 extern int dtwalk _ARG_((Dt_t*, int(*)(Dt_t*,Void_t*,Void_t*), Void_t*)); [all …]
|
/titanic_50/usr/src/lib/libast/i386/include/ast/ |
H A D | vmalloc.h | 43 typedef Void_t* (*Vmemory_f)_ARG_((Vmalloc_t*, Void_t*, size_t, size_t, Vmdisc_t*)); 44 typedef int (*Vmexcept_f)_ARG_((Vmalloc_t*, int, Void_t*, Vmdisc_t*)); 64 { Void_t* (*allocf)_ARG_((Vmalloc_t*,size_t)); 65 Void_t* (*resizef)_ARG_((Vmalloc_t*,Void_t*,size_t,int)); 66 int (*freef)_ARG_((Vmalloc_t*,Void_t*)); 67 long (*addrf)_ARG_((Vmalloc_t*,Void_t*)); 68 long (*sizef)_ARG_((Vmalloc_t*,Void_t*)); 70 Void_t* (*alignf)_ARG_((Vmalloc_t*,size_t,size_t)); 78 Void_t* func; /* calling function */ 151 extern Vmalloc_t* vmmopen _ARG_(( char*, Void_t*, size_t )); [all …]
|
H A D | cdt.h | 46 typedef Void_t* (*Dtsearch_f)_ARG_((Dt_t*,Void_t*,int)); 47 typedef Void_t* (*Dtmake_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 48 typedef void (*Dtfree_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 49 typedef int (*Dtcompar_f)_ARG_((Dt_t*,Void_t*,Void_t*,Dtdisc_t*)); 50 typedef unsigned int (*Dthash_f)_ARG_((Dt_t*,Void_t*,Dtdisc_t*)); 51 typedef Void_t* (*Dtmemory_f)_ARG_((Dt_t*,Void_t*,size_t,Dtdisc_t*)); 52 typedef int (*Dtevent_f)_ARG_((Dt_t*,int,Void_t*,Dtdisc_t*)); 65 Void_t* obj; /* user object */ 125 Void_t* user; /* for user's usage */ 226 extern int dtwalk _ARG_((Dt_t*, int(*)(Dt_t*,Void_t*,Void_t*), Void_t*)); [all …]
|
/titanic_50/usr/src/lib/libast/common/vmalloc/ |
H A D | vmmopen.c | 64 Void_t* data; /* data to be returned */ 70 Void_t* base; /* base of the map */ 85 static int mmvminit(char* file, Void_t* addr, size_t round, Mmvm_t* mm) in mmvminit() 89 Void_t* addr; /* desired starting address */ 96 Void_t *base; 99 base = NIL(Void_t*); 114 base = (Void_t*)mmap(mm->base, mm->size, PROT_READ|PROT_WRITE, 116 if(base == (Void_t*)MAP_FAILED) 117 base = NIL(Void_t*); 128 base = (Void_t*)mmap(addr, (size_t)size, PROT_READ|PROT_WRITE, [all …]
|
H A D | malloc.c | 173 __inline Void_t* _vmrecord(Void_t* p) in _vmrecord() 230 Void_t* func; in vmflinit() 248 extern Void_t* calloc(reg size_t n_obj, reg size_t s_obj) in calloc() 250 extern Void_t* calloc(n_obj, s_obj) in calloc() 256 return VMRECORD((*Vmregion->meth.resizef)(Vmregion,NIL(Void_t*),n_obj*s_obj,VM_RSZERO)); 260 extern Void_t* malloc(reg size_t size) in malloc() 262 extern Void_t* malloc(size) in malloc() 271 extern Void_t* realloc(reg Void_t* data, reg size_t size) in realloc() 273 extern Void_t* realloc(data,size) in realloc() 274 reg Void_t* data; /* block to be reallocated */ in realloc() [all …]
|
H A D | vmlast.c | 36 static Void_t* lastalloc(Vmalloc_t* vm, size_t size) in lastalloc() 38 static Void_t* lastalloc(vm, size) in lastalloc() 55 return NIL(Void_t*); 100 ANNOUNCE(local, vm, VM_ALLOC, (Void_t*)tp, vm->disc); 102 return (Void_t*)tp; 106 static int lastfree(Vmalloc_t* vm, reg Void_t* data ) in lastfree() 110 reg Void_t* data; 131 if(data != (Void_t*)vd->free) 162 static Void_t* lastresize(Vmalloc_t* vm, reg Void_t* data, size_t size, int type ) in lastresize() 164 static Void_t* lastresize(vm, data, size, type ) in lastresize() [all …]
|
H A D | vmdebug.c | 47 static Void_t* Dbwatch[S_WATCH]; 99 static void dbwarn(Vmalloc_t* vm, Void_t* data, int where, in dbwarn() 100 const char* file, int line, const Void_t* func, int type) in dbwarn() 104 Void_t* data; /* data block */ 108 const Void_t* func; /* function called from */ 188 static void dbwatch(Vmalloc_t* vm, Void_t* data, in dbwatch() 189 const char* file, int line, const Void_t* func, int type) in dbwatch() 193 Void_t* data; 196 const Void_t* func; 265 static long dbaddr(Vmalloc_t* vm, Void_t* addr) in dbaddr() [all …]
|
H A D | vmpool.c | 42 static Void_t* poolalloc(Vmalloc_t* vm, reg size_t size) in poolalloc() 44 static Void_t* poolalloc(vm, size ) in poolalloc() 56 return NIL(Void_t*); 60 else return NIL(Void_t*); 68 return NIL(Void_t*); 120 ANNOUNCE(local, vm, VM_ALLOC, (Void_t*)tp, vm->disc); 122 return (Void_t*)tp; 126 static long pooladdr(Vmalloc_t* vm, reg Void_t* addr) in pooladdr() 130 reg Void_t* addr; 179 static int poolfree(reg Vmalloc_t* vm, reg Void_t* data ) in poolfree() [all …]
|
H A D | vmsegment.c | 36 Void_t* vmsegment(Vmalloc_t* vm, Void_t* addr) in vmsegment() 38 Void_t* vmsegment(vm, addr) in vmsegment() 40 Void_t* addr; /* address */ 51 return NIL(Void_t*); 63 return seg ? (Void_t*)seg->addr : NIL(Void_t*);
|
/titanic_50/usr/src/lib/libast/common/sfio/ |
H A D | sfreserve.c | 30 Void_t* sfreserve(Sfio_t* f, ssize_t size, int type) in sfreserve() 32 Void_t* sfreserve(f,size,type) in sfreserve() 40 reg Void_t* data; 44 SFMTXENTER(f,NIL(Void_t*)); 57 { data = (Void_t*)f->next; 63 data = (Void_t*)rsrv->data; 67 data = NIL(Void_t*); 77 SFMTXRETURN(f, NIL(Void_t*)); 82 SFMTXRETURN(f, NIL(Void_t*)); 99 SFMTXRETURN(f, NIL(Void_t*)); [all …]
|
H A D | sfsetbuf.c | 93 Void_t* sfsetbuf(Sfio_t* f, Void_t* buf, size_t size) in sfsetbuf() 95 Void_t* sfsetbuf(f,buf,size) in sfsetbuf() 97 Void_t* buf; /* new buffer */ 111 SFMTXENTER(f,NIL(Void_t*)); 118 SFMTXRETURN(f, (Void_t*)f->data); 123 { buf = NIL(Void_t*); 129 SFMTXRETURN(f, NIL(Void_t*)); 132 SFMTXRETURN(f, NIL(Void_t*)); 142 SFMTXRETURN(f, NIL(Void_t*)); 147 SFMTXRETURN(f, NIL(Void_t*)); [all …]
|
/titanic_50/usr/src/lib/libast/common/cdt/ |
H A D | dtlist.c | 30 static Void_t* dtlist(reg Dt_t* dt, reg Void_t* obj, reg int type) in dtlist() 32 static Void_t* dtlist(dt, obj, type) in dtlist() 34 reg Void_t* obj; 42 reg Void_t *key, *k; 55 return r ? _DTOBJ(r,lk) : NIL(Void_t*); 59 return NIL(Void_t*); 69 (*dt->memoryf)(dt,(Void_t*)r,0,disc); 74 return NIL(Void_t*); 76 else return NIL(Void_t*); 82 return NIL(Void_t*); [all …]
|
H A D | dtclose.c | 44 (ev = (*disc->eventf)(dt,DT_CLOSE,NIL(Void_t*),disc)) < 0) 51 { (void)(*(dt->meth->searchf))(dt,NIL(Void_t*),DT_CLEAR); 56 (*dt->memoryf)(dt,(Void_t*)dt->data->htab,0,disc); 57 (*dt->memoryf)(dt,(Void_t*)dt->data,0,disc); 61 free((Void_t*)dt); 63 (*dt->memoryf)(dt, (Void_t*)dt, 0, disc); 66 (void)(*disc->eventf)(dt, DT_ENDCLOSE, NIL(Void_t*), disc);
|
H A D | dtview.c | 31 static Void_t* dtvsearch(Dt_t* dt, reg Void_t* obj, reg int type) in dtvsearch() 33 static Void_t* dtvsearch(dt,obj,type) in dtvsearch() 35 reg Void_t* obj; 40 Void_t *o, *n, *ok, *nk; 59 return NIL(Void_t*); 61 n = nk = NIL(Void_t*); p = NIL(Dt_t*); 87 return NIL(Void_t*); 95 return NIL(Void_t*); 110 return NIL(Void_t*); 112 obj = (*(d->meth->searchf))(d,NIL(Void_t*),DT_FIRST); [all …]
|
H A D | dtrenew.c | 31 Void_t* dtrenew(Dt_t* dt, reg Void_t* obj) in dtrenew() 33 Void_t* dtrenew(dt, obj) in dtrenew() 35 reg Void_t* obj; 38 reg Void_t* key; 45 return NIL(Void_t*); 78 return (*dt->meth->searchf)(dt,(Void_t*)e,DT_RENEW) ? obj : NIL(Void_t*);
|
H A D | dtdisc.c | 32 static Void_t* dtmemory(Dt_t* dt,Void_t* addr,size_t size,Dtdisc_t* disc) in dtmemory() 34 static Void_t* dtmemory(dt, addr, size, disc) in dtmemory() 36 Void_t* addr; /* address to be manipulate */ 44 return NIL(Void_t*); 48 else return size > 0 ? malloc(size) : NIL(Void_t*); 79 if(old->eventf && (*old->eventf)(dt,DT_DISC,(Void_t*)disc,old) < 0) 119 k = _DTKEY((Void_t*)k,disc->key,disc->size); 122 (void)(*searchf)(dt,(Void_t*)r,DT_RENEW);
|
H A D | dthash.c | 100 static Void_t* dthash(Dt_t* dt, reg Void_t* obj, int type) in dthash() 102 static Void_t* dthash(dt,obj,type) in dthash() 104 reg Void_t* obj; 109 reg Void_t *k, *key; 127 return NIL(Void_t*); 142 (*dt->memoryf)(dt,(Void_t*)t,0,disc); 149 return NIL(Void_t*); 161 return t ? _DTOBJ(t,lk) : NIL(Void_t*); 168 return NIL(Void_t*); 223 return NIL(Void_t*); [all …]
|