masterdump.c revision 674f1cfb1d7dfa92e52db950dbe80e60ef8f5cdd
3759f10fc543747668b1ca4b4671f35b0dea8445Francis Dupont * Copyright (C) 1999, 2000 Internet Software Consortium.
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence * Permission to use, copy, modify, and distribute this software for any
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater * purpose with or without fee is hereby granted, provided that the above
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence * copyright notice and this permission notice appear in all copies.
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater/* $Id: masterdump.c,v 1.32 2000/08/10 01:02:00 bwelling Exp $ */
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence#define RETERR(x) do { \
d70dac20d2b88e48fbf2606180d0ba6dcc4bc44fTinderbox User * Flags affecting master file formatting. Flags 0x0000FFFF
* rdata.h.
typedef struct dns_totext_ctx {
char * linebreak;
const dns_master_style_t
const dns_master_style_t
static isc_result_t
isc_region_t r;
unsigned int from;
if (ntabs < 0)
ntabs = 0;
if (ntabs > 0) {
return (ISC_R_NOSPACE);
p = r.base;
t = ntabs;
if (n > N_TABS)
n = N_TABS;
return (ISC_R_NOSPACE);
p = r.base;
t = nspaces;
if (n > N_SPACES)
n = N_SPACES;
return (ISC_R_SUCCESS);
static isc_result_t
isc_region_t r;
unsigned int col = 0;
return (DNS_R_TEXTTOOLONG);
return (DNS_R_TEXTTOOLONG);
return (result);
return (DNS_R_TEXTTOOLONG);
return (ISC_R_SUCCESS);
!= ISC_R_SUCCESS) \
return (result); \
static isc_result_t
unsigned int column;
column = 0;
!first))
target));
isc_region_t r;
unsigned int length;
return (ISC_R_NOSPACE);
unsigned int class_start;
target);
return (result);
unsigned int type_start;
return (result);
isc_region_t r;
target));
return (ISC_R_NOSPACE);
return (result);
return (ISC_R_SUCCESS);
static isc_result_t
unsigned int column;
isc_region_t r;
column = 0;
target));
unsigned int class_start;
return (result);
unsigned int type_start;
return (result);
return (ISC_R_NOSPACE);
return (ISC_R_SUCCESS);
* only by wire_test.c.
return (ISC_R_UNEXPECTED);
if (no_rdata_or_ttl)
static isc_result_t
isc_region_t r;
int newlength;
void *newmem;
return (ISC_R_NOMEMORY);
return (result);
return (result);
return (ISC_R_SUCCESS);
static isc_result_t
return (result);
return (result);
return (result);
return (result);
return (result);
buffer, f);
return (result);
return (result);
return (ISC_R_SUCCESS);
FILE *f)
char *bufmem;
isc_region_t r;
return (ISC_R_UNEXPECTED);
return (ISC_R_NOMEMORY);
&dbiter);
goto create_iter_failure;
(char *) r.base);
goto iter_failure;
&buffer, f);
goto iter_failure;
goto iter_failure;
return (result);
return (ISC_R_UNEXPECTED);
return (ISC_R_UNEXPECTED);
return (result);
FILE *f)
char *bufmem;
return (ISC_R_UNEXPECTED);
return (ISC_R_NOMEMORY);
goto failure;
goto failure;
return (result);
return (ISC_R_UNEXPECTED);
style, f);
return (ISC_R_UNEXPECTED);
return (result);