84 return ISC_R_NOMEMORY;
102 return ISC_R_NOMEMORY;
103 memset (
new, 0,
sizeof *
new);
121 if (status != ISC_R_NOSPACE)
138 static isc_result_t omapi_object_handle_in_table (
omapi_handle_t h,
146 if (table -> first > h || table -> limit <= h)
147 return ISC_R_NOSPACE;
151 if (table -> leafp) {
153 (&table -> children [h - table -> first].
object,
169 index = (h - table -> first) / scale;
170 inner = table -> children [index].
table;
177 return ISC_R_NOMEMORY;
178 memset (inner, 0,
sizeof *inner);
179 inner -> first = index * scale + table -> first;
180 inner -> limit = inner -> first + scale;
183 table -> children [index].
table = inner;
186 status = omapi_object_handle_in_table (h, inner, o);
187 if (status == ISC_R_NOSPACE) {
188 status = (omapi_handle_table_enclose
189 (&table -> children [index].table));
193 return omapi_object_handle_in_table
194 (h, table -> children [index].table, o);
203 int index, base, scale;
217 base = inner -> first - inner -> first % scale;
227 return ISC_R_NOMEMORY;
228 memset (
new, 0,
sizeof *
new);
230 new -> limit = base + scale;
233 new -> children [index].table = inner;
250 if (!table || table->
first > h || table->
limit <= h)
251 return(ISC_R_NOTFOUND);
257 return(ISC_R_NOTFOUND);
276 index = (h - table->
first) / scale;
278 return(omapi_handle_lookup_in(o, h, table->
children[index].
table, op));
290 handle->u.buffer.len ==
sizeof h) {