named-checkzone.c revision f30785f506a522ed6a5e394af2bb13b6f883927e
501941f0b6cce74c2ff75b10aff3f230d5d37e4cEvan Hunt * Copyright (C) 2004-2011 Internet Systems Consortium, Inc. ("ISC")
501941f0b6cce74c2ff75b10aff3f230d5d37e4cEvan Hunt * Copyright (C) 1999-2003 Internet Software Consortium.
501941f0b6cce74c2ff75b10aff3f230d5d37e4cEvan Hunt * Permission to use, copy, modify, and/or distribute this software for any
501941f0b6cce74c2ff75b10aff3f230d5d37e4cEvan Hunt * purpose with or without fee is hereby granted, provided that the above
501941f0b6cce74c2ff75b10aff3f230d5d37e4cEvan Hunt * copyright notice and this permission notice appear in all copies.
/* $Id: named-checkzone.c,v 1.64 2011/12/22 07:32:39 each Exp $ */
#include <config.h>
#include <stdlib.h>
#include "check-tool.h"
static int quiet = 0;
static int dumpzone = 0;
static const char *output_filename;
if (!quiet) \
return (result); \
ISC_PLATFORM_NORETURN_PRE static void
usage(void) {
destroy(void) {
char *endp;
prog_name++;
#define PROGCMP(X) \
INSIST(0);
!= EOF) {
debug++;
quiet++;
exit(0);
dumpzone++;
usage();
char *end;
usage();
if (dumpzone &&
usage();
#ifdef _WIN32
InitSockets();
if (!quiet)
== ISC_R_SUCCESS);
== ISC_R_SUCCESS);
&zone);
if (snset) {
destroy();
#ifdef _WIN32