Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.sbin/bind Pull up file removal (requested by christ...



details:   https://anonhg.NetBSD.org/src/rev/b7db4bdc1574
branches:  netbsd-1-4
changeset: 469826:b7db4bdc1574
user:      he <he%NetBSD.org@localhost>
date:      Sat Dec 04 17:11:31 1999 +0000

description:
Pull up file removal (requested by christos and veego):
  Update to BIND 8.2.2-P5.

diffstat:

 usr.sbin/bind/dig/dig.c               |  1245 ------------
 usr.sbin/bind/dnsquery/dnsquery.c     |   209 --
 usr.sbin/bind/host/host.c             |  1413 --------------
 usr.sbin/bind/include/fd_setsize.h    |    11 -
 usr.sbin/bind/include/hesiod.h        |    39 -
 usr.sbin/bind/include/port_after.h    |    41 -
 usr.sbin/bind/include/port_before.h   |    10 -
 usr.sbin/bind/include/resolv.h        |   307 ---
 usr.sbin/bind/man/dig.1               |   681 ------
 usr.sbin/bind/man/dnsquery.1          |   180 -
 usr.sbin/bind/man/host.1              |   317 ---
 usr.sbin/bind/man/named-bootconf.8    |    55 -
 usr.sbin/bind/man/named-xfer.8        |   149 -
 usr.sbin/bind/man/named.8             |   451 ----
 usr.sbin/bind/man/named.conf.5        |  2082 --------------------
 usr.sbin/bind/man/ndc.8               |   144 -
 usr.sbin/bind/man/nslookup.8          |   538 -----
 usr.sbin/bind/named-xfer/named-xfer.c |  2179 ---------------------
 usr.sbin/bind/named/db_defs.h         |   235 --
 usr.sbin/bind/named/db_dict.c         |   113 -
 usr.sbin/bind/named/db_dump.c         |   637 ------
 usr.sbin/bind/named/db_func.h         |   153 -
 usr.sbin/bind/named/db_glob.h         |    96 -
 usr.sbin/bind/named/db_glue.c         |   618 ------
 usr.sbin/bind/named/db_load.c         |  2220 ----------------------
 usr.sbin/bind/named/db_lookup.c       |   271 --
 usr.sbin/bind/named/db_save.c         |   223 --
 usr.sbin/bind/named/db_update.c       |   934 ---------
 usr.sbin/bind/named/named-bootconf.sh |   253 --
 usr.sbin/bind/named/named.conf        |   431 ----
 usr.sbin/bind/named/named.h           |    70 -
 usr.sbin/bind/named/ns_config.c       |  2371 -----------------------
 usr.sbin/bind/named/ns_defs.h         |   758 -------
 usr.sbin/bind/named/ns_forw.c         |  1134 -----------
 usr.sbin/bind/named/ns_func.h         |   382 ---
 usr.sbin/bind/named/ns_glob.h         |   321 ---
 usr.sbin/bind/named/ns_glue.c         |   418 ----
 usr.sbin/bind/named/ns_init.c         |   514 -----
 usr.sbin/bind/named/ns_lexer.c        |   752 -------
 usr.sbin/bind/named/ns_lexer.h        |    47 -
 usr.sbin/bind/named/ns_main.c         |  2243 ----------------------
 usr.sbin/bind/named/ns_maint.c        |  1213 ------------
 usr.sbin/bind/named/ns_ncache.c       |   228 --
 usr.sbin/bind/named/ns_parser.h       |   112 -
 usr.sbin/bind/named/ns_parser.y       |  1475 --------------
 usr.sbin/bind/named/ns_parseutil.c    |   244 --
 usr.sbin/bind/named/ns_parseutil.h    |    67 -
 usr.sbin/bind/named/ns_req.c          |  1671 ----------------
 usr.sbin/bind/named/ns_resp.c         |  3300 ---------------------------------
 usr.sbin/bind/named/ns_stats.c        |   417 ----
 usr.sbin/bind/named/ns_udp.c          |   125 -
 usr.sbin/bind/named/ns_update.c       |  2397 -----------------------
 usr.sbin/bind/named/ns_xfr.c          |   644 ------
 usr.sbin/bind/named/pathnames.c       |    57 -
 usr.sbin/bind/named/pathnames.h       |    72 -
 usr.sbin/bind/named/pathtemplate.h    |    72 -
 usr.sbin/bind/named/version.c         |    91 -
 usr.sbin/bind/ndc/ndc.sh              |    89 -
 usr.sbin/bind/nslookup/commands.l     |   222 --
 usr.sbin/bind/nslookup/debug.c        |   649 ------
 usr.sbin/bind/nslookup/getinfo.c      |   875 --------
 usr.sbin/bind/nslookup/list.c         |   624 ------
 usr.sbin/bind/nslookup/main.c         |  1127 -----------
 usr.sbin/bind/nslookup/nslookup.help  |    35 -
 usr.sbin/bind/nslookup/pathnames.h    |    73 -
 usr.sbin/bind/nslookup/res.h          |   185 -
 usr.sbin/bind/nslookup/send.c         |   417 ----
 usr.sbin/bind/nslookup/skip.c         |   220 --
 usr.sbin/bind/nslookup/subr.c         |   477 ----
 usr.sbin/bind/nsupdate/nsupdate.c     |   473 ----
 70 files changed, 0 insertions(+), 42896 deletions(-)

diffs (truncated from 43176 to 300 lines):

diff -r 60f5d348cc93 -r b7db4bdc1574 usr.sbin/bind/dig/dig.c
--- a/usr.sbin/bind/dig/dig.c   Sat Dec 04 17:11:22 1999 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,1245 +0,0 @@
-/*     $NetBSD: dig.c,v 1.1.1.1 1998/10/05 18:01:59 tron Exp $ */
-
-#ifndef lint
-static char rcsid[] = "Id: dig.c,v 8.19 1998/03/19 19:30:18 halley Exp";
-#endif
-
-/*
- * Copyright (c) 1989
- *    The Regents of the University of California.  All rights reserved.
- * 
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the University of
- *     California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-/*
- * Portions Copyright (c) 1993 by Digital Equipment Corporation.
- * 
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies, and that
- * the name of Digital Equipment Corporation not be used in advertising or
- * publicity pertaining to distribution of the document or software without
- * specific, written prior permission.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL EQUIPMENT
- * CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
- * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
- * SOFTWARE.
- */
-
-/*
- * Copyright (c) 1996 by Internet Software Consortium
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
- * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
- * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
- * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
- * SOFTWARE.
- */
-
-/*********************** Notes for the BIND 4.9 release (Paul Vixie, DEC)
- *     dig 2.0 was written by copying sections of libresolv.a and nslookup
- *     and modifying them to be more useful for a general lookup utility.
- *     as of BIND 4.9, the changes needed to support dig have mostly been
- *     incorporated into libresolv.a and nslookup; dig now links against
- *     some of nslookup's .o files rather than #including them or maintaining
- *     local copies of them.
- *
- *     while merging dig back into the BIND release, i made a number of
- *     structural changes.  for one thing, i put all of dig's private
- *     library routines into this file rather than maintaining them in
- *     separate, #included, files.  i don't like to #include ".c" files.
- *     i removed all calls to "bcopy", replacing them with structure
- *     assignments.  i removed all "extern"'s of standard functions,
- *     replacing them with #include's of standard header files.  this
- *     version of dig is probably as portable as the rest of BIND.
- *
- *     i had to remove the query-time and packet-count statistics since
- *     the current libresolv.a is a lot harder to modify to maintain these
- *     than the 4.8 one (used in the original dig) was.  for consolation,
- *     i added a "usage" message with extensive help text.
- *
- *     to save my (limited, albeit) sanity, i ran "indent" over the source.
- *     i also added the standard berkeley/DEC copyrights, since this file now
- *     contains a fair amount of non-USC code.  note that the berkeley and
- *     DEC copyrights do not prohibit redistribution, with or without fee;
- *     we add them only to protect ourselves (you have to claim copyright
- *     in order to disclaim liability and warranty).
- *
- *     Paul Vixie, Palo Alto, CA, April 1993
- ****************************************************************************
-
- ******************************************************************
- *      DiG -- Domain Information Groper                          *
- *                                                                *
- *        dig.c - Version 2.1 (7/12/94) ("BIND takeover")         *
- *                                                                *
- *        Developed by: Steve Hotz & Paul Mockapetris             *
- *        USC Information Sciences Institute (USC-ISI)            *
- *        Marina del Rey, California                              *
- *        1989                                                    *
- *                                                                *
- *        dig.c -                                                 *
- *           Version 2.0 (9/1/90)                                 *
- *               o renamed difftime() difftv() to avoid           *
- *                 clash with ANSI C                              *
- *               o fixed incorrect # args to strcmp,gettimeofday  *
- *               o incorrect length specified to strncmp          *
- *               o fixed broken -sticky -envsa -envset functions  *
- *               o print options/flags redefined & modified       *
- *                                                                *
- *           Version 2.0.beta (5/9/90)                            *
- *               o output format - helpful to `doc`               *
- *               o minor cleanup                                  *
- *               o release to beta testers                        *
- *                                                                *
- *           Version 1.1.beta (10/26/89)                          *
- *               o hanging zone transer (when REFUSED) fixed      *
- *               o trailing dot added to domain names in RDATA    *
- *               o ISI internal                                   *
- *                                                                *
- *           Version 1.0.tmp  (8/27/89)                           *
- *               o Error in prnttime() fixed                      *
- *               o no longer dumps core on large pkts             *
- *               o zone transfer (axfr) added                     *
- *               o -x added for inverse queries                   *
- *                               (i.e. "dig -x 128.9.0.32")       *
- *               o give address of default server                 *
- *               o accept broadcast to server @255.255.255.255    *
- *                                                                *
- *           Version 1.0  (3/27/89)                               *
- *               o original release                               *
- *                                                                *
- *     DiG is Public Domain, and may be used for any purpose as   *
- *     long as this notice is not removed.                        *
- ******************************************************************/
-
-/* Import. */
-
-#include "port_before.h"
-
-#include <sys/types.h>
-#include <sys/param.h>
-#include <sys/file.h>
-#include <sys/stat.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <arpa/nameser.h>
-
-#include <ctype.h> 
-#include <errno.h>
-#include <fcntl.h>
-#include <netdb.h>
-#include <resolv.h>
-#include <setjmp.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include "port_after.h"
-
-#include "../nslookup/res.h"
-
-extern char *_res_resultcodes[];       /* res_debug.c */
-
-/* Global. */
-
-#define VERSION 81
-#define VSTRING "8.1"
-
-#define PRF_DEF                0x2ff9
-#define PRF_MIN                0xA930
-#define PRF_ZONE        0x24f9
-
-#ifndef MAXHOSTNAMELEN
-#define MAXHOSTNAMELEN 256
-#endif
-
-int eecode = 0;
-
-FILE *qfp;
-int sockFD;
-
-#define SAVEENV "DiG.env"
-#define DIG_MAXARGS 30
-
-static char            *defsrv, *srvmsg;
-static char            defbuf[40] = "default -- ";
-static char            srvbuf[60];
-static char            myhostname[MAXHOSTNAMELEN];
-
-/* stuff for nslookup modules */
-FILE           *filePtr;
-jmp_buf                env;
-HostInfo       *defaultPtr = NULL;
-HostInfo       curHostInfo, defaultRec;
-int            curHostValid = FALSE;
-int            queryType, queryClass;
-extern int     StringToClass(), StringToType();        /* subr.c */
-#if defined(BSD) && BSD >= 199006 && !defined(RISCOS_BSD)
-FILE           *yyin = NULL;
-void           yyrestart(FILE *f) { }
-#endif
-char           *pager = NULL;
-/* end of nslookup stuff */
-
-/* Forward. */
-
-static void            Usage(void);
-static int             SetOption(const char *);
-static void            res_re_init(void);
-static int             xstrtonum(char *);
-static int             printZone(const char *, const struct sockaddr_in *);
-static int             print_axfr(FILE *output, const u_char *msg,
-                                  size_t msglen);
-static struct timeval  difftv(struct timeval, struct timeval);
-static void            prnttime(struct timeval);
-static void            stackarg(char *, char **);
-
-/* Public. */
-
-int
-main(int argc, char **argv) {
-       struct hostent *hp;
-       short port = htons(NAMESERVER_PORT);
-       /* Wierd stuff for SPARC alignment, hurts nothing else. */
-       union {
-               HEADER header_;
-               u_char packet_[PACKETSZ];
-       } packet_;
-#define        packet  (packet_.packet_)
-       u_char answer[8*1024];
-       int n;
-       char doping[90];
-       char pingstr[50];
-       char *afile;
-       char *addrc, *addrend, *addrbegin;
-
-       struct timeval exectime, tv1, tv2, start_time, end_time, query_time;
-
-       char *srv;
-       int anyflag = 0;
-       int sticky = 0;
-       int tmp; 
-       int qtypeSet;
-       int addrflag = 0;
-       int zone = 0;
-        int bytes_out, bytes_in;
-
-       char cmd[256];
-       char domain[MAXDNAME];
-        char msg[120], *msgptr;
-       char **vtmp;
-       char *args[DIG_MAXARGS];
-       char **ax;
-       int once = 1, dofile = 0; /* batch -vs- interactive control */
-       char fileq[100];
-       int  fp;
-       int wait=0, delay;
-       int envset=0, envsave=0;
-       struct __res_state res_x, res_t;
-       char *pp;
-
-       res_init();
-       _res.pfcode = PRF_DEF;
-       qtypeSet = 0;
-       memset(domain, 0, sizeof domain);
-       gethostname(myhostname, (sizeof myhostname));
-       defsrv = strcat(defbuf, inet_ntoa(_res.nsaddr.sin_addr));
-       res_x = _res;
-
-/*
- * If LOCALDEF in environment, should point to file
- * containing local favourite defaults.  Also look for file
- * DiG.env (i.e. SAVEENV) in local directory.
- */



Home | Main Index | Thread Index | Old Index