Searched defs:obj (Results 1 - 25 of 51) sorted by relevance

123

/ast/src/lib/libast/disc/
H A Dmemfatal.c48 nomalloc(Vmalloc_t* region, int type, void* obj, Vmdisc_t* disc) argument
57 error(ERROR_SYSTEM|3, "invalid pointer %p passed to free or realloc", obj);
62 error(ERROR_SYSTEM|3, "storage allocator out of space on %lu byte request ( region %lu segments %lu busy %lu:%lu:%lu free %lu:%lu:%lu )", (size_t)obj, st.extent, st.n_seg, st.n_busy, st.s_busy, st.m_busy, st.n_free, st.s_free, st.m_free);
/ast/src/lib/libast/cdt/
H A Ddtwalk.c39 Void_t *obj, *next; local
43 for(obj = dtfirst(dt); obj; )
46 next = dtnext(dt,obj);
47 if((rv = (*userf)(walk, obj, data )) < 0)
49 obj = next;
H A Ddtview.c35 static Void_t* dtvsearch(Dt_t* dt, reg Void_t* obj, reg int type) argument
37 static Void_t* dtvsearch(dt,obj,type)
39 reg Void_t* obj;
48 return (*(dt->meth->searchf))(dt,obj,type);
56 if((o = (*(d->meth->searchf))(d,obj,type)) )
69 { if(!(o = (*d->meth->searchf)(d, obj, type)) )
97 if((o = (*(d->meth->searchf))(d, obj, DT_SEARCH)) )
100 if(!(obj = o) )
104 for(d = dt->walk, obj = (*d->meth->searchf)(d, obj, typ
[all...]
H A Ddtopen.c122 Dtlink_t* _dtmake(Dt_t* dt, Void_t* obj, int type) argument
127 /* if obj is a prototype, make a real one */
128 if(!(type&DT_ATTACH) && disc->makef && !(obj = (*disc->makef)(dt, obj, disc)) )
131 if(disc->link >= 0) /* holder is embedded in obj itself */
132 return _DTLNK(disc, obj);
134 /* create a holder to hold obj */
136 h->obj = obj;
140 (void)(*disc->freef)(dt, obj, dis
[all...]
H A Ddtlist.c39 char *obj, *endb, buf[1024]; local
49 obj = (*objprintf)(_DTOBJ(disc, here));
50 k = strlen(obj); memcpy(endb, obj, k); endb += k;
163 static Void_t* dtlist(Dt_t* dt, Void_t* obj, int type) argument
165 static Void_t* dtlist(dt, obj, type)
167 Void_t* obj;
183 DTRETURN(obj, lfirstlast(dt, type));
185 DTRETURN(obj, llist(dt, (Dtlink_t*)obj, typ
[all...]
/ast/src/lib/librecsort/
H A Drs-copy.c36 static int copyinsert(Rs_t* rs, reg Rsobj_t* obj) argument
38 static int copyinsert(rs, obj)
40 reg Rsobj_t* obj;
46 copy->tail->right = obj;
48 copy->head = obj;
49 copy->tail = obj;
H A Drs-verify.c29 { Rsobj_t obj; member in struct:rsverify_s
30 ulong o; /* obj's ordinal */
35 static int verifyinsert(Rs_t* rs, reg Rsobj_t* obj) argument
37 static int verifyinsert(rs, obj)
39 reg Rsobj_t* obj;
48 p = &verify->obj; ph = p->order;
50 OBJHEAD(obj); oh = obj->order;
51 if(verify->n > 0) /* compare with current obj */
52 { OBJCMP(obj,
[all...]
H A Drs-splay.c33 static int splayinsert(Rs_t* rs, reg Rsobj_t* obj) argument
35 static int splayinsert(rs, obj)
37 reg Rsobj_t* obj;
45 obj->equal = NIL(Rsobj_t*);
46 OBJHEAD(obj);
49 { obj->left = obj->right = NIL(Rsobj_t*);
50 splay->root = obj;
54 OBJCMP(obj,root,cmp);
56 { EQUAL(root,obj,
[all...]
H A Drs-radix.c37 static int radixinsert(Rs_t* rs, reg Rsobj_t* obj) argument
39 static int radixinsert(rs, obj)
41 reg Rsobj_t* obj;
47 obj->equal = NIL(Rsobj_t*);
49 r->left->right = obj;
50 else radix->list = (r = obj);
51 r->left = obj;
/ast/src/cmd/mailx/port/
H A Ddtrenew.c77 Void_t* dtrenew(Dt_t* dt, reg Void_t* obj) argument
79 Void_t* dtrenew(dt, obj)
81 reg Void_t* obj;
91 if(!(e = dt->data->here) || OBJ(e,disc) != obj)
113 key = KEY(obj,disc);
144 return obj;
148 return (*dt->meth->searchf)(dt,(Void_t*)e,DT_RENEW) ? obj : NIL(Void_t*);
H A Ddtview.c77 static Void_t* dtvsearch(Dt_t* dt, reg Void_t* obj, reg int type) argument
79 static Void_t* dtvsearch(dt,obj,type)
81 reg Void_t* obj;
90 return (*(dt->meth->searchf))(dt,obj,type);
92 if(!obj && !(type&(DT_FIRST|DT_LAST)) )
97 { if((o = (*(d->meth->searchf))(d,obj,type)) )
111 for(d = dt->walk, o = (*(d->meth->searchf))(d,obj,type); ; )
H A Ddtwalk.c86 reg Void_t *obj, *next; local
90 for(obj = dtfirst(dt); obj; )
93 next = dtnext(dt,obj);
94 if((rv = (*userf)(walk, obj, data )) < 0)
96 obj = next;
H A Ddtlist.c78 static Void_t* dtlist(reg Dt_t* dt, reg Void_t* obj, reg int type) argument
80 static Void_t* dtlist(dt, obj, type)
82 reg Void_t* obj;
90 if(!obj)
117 key = (char*)obj;
120 { renew = (Dtlink_t*)obj;
121 obj = OBJ(renew,disc);
123 key = KEY(obj,disc);
128 if(!(t = dt->data->here) || OBJ(t,disc) != obj)
163 obj
[all...]
H A Ddtstkq.c80 static Void_t* dtstkq(Dt_t* dt, reg Void_t* obj, reg int type) argument
82 static Void_t* dtstkq(dt, obj, type)
84 reg Void_t* obj;
94 if(!t || (obj && obj != OBJ(t,disc)) )
102 obj = OBJ(t,disc);
104 (*disc->freef)(dt,obj,disc);
107 return obj;
110 if(!obj)
136 { if(disc->makef && !(obj
[all...]
H A Ddttree.c73 ** obj: the object to look for.
80 static Void_t* dttree(Dt_t* dt, reg Void_t* obj, int type) argument
82 static Void_t* dttree(dt,obj,type)
84 reg Void_t* obj;
97 if(!obj)
135 key = (char*)obj;
138 { me = (Dtlink_t*)obj;
139 obj = OBJ(me,disc);
141 key = KEY(obj,disc);
147 if(root && obj !
[all...]
H A Ddthash.c73 ** obj: what to look for
124 static Void_t* dthash(Dt_t* dt, reg Void_t* obj, int type) argument
126 static Void_t* dthash(dt,obj,type)
128 reg Void_t* obj;
140 if(!obj)
180 key = (char*)obj;
183 { r = (Dtlink_t*)obj;
184 obj = OBJ(r,disc);
186 key = KEY(obj,disc);
191 if(!(t = dt->data->here) || OBJ(t,disc) != obj)
[all...]
/ast/src/cmd/tests/cdt/
H A Dtevent.c25 static int event(Dt_t* dt, int type, Void_t* obj, Dtdisc_t* disc) argument
32 { *(ssize_t*)obj = 1024;
57 static Void_t* memory(Dt_t* dt, Void_t* obj, size_t size, Dtdisc_t* disc) argument
59 if(!obj)
62 { free(obj);
H A Dtview.c31 static int visit(Dt_t* dt, Void_t* obj, Void_t* data) argument
33 static int visit(dt, obj, data)
35 Void_t* obj;
39 See[(long)obj] = 1;
H A Dtshare.c28 static int event(Dt_t* dt, int type, Void_t* obj, Dtdisc_t* disc) argument
30 static int event(dt, type, obj, disc)
33 Void_t* obj;
38 if(obj)
42 { *((Void_t**)obj) = (Void_t*)(&Space[0]);
/ast/src/cmd/tests/sfio/
H A Dtclose.c25 static int except(Sfio_t* f, int type, Void_t* obj, Sfdisc_t* disc) argument
27 static int except(f, type, obj, disc)
30 Void_t* obj;
/ast/src/lib/libast/comp/
H A Dhsearch.c69 static void hashfree(Dt_t* dt, Void_t* obj, Dtdisc_t* disc) argument
71 static void hashfree(dt, obj, disc)
73 Void_t* obj;
77 free(((Hash_t*)obj)->item.key);
78 free(obj);
H A Dtsearch.c176 Tree_t obj; local
183 obj.key = (Void_t*)key;
184 dtdelete(dt,&obj);
201 static void _twalk(Tree_t* obj, void(*action)(const Void_t*,VISIT,int), int level) argument
203 static void _twalk(obj,action,level)
204 Tree_t* obj;
208 { if(!obj->lchild && !obj->rchild)
209 (*action)((Void_t*)obj,leaf,level);
211 { (*action)((Void_t*)obj,preorde
[all...]
/ast/src/lib/libpz/
H A Dpzopen.c37 nomalloc(Vmalloc_t* region, int type, void* obj, Vmdisc_t* disc) argument
46 (*pz->disc->errorf)(pz, pz->disc, ERROR_SYSTEM|2, "invalid pointer %p passed to free or realloc", obj); local
52 (*pz->disc->errorf)(pz, pz->disc, ERROR_SYSTEM|2, "storage allocator out of space on %lu byte request ( region %lu segments %lu busy %lu:%lu:%lu free %lu:%lu:%lu )", (size_t)obj, st.extent, st.n_seg, st.n_busy, st.s_busy, st.m_busy, st.n_free, st.s_free, st.m_free);
/ast/src/cmd/tests/aso/
H A Dtthread.c48 Obj_t* obj; local
54 if((obj = Objlist))
55 { Objlist = obj->next;
56 free(obj);
62 if(!obj)
71 Obj_t *obj; local
93 { if(!(obj = malloc(sizeof(Obj_t))) )
95 obj->value = i;
96 obj->next = Objlist;
97 Objlist = obj;
[all...]
/ast/src/cmd/tests/vmalloc/
H A Dtrandom.c26 { Void_t* obj; /* allocated object */ member in struct:_obj_s
75 vmfree(Vmregion, o->obj);
78 if(!(o->obj = vmresize(Vmregion,o->obj,o->size,VM_RSMOVE)) )
108 if(!(o->obj = vmalloc(Vmregion, o->size)) )
130 vmfree(Vmregion,o->obj);

Completed in 37 milliseconds

123