diff --git a/bin/confgen/util.h b/bin/confgen/util.h index 3426e70b7e..f5479438af 100644 --- a/bin/confgen/util.h +++ b/bin/confgen/util.h @@ -17,7 +17,6 @@ #include #include #include -#include #define NS_CONTROL_PORT 953 diff --git a/bin/dig/dig.c b/bin/dig/dig.c index fbcd9737d7..d8479ed407 100644 --- a/bin/dig/dig.c +++ b/bin/dig/dig.c @@ -19,9 +19,9 @@ #include #include +#include #include #include -#include #include #include #include diff --git a/bin/dnssec/dnssec-cds.c b/bin/dnssec/dnssec-cds.c index 4da36c5f9e..b58e62d78e 100644 --- a/bin/dnssec/dnssec-cds.c +++ b/bin/dnssec/dnssec-cds.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include diff --git a/bin/dnssec/dnssec-dsfromkey.c b/bin/dnssec/dnssec-dsfromkey.c index 618ab03cdc..3d60729983 100644 --- a/bin/dnssec/dnssec-dsfromkey.c +++ b/bin/dnssec/dnssec-dsfromkey.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include diff --git a/bin/dnssec/dnssec-signzone.c b/bin/dnssec/dnssec-signzone.c index d1ee147277..4329fe7f0a 100644 --- a/bin/dnssec/dnssec-signzone.c +++ b/bin/dnssec/dnssec-signzone.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include diff --git a/bin/dnssec/dnssectool.c b/bin/dnssec/dnssectool.c index 7239b5e4c7..5138a70062 100644 --- a/bin/dnssec/dnssectool.c +++ b/bin/dnssec/dnssectool.c @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include diff --git a/bin/dnssec/dnssectool.h b/bin/dnssec/dnssectool.h index 04c81c1a56..d8825f2a7a 100644 --- a/bin/dnssec/dnssectool.h +++ b/bin/dnssec/dnssectool.h @@ -17,7 +17,6 @@ #include #include -#include #include #include diff --git a/bin/named/geoip.c b/bin/named/geoip.c index f38b200505..e949d209e9 100644 --- a/bin/named/geoip.c +++ b/bin/named/geoip.c @@ -15,6 +15,7 @@ #include #endif /* if defined(HAVE_GEOIP2) */ +#include #include #include #include diff --git a/bin/named/main.c b/bin/named/main.c index a513fc61ae..4708cda535 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include @@ -122,10 +121,10 @@ #define BACKTRACE_MAXFRAME 128 #endif /* ifndef BACKTRACE_MAXFRAME */ -LIBISC_EXTERNAL_DATA extern int isc_dscp_check_value; -LIBDNS_EXTERNAL_DATA extern unsigned int dns_zone_mkey_hour; -LIBDNS_EXTERNAL_DATA extern unsigned int dns_zone_mkey_day; -LIBDNS_EXTERNAL_DATA extern unsigned int dns_zone_mkey_month; +extern int isc_dscp_check_value; +extern unsigned int dns_zone_mkey_hour; +extern unsigned int dns_zone_mkey_day; +extern unsigned int dns_zone_mkey_month; static bool want_stats = false; static char program_name[NAME_MAX] = "named"; diff --git a/bin/named/server.c b/bin/named/server.c index 10925c3c1c..7b70fe5c6b 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -39,7 +39,6 @@ #include #include #include -#include #include #include #include diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index b3f4c16dba..16be26a7fa 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include diff --git a/bin/rndc/util.h b/bin/rndc/util.h index 3426e70b7e..f5479438af 100644 --- a/bin/rndc/util.h +++ b/bin/rndc/util.h @@ -17,7 +17,6 @@ #include #include #include -#include #define NS_CONTROL_PORT 953 diff --git a/bin/tests/system/pipelined/pipequeries.c b/bin/tests/system/pipelined/pipequeries.c index 51546bf7ad..c96afd16e7 100644 --- a/bin/tests/system/pipelined/pipequeries.c +++ b/bin/tests/system/pipelined/pipequeries.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include diff --git a/bin/tests/system/rsabigexponent/bigkey.c b/bin/tests/system/rsabigexponent/bigkey.c index 5a143119bf..09ec9c75d3 100644 --- a/bin/tests/system/rsabigexponent/bigkey.c +++ b/bin/tests/system/rsabigexponent/bigkey.c @@ -14,7 +14,6 @@ #include #include -#include #include #include #include diff --git a/configure.ac b/configure.ac index 3fb21c1ea8..da41bca622 100644 --- a/configure.ac +++ b/configure.ac @@ -1620,10 +1620,6 @@ AC_CONFIG_FILES([doc/Makefile doc/man/Makefile doc/misc/Makefile]) -# Generated headers - -AC_CONFIG_FILES([lib/isc/include/isc/platform.h]) - # Unit Tests AC_CONFIG_FILES([lib/isc/tests/Makefile diff --git a/contrib/dlz/drivers/dlz_filesystem_driver.c b/contrib/dlz/drivers/dlz_filesystem_driver.c index 8ed1af1b33..76b9ca735a 100644 --- a/contrib/dlz/drivers/dlz_filesystem_driver.c +++ b/contrib/dlz/drivers/dlz_filesystem_driver.c @@ -50,7 +50,6 @@ #include #include -#include #include #include #include diff --git a/contrib/dlz/drivers/dlz_ldap_driver.c b/contrib/dlz/drivers/dlz_ldap_driver.c index ead2366805..637d8e8c97 100644 --- a/contrib/dlz/drivers/dlz_ldap_driver.c +++ b/contrib/dlz/drivers/dlz_ldap_driver.c @@ -48,7 +48,6 @@ #include #include -#include #include #include #include diff --git a/contrib/dlz/drivers/dlz_mysql_driver.c b/contrib/dlz/drivers/dlz_mysql_driver.c index 86a7f59e01..3b6d6cfa2d 100644 --- a/contrib/dlz/drivers/dlz_mysql_driver.c +++ b/contrib/dlz/drivers/dlz_mysql_driver.c @@ -48,7 +48,6 @@ #include #include -#include #include #include #include diff --git a/contrib/dlz/drivers/dlz_odbc_driver.c b/contrib/dlz/drivers/dlz_odbc_driver.c index d251721b3f..0a7cc96154 100644 --- a/contrib/dlz/drivers/dlz_odbc_driver.c +++ b/contrib/dlz/drivers/dlz_odbc_driver.c @@ -50,7 +50,6 @@ #include #include -#include #include #include #include diff --git a/contrib/dlz/drivers/dlz_postgres_driver.c b/contrib/dlz/drivers/dlz_postgres_driver.c index d5a46c5159..f67d843682 100644 --- a/contrib/dlz/drivers/dlz_postgres_driver.c +++ b/contrib/dlz/drivers/dlz_postgres_driver.c @@ -47,7 +47,6 @@ #include #include -#include #include #include #include diff --git a/fuzz/fuzz.h b/fuzz/fuzz.h index 15b2592f7c..abbce372ed 100644 --- a/fuzz/fuzz.h +++ b/fuzz/fuzz.h @@ -13,6 +13,7 @@ #include #include +#include #include #include #include diff --git a/lib/.gitignore b/lib/.gitignore index 9c93fd5f6b..c52800a76e 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -1,4 +1,3 @@ -platform.h netdb.h gen /unit-test-driver.sh diff --git a/lib/bind9/check.c b/lib/bind9/check.c index 50ed64b48e..c27de55476 100644 --- a/lib/bind9/check.c +++ b/lib/bind9/check.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -30,7 +31,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/dns/badcache.c b/lib/dns/badcache.c index aa09779b9e..cfe132caf4 100644 --- a/lib/dns/badcache.c +++ b/lib/dns/badcache.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/dns/dnssec.c b/lib/dns/dnssec.c index acba420e1f..91fa60564c 100644 --- a/lib/dns/dnssec.c +++ b/lib/dns/dnssec.c @@ -44,7 +44,7 @@ #include -LIBDNS_EXTERNAL_DATA isc_stats_t *dns_dnssec_stats; +isc_stats_t *dns_dnssec_stats; #define is_response(msg) ((msg->flags & DNS_MESSAGEFLAG_QR) != 0) diff --git a/lib/dns/dst_api.c b/lib/dns/dst_api.c index de40f929a7..a510934d25 100644 --- a/lib/dns/dst_api.c +++ b/lib/dns/dst_api.c @@ -37,7 +37,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/dns/gssapictx.c b/lib/dns/gssapictx.c index 1443ffef68..546bfa1a9d 100644 --- a/lib/dns/gssapictx.c +++ b/lib/dns/gssapictx.c @@ -40,7 +40,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/dns/include/dns/dnssec.h b/lib/dns/include/dns/dnssec.h index e74ec4798e..cd83a2a1f4 100644 --- a/lib/dns/include/dns/dnssec.h +++ b/lib/dns/include/dns/dnssec.h @@ -27,7 +27,7 @@ ISC_LANG_BEGINDECLS -LIBDNS_EXTERNAL_DATA extern isc_stats_t *dns_dnssec_stats; +extern isc_stats_t *dns_dnssec_stats; /*%< Maximum number of keys supported in a zone. */ #define DNS_MAXZONEKEYS 32 diff --git a/lib/dns/include/dns/lib.h b/lib/dns/include/dns/lib.h index f937e8551c..8ee94ec04f 100644 --- a/lib/dns/include/dns/lib.h +++ b/lib/dns/include/dns/lib.h @@ -22,7 +22,7 @@ ISC_LANG_BEGINDECLS /*% * Tuning: external query load in packets per seconds. */ -LIBDNS_EXTERNAL_DATA extern unsigned int dns_pps; +extern unsigned int dns_pps; isc_result_t dns_lib_init(void); diff --git a/lib/dns/include/dns/log.h b/lib/dns/include/dns/log.h index 5768d0930d..ceeadb0082 100644 --- a/lib/dns/include/dns/log.h +++ b/lib/dns/include/dns/log.h @@ -18,9 +18,9 @@ #include #include -LIBDNS_EXTERNAL_DATA extern isc_log_t * dns_lctx; -LIBDNS_EXTERNAL_DATA extern isc_logcategory_t dns_categories[]; -LIBDNS_EXTERNAL_DATA extern isc_logmodule_t dns_modules[]; +extern isc_log_t * dns_lctx; +extern isc_logcategory_t dns_categories[]; +extern isc_logmodule_t dns_modules[]; #define DNS_LOGCATEGORY_NOTIFY (&dns_categories[0]) #define DNS_LOGCATEGORY_DATABASE (&dns_categories[1]) diff --git a/lib/dns/include/dns/masterdump.h b/lib/dns/include/dns/masterdump.h index dbb8ec8026..a0da63b693 100644 --- a/lib/dns/include/dns/masterdump.h +++ b/lib/dns/include/dns/masterdump.h @@ -126,34 +126,32 @@ ISC_LANG_BEGINDECLS * tab stop for the TTL. The class is only printed for the first * rrset in the file and shares a tab stop with the RR type. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_default; +extern const dns_master_style_t dns_master_style_default; /*% * A master file style that dumps zones to a very generic format easily * imported/checked with external tools. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_full; +extern const dns_master_style_t dns_master_style_full; /*% * A master file style that prints explicit TTL values on each * record line, never using $TTL statements. The TTL has a tab * stop of its own, but the class and type share one. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t - dns_master_style_explicitttl; +extern const dns_master_style_t dns_master_style_explicitttl; /*% * A master style format designed for cache files. It prints explicit TTL * values on each record line and never uses $ORIGIN or relative names. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_cache; +extern const dns_master_style_t dns_master_style_cache; /*% * A master style format designed for cache files. The same as above but * this also prints expired entries. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t - dns_master_style_cache_with_expired; +extern const dns_master_style_t dns_master_style_cache_with_expired; /*% * A master style that prints name, ttl, class, type, and value on @@ -161,32 +159,32 @@ LIBDNS_EXTERNAL_DATA extern const dns_master_style_t * Intended for generating master files which can be easily parsed * by perl scripts and similar applications. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_simple; +extern const dns_master_style_t dns_master_style_simple; /*% * The style used for debugging, "dig" output, etc. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_debug; +extern const dns_master_style_t dns_master_style_debug; /*% * Similar to dns_master_style_debug but data is prepended with ";" */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_comment; +extern const dns_master_style_t dns_master_style_comment; /*% * Similar to dns_master_style_debug but data is indented with "\t" (tab) */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_indent; +extern const dns_master_style_t dns_master_style_indent; /*% * The style used for dumping "key" zones. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_keyzone; +extern const dns_master_style_t dns_master_style_keyzone; /*% * YAML-compatible output */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_yaml; +extern const dns_master_style_t dns_master_style_yaml; /*** *** Functions diff --git a/lib/dns/include/dns/name.h b/lib/dns/include/dns/name.h index bc141e2cf2..1ffafcf558 100644 --- a/lib/dns/include/dns/name.h +++ b/lib/dns/include/dns/name.h @@ -142,8 +142,8 @@ struct dns_name { #define DNS_NAME_CHECKMX 0x0010 /*%< Used by rdata. */ #define DNS_NAME_CHECKMXFAIL 0x0020 /*%< Used by rdata. */ -LIBDNS_EXTERNAL_DATA extern const dns_name_t *dns_rootname; -LIBDNS_EXTERNAL_DATA extern const dns_name_t *dns_wildcardname; +extern const dns_name_t *dns_rootname; +extern const dns_name_t *dns_wildcardname; /*%< * DNS_NAME_INITNONABSOLUTE and DNS_NAME_INITABSOLUTE are macros for diff --git a/lib/dns/include/dns/stats.h b/lib/dns/include/dns/stats.h index 25d3f0bc9e..8a2833a7f1 100644 --- a/lib/dns/include/dns/stats.h +++ b/lib/dns/include/dns/stats.h @@ -456,7 +456,7 @@ enum { /*%< * (Obsoleted) */ -LIBDNS_EXTERNAL_DATA extern const char *dns_statscounter_names[]; +extern const char *dns_statscounter_names[]; /*% * Attributes for statistics counters of RRset and Rdatatype types. diff --git a/lib/dns/include/dns/tsig.h b/lib/dns/include/dns/tsig.h index 6b82b086f1..5ee75cf15a 100644 --- a/lib/dns/include/dns/tsig.h +++ b/lib/dns/include/dns/tsig.h @@ -31,21 +31,21 @@ /* * Algorithms. */ -LIBDNS_EXTERNAL_DATA extern const dns_name_t *dns_tsig_hmacmd5_name; +extern const dns_name_t *dns_tsig_hmacmd5_name; #define DNS_TSIG_HMACMD5_NAME dns_tsig_hmacmd5_name -LIBDNS_EXTERNAL_DATA extern const dns_name_t *dns_tsig_gssapi_name; +extern const dns_name_t *dns_tsig_gssapi_name; #define DNS_TSIG_GSSAPI_NAME dns_tsig_gssapi_name -LIBDNS_EXTERNAL_DATA extern const dns_name_t *dns_tsig_gssapims_name; +extern const dns_name_t *dns_tsig_gssapims_name; #define DNS_TSIG_GSSAPIMS_NAME dns_tsig_gssapims_name -LIBDNS_EXTERNAL_DATA extern const dns_name_t *dns_tsig_hmacsha1_name; +extern const dns_name_t *dns_tsig_hmacsha1_name; #define DNS_TSIG_HMACSHA1_NAME dns_tsig_hmacsha1_name -LIBDNS_EXTERNAL_DATA extern const dns_name_t *dns_tsig_hmacsha224_name; +extern const dns_name_t *dns_tsig_hmacsha224_name; #define DNS_TSIG_HMACSHA224_NAME dns_tsig_hmacsha224_name -LIBDNS_EXTERNAL_DATA extern const dns_name_t *dns_tsig_hmacsha256_name; +extern const dns_name_t *dns_tsig_hmacsha256_name; #define DNS_TSIG_HMACSHA256_NAME dns_tsig_hmacsha256_name -LIBDNS_EXTERNAL_DATA extern const dns_name_t *dns_tsig_hmacsha384_name; +extern const dns_name_t *dns_tsig_hmacsha384_name; #define DNS_TSIG_HMACSHA384_NAME dns_tsig_hmacsha384_name -LIBDNS_EXTERNAL_DATA extern const dns_name_t *dns_tsig_hmacsha512_name; +extern const dns_name_t *dns_tsig_hmacsha512_name; #define DNS_TSIG_HMACSHA512_NAME dns_tsig_hmacsha512_name /*% diff --git a/lib/dns/include/dst/gssapi.h b/lib/dns/include/dst/gssapi.h index 8ae8168ee2..86cad0e47a 100644 --- a/lib/dns/include/dst/gssapi.h +++ b/lib/dns/include/dst/gssapi.h @@ -18,7 +18,6 @@ #include #include -#include #include #include diff --git a/lib/dns/journal.c b/lib/dns/journal.c index 36ebbd1718..567692e7a4 100644 --- a/lib/dns/journal.c +++ b/lib/dns/journal.c @@ -15,6 +15,7 @@ #include #include +#include #include #include #include diff --git a/lib/dns/lib.c b/lib/dns/lib.c index a9c52b91ab..36d0f5b7e6 100644 --- a/lib/dns/lib.c +++ b/lib/dns/lib.c @@ -31,7 +31,7 @@ *** Globals ***/ -LIBDNS_EXTERNAL_DATA unsigned int dns_pps = 0U; +unsigned int dns_pps = 0U; /*** *** Functions diff --git a/lib/dns/log.c b/lib/dns/log.c index 432f2dd967..dd8b5aa6e6 100644 --- a/lib/dns/log.c +++ b/lib/dns/log.c @@ -19,7 +19,7 @@ * When adding a new category, be sure to add the appropriate * \#define to . */ -LIBDNS_EXTERNAL_DATA isc_logcategory_t dns_categories[] = { +isc_logcategory_t dns_categories[] = { { "notify", 0 }, { "database", 0 }, { "security", 0 }, { "_placeholder", 0 }, { "dnssec", 0 }, { "resolver", 0 }, { "xfer-in", 0 }, { "xfer-out", 0 }, { "dispatch", 0 }, @@ -33,7 +33,7 @@ LIBDNS_EXTERNAL_DATA isc_logcategory_t dns_categories[] = { * When adding a new module, be sure to add the appropriate * \#define to . */ -LIBDNS_EXTERNAL_DATA isc_logmodule_t dns_modules[] = { +isc_logmodule_t dns_modules[] = { { "dns/db", 0 }, { "dns/rbtdb", 0 }, { "dns/rbt", 0 }, { "dns/rdata", 0 }, { "dns/master", 0 }, { "dns/message", 0 }, @@ -53,7 +53,7 @@ LIBDNS_EXTERNAL_DATA isc_logmodule_t dns_modules[] = { { "dns/ssu", 0 }, { NULL, 0 } }; -LIBDNS_EXTERNAL_DATA isc_log_t *dns_lctx = NULL; +isc_log_t *dns_lctx = NULL; void dns_log_init(isc_log_t *lctx) { diff --git a/lib/dns/masterdump.c b/lib/dns/masterdump.c index 31304380d4..1efeddf087 100644 --- a/lib/dns/masterdump.c +++ b/lib/dns/masterdump.c @@ -105,7 +105,7 @@ typedef struct dns_totext_ctx { dns_indent_t indent; } dns_totext_ctx_t; -LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_keyzone = { +const dns_master_style_t dns_master_style_keyzone = { DNS_STYLEFLAG_OMIT_OWNER | DNS_STYLEFLAG_OMIT_CLASS | DNS_STYLEFLAG_REL_OWNER | DNS_STYLEFLAG_REL_DATA | DNS_STYLEFLAG_OMIT_TTL | DNS_STYLEFLAG_TTL | @@ -120,7 +120,7 @@ LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_keyzone = { UINT_MAX }; -LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_default = { +const dns_master_style_t dns_master_style_default = { DNS_STYLEFLAG_OMIT_OWNER | DNS_STYLEFLAG_OMIT_CLASS | DNS_STYLEFLAG_REL_OWNER | DNS_STYLEFLAG_REL_DATA | DNS_STYLEFLAG_OMIT_TTL | DNS_STYLEFLAG_TTL | @@ -135,7 +135,7 @@ LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_default = { UINT_MAX }; -LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_full = { +const dns_master_style_t dns_master_style_full = { DNS_STYLEFLAG_COMMENT | DNS_STYLEFLAG_RESIGN, 46, 46, @@ -146,7 +146,7 @@ LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_full = { UINT_MAX }; -LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_explicitttl = { +const dns_master_style_t dns_master_style_explicitttl = { DNS_STYLEFLAG_OMIT_OWNER | DNS_STYLEFLAG_OMIT_CLASS | DNS_STYLEFLAG_REL_OWNER | DNS_STYLEFLAG_REL_DATA | DNS_STYLEFLAG_COMMENT | DNS_STYLEFLAG_RRCOMMENT | @@ -160,7 +160,7 @@ LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_explicitttl = { UINT_MAX }; -LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_cache = { +const dns_master_style_t dns_master_style_cache = { DNS_STYLEFLAG_OMIT_OWNER | DNS_STYLEFLAG_OMIT_CLASS | DNS_STYLEFLAG_MULTILINE | DNS_STYLEFLAG_RRCOMMENT | DNS_STYLEFLAG_TRUST | DNS_STYLEFLAG_NCACHE, @@ -173,36 +173,34 @@ LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_cache = { UINT_MAX }; -LIBDNS_EXTERNAL_DATA const dns_master_style_t - dns_master_style_cache_with_expired = { - DNS_STYLEFLAG_OMIT_OWNER | DNS_STYLEFLAG_OMIT_CLASS | - DNS_STYLEFLAG_MULTILINE | DNS_STYLEFLAG_RRCOMMENT | - DNS_STYLEFLAG_TRUST | DNS_STYLEFLAG_NCACHE | - DNS_STYLEFLAG_EXPIRED, - 24, - 32, - 32, - 40, - 80, - 8, - UINT_MAX - }; - -LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_simple = { - 0, 24, 32, 32, 40, 80, 8, UINT_MAX +const dns_master_style_t dns_master_style_cache_with_expired = { + DNS_STYLEFLAG_OMIT_OWNER | DNS_STYLEFLAG_OMIT_CLASS | + DNS_STYLEFLAG_MULTILINE | DNS_STYLEFLAG_RRCOMMENT | + DNS_STYLEFLAG_TRUST | DNS_STYLEFLAG_NCACHE | + DNS_STYLEFLAG_EXPIRED, + 24, + 32, + 32, + 40, + 80, + 8, + UINT_MAX }; +const dns_master_style_t dns_master_style_simple = { 0, 24, 32, 32, + 40, 80, 8, UINT_MAX }; + /*% * A style suitable for dns_rdataset_totext(). */ -LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_debug = { +const dns_master_style_t dns_master_style_debug = { DNS_STYLEFLAG_REL_OWNER, 24, 32, 40, 48, 80, 8, UINT_MAX }; /*% * Similar, but indented (i.e., prepended with indentctx.string). */ -LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_indent = { +const dns_master_style_t dns_master_style_indent = { DNS_STYLEFLAG_REL_OWNER | DNS_STYLEFLAG_INDENT, 24, 32, @@ -216,7 +214,7 @@ LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_indent = { /*% * Similar, but with each line commented out. */ -LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_comment = { +const dns_master_style_t dns_master_style_comment = { DNS_STYLEFLAG_REL_OWNER | DNS_STYLEFLAG_MULTILINE | DNS_STYLEFLAG_RRCOMMENT | DNS_STYLEFLAG_COMMENTDATA, 24, @@ -231,7 +229,7 @@ LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_comment = { /*% * YAML style */ -LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_yaml = { +const dns_master_style_t dns_master_style_yaml = { DNS_STYLEFLAG_YAML | DNS_STYLEFLAG_REL_OWNER | DNS_STYLEFLAG_INDENT, 24, 32, diff --git a/lib/dns/name.c b/lib/dns/name.c index 8400bcb20a..f3333ba38e 100644 --- a/lib/dns/name.c +++ b/lib/dns/name.c @@ -135,7 +135,7 @@ static unsigned char root_ndata[] = { "" }; static unsigned char root_offsets[] = { 0 }; static dns_name_t root = DNS_NAME_INITABSOLUTE(root_ndata, root_offsets); -LIBDNS_EXTERNAL_DATA const dns_name_t *dns_rootname = &root; +const dns_name_t *dns_rootname = &root; static unsigned char wild_ndata[] = { "\001*" }; static unsigned char wild_offsets[] = { 0 }; @@ -143,7 +143,7 @@ static unsigned char wild_offsets[] = { 0 }; static dns_name_t const wild = DNS_NAME_INITNONABSOLUTE(wild_ndata, wild_offsets); -LIBDNS_EXTERNAL_DATA const dns_name_t *dns_wildcardname = &wild; +const dns_name_t *dns_wildcardname = &wild; /* * dns_name_t to text post-conversion procedure. diff --git a/lib/dns/openssl_link.c b/lib/dns/openssl_link.c index 1060fcc4ff..e6f8a5a409 100644 --- a/lib/dns/openssl_link.c +++ b/lib/dns/openssl_link.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/dns/rbt.c b/lib/dns/rbt.c index a05fcd8609..4cfc1769af 100644 --- a/lib/dns/rbt.c +++ b/lib/dns/rbt.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index d8a8fcb8e3..ad93de8d3a 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index edb09e39d3..9772ae2628 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/dns/stats.c b/lib/dns/stats.c index 011889e77a..702b690b83 100644 --- a/lib/dns/stats.c +++ b/lib/dns/stats.c @@ -604,7 +604,7 @@ dns_rcodestats_dump(dns_stats_t *stats, dns_rcodestats_dumper_t dump_fn, /*** *** Obsolete variables and functions follow: ***/ -LIBDNS_EXTERNAL_DATA const char *dns_statscounter_names[DNS_STATS_NCOUNTERS] = { +const char *dns_statscounter_names[DNS_STATS_NCOUNTERS] = { "success", "referral", "nxrrset", "nxdomain", "recursion", "failure", "duplicate", "dropped" }; diff --git a/lib/dns/tests/geoip_test.c b/lib/dns/tests/geoip_test.c index b7020ccc1d..810f8378a6 100644 --- a/lib/dns/tests/geoip_test.c +++ b/lib/dns/tests/geoip_test.c @@ -24,6 +24,7 @@ #include #include +#include #include #include #include diff --git a/lib/dns/tsig.c b/lib/dns/tsig.c index 1a6c729b1b..9d466c7779 100644 --- a/lib/dns/tsig.c +++ b/lib/dns/tsig.c @@ -58,13 +58,13 @@ static unsigned char hmacmd5_offsets[] = { 0, 9, 17, 21, 25 }; static dns_name_t const hmacmd5 = DNS_NAME_INITABSOLUTE(hmacmd5_ndata, hmacmd5_offsets); -LIBDNS_EXTERNAL_DATA const dns_name_t *dns_tsig_hmacmd5_name = &hmacmd5; +const dns_name_t *dns_tsig_hmacmd5_name = &hmacmd5; static unsigned char gsstsig_ndata[] = "\010gss-tsig"; static unsigned char gsstsig_offsets[] = { 0, 9 }; static dns_name_t const gsstsig = DNS_NAME_INITABSOLUTE(gsstsig_ndata, gsstsig_offsets); -LIBDNS_EXTERNAL_DATA const dns_name_t *dns_tsig_gssapi_name = &gsstsig; +const dns_name_t *dns_tsig_gssapi_name = &gsstsig; /* * Since Microsoft doesn't follow its own standard, we will use this @@ -74,37 +74,37 @@ static unsigned char gsstsigms_ndata[] = "\003gss\011microsoft\003com"; static unsigned char gsstsigms_offsets[] = { 0, 4, 14, 18 }; static dns_name_t const gsstsigms = DNS_NAME_INITABSOLUTE(gsstsigms_ndata, gsstsigms_offsets); -LIBDNS_EXTERNAL_DATA const dns_name_t *dns_tsig_gssapims_name = &gsstsigms; +const dns_name_t *dns_tsig_gssapims_name = &gsstsigms; static unsigned char hmacsha1_ndata[] = "\011hmac-sha1"; static unsigned char hmacsha1_offsets[] = { 0, 10 }; static dns_name_t const hmacsha1 = DNS_NAME_INITABSOLUTE(hmacsha1_ndata, hmacsha1_offsets); -LIBDNS_EXTERNAL_DATA const dns_name_t *dns_tsig_hmacsha1_name = &hmacsha1; +const dns_name_t *dns_tsig_hmacsha1_name = &hmacsha1; static unsigned char hmacsha224_ndata[] = "\013hmac-sha224"; static unsigned char hmacsha224_offsets[] = { 0, 12 }; static dns_name_t const hmacsha224 = DNS_NAME_INITABSOLUTE(hmacsha224_ndata, hmacsha224_offsets); -LIBDNS_EXTERNAL_DATA const dns_name_t *dns_tsig_hmacsha224_name = &hmacsha224; +const dns_name_t *dns_tsig_hmacsha224_name = &hmacsha224; static unsigned char hmacsha256_ndata[] = "\013hmac-sha256"; static unsigned char hmacsha256_offsets[] = { 0, 12 }; static dns_name_t const hmacsha256 = DNS_NAME_INITABSOLUTE(hmacsha256_ndata, hmacsha256_offsets); -LIBDNS_EXTERNAL_DATA const dns_name_t *dns_tsig_hmacsha256_name = &hmacsha256; +const dns_name_t *dns_tsig_hmacsha256_name = &hmacsha256; static unsigned char hmacsha384_ndata[] = "\013hmac-sha384"; static unsigned char hmacsha384_offsets[] = { 0, 12 }; static dns_name_t const hmacsha384 = DNS_NAME_INITABSOLUTE(hmacsha384_ndata, hmacsha384_offsets); -LIBDNS_EXTERNAL_DATA const dns_name_t *dns_tsig_hmacsha384_name = &hmacsha384; +const dns_name_t *dns_tsig_hmacsha384_name = &hmacsha384; static unsigned char hmacsha512_ndata[] = "\013hmac-sha512"; static unsigned char hmacsha512_offsets[] = { 0, 12 }; static dns_name_t const hmacsha512 = DNS_NAME_INITABSOLUTE(hmacsha512_ndata, hmacsha512_offsets); -LIBDNS_EXTERNAL_DATA const dns_name_t *dns_tsig_hmacsha512_name = &hmacsha512; +const dns_name_t *dns_tsig_hmacsha512_name = &hmacsha512; static const struct { const dns_name_t *name; diff --git a/lib/dns/update.c b/lib/dns/update.c index 71ef7dde46..5f1212b16b 100644 --- a/lib/dns/update.c +++ b/lib/dns/update.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/dns/view.c b/lib/dns/view.c index dacb875a53..5de3108d45 100644 --- a/lib/dns/view.c +++ b/lib/dns/view.c @@ -20,6 +20,7 @@ #endif /* ifdef HAVE_LMDB */ #include +#include #include #include #include diff --git a/lib/dns/zone.c b/lib/dns/zone.c index bbd2da00fd..70528f448b 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -837,9 +837,9 @@ struct dns_include { #define HOUR 3600 #define DAY (24 * HOUR) #define MONTH (30 * DAY) -LIBDNS_EXTERNAL_DATA unsigned int dns_zone_mkey_hour = HOUR; -LIBDNS_EXTERNAL_DATA unsigned int dns_zone_mkey_day = DAY; -LIBDNS_EXTERNAL_DATA unsigned int dns_zone_mkey_month = MONTH; +unsigned int dns_zone_mkey_hour = HOUR; +unsigned int dns_zone_mkey_day = DAY; +unsigned int dns_zone_mkey_month = MONTH; #define SEND_BUFFER_SIZE 2048 diff --git a/lib/isc/Makefile.am b/lib/isc/Makefile.am index 0689d351c3..cb57424bdf 100644 --- a/lib/isc/Makefile.am +++ b/lib/isc/Makefile.am @@ -66,7 +66,6 @@ libisc_la_HEADERS = \ include/isc/once.h \ include/isc/os.h \ include/isc/parseint.h \ - include/isc/platform.h \ include/isc/pool.h \ include/isc/portset.h \ include/isc/print.h \ diff --git a/lib/isc/aes.c b/lib/isc/aes.c index 2ad036184f..20067d6fa1 100644 --- a/lib/isc/aes.c +++ b/lib/isc/aes.c @@ -16,7 +16,6 @@ #include #include -#include #include #include #include diff --git a/lib/isc/app.c b/lib/isc/app.c index 50353705b2..1efadd0241 100644 --- a/lib/isc/app.c +++ b/lib/isc/app.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/isc/assertions.c b/lib/isc/assertions.c index 0e89835a4d..b7cad929e2 100644 --- a/lib/isc/assertions.c +++ b/lib/isc/assertions.c @@ -16,7 +16,6 @@ #include #include -#include #include #include #include diff --git a/lib/isc/backtrace.c b/lib/isc/backtrace.c index 4fc3200bb0..d64950100b 100644 --- a/lib/isc/backtrace.c +++ b/lib/isc/backtrace.c @@ -18,7 +18,6 @@ #endif /* HAVE_BACKTRACE_SYMBOLS */ #include -#include #include #include #include diff --git a/lib/isc/bind9.c b/lib/isc/bind9.c index 1ab9d3e8b6..9b7bdfacda 100644 --- a/lib/isc/bind9.c +++ b/lib/isc/bind9.c @@ -22,4 +22,4 @@ * clients will run isc_lib_register(), which sets it to false, * overriding certain BIND9 behaviors. */ -LIBISC_EXTERNAL_DATA bool isc_bind9 = true; +bool isc_bind9 = true; diff --git a/lib/isc/commandline.c b/lib/isc/commandline.c index 037552d8bd..c99ccd12a7 100644 --- a/lib/isc/commandline.c +++ b/lib/isc/commandline.c @@ -56,17 +56,17 @@ #include /*% Index into parent argv vector. */ -LIBISC_EXTERNAL_DATA int isc_commandline_index = 1; +int isc_commandline_index = 1; /*% Character checked for validity. */ -LIBISC_EXTERNAL_DATA int isc_commandline_option; +int isc_commandline_option; /*% Argument associated with option. */ -LIBISC_EXTERNAL_DATA char *isc_commandline_argument; +char *isc_commandline_argument; /*% For printing error messages. */ -LIBISC_EXTERNAL_DATA char *isc_commandline_progname; +char *isc_commandline_progname; /*% Print error messages. */ -LIBISC_EXTERNAL_DATA bool isc_commandline_errprint = true; +bool isc_commandline_errprint = true; /*% Reset processing. */ -LIBISC_EXTERNAL_DATA bool isc_commandline_reset = true; +bool isc_commandline_reset = true; static char endopt = '\0'; diff --git a/lib/isc/errno2result.c b/lib/isc/errno2result.c index b7866f4b5c..623ac6dbe9 100644 --- a/lib/isc/errno2result.c +++ b/lib/isc/errno2result.c @@ -14,7 +14,6 @@ #include "errno2result.h" #include -#include #include #include #include diff --git a/lib/isc/file.c b/lib/isc/file.c index b3cf45534c..e68076f189 100644 --- a/lib/isc/file.c +++ b/lib/isc/file.c @@ -60,7 +60,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/isc/hmac.c b/lib/isc/hmac.c index c300a306cb..b3940de52f 100644 --- a/lib/isc/hmac.c +++ b/lib/isc/hmac.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/isc/include/isc/aes.h b/lib/isc/include/isc/aes.h index 42b6ab12e1..b8dbcb848f 100644 --- a/lib/isc/include/isc/aes.h +++ b/lib/isc/include/isc/aes.h @@ -15,7 +15,6 @@ #define ISC_AES_H 1 #include -#include #include #define ISC_AES128_KEYLENGTH 16U diff --git a/lib/isc/include/isc/assertions.h b/lib/isc/include/isc/assertions.h index 8afac643b2..5de20ce06c 100644 --- a/lib/isc/include/isc/assertions.h +++ b/lib/isc/include/isc/assertions.h @@ -17,7 +17,6 @@ #include #include #include -#include ISC_LANG_BEGINDECLS diff --git a/lib/isc/include/isc/bind9.h b/lib/isc/include/isc/bind9.h index 85c60e7c70..be5a7df3a1 100644 --- a/lib/isc/include/isc/bind9.h +++ b/lib/isc/include/isc/bind9.h @@ -14,14 +14,12 @@ #include -#include - /* * This determines whether we are using the libisc/libdns libraries * in BIND9 or in some other application. For BIND9 (named and related * tools) it must be set to true at runtime. Export library clients * will call isc_lib_register(), which will set it to false. */ -LIBISC_EXTERNAL_DATA extern bool isc_bind9; +extern bool isc_bind9; #endif /* ISC_BIND9_H */ diff --git a/lib/isc/include/isc/commandline.h b/lib/isc/include/isc/commandline.h index d9790c254c..778cb7aa20 100644 --- a/lib/isc/include/isc/commandline.h +++ b/lib/isc/include/isc/commandline.h @@ -17,21 +17,20 @@ #include #include -#include #include /*% Index into parent argv vector. */ -LIBISC_EXTERNAL_DATA extern int isc_commandline_index; +extern int isc_commandline_index; /*% Character checked for validity. */ -LIBISC_EXTERNAL_DATA extern int isc_commandline_option; +extern int isc_commandline_option; /*% Argument associated with option. */ -LIBISC_EXTERNAL_DATA extern char *isc_commandline_argument; +extern char *isc_commandline_argument; /*% For printing error messages. */ -LIBISC_EXTERNAL_DATA extern char *isc_commandline_progname; +extern char *isc_commandline_progname; /*% Print error message. */ -LIBISC_EXTERNAL_DATA extern bool isc_commandline_errprint; +extern bool isc_commandline_errprint; /*% Reset getopt. */ -LIBISC_EXTERNAL_DATA extern bool isc_commandline_reset; +extern bool isc_commandline_reset; ISC_LANG_BEGINDECLS diff --git a/lib/isc/include/isc/dir.h b/lib/isc/include/isc/dir.h index f42ebe6959..2b3bf34fc2 100644 --- a/lib/isc/include/isc/dir.h +++ b/lib/isc/include/isc/dir.h @@ -9,19 +9,26 @@ * information regarding copyright ownership. */ -#ifndef ISC_DIR_H -#define ISC_DIR_H 1 +#pragma once /*! \file */ #include +#include #include -#include #include #include /* Required on some systems. */ +#ifndef NAME_MAX +#define NAME_MAX 256 +#endif + +#ifndef PATH_MAX +#define PATH_MAX 1024 +#endif + /*% Directory Entry */ typedef struct isc_direntry { char name[NAME_MAX]; @@ -69,5 +76,3 @@ isc_dir_createunique(char *templet); */ ISC_LANG_ENDDECLS - -#endif /* ISC_DIR_H */ diff --git a/lib/isc/include/isc/error.h b/lib/isc/include/isc/error.h index 775a8dde8c..218b3c2ca3 100644 --- a/lib/isc/include/isc/error.h +++ b/lib/isc/include/isc/error.h @@ -20,7 +20,6 @@ #include #include #include -#include ISC_LANG_BEGINDECLS diff --git a/lib/isc/include/isc/hmac.h b/lib/isc/include/isc/hmac.h index f41b07d6bc..ce1660d59f 100644 --- a/lib/isc/include/isc/hmac.h +++ b/lib/isc/include/isc/hmac.h @@ -18,7 +18,6 @@ #include #include -#include #include #include diff --git a/lib/isc/include/isc/log.h b/lib/isc/include/isc/log.h index 04f4771517..1f9e627570 100644 --- a/lib/isc/include/isc/log.h +++ b/lib/isc/include/isc/log.h @@ -21,7 +21,6 @@ #include #include -#include #include /*@{*/ @@ -159,9 +158,9 @@ typedef union isc_logdestination { * definitions with indexes into its isc_logcategory structure corresponding to * the order of the names. */ -LIBISC_EXTERNAL_DATA extern isc_logcategory_t isc_categories[]; -LIBISC_EXTERNAL_DATA extern isc_log_t * isc_lctx; -LIBISC_EXTERNAL_DATA extern isc_logmodule_t isc_modules[]; +extern isc_logcategory_t isc_categories[]; +extern isc_log_t * isc_lctx; +extern isc_logmodule_t isc_modules[]; /*@}*/ /*@{*/ diff --git a/lib/isc/include/isc/md.h b/lib/isc/include/isc/md.h index 163484fbae..3585a23128 100644 --- a/lib/isc/include/isc/md.h +++ b/lib/isc/include/isc/md.h @@ -17,7 +17,6 @@ #pragma once #include -#include #include #include diff --git a/lib/isc/include/isc/mem.h b/lib/isc/include/isc/mem.h index a8a5c5dcd3..85973a755a 100644 --- a/lib/isc/include/isc/mem.h +++ b/lib/isc/include/isc/mem.h @@ -20,7 +20,6 @@ #include #include #include -#include #include ISC_LANG_BEGINDECLS @@ -37,8 +36,8 @@ typedef void (*isc_mem_water_t)(void *, int); #define ISC_MEM_TRACKLINES 0 #endif /* ifndef ISC_MEM_TRACKLINES */ -LIBISC_EXTERNAL_DATA extern unsigned int isc_mem_debugging; -LIBISC_EXTERNAL_DATA extern unsigned int isc_mem_defaultflags; +extern unsigned int isc_mem_debugging; +extern unsigned int isc_mem_defaultflags; /*@{*/ #define ISC_MEM_DEBUGTRACE 0x00000001U diff --git a/lib/isc/include/isc/net.h b/lib/isc/include/isc/net.h index 96bedf632d..ec910e9d0c 100644 --- a/lib/isc/include/isc/net.h +++ b/lib/isc/include/isc/net.h @@ -67,7 +67,6 @@ #include #include -#include #include #include /* Contractual promise. */ diff --git a/lib/isc/include/isc/once.h b/lib/isc/include/isc/once.h index 3f9fe73a77..6bfa5cc1dc 100644 --- a/lib/isc/include/isc/once.h +++ b/lib/isc/include/isc/once.h @@ -16,7 +16,6 @@ #include -#include #include typedef pthread_once_t isc_once_t; diff --git a/lib/isc/include/isc/platform.h.in b/lib/isc/include/isc/platform.h.in deleted file mode 100644 index a63765c632..0000000000 --- a/lib/isc/include/isc/platform.h.in +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, you can obtain one at https://mozilla.org/MPL/2.0/. - * - * See the COPYRIGHT file distributed with this work for additional - * information regarding copyright ownership. - */ - -#ifndef ISC_PLATFORM_H -#define ISC_PLATFORM_H 1 - -/*! \file */ - -/***** - ***** Platform-dependent defines. - *****/ - -/*** - *** Default strerror_r buffer size - ***/ - -#define ISC_STRERRORSIZE 128 - -/*** - *** System limitations - ***/ - -#include - -#ifndef NAME_MAX -#define NAME_MAX 256 -#endif - -#ifndef PATH_MAX -#define PATH_MAX 1024 -#endif - -#ifndef IOV_MAX -#define IOV_MAX 1024 -#endif - -/*** - *** Miscellaneous. - ***/ - -/*** - *** Windows dll support. - ***/ - -#define LIBISC_EXTERNAL_DATA -#define LIBDNS_EXTERNAL_DATA -#define LIBISCCC_EXTERNAL_DATA -#define LIBISCCFG_EXTERNAL_DATA -#define LIBNS_EXTERNAL_DATA -#define LIBBIND9_EXTERNAL_DATA -#define LIBTESTS_EXTERNAL_DATA - -/* - * Tell emacs to use C mode for this file. - * - * Local Variables: - * mode: c - * End: - */ - -#endif /* ISC_PLATFORM_H */ diff --git a/lib/isc/include/isc/print.h b/lib/isc/include/isc/print.h index 96bdcd6353..73993c0ad4 100644 --- a/lib/isc/include/isc/print.h +++ b/lib/isc/include/isc/print.h @@ -20,7 +20,6 @@ #include /* Required for ISC_FORMAT_PRINTF() macro. */ #include -#include /*** *** Functions diff --git a/lib/isc/include/isc/refcount.h b/lib/isc/include/isc/refcount.h index 26f962b283..043ee4d0a4 100644 --- a/lib/isc/include/isc/refcount.h +++ b/lib/isc/include/isc/refcount.h @@ -18,7 +18,6 @@ #include #include #include -#include #include /*! \file isc/refcount.h diff --git a/lib/isc/include/isc/rwlock.h b/lib/isc/include/isc/rwlock.h index cbcb2dfb46..82f415a24d 100644 --- a/lib/isc/include/isc/rwlock.h +++ b/lib/isc/include/isc/rwlock.h @@ -19,7 +19,6 @@ #include #include #include -#include #include ISC_LANG_BEGINDECLS diff --git a/lib/isc/include/isc/siphash.h b/lib/isc/include/isc/siphash.h index 10957a9fdd..ff94057264 100644 --- a/lib/isc/include/isc/siphash.h +++ b/lib/isc/include/isc/siphash.h @@ -14,7 +14,6 @@ #pragma once #include -#include #include #define ISC_SIPHASH24_KEY_LENGTH 128 / 8 diff --git a/lib/isc/include/isc/strerr.h b/lib/isc/include/isc/strerr.h index eebba51014..f2895986c2 100644 --- a/lib/isc/include/isc/strerr.h +++ b/lib/isc/include/isc/strerr.h @@ -15,6 +15,12 @@ #include +/*** + *** Default strerror_r buffer size + ***/ + +#define ISC_STRERRORSIZE 128 + #if defined(strerror_r) #undef strerror_r #endif /* if defined(strerror_r) */ diff --git a/lib/isc/include/isc/string.h b/lib/isc/include/isc/string.h index 2c187ff38a..7f67ad2ef7 100644 --- a/lib/isc/include/isc/string.h +++ b/lib/isc/include/isc/string.h @@ -15,8 +15,7 @@ #include -#include "isc/lang.h" -#include "isc/platform.h" +#include ISC_LANG_BEGINDECLS diff --git a/lib/isc/include/pk11/pk11.h b/lib/isc/include/pk11/pk11.h index 66798c2c52..3a2b6ac2a3 100644 --- a/lib/isc/include/pk11/pk11.h +++ b/lib/isc/include/pk11/pk11.h @@ -68,7 +68,7 @@ typedef enum { /*% * Global flag to make choose_slots() verbose */ -LIBISC_EXTERNAL_DATA extern bool pk11_verbose_init; +extern bool pk11_verbose_init; /*% * Function prototypes diff --git a/lib/isc/log.c b/lib/isc/log.c index 9b225c7e80..8f48f4718d 100644 --- a/lib/isc/log.c +++ b/lib/isc/log.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -178,21 +177,19 @@ static const int syslog_map[] = { LOG_DEBUG, LOG_INFO, LOG_NOTICE, * be overridden. Since the default is always looked up as the first * channellist in the log context, it must come first in isc_categories[]. */ -LIBISC_EXTERNAL_DATA isc_logcategory_t isc_categories[] = { { "default", - 0 }, /* "default - must come - first. */ - { "general", 0 }, - { NULL, 0 } }; +isc_logcategory_t isc_categories[] = { { "default", 0 }, /* "default + must come + first. */ + { "general", 0 }, + { NULL, 0 } }; /*! - * See above comment for categories on LIBISC_EXTERNAL_DATA, and apply it to - * modules. + * See above comment for categories, and apply it to modules. */ -LIBISC_EXTERNAL_DATA isc_logmodule_t isc_modules[] = { - { "socket", 0 }, { "time", 0 }, { "interface", 0 }, { "timer", 0 }, - { "file", 0 }, { "netmgr", 0 }, { "other", 0 }, { NULL, 0 } -}; +isc_logmodule_t isc_modules[] = { { "socket", 0 }, { "time", 0 }, + { "interface", 0 }, { "timer", 0 }, + { "file", 0 }, { "netmgr", 0 }, + { "other", 0 }, { NULL, 0 } }; /*! * This essentially constant structure must be filled in at run time, @@ -204,7 +201,7 @@ static isc_logchannellist_t default_channel; /*! * libisc logs to this context. */ -LIBISC_EXTERNAL_DATA isc_log_t *isc_lctx = NULL; +isc_log_t *isc_lctx = NULL; /*! * Forward declarations. diff --git a/lib/isc/mem.c b/lib/isc/mem.c index d129809fa7..54d5411ef8 100644 --- a/lib/isc/mem.c +++ b/lib/isc/mem.c @@ -58,8 +58,8 @@ #ifndef ISC_MEM_DEBUGGING #define ISC_MEM_DEBUGGING 0 #endif /* ifndef ISC_MEM_DEBUGGING */ -LIBISC_EXTERNAL_DATA unsigned int isc_mem_debugging = ISC_MEM_DEBUGGING; -LIBISC_EXTERNAL_DATA unsigned int isc_mem_defaultflags = ISC_MEMFLAG_DEFAULT; +unsigned int isc_mem_debugging = ISC_MEM_DEBUGGING; +unsigned int isc_mem_defaultflags = ISC_MEMFLAG_DEFAULT; /* * Constants. diff --git a/lib/isc/pk11.c b/lib/isc/pk11.c index fba342b13c..5052406a6d 100644 --- a/lib/isc/pk11.c +++ b/lib/isc/pk11.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include @@ -42,7 +41,7 @@ #define PK11_NO_LOGERR 1 #endif /* ifndef PK11_NO_LOGERR */ -LIBISC_EXTERNAL_DATA bool pk11_verbose_init = false; +bool pk11_verbose_init = false; static isc_once_t once = ISC_ONCE_INIT; static isc_mem_t *pk11_mctx = NULL; diff --git a/lib/isc/random.c b/lib/isc/random.c index 7975d8581e..47c1f28cfd 100644 --- a/lib/isc/random.c +++ b/lib/isc/random.c @@ -34,7 +34,6 @@ #include #include -#include #include #include #include diff --git a/lib/isc/resource.c b/lib/isc/resource.c index 71143b7702..73145d14dc 100644 --- a/lib/isc/resource.c +++ b/lib/isc/resource.c @@ -15,7 +15,6 @@ #include /* Required on some systems for . */ #include -#include #include #include #include diff --git a/lib/isc/rwlock.c b/lib/isc/rwlock.c index 3441ce5c14..7984a63042 100644 --- a/lib/isc/rwlock.c +++ b/lib/isc/rwlock.c @@ -21,7 +21,6 @@ #include #include -#include #include #include #include diff --git a/lib/isc/socket.c b/lib/isc/socket.c index b086a07d8a..4b22d07fad 100644 --- a/lib/isc/socket.c +++ b/lib/isc/socket.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/isc/stats.c b/lib/isc/stats.c index 6df4af6952..ab599b18af 100644 --- a/lib/isc/stats.c +++ b/lib/isc/stats.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/isc/task.c b/lib/isc/task.c index 6cb7f7f0ea..2cfe953b33 100644 --- a/lib/isc/task.c +++ b/lib/isc/task.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/isc/tests/aes_test.c b/lib/isc/tests/aes_test.c index 919c572786..1f3d18f567 100644 --- a/lib/isc/tests/aes_test.c +++ b/lib/isc/tests/aes_test.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/isc/tests/socket_test.c b/lib/isc/tests/socket_test.c index 28a436b7d2..285e3c86ab 100644 --- a/lib/isc/tests/socket_test.c +++ b/lib/isc/tests/socket_test.c @@ -26,7 +26,6 @@ #include #include -#include #include #include #include diff --git a/lib/isc/tests/task_test.c b/lib/isc/tests/task_test.c index 5786997147..2be810d179 100644 --- a/lib/isc/tests/task_test.c +++ b/lib/isc/tests/task_test.c @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/isc/tests/timer_test.c b/lib/isc/tests/timer_test.c index dc1223e318..717732010e 100644 --- a/lib/isc/tests/timer_test.c +++ b/lib/isc/tests/timer_test.c @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/isc/time.c b/lib/isc/time.c index 9ef93879d6..727b399271 100644 --- a/lib/isc/time.c +++ b/lib/isc/time.c @@ -21,7 +21,6 @@ #include #include -#include #include #include #include diff --git a/lib/isc/timer.c b/lib/isc/timer.c index eb8a17cfc0..27025bf76f 100644 --- a/lib/isc/timer.c +++ b/lib/isc/timer.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/isccfg/dnsconf.c b/lib/isccfg/dnsconf.c index a9010e375b..6ffaabf4ed 100644 --- a/lib/isccfg/dnsconf.c +++ b/lib/isccfg/dnsconf.c @@ -50,7 +50,6 @@ static cfg_clausedef_t dnsconf_clauses[] = { static cfg_clausedef_t *dnsconf_clausesets[] = { dnsconf_clauses, NULL }; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_dnsconf = { - "dnsconf", cfg_parse_mapbody, cfg_print_mapbody, - cfg_doc_mapbody, &cfg_rep_map, dnsconf_clausesets -}; +cfg_type_t cfg_type_dnsconf = { "dnsconf", cfg_parse_mapbody, + cfg_print_mapbody, cfg_doc_mapbody, + &cfg_rep_map, dnsconf_clausesets }; diff --git a/lib/isccfg/include/isccfg/grammar.h b/lib/isccfg/include/isccfg/grammar.h index 45513d0e46..e68d8289aa 100644 --- a/lib/isccfg/include/isccfg/grammar.h +++ b/lib/isccfg/include/isccfg/grammar.h @@ -296,51 +296,51 @@ struct cfg_parser { /*% * Predefined data representation types. */ -LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_uint32; -LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_uint64; -LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_string; -LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_boolean; -LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_map; -LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_list; -LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_tuple; -LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_sockaddr; -LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_netprefix; -LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_void; -LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_fixedpoint; -LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_percentage; -LIBISCCFG_EXTERNAL_DATA extern cfg_rep_t cfg_rep_duration; +extern cfg_rep_t cfg_rep_uint32; +extern cfg_rep_t cfg_rep_uint64; +extern cfg_rep_t cfg_rep_string; +extern cfg_rep_t cfg_rep_boolean; +extern cfg_rep_t cfg_rep_map; +extern cfg_rep_t cfg_rep_list; +extern cfg_rep_t cfg_rep_tuple; +extern cfg_rep_t cfg_rep_sockaddr; +extern cfg_rep_t cfg_rep_netprefix; +extern cfg_rep_t cfg_rep_void; +extern cfg_rep_t cfg_rep_fixedpoint; +extern cfg_rep_t cfg_rep_percentage; +extern cfg_rep_t cfg_rep_duration; /*@}*/ /*@{*/ /*% * Predefined configuration object types. */ -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_boolean; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_uint32; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_uint64; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_qstring; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_astring; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_ustring; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_sstring; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_bracketed_aml; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_bracketed_text; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_optional_bracketed_text; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_keyref; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_sockaddr; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_sockaddrdscp; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_netaddr; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_netaddr4; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_netaddr4wild; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_netaddr6; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_netaddr6wild; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_netprefix; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_void; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_token; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_unsupported; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_fixedpoint; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_percentage; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_duration; -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_duration_or_unlimited; +extern cfg_type_t cfg_type_boolean; +extern cfg_type_t cfg_type_uint32; +extern cfg_type_t cfg_type_uint64; +extern cfg_type_t cfg_type_qstring; +extern cfg_type_t cfg_type_astring; +extern cfg_type_t cfg_type_ustring; +extern cfg_type_t cfg_type_sstring; +extern cfg_type_t cfg_type_bracketed_aml; +extern cfg_type_t cfg_type_bracketed_text; +extern cfg_type_t cfg_type_optional_bracketed_text; +extern cfg_type_t cfg_type_keyref; +extern cfg_type_t cfg_type_sockaddr; +extern cfg_type_t cfg_type_sockaddrdscp; +extern cfg_type_t cfg_type_netaddr; +extern cfg_type_t cfg_type_netaddr4; +extern cfg_type_t cfg_type_netaddr4wild; +extern cfg_type_t cfg_type_netaddr6; +extern cfg_type_t cfg_type_netaddr6wild; +extern cfg_type_t cfg_type_netprefix; +extern cfg_type_t cfg_type_void; +extern cfg_type_t cfg_type_token; +extern cfg_type_t cfg_type_unsupported; +extern cfg_type_t cfg_type_fixedpoint; +extern cfg_type_t cfg_type_percentage; +extern cfg_type_t cfg_type_duration; +extern cfg_type_t cfg_type_duration_or_unlimited; /*@}*/ isc_result_t diff --git a/lib/isccfg/include/isccfg/log.h b/lib/isccfg/include/isccfg/log.h index 13a4ef4c91..ed7025f0af 100644 --- a/lib/isccfg/include/isccfg/log.h +++ b/lib/isccfg/include/isccfg/log.h @@ -17,8 +17,8 @@ #include #include -LIBISCCFG_EXTERNAL_DATA extern isc_logcategory_t cfg_categories[]; -LIBISCCFG_EXTERNAL_DATA extern isc_logmodule_t cfg_modules[]; +extern isc_logcategory_t cfg_categories[]; +extern isc_logmodule_t cfg_modules[]; #define CFG_LOGCATEGORY_CONFIG (&cfg_categories[0]) diff --git a/lib/isccfg/include/isccfg/namedconf.h b/lib/isccfg/include/isccfg/namedconf.h index 94b31be220..aabd289acf 100644 --- a/lib/isccfg/include/isccfg/namedconf.h +++ b/lib/isccfg/include/isccfg/namedconf.h @@ -22,34 +22,34 @@ /* * Configuration object types. */ -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_namedconf; +extern cfg_type_t cfg_type_namedconf; /*%< A complete named.conf file. */ -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_bindkeys; +extern cfg_type_t cfg_type_bindkeys; /*%< A bind.keys file. */ -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_newzones; +extern cfg_type_t cfg_type_newzones; /*%< A new-zones file (for zones added by 'rndc addzone'). */ -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_addzoneconf; +extern cfg_type_t cfg_type_addzoneconf; /*%< A single zone passed via the addzone rndc command. */ -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_rndcconf; +extern cfg_type_t cfg_type_rndcconf; /*%< A complete rndc.conf file. */ -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_rndckey; +extern cfg_type_t cfg_type_rndckey; /*%< A complete rndc.key file. */ -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_sessionkey; +extern cfg_type_t cfg_type_sessionkey; /*%< A complete session.key file. */ -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_keyref; +extern cfg_type_t cfg_type_keyref; /*%< A key reference, used as an ACL element */ /*%< Zone options */ -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_zoneopts; +extern cfg_type_t cfg_type_zoneopts; /*%< DNSSEC Key and Signing Policy options */ -LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_dnssecpolicyopts; +extern cfg_type_t cfg_type_dnssecpolicyopts; #endif /* ISCCFG_NAMEDCONF_H */ diff --git a/lib/isccfg/log.c b/lib/isccfg/log.c index f8449fc3a0..553c1dc4f9 100644 --- a/lib/isccfg/log.c +++ b/lib/isccfg/log.c @@ -19,16 +19,13 @@ * When adding a new category, be sure to add the appropriate * \#define to . */ -LIBISCCFG_EXTERNAL_DATA isc_logcategory_t cfg_categories[] = { { "config", 0 }, - { NULL, 0 } }; +isc_logcategory_t cfg_categories[] = { { "config", 0 }, { NULL, 0 } }; /*% * When adding a new module, be sure to add the appropriate * \#define to . */ -LIBISCCFG_EXTERNAL_DATA isc_logmodule_t cfg_modules[] = { - { "isccfg/parser", 0 }, { NULL, 0 } -}; +isc_logmodule_t cfg_modules[] = { { "isccfg/parser", 0 }, { NULL, 0 } }; void cfg_log_init(isc_log_t *lctx) { diff --git a/lib/isccfg/namedconf.c b/lib/isccfg/namedconf.c index 2a93bcc124..e72aac7ab5 100644 --- a/lib/isccfg/namedconf.c +++ b/lib/isccfg/namedconf.c @@ -2341,17 +2341,15 @@ static cfg_clausedef_t zone_only_clauses[] = { static cfg_clausedef_t *namedconf_clausesets[] = { namedconf_clauses, namedconf_or_view_clauses, NULL }; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_namedconf = { - "namedconf", cfg_parse_mapbody, cfg_print_mapbody, - cfg_doc_mapbody, &cfg_rep_map, namedconf_clausesets -}; +cfg_type_t cfg_type_namedconf = { "namedconf", cfg_parse_mapbody, + cfg_print_mapbody, cfg_doc_mapbody, + &cfg_rep_map, namedconf_clausesets }; /*% The bind.keys syntax (trust-anchors/managed-keys/trusted-keys only). */ static cfg_clausedef_t *bindkeys_clausesets[] = { bindkeys_clauses, NULL }; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_bindkeys = { - "bindkeys", cfg_parse_mapbody, cfg_print_mapbody, - cfg_doc_mapbody, &cfg_rep_map, bindkeys_clausesets -}; +cfg_type_t cfg_type_bindkeys = { "bindkeys", cfg_parse_mapbody, + cfg_print_mapbody, cfg_doc_mapbody, + &cfg_rep_map, bindkeys_clausesets }; /*% The "options" statement syntax. */ @@ -2376,15 +2374,13 @@ static cfg_type_t cfg_type_viewopts = { "view", cfg_parse_map, static cfg_clausedef_t *zone_clausesets[] = { zone_only_clauses, zone_clauses, NULL }; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_zoneopts = { - "zoneopts", cfg_parse_map, cfg_print_map, - cfg_doc_map, &cfg_rep_map, zone_clausesets -}; +cfg_type_t cfg_type_zoneopts = { "zoneopts", cfg_parse_map, cfg_print_map, + cfg_doc_map, &cfg_rep_map, zone_clausesets }; /*% The "dnssec-policy" statement syntax. */ static cfg_clausedef_t *dnssecpolicy_clausesets[] = { dnssecpolicy_clauses, NULL }; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_dnssecpolicyopts = { +cfg_type_t cfg_type_dnssecpolicyopts = { "dnssecpolicyopts", cfg_parse_map, cfg_print_map, cfg_doc_map, &cfg_rep_map, dnssecpolicy_clausesets }; @@ -2564,10 +2560,9 @@ static cfg_clausedef_t addzoneconf_clauses[] = { static cfg_clausedef_t *addzoneconf_clausesets[] = { addzoneconf_clauses, NULL }; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_addzoneconf = { - "addzoneconf", cfg_parse_mapbody, cfg_print_mapbody, - cfg_doc_mapbody, &cfg_rep_map, addzoneconf_clausesets -}; +cfg_type_t cfg_type_addzoneconf = { "addzoneconf", cfg_parse_mapbody, + cfg_print_mapbody, cfg_doc_mapbody, + &cfg_rep_map, addzoneconf_clausesets }; static isc_result_t parse_unitstring(char *str, isc_resourcevalue_t *valuep) { @@ -2908,10 +2903,8 @@ static cfg_type_t cfg_type_ixfrdifftype = { static keyword_type_t key_kw = { "key", &cfg_type_astring }; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_keyref = { - "keyref", parse_keyvalue, print_keyvalue, - doc_keyvalue, &cfg_rep_string, &key_kw -}; +cfg_type_t cfg_type_keyref = { "keyref", parse_keyvalue, print_keyvalue, + doc_keyvalue, &cfg_rep_string, &key_kw }; static cfg_type_t cfg_type_optional_keyref = { "optional_keyref", parse_optional_keyvalue, print_keyvalue, @@ -3545,29 +3538,26 @@ static cfg_clausedef_t rndcconf_clauses[] = { static cfg_clausedef_t *rndcconf_clausesets[] = { rndcconf_clauses, NULL }; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_rndcconf = { - "rndcconf", cfg_parse_mapbody, cfg_print_mapbody, - cfg_doc_mapbody, &cfg_rep_map, rndcconf_clausesets -}; +cfg_type_t cfg_type_rndcconf = { "rndcconf", cfg_parse_mapbody, + cfg_print_mapbody, cfg_doc_mapbody, + &cfg_rep_map, rndcconf_clausesets }; static cfg_clausedef_t rndckey_clauses[] = { { "key", &cfg_type_key, 0 }, { NULL, NULL, 0 } }; static cfg_clausedef_t *rndckey_clausesets[] = { rndckey_clauses, NULL }; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_rndckey = { - "rndckey", cfg_parse_mapbody, cfg_print_mapbody, - cfg_doc_mapbody, &cfg_rep_map, rndckey_clausesets -}; +cfg_type_t cfg_type_rndckey = { "rndckey", cfg_parse_mapbody, + cfg_print_mapbody, cfg_doc_mapbody, + &cfg_rep_map, rndckey_clausesets }; /* * session.key has exactly the same syntax as rndc.key, but it's defined * separately for clarity (and so we can extend it someday, if needed). */ -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_sessionkey = { - "sessionkey", cfg_parse_mapbody, cfg_print_mapbody, - cfg_doc_mapbody, &cfg_rep_map, rndckey_clausesets -}; +cfg_type_t cfg_type_sessionkey = { "sessionkey", cfg_parse_mapbody, + cfg_print_mapbody, cfg_doc_mapbody, + &cfg_rep_map, rndckey_clausesets }; static cfg_tuplefielddef_t nameport_fields[] = { { "name", &cfg_type_astring, 0 }, diff --git a/lib/isccfg/parser.c b/lib/isccfg/parser.c index 435531f17f..7d552a68a4 100644 --- a/lib/isccfg/parser.c +++ b/lib/isccfg/parser.c @@ -127,22 +127,19 @@ doc_geoip(cfg_printer_t *pctx, const cfg_type_t *type); * not need a union member). */ -LIBISCCFG_EXTERNAL_DATA cfg_rep_t cfg_rep_uint32 = { "uint32", free_noop }; -LIBISCCFG_EXTERNAL_DATA cfg_rep_t cfg_rep_uint64 = { "uint64", free_noop }; -LIBISCCFG_EXTERNAL_DATA cfg_rep_t cfg_rep_string = { "string", free_string }; -LIBISCCFG_EXTERNAL_DATA cfg_rep_t cfg_rep_boolean = { "boolean", free_noop }; -LIBISCCFG_EXTERNAL_DATA cfg_rep_t cfg_rep_map = { "map", free_map }; -LIBISCCFG_EXTERNAL_DATA cfg_rep_t cfg_rep_list = { "list", free_list }; -LIBISCCFG_EXTERNAL_DATA cfg_rep_t cfg_rep_tuple = { "tuple", free_tuple }; -LIBISCCFG_EXTERNAL_DATA cfg_rep_t cfg_rep_sockaddr = { "sockaddr", free_noop }; -LIBISCCFG_EXTERNAL_DATA cfg_rep_t cfg_rep_netprefix = { "netprefix", - free_noop }; -LIBISCCFG_EXTERNAL_DATA cfg_rep_t cfg_rep_void = { "void", free_noop }; -LIBISCCFG_EXTERNAL_DATA cfg_rep_t cfg_rep_fixedpoint = { "fixedpoint", - free_noop }; -LIBISCCFG_EXTERNAL_DATA cfg_rep_t cfg_rep_percentage = { "percentage", - free_noop }; -LIBISCCFG_EXTERNAL_DATA cfg_rep_t cfg_rep_duration = { "duration", free_noop }; +cfg_rep_t cfg_rep_uint32 = { "uint32", free_noop }; +cfg_rep_t cfg_rep_uint64 = { "uint64", free_noop }; +cfg_rep_t cfg_rep_string = { "string", free_string }; +cfg_rep_t cfg_rep_boolean = { "boolean", free_noop }; +cfg_rep_t cfg_rep_map = { "map", free_map }; +cfg_rep_t cfg_rep_list = { "list", free_list }; +cfg_rep_t cfg_rep_tuple = { "tuple", free_tuple }; +cfg_rep_t cfg_rep_sockaddr = { "sockaddr", free_noop }; +cfg_rep_t cfg_rep_netprefix = { "netprefix", free_noop }; +cfg_rep_t cfg_rep_void = { "void", free_noop }; +cfg_rep_t cfg_rep_fixedpoint = { "fixedpoint", free_noop }; +cfg_rep_t cfg_rep_percentage = { "percentage", free_noop }; +cfg_rep_t cfg_rep_duration = { "duration", free_noop }; /* * Configuration type definitions. @@ -743,10 +740,8 @@ cfg_obj_isvoid(const cfg_obj_t *obj) { return (obj->type->rep == &cfg_rep_void); } -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_void = { - "void", cfg_parse_void, cfg_print_void, - cfg_doc_void, &cfg_rep_void, NULL -}; +cfg_type_t cfg_type_void = { "void", cfg_parse_void, cfg_print_void, + cfg_doc_void, &cfg_rep_void, NULL }; /* * percentage @@ -803,10 +798,9 @@ cfg_obj_aspercentage(const cfg_obj_t *obj) { return (obj->value.uint32); } -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_percentage = { - "percentage", cfg_parse_percentage, cfg_print_percentage, - cfg_doc_terminal, &cfg_rep_percentage, NULL -}; +cfg_type_t cfg_type_percentage = { "percentage", cfg_parse_percentage, + cfg_print_percentage, cfg_doc_terminal, + &cfg_rep_percentage, NULL }; bool cfg_obj_ispercentage(const cfg_obj_t *obj) { @@ -887,10 +881,9 @@ cfg_obj_asfixedpoint(const cfg_obj_t *obj) { return (obj->value.uint32); } -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_fixedpoint = { - "fixedpoint", cfg_parse_fixedpoint, cfg_print_fixedpoint, - cfg_doc_terminal, &cfg_rep_fixedpoint, NULL -}; +cfg_type_t cfg_type_fixedpoint = { "fixedpoint", cfg_parse_fixedpoint, + cfg_print_fixedpoint, cfg_doc_terminal, + &cfg_rep_fixedpoint, NULL }; bool cfg_obj_isfixedpoint(const cfg_obj_t *obj) { @@ -955,10 +948,9 @@ cfg_obj_asuint32(const cfg_obj_t *obj) { return (obj->value.uint32); } -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_uint32 = { - "integer", cfg_parse_uint32, cfg_print_uint32, - cfg_doc_terminal, &cfg_rep_uint32, NULL -}; +cfg_type_t cfg_type_uint32 = { "integer", cfg_parse_uint32, + cfg_print_uint32, cfg_doc_terminal, + &cfg_rep_uint32, NULL }; /* * uint64 @@ -983,10 +975,9 @@ cfg_print_uint64(cfg_printer_t *pctx, const cfg_obj_t *obj) { cfg_print_cstr(pctx, buf); } -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_uint64 = { - "64_bit_integer", NULL, cfg_print_uint64, cfg_doc_terminal, - &cfg_rep_uint64, NULL -}; +cfg_type_t cfg_type_uint64 = { "64_bit_integer", NULL, + cfg_print_uint64, cfg_doc_terminal, + &cfg_rep_uint64, NULL }; /* * Get the number of digits in a number. @@ -1398,18 +1389,15 @@ cleanup: * * A duration can also be a TTL value (number + optional unit). */ -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_duration = { - "duration", cfg_parse_duration, cfg_print_duration, - cfg_doc_terminal, &cfg_rep_duration, NULL -}; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_duration_or_unlimited = { - "duration_or_unlimited", - cfg_parse_duration_or_unlimited, - cfg_print_duration_or_unlimited, - cfg_doc_terminal, - &cfg_rep_duration, - NULL -}; +cfg_type_t cfg_type_duration = { "duration", cfg_parse_duration, + cfg_print_duration, cfg_doc_terminal, + &cfg_rep_duration, NULL }; +cfg_type_t cfg_type_duration_or_unlimited = { "duration_or_unlimited", + cfg_parse_duration_or_unlimited, + cfg_print_duration_or_unlimited, + cfg_doc_terminal, + &cfg_rep_duration, + NULL }; /* * qstring (quoted string), ustring (unquoted string), astring @@ -1713,41 +1701,36 @@ cfg_obj_asstring(const cfg_obj_t *obj) { } /* Quoted string only */ -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_qstring = { - "quoted_string", cfg_parse_qstring, print_qstring, - cfg_doc_terminal, &cfg_rep_string, NULL -}; +cfg_type_t cfg_type_qstring = { "quoted_string", cfg_parse_qstring, + print_qstring, cfg_doc_terminal, + &cfg_rep_string, NULL }; /* Unquoted string only */ -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_ustring = { - "string", parse_ustring, cfg_print_ustring, - cfg_doc_terminal, &cfg_rep_string, NULL -}; +cfg_type_t cfg_type_ustring = { "string", parse_ustring, + cfg_print_ustring, cfg_doc_terminal, + &cfg_rep_string, NULL }; /* Any string (quoted or unquoted); printed with quotes */ -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_astring = { - "string", cfg_parse_astring, print_qstring, - cfg_doc_terminal, &cfg_rep_string, NULL -}; +cfg_type_t cfg_type_astring = { "string", cfg_parse_astring, + print_qstring, cfg_doc_terminal, + &cfg_rep_string, NULL }; /* * Any string (quoted or unquoted); printed with quotes. * If CFG_PRINTER_XKEY is set when printing the string will be '?' out. */ -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_sstring = { - "string", cfg_parse_sstring, print_sstring, - cfg_doc_terminal, &cfg_rep_string, NULL -}; +cfg_type_t cfg_type_sstring = { "string", cfg_parse_sstring, + print_sstring, cfg_doc_terminal, + &cfg_rep_string, NULL }; /* * Text enclosed in brackets. Used to pass a block of configuration * text to dynamic library or external application. Checked for * bracket balance, but not otherwise parsed. */ -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_bracketed_text = { - "bracketed_text", parse_btext, print_btext, - doc_btext, &cfg_rep_string, NULL -}; +cfg_type_t cfg_type_bracketed_text = { "bracketed_text", parse_btext, + print_btext, doc_btext, + &cfg_rep_string, NULL }; #if defined(HAVE_GEOIP2) /* @@ -1925,14 +1908,12 @@ static cfg_type_t cfg_type_addrmatchelt = { "address_match_element", /*% * A bracketed address match list */ -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_bracketed_aml = { - "bracketed_aml", - cfg_parse_bracketed_list, - cfg_print_bracketed_list, - cfg_doc_bracketed_list, - &cfg_rep_list, - &cfg_type_addrmatchelt -}; +cfg_type_t cfg_type_bracketed_aml = { "bracketed_aml", + cfg_parse_bracketed_list, + cfg_print_bracketed_list, + cfg_doc_bracketed_list, + &cfg_rep_list, + &cfg_type_addrmatchelt }; /* * Optional bracketed text @@ -1973,14 +1954,12 @@ doc_optional_btext(cfg_printer_t *pctx, const cfg_type_t *type) { cfg_print_cstr(pctx, "[ { } ]"); } -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_optional_bracketed_text = { - "optional_btext", - parse_optional_btext, - print_optional_btext, - doc_optional_btext, - NULL, - NULL -}; +cfg_type_t cfg_type_optional_bracketed_text = { "optional_btext", + parse_optional_btext, + print_optional_btext, + doc_optional_btext, + NULL, + NULL }; /* * Booleans @@ -2057,10 +2036,9 @@ cfg_print_boolean(cfg_printer_t *pctx, const cfg_obj_t *obj) { } } -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_boolean = { - "boolean", cfg_parse_boolean, cfg_print_boolean, - cfg_doc_terminal, &cfg_rep_boolean, NULL -}; +cfg_type_t cfg_type_boolean = { "boolean", cfg_parse_boolean, + cfg_print_boolean, cfg_doc_terminal, + &cfg_rep_boolean, NULL }; /* * Lists. @@ -2944,10 +2922,9 @@ cleanup: return (result); } -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_token = { - "token", parse_token, cfg_print_ustring, - cfg_doc_terminal, &cfg_rep_string, NULL -}; +cfg_type_t cfg_type_token = { "token", parse_token, + cfg_print_ustring, cfg_doc_terminal, + &cfg_rep_string, NULL }; /* * An unsupported option. This is just a list of tokens with balanced braces @@ -2996,10 +2973,9 @@ cleanup: return (result); } -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_unsupported = { - "unsupported", parse_unsupported, cfg_print_spacelist, - cfg_doc_terminal, &cfg_rep_list, NULL -}; +cfg_type_t cfg_type_unsupported = { "unsupported", parse_unsupported, + cfg_print_spacelist, cfg_doc_terminal, + &cfg_rep_list, NULL }; /* * Try interpreting the current token as a network address. @@ -3258,30 +3234,25 @@ cfg_doc_netaddr(cfg_printer_t *pctx, const cfg_type_t *type) { } } -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_netaddr = { - "netaddr", parse_netaddr, cfg_print_sockaddr, - cfg_doc_netaddr, &cfg_rep_sockaddr, &netaddr_flags -}; +cfg_type_t cfg_type_netaddr = { "netaddr", parse_netaddr, + cfg_print_sockaddr, cfg_doc_netaddr, + &cfg_rep_sockaddr, &netaddr_flags }; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_netaddr4 = { - "netaddr4", parse_netaddr, cfg_print_sockaddr, - cfg_doc_netaddr, &cfg_rep_sockaddr, &netaddr4_flags -}; +cfg_type_t cfg_type_netaddr4 = { "netaddr4", parse_netaddr, + cfg_print_sockaddr, cfg_doc_netaddr, + &cfg_rep_sockaddr, &netaddr4_flags }; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_netaddr4wild = { - "netaddr4wild", parse_netaddr, cfg_print_sockaddr, - cfg_doc_netaddr, &cfg_rep_sockaddr, &netaddr4wild_flags -}; +cfg_type_t cfg_type_netaddr4wild = { "netaddr4wild", parse_netaddr, + cfg_print_sockaddr, cfg_doc_netaddr, + &cfg_rep_sockaddr, &netaddr4wild_flags }; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_netaddr6 = { - "netaddr6", parse_netaddr, cfg_print_sockaddr, - cfg_doc_netaddr, &cfg_rep_sockaddr, &netaddr6_flags -}; +cfg_type_t cfg_type_netaddr6 = { "netaddr6", parse_netaddr, + cfg_print_sockaddr, cfg_doc_netaddr, + &cfg_rep_sockaddr, &netaddr6_flags }; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_netaddr6wild = { - "netaddr6wild", parse_netaddr, cfg_print_sockaddr, - cfg_doc_netaddr, &cfg_rep_sockaddr, &netaddr6wild_flags -}; +cfg_type_t cfg_type_netaddr6wild = { "netaddr6wild", parse_netaddr, + cfg_print_sockaddr, cfg_doc_netaddr, + &cfg_rep_sockaddr, &netaddr6wild_flags }; /* netprefix */ @@ -3388,10 +3359,9 @@ cfg_obj_asnetprefix(const cfg_obj_t *obj, isc_netaddr_t *netaddr, *prefixlen = obj->value.netprefix.prefixlen; } -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_netprefix = { - "netprefix", cfg_parse_netprefix, print_netprefix, - cfg_doc_terminal, &cfg_rep_netprefix, NULL -}; +cfg_type_t cfg_type_netprefix = { "netprefix", cfg_parse_netprefix, + print_netprefix, cfg_doc_terminal, + &cfg_rep_netprefix, NULL }; static isc_result_t parse_sockaddrsub(cfg_parser_t *pctx, const cfg_type_t *type, int flags, @@ -3447,17 +3417,15 @@ cleanup: } static unsigned int sockaddr_flags = CFG_ADDR_V4OK | CFG_ADDR_V6OK; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_sockaddr = { - "sockaddr", cfg_parse_sockaddr, cfg_print_sockaddr, - cfg_doc_sockaddr, &cfg_rep_sockaddr, &sockaddr_flags -}; +cfg_type_t cfg_type_sockaddr = { "sockaddr", cfg_parse_sockaddr, + cfg_print_sockaddr, cfg_doc_sockaddr, + &cfg_rep_sockaddr, &sockaddr_flags }; static unsigned int sockaddrdscp_flags = CFG_ADDR_V4OK | CFG_ADDR_V6OK | CFG_ADDR_DSCPOK; -LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_sockaddrdscp = { - "sockaddr", cfg_parse_sockaddr, cfg_print_sockaddr, - cfg_doc_sockaddr, &cfg_rep_sockaddr, &sockaddrdscp_flags -}; +cfg_type_t cfg_type_sockaddrdscp = { "sockaddr", cfg_parse_sockaddr, + cfg_print_sockaddr, cfg_doc_sockaddr, + &cfg_rep_sockaddr, &sockaddrdscp_flags }; isc_result_t cfg_parse_sockaddr(cfg_parser_t *pctx, const cfg_type_t *type, diff --git a/lib/ns/client.c b/lib/ns/client.c index 5ef93af64b..9fa9d865ec 100644 --- a/lib/ns/client.c +++ b/lib/ns/client.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -113,8 +112,7 @@ #define NS_CLIENT_DROPPORT 1 #endif /* ifndef NS_CLIENT_DROPPORT */ -LIBNS_EXTERNAL_DATA atomic_uint_fast64_t ns_client_requests = - ATOMIC_VAR_INIT(0); +atomic_uint_fast64_t ns_client_requests = ATOMIC_VAR_INIT(0); static void clientmgr_attach(ns_clientmgr_t *source, ns_clientmgr_t **targetp); diff --git a/lib/ns/hooks.c b/lib/ns/hooks.c index d608dd05fc..5b8d0ef8ca 100644 --- a/lib/ns/hooks.c +++ b/lib/ns/hooks.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -53,7 +52,7 @@ struct ns_plugin { }; static ns_hooklist_t default_hooktable[NS_HOOKPOINTS_COUNT]; -LIBNS_EXTERNAL_DATA ns_hooktable_t *ns__hook_table = &default_hooktable; +ns_hooktable_t *ns__hook_table = &default_hooktable; isc_result_t ns_plugin_expandpath(const char *src, char *dst, size_t dstsize) { diff --git a/lib/ns/include/ns/client.h b/lib/ns/include/ns/client.h index 1aa35f3220..974e80dc1b 100644 --- a/lib/ns/include/ns/client.h +++ b/lib/ns/include/ns/client.h @@ -61,7 +61,6 @@ #include #include #include -#include #include #include @@ -277,7 +276,7 @@ struct ns_client { */ #define NS_FAILCACHE_CD 0x01 -LIBNS_EXTERNAL_DATA extern atomic_uint_fast64_t ns_client_requests; +extern atomic_uint_fast64_t ns_client_requests; /*** *** Functions diff --git a/lib/ns/include/ns/hooks.h b/lib/ns/include/ns/hooks.h index 425d248449..eebf8a7997 100644 --- a/lib/ns/include/ns/hooks.h +++ b/lib/ns/include/ns/hooks.h @@ -410,7 +410,7 @@ typedef ns_hooklist_t ns_hooktable_t[NS_HOOKPOINTS_COUNT]; * ns__hook_table is a global hook table, which is used if view->hooktable * is NULL. It's intended only for use by unit tests. */ -LIBNS_EXTERNAL_DATA extern ns_hooktable_t *ns__hook_table; +extern ns_hooktable_t *ns__hook_table; typedef void (*ns_hook_cancelasync_t)(ns_hookasync_t *); typedef void (*ns_hook_destroyasync_t)(ns_hookasync_t **); diff --git a/lib/ns/include/ns/lib.h b/lib/ns/include/ns/lib.h index bb3a7867ef..9afadf1f49 100644 --- a/lib/ns/include/ns/lib.h +++ b/lib/ns/include/ns/lib.h @@ -18,7 +18,7 @@ ISC_LANG_BEGINDECLS -LIBNS_EXTERNAL_DATA extern unsigned int ns_pps; +extern unsigned int ns_pps; isc_result_t ns_lib_init(void); diff --git a/lib/ns/include/ns/log.h b/lib/ns/include/ns/log.h index 7dc37de038..14d7799fce 100644 --- a/lib/ns/include/ns/log.h +++ b/lib/ns/include/ns/log.h @@ -17,9 +17,9 @@ #include #include -LIBNS_EXTERNAL_DATA extern isc_log_t * ns_lctx; -LIBNS_EXTERNAL_DATA extern isc_logcategory_t ns_categories[]; -LIBNS_EXTERNAL_DATA extern isc_logmodule_t ns_modules[]; +extern isc_log_t * ns_lctx; +extern isc_logcategory_t ns_categories[]; +extern isc_logmodule_t ns_modules[]; #define NS_LOGCATEGORY_CLIENT (&ns_categories[0]) #define NS_LOGCATEGORY_NETWORK (&ns_categories[1]) diff --git a/lib/ns/lib.c b/lib/ns/lib.c index c40bffeadc..c2aa9de1c2 100644 --- a/lib/ns/lib.c +++ b/lib/ns/lib.c @@ -28,7 +28,7 @@ *** Globals ***/ -LIBNS_EXTERNAL_DATA unsigned int ns_pps = 0U; +unsigned int ns_pps = 0U; /*** *** Private diff --git a/lib/ns/log.c b/lib/ns/log.c index d0f8d1e1b4..519ece1981 100644 --- a/lib/ns/log.c +++ b/lib/ns/log.c @@ -24,29 +24,27 @@ * When adding a new category, be sure to add the appropriate * \#define to */ -LIBNS_EXTERNAL_DATA isc_logcategory_t ns_categories[] = { - { "client", 0 }, - { "network", 0 }, - { "update", 0 }, - { "queries", 0 }, - { "update-security", 0 }, - { "query-errors", 0 }, - { "trust-anchor-telemetry", 0 }, - { "serve-stale", 0 }, - { NULL, 0 } -}; +isc_logcategory_t ns_categories[] = { { "client", 0 }, + { "network", 0 }, + { "update", 0 }, + { "queries", 0 }, + { "update-security", 0 }, + { "query-errors", 0 }, + { "trust-anchor-telemetry", 0 }, + { "serve-stale", 0 }, + { NULL, 0 } }; /*% * When adding a new module, be sure to add the appropriate * \#define to . */ -LIBNS_EXTERNAL_DATA isc_logmodule_t ns_modules[] = { +isc_logmodule_t ns_modules[] = { { "ns/client", 0 }, { "ns/query", 0 }, { "ns/interfacemgr", 0 }, { "ns/update", 0 }, { "ns/xfer-in", 0 }, { "ns/xfer-out", 0 }, { "ns/notify", 0 }, { "ns/hooks", 0 }, { NULL, 0 } }; -LIBNS_EXTERNAL_DATA isc_log_t *ns_lctx = NULL; +isc_log_t *ns_lctx = NULL; void ns_log_init(isc_log_t *lctx) { diff --git a/lib/ns/tests/plugin_test.c b/lib/ns/tests/plugin_test.c index bf0af1cfd5..bb4fc95e00 100644 --- a/lib/ns/tests/plugin_test.c +++ b/lib/ns/tests/plugin_test.c @@ -24,8 +24,8 @@ #include #include +#include #include -#include #include #include #include diff --git a/util/check-includes.pl b/util/check-includes.pl index 1e9f566ff0..2154d2f4e0 100644 --- a/util/check-includes.pl +++ b/util/check-includes.pl @@ -95,12 +95,6 @@ for (<>) { unless $file =~ m%isc/resultclass.h%; } - if (/$nocomment.*ISC_PLATFORM_/m && - ! m%^#include %m) { - print "$file has ISC_PLATFORM_ without \n" - unless $file =~ m%isc/platform.h%; - } - if ($file !~ m%isc/magic\.h$%) { print "$file has ISC_MAGIC_VALID without \n" if /$nocomment.*ISC_MAGIC_VALID/m && ! m%^#include %m; @@ -234,13 +228,6 @@ for (<>) { next; } - if ($elided eq "") { - if (! /^$nocomment.*ISC_PLATFORM_/m) { - print "$file has but no ISC_PLATFORM_\n"; - } - next; - } - if ($elided eq "") { if (! /^$nocomment.*ISC_MAGIC_VALID/m) { print "$file has but no ISC_MAGIC_VALID\n"; diff --git a/util/copyrights b/util/copyrights index e6cd90be9c..f982fbae20 100644 --- a/util/copyrights +++ b/util/copyrights @@ -1739,7 +1739,6 @@ ./lib/isc/include/isc/once.h C 1999,2000,2001,2004,2005,2007,2016,2018,2019,2020,2021 ./lib/isc/include/isc/os.h C 2000,2001,2004,2005,2006,2007,2016,2018,2019,2020,2021 ./lib/isc/include/isc/parseint.h C 2001,2002,2004,2005,2006,2007,2016,2018,2019,2020,2021 -./lib/isc/include/isc/platform.h.in C 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2013,2014,2015,2016,2017,2018,2019,2020 ./lib/isc/include/isc/pool.h C 2013,2016,2018,2019,2020,2021 ./lib/isc/include/isc/portset.h C 2008,2009,2016,2018,2019,2020,2021 ./lib/isc/include/isc/print.h C 1999,2000,2001,2003,2004,2005,2006,2007,2014,2015,2016,2018,2019,2020,2021