zt.c revision 18d0b5e54be891a1aa938c165b6d439859121ec8
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * Copyright (C) 1999-2002 Internet Software Consortium.
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * Permission to use, copy, modify, and distribute this software for any
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * purpose with or without fee is hereby granted, provided that the above
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * copyright notice and this permission notice appear in all copies.
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * PERFORMANCE OF THIS SOFTWARE.
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy/* $Id: zt.c,v 1.42 2005/07/12 01:00:17 marka Exp $ */
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy /* Unlocked. */
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy /* Locked by lock. */
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy#define ZTMAGIC ISC_MAGIC('Z', 'T', 'b', 'l')
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy#define VALID_ZT(zt) ISC_MAGIC_VALID(zt, ZTMAGIC)
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedyauto_detach(void *, void *);
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedydns_zt_create(isc_mem_t *mctx, dns_rdataclass_t rdclass, dns_zt_t **ztp) {
return (ISC_R_NOMEMORY);
goto cleanup_zt;
goto cleanup_rbt;
return (ISC_R_SUCCESS);
return (result);
return (result);
return (result);
unsigned int rbtoptions = 0;
(void **) (void*)&dummy);
return (result);
static isc_result_t
if (destroy) {
if (need_flush)
return (result);
static isc_result_t
return (result);
return (result);
static isc_result_t
return (result);
static isc_result_t
char *journal;
const char *vname;
const char *sep;
int level;
return (ISC_R_SUCCESS);
if (freeze) {
if (frozen)
if (frozen) {
sizeof(classstr));
return (result);
&node);
return (result);