Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/bind/dist/bin Call the isc register functions n...



details:   https://anonhg.NetBSD.org/src/rev/f8b8d40f452f
branches:  trunk
changeset: 785669:f8b8d40f452f
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 24 18:44:37 2013 +0000

description:
Call the isc register functions now that we are not calling the library using
the special BIND9 compilation.

diffstat:

 external/bsd/bind/dist/bin/check/named-checkconf.c              |  3 ++-
 external/bsd/bind/dist/bin/check/named-checkzone.c              |  6 +++++-
 external/bsd/bind/dist/bin/confgen/ddns-confgen.c               |  3 ++-
 external/bsd/bind/dist/bin/confgen/rndc-confgen.c               |  3 ++-
 external/bsd/bind/dist/bin/dig/dig.c                            |  7 ++++++-
 external/bsd/bind/dist/bin/dig/host.c                           |  7 ++++++-
 external/bsd/bind/dist/bin/dig/nslookup.c                       |  6 +++++-
 external/bsd/bind/dist/bin/dnssec/dnssec-dsfromkey.c            |  3 ++-
 external/bsd/bind/dist/bin/dnssec/dnssec-keyfromlabel.c         |  3 ++-
 external/bsd/bind/dist/bin/dnssec/dnssec-keygen.c               |  3 ++-
 external/bsd/bind/dist/bin/dnssec/dnssec-revoke.c               |  3 ++-
 external/bsd/bind/dist/bin/dnssec/dnssec-settime.c              |  3 ++-
 external/bsd/bind/dist/bin/dnssec/dnssec-signzone.c             |  4 +++-
 external/bsd/bind/dist/bin/dnssec/dnssec-verify.c               |  3 ++-
 external/bsd/bind/dist/bin/named/main.c                         |  7 ++++++-
 external/bsd/bind/dist/bin/nsupdate/nsupdate.c                  |  6 +++++-
 external/bsd/bind/dist/bin/pkcs11/pkcs11-destroy.c              |  6 +++++-
 external/bsd/bind/dist/bin/pkcs11/pkcs11-keygen.c               |  6 +++++-
 external/bsd/bind/dist/bin/pkcs11/pkcs11-list.c                 |  6 +++++-
 external/bsd/bind/dist/bin/rndc/rndc.c                          |  5 ++++-
 external/bsd/bind/dist/bin/tests/adb_test.c                     |  6 +++++-
 external/bsd/bind/dist/bin/tests/backtrace_test.c               |  6 +++++-
 external/bsd/bind/dist/bin/tests/byaddr_test.c                  |  6 +++++-
 external/bsd/bind/dist/bin/tests/byname_test.c                  |  6 +++++-
 external/bsd/bind/dist/bin/tests/cfg_test.c                     |  6 +++++-
 external/bsd/bind/dist/bin/tests/compress_test.c                |  6 +++++-
 external/bsd/bind/dist/bin/tests/db_test.c                      |  6 +++++-
 external/bsd/bind/dist/bin/tests/dst/dst_test.c                 |  6 +++++-
 external/bsd/bind/dist/bin/tests/dst/gsstest.c                  |  6 +++++-
 external/bsd/bind/dist/bin/tests/entropy2_test.c                |  6 +++++-
 external/bsd/bind/dist/bin/tests/entropy_test.c                 |  6 +++++-
 external/bsd/bind/dist/bin/tests/fsaccess_test.c                |  6 +++++-
 external/bsd/bind/dist/bin/tests/gxba_test.c                    |  6 +++++-
 external/bsd/bind/dist/bin/tests/gxbn_test.c                    |  6 +++++-
 external/bsd/bind/dist/bin/tests/hash_test.c                    |  6 +++++-
 external/bsd/bind/dist/bin/tests/inter_test.c                   |  6 +++++-
 external/bsd/bind/dist/bin/tests/keyboard_test.c                |  6 +++++-
 external/bsd/bind/dist/bin/tests/lex_test.c                     |  6 +++++-
 external/bsd/bind/dist/bin/tests/lfsr_test.c                    |  6 +++++-
 external/bsd/bind/dist/bin/tests/log_test.c                     |  6 +++++-
 external/bsd/bind/dist/bin/tests/lwres_test.c                   |  6 +++++-
 external/bsd/bind/dist/bin/tests/lwresconf_test.c               |  6 +++++-
 external/bsd/bind/dist/bin/tests/master_test.c                  |  6 +++++-
 external/bsd/bind/dist/bin/tests/mempool_test.c                 |  6 +++++-
 external/bsd/bind/dist/bin/tests/name_test.c                    |  6 +++++-
 external/bsd/bind/dist/bin/tests/net/driver.c                   |  6 +++++-
 external/bsd/bind/dist/bin/tests/nsecify.c                      |  6 +++++-
 external/bsd/bind/dist/bin/tests/ratelimiter_test.c             |  6 +++++-
 external/bsd/bind/dist/bin/tests/rbt_test.c                     |  6 +++++-
 external/bsd/bind/dist/bin/tests/rdata_test.c                   |  6 +++++-
 external/bsd/bind/dist/bin/tests/rwlock_test.c                  |  6 +++++-
 external/bsd/bind/dist/bin/tests/serial_test.c                  |  6 +++++-
 external/bsd/bind/dist/bin/tests/shutdown_test.c                |  6 +++++-
 external/bsd/bind/dist/bin/tests/sig0_test.c                    |  6 +++++-
 external/bsd/bind/dist/bin/tests/sock_test.c                    |  6 +++++-
 external/bsd/bind/dist/bin/tests/sym_test.c                     |  6 +++++-
 external/bsd/bind/dist/bin/tests/system/lwresd/lwtest.c         |  6 +++++-
 external/bsd/bind/dist/bin/tests/system/rsabigexponent/bigkey.c |  6 +++++-
 external/bsd/bind/dist/bin/tests/system/tkey/keycreate.c        |  6 +++++-
 external/bsd/bind/dist/bin/tests/system/tkey/keydelete.c        |  6 +++++-
 external/bsd/bind/dist/bin/tests/task_test.c                    |  6 +++++-
 external/bsd/bind/dist/bin/tests/timer_test.c                   |  6 +++++-
 external/bsd/bind/dist/bin/tests/wire_test.c                    |  6 +++++-
 external/bsd/bind/dist/bin/tests/zone_test.c                    |  6 +++++-
 external/bsd/bind/dist/bin/tools/genrandom.c                    |  6 +++++-
 external/bsd/bind/dist/bin/tools/isc-hmac-fixup.c               |  6 +++++-
 external/bsd/bind/dist/bin/tools/named-journalprint.c           |  3 ++-
 67 files changed, 305 insertions(+), 67 deletions(-)

diffs (truncated from 1323 to 300 lines):

diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/check/named-checkconf.c
--- a/external/bsd/bind/dist/bin/check/named-checkconf.c        Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/check/named-checkconf.c        Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: named-checkconf.c,v 1.4 2012/06/05 00:38:48 christos Exp $     */
+/*     $NetBSD: named-checkconf.c,v 1.5 2013/03/24 18:44:37 christos Exp $     */
 
 /*
  * Copyright (C) 2004-2007, 2009-2011  Internet Systems Consortium, Inc. ("ISC")
@@ -433,6 +433,7 @@
        isc_boolean_t load_zones = ISC_FALSE;
        isc_boolean_t print = ISC_FALSE;
 
+       isc__mem_register();
        isc_commandline_errprint = ISC_FALSE;
 
        while ((c = isc_commandline_parse(argc, argv, "dhjt:pvz")) != EOF) {
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/check/named-checkzone.c
--- a/external/bsd/bind/dist/bin/check/named-checkzone.c        Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/check/named-checkzone.c        Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: named-checkzone.c,v 1.3 2012/06/05 00:38:50 christos Exp $     */
+/*     $NetBSD: named-checkzone.c,v 1.4 2013/03/24 18:44:37 christos Exp $     */
 
 /*
  * Copyright (C) 2004-2011  Internet Systems Consortium, Inc. ("ISC")
@@ -122,6 +122,10 @@
        FILE *errout = stdout;
        char *endp;
 
+       isc__mem_register();
+       isc__task_register();
+       isc__timer_register();
+       isc__socket_register();
        outputstyle = &dns_master_style_full;
 
        prog_name = strrchr(argv[0], '/');
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/confgen/ddns-confgen.c
--- a/external/bsd/bind/dist/bin/confgen/ddns-confgen.c Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/confgen/ddns-confgen.c Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ddns-confgen.c,v 1.4 2012/06/05 00:38:51 christos Exp $        */
+/*     $NetBSD: ddns-confgen.c,v 1.5 2013/03/24 18:44:37 christos Exp $        */
 
 /*
  * Copyright (C) 2009, 2011  Internet Systems Consortium, Inc. ("ISC")
@@ -101,6 +101,7 @@
        int len = 0;
        int ch;
 
+       isc__mem_register();
        result = isc_file_progname(*argv, program, sizeof(program));
        if (result != ISC_R_SUCCESS)
                memcpy(program, "ddns-confgen", 13);
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/confgen/rndc-confgen.c
--- a/external/bsd/bind/dist/bin/confgen/rndc-confgen.c Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/confgen/rndc-confgen.c Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rndc-confgen.c,v 1.4 2012/06/05 00:38:51 christos Exp $        */
+/*     $NetBSD: rndc-confgen.c,v 1.5 2013/03/24 18:44:37 christos Exp $        */
 
 /*
  * Copyright (C) 2004, 2005, 2007-2009, 2011  Internet Systems Consortium, Inc. ("ISC")
@@ -118,6 +118,7 @@
        isc_boolean_t keyonly = ISC_FALSE;
        int len;
 
+       isc__mem_register();
        keydef = keyfile = RNDC_KEYFILE;
 
        result = isc_file_progname(*argv, program, sizeof(program));
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/dig/dig.c
--- a/external/bsd/bind/dist/bin/dig/dig.c      Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/dig/dig.c      Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dig.c,v 1.4 2012/06/05 00:38:53 christos Exp $ */
+/*     $NetBSD: dig.c,v 1.5 2013/03/24 18:44:37 christos Exp $ */
 
 /*
  * Copyright (C) 2004-2011  Internet Systems Consortium, Inc. ("ISC")
@@ -33,6 +33,7 @@
 #include <isc/string.h>
 #include <isc/util.h>
 #include <isc/task.h>
+#include <isc/timer.h>
 
 #include <dns/byaddr.h>
 #include <dns/fixedname.h>
@@ -1822,6 +1823,10 @@
 main(int argc, char **argv) {
        isc_result_t result;
 
+       isc__mem_register();
+       isc__task_register();
+       isc__timer_register();
+       isc__socket_register();
        ISC_LIST_INIT(lookup_list);
        ISC_LIST_INIT(server_list);
        ISC_LIST_INIT(search_list);
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/dig/host.c
--- a/external/bsd/bind/dist/bin/dig/host.c     Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/dig/host.c     Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: host.c,v 1.4 2012/06/05 00:38:54 christos Exp $        */
+/*     $NetBSD: host.c,v 1.5 2013/03/24 18:44:37 christos Exp $        */
 
 /*
  * Copyright (C) 2004-2007, 2009-2011  Internet Systems Consortium, Inc. ("ISC")
@@ -44,6 +44,7 @@
 #include <isc/util.h>
 #include <isc/task.h>
 #include <isc/stdlib.h>
+#include <isc/timer.h>
 
 #include <dns/byaddr.h>
 #include <dns/fixedname.h>
@@ -859,6 +860,10 @@
 
        tries = 2;
 
+       isc__mem_register();
+       isc__task_register();
+       isc__timer_register();
+       isc__socket_register();
        ISC_LIST_INIT(lookup_list);
        ISC_LIST_INIT(server_list);
        ISC_LIST_INIT(search_list);
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/dig/nslookup.c
--- a/external/bsd/bind/dist/bin/dig/nslookup.c Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/dig/nslookup.c Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nslookup.c,v 1.5 2012/12/04 23:38:38 spz Exp $ */
+/*     $NetBSD: nslookup.c,v 1.6 2013/03/24 18:44:38 christos Exp $    */
 
 /*
  * Copyright (C) 2004-2012  Internet Systems Consortium, Inc. ("ISC")
@@ -883,6 +883,10 @@
 
        interactive = ISC_TF(isatty(0));
 
+       isc__mem_register();
+       isc__task_register();
+       isc__timer_register();
+       isc__socket_register();
        ISC_LIST_INIT(lookup_list);
        ISC_LIST_INIT(server_list);
        ISC_LIST_INIT(search_list);
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/dnssec/dnssec-dsfromkey.c
--- a/external/bsd/bind/dist/bin/dnssec/dnssec-dsfromkey.c      Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/dnssec/dnssec-dsfromkey.c      Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dnssec-dsfromkey.c,v 1.5 2012/12/04 23:38:38 spz Exp $ */
+/*     $NetBSD: dnssec-dsfromkey.c,v 1.6 2013/03/24 18:44:38 christos Exp $    */
 
 /*
  * Copyright (C) 2008-2012  Internet Systems Consortium, Inc. ("ISC")
@@ -361,6 +361,7 @@
        dns_rdataset_t  rdataset;
        dns_rdata_t     rdata;
 
+       isc__mem_register();
        dns_rdata_init(&rdata);
 
        if (argc == 1)
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/dnssec/dnssec-keyfromlabel.c
--- a/external/bsd/bind/dist/bin/dnssec/dnssec-keyfromlabel.c   Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/dnssec/dnssec-keyfromlabel.c   Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dnssec-keyfromlabel.c,v 1.8 2012/12/04 23:38:38 spz Exp $      */
+/*     $NetBSD: dnssec-keyfromlabel.c,v 1.9 2013/03/24 18:44:38 christos Exp $ */
 
 /*
  * Copyright (C) 2007-2012  Internet Systems Consortium, Inc. ("ISC")
@@ -161,6 +161,7 @@
        if (argc == 1)
                usage();
 
+       isc__mem_register();
        RUNTIME_CHECK(isc_mem_create(0, 0, &mctx) == ISC_R_SUCCESS);
 
        dns_result_register();
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/dnssec/dnssec-keygen.c
--- a/external/bsd/bind/dist/bin/dnssec/dnssec-keygen.c Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/dnssec/dnssec-keygen.c Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dnssec-keygen.c,v 1.9 2012/12/04 23:38:38 spz Exp $    */
+/*     $NetBSD: dnssec-keygen.c,v 1.10 2013/03/24 18:44:38 christos Exp $      */
 
 /*
  * Portions Copyright (C) 2004-2012  Internet Systems Consortium, Inc. ("ISC")
@@ -249,6 +249,7 @@
        isc_boolean_t   show_progress = ISC_FALSE;
        unsigned char   c;
 
+       isc__mem_register();
        if (argc == 1)
                usage();
 
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/dnssec/dnssec-revoke.c
--- a/external/bsd/bind/dist/bin/dnssec/dnssec-revoke.c Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/dnssec/dnssec-revoke.c Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dnssec-revoke.c,v 1.3 2012/06/05 00:38:56 christos Exp $       */
+/*     $NetBSD: dnssec-revoke.c,v 1.4 2013/03/24 18:44:38 christos Exp $       */
 
 /*
  * Copyright (C) 2009-2011  Internet Systems Consortium, Inc. ("ISC")
@@ -99,6 +99,7 @@
        if (argc == 1)
                usage();
 
+       isc__mem_register();
        result = isc_mem_create(0, 0, &mctx);
        if (result != ISC_R_SUCCESS)
                fatal("Out of memory");
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/dnssec/dnssec-settime.c
--- a/external/bsd/bind/dist/bin/dnssec/dnssec-settime.c        Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/dnssec/dnssec-settime.c        Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dnssec-settime.c,v 1.5 2012/12/04 23:38:38 spz Exp $   */
+/*     $NetBSD: dnssec-settime.c,v 1.6 2013/03/24 18:44:38 christos Exp $      */
 
 /*
  * Copyright (C) 2009-2012  Internet Systems Consortium, Inc. ("ISC")
@@ -158,6 +158,7 @@
        isc_boolean_t   changed = ISC_FALSE;
        isc_log_t       *log = NULL;
 
+       isc__mem_register();
        if (argc == 1)
                usage();
 
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/dnssec/dnssec-signzone.c
--- a/external/bsd/bind/dist/bin/dnssec/dnssec-signzone.c       Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/dnssec/dnssec-signzone.c       Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dnssec-signzone.c,v 1.7 2012/12/04 23:38:38 spz Exp $  */
+/*     $NetBSD: dnssec-signzone.c,v 1.8 2013/03/24 18:44:38 christos Exp $     */
 
 /*
  * Portions Copyright (C) 2004-2012  Internet Systems Consortium, Inc. ("ISC")
@@ -3006,6 +3006,8 @@
        isc_boolean_t set_iter = ISC_FALSE;
        isc_boolean_t nonsecify = ISC_FALSE;
 
+       isc__mem_register();
+       isc__task_register();
 #define CMDLINE_FLAGS \
        "3:AaCc:Dd:E:e:f:FghH:i:I:j:K:k:L:l:m:n:N:o:O:PpRr:s:ST:tuUv:X:xzZ:"
 
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/dnssec/dnssec-verify.c
--- a/external/bsd/bind/dist/bin/dnssec/dnssec-verify.c Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/dnssec/dnssec-verify.c Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dnssec-verify.c,v 1.2 2012/12/04 23:38:38 spz Exp $    */
+/*     $NetBSD: dnssec-verify.c,v 1.3 2013/03/24 18:44:38 christos Exp $       */
 
 /*
  * Copyright (C) 2012  Internet Systems Consortium, Inc. ("ISC")
@@ -166,6 +166,7 @@
        dns_rdataclass_t rdclass;
        char ch, *endp;
 
+       isc__mem_register();
 #define CMDLINE_FLAGS \
        "m:o:I:c:E:v:xz"
 
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/named/main.c
--- a/external/bsd/bind/dist/bin/named/main.c   Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/named/main.c   Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.9 2012/06/05 00:39:02 christos Exp $        */
+/*     $NetBSD: main.c,v 1.10 2013/03/24 18:44:39 christos Exp $       */
 
 /*
  * Copyright (C) 2004-2012  Internet Systems Consortium, Inc. ("ISC")
@@ -1040,6 +1040,11 @@
        char *instance = NULL;
 #endif
 
+       isc__mem_register();
+       isc__task_register();
+       isc__timer_register();
+       isc__socket_register();
+
        /*
         * Record version in core image.
         * strings named.core | grep "named version:"
diff -r c21726635b97 -r f8b8d40f452f external/bsd/bind/dist/bin/nsupdate/nsupdate.c
--- a/external/bsd/bind/dist/bin/nsupdate/nsupdate.c    Sun Mar 24 18:43:32 2013 +0000
+++ b/external/bsd/bind/dist/bin/nsupdate/nsupdate.c    Sun Mar 24 18:44:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nsupdate.c,v 1.5 2012/12/04 23:38:39 spz Exp $ */
+/*     $NetBSD: nsupdate.c,v 1.6 2013/03/24 18:44:39 christos Exp $    */
 
 /*
  * Copyright (C) 2004-2012  Internet Systems Consortium, Inc. ("ISC")
@@ -2996,6 +2996,10 @@
 
        interactive = ISC_TF(isatty(0));



Home | Main Index | Thread Index | Old Index