sdb.c revision 0a45f098e446a7f41c2a71d9dd0fd8f459b49c34
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * Copyright (C) 2000 Internet Software Consortium.
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * Permission to use, copy, modify, and distribute this software for any
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * purpose with or without fee is hereby granted, provided that the above
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * copyright notice and this permission notice appear in all copies.
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer/* $Id: sdb.c,v 1.7 2000/08/23 18:45:13 bwelling Exp $ */
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyertypedef struct sdbimp {
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer unsigned int flags;
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer /* Unlocked */
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer /* Unlocked */
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer unsigned int magic;
static int dummy;
static int nimps = 0;
initialize(void) {
for (i = 0; i < nimps; i++) {
slot = i;
return (ISC_R_EXISTS);
if (i == nimps) {
return (ISC_R_NOSPACE);
return (ISC_R_SUCCESS);
for (i = 0; i < nimps; i++) {
const char *data)
isc_buffer_t b;
unsigned int size;
return (result);
return (ISC_R_NOMEMORY);
return (DNS_R_BADTTL);
return (ISC_R_NOMEMORY);
goto failure;
goto failure;
goto failure;
goto failure;
return (ISC_R_SUCCESS);
return (result);
isc_buffer_t b;
return (result);
return (result);
return (ISC_R_NOMEMORY);
return (result);
if (n >= (int)sizeof(str) || n < 0)
return (ISC_R_NOSPACE);
if (need_destroy)
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
static isc_result_t
return (ISC_R_NOMEMORY);
return (ISC_R_UNEXPECTED);
return (ISC_R_SUCCESS);
isc_buffer_t *b;
isc_buffer_free(&b);
static isc_result_t
isc_buffer_t b;
unsigned int labels;
return (result);
return (result);
isc_buffer_putuint8(&b, 0);
return (result);
return (result);
return (result);
return (ISC_R_SUCCESS);
static isc_result_t
return (DNS_R_NXDOMAIN);
if (i < nlabels) {
if (i < nlabels) {
return (DNS_R_BADDB);
return (result);
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
if (need_destroy)
static isc_result_t
INSIST(0);
return (ISC_R_UNEXPECTED);
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
return (ISC_R_NOMEMORY);
return (result);
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
return (ISC_R_NOTFOUND);
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
static isc_boolean_t
return (ISC_FALSE);
static isc_boolean_t
return (ISC_TRUE);
dump,
find,
char *sdbtype;
isc_buffer_t b;
return (ISC_R_NOTIMPLEMENTED);
for (i = 0; i < nimps; i++)
if (i == nimps) {
return (ISC_R_NOTFOUND);
return (ISC_R_NOTIMPLEMENTED);
return (ISC_R_NOMEMORY);
return (ISC_R_UNEXPECTED);
return (result);
return (result);
isc_buffer_putuint8(&b, 0);
return (ISC_R_NOMEMORY);
return (result);
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_NOMORE);
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_NOMORE);
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_SUCCESS);
return (ISC_R_NOTFOUND);
static isc_result_t
return (ISC_R_NOMORE);
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_NOMORE);
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_SUCCESS);
sizeof(sdb_rdatasetiter_t));
static isc_result_t
return (ISC_R_NOMORE);
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_NOMORE);
return (ISC_R_SUCCESS);
rdataset);