* information regarding copyright ownership.
*/
-#ifndef CHECK_TOOL_H
-#define CHECK_TOOL_H
+#pragma once
/*! \file */
extern dns_zoneopt_t zone_options;
ISC_LANG_ENDDECLS
-
-#endif /* ifndef CHECK_TOOL_H */
/*! \file */
-#ifndef RNDC_OS_H
-#define RNDC_OS_H 1
+#pragma once
#include <stdio.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* ifndef RNDC_OS_H */
* information regarding copyright ownership.
*/
-#ifndef RNDC_KEYGEN_H
-#define RNDC_KEYGEN_H 1
+#pragma once
/*! \file */
alg_bits(dns_secalg_t alg);
ISC_LANG_ENDDECLS
-
-#endif /* RNDC_KEYGEN_H */
* information regarding copyright ownership.
*/
-#ifndef RNDC_UTIL_H
-#define RNDC_UTIL_H 1
+#pragma once
/*! \file */
fatal(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
ISC_LANG_ENDDECLS
-
-#endif /* RNDC_UTIL_H */
* information regarding copyright ownership.
*/
-#ifndef DIG_H
-#define DIG_H
+#pragma once
/*! \file */
dig_shutdown(void);
ISC_LANG_ENDDECLS
-
-#endif /* ifndef DIG_H */
* information regarding copyright ownership.
*/
-#ifndef DNSSECTOOL_H
-#define DNSSECTOOL_H 1
+#pragma once
#include <inttypes.h>
#include <stdbool.h>
bool
isoptarg(const char *arg, char **argv, void (*usage)(void));
-
-#endif /* DNSSEC_DNSSECTOOL_H */
* information regarding copyright ownership.
*/
-#ifndef DLZ_DLOPEN_DRIVER_H
-#define DLZ_DLOPEN_DRIVER_H
+#pragma once
isc_result_t
dlz_dlopen_init(isc_mem_t *mctx);
void
dlz_dlopen_clear(void);
-#endif /* ifndef DLZ_DLOPEN_DRIVER_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_BUILTIN_H
-#define NAMED_BUILTIN_H 1
+#pragma once
/*! \file */
void
named_builtin_deinit(void);
-
-#endif /* NAMED_BUILTIN_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_CONFIG_H
-#define NAMED_CONFIG_H 1
+#pragma once
/*! \file */
isc_result_t
named_config_getdscp(const cfg_obj_t *config, isc_dscp_t *dscpp);
-
-#endif /* NAMED_CONFIG_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_CONTROL_H
-#define NAMED_CONTROL_H 1
+#pragma once
/*! \file
* \brief
isc_result_t
named_control_docommand(isccc_sexpr_t *message, bool readonly,
isc_buffer_t **text);
-
-#endif /* NAMED_CONTROL_H */
#include <isc/fuzz.h>
-#ifndef NAMED_FUZZ_H
-#define NAMED_FUZZ_H
+#pragma once
void
named_fuzz_notify(void);
void
named_fuzz_setup(void);
-
-#endif /* NAMED_FUZZ_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_GLOBALS_H
-#define NAMED_GLOBALS_H 1
+#pragma once
/*! \file */
#undef EXTERN
#undef INIT
-
-#endif /* NAMED_GLOBALS_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_LOG_H
-#define NAMED_LOG_H 1
+#pragma once
/*! \file */
void
named_log_shutdown(void);
-
-#endif /* NAMED_LOG_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_LOGCONF_H
-#define NAMED_LOGCONF_H 1
+#pragma once
/*! \file */
* Set up the logging configuration in '*logconf' according to
* the named.conf data in 'logstmt'.
*/
-
-#endif /* NAMED_LOGCONF_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_OS_H
-#define NAMED_OS_H 1
+#pragma once
/*! \file */
const char *
named_os_uname(void);
-
-#endif /* NAMED_OS_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_SERVER_H
-#define NAMED_SERVER_H 1
+#pragma once
/*! \file */
isc_result_t
named_server_servestale(named_server_t *server, isc_lex_t *lex,
isc_buffer_t **text);
-
-#endif /* NAMED_SERVER_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_SMF_GLOBALS_H
-#define NAMED_SMF_GLOBALS_H 1
+#pragma once
#include <libscf.h>
#undef EXTERN
#undef INIT
-
-#endif /* NAMED_SMF_GLOBALS_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_STATSCHANNEL_H
-#define NAMED_STATSCHANNEL_H 1
+#pragma once
/*! \file
* \brief
/*%<
* Dump statistics counters managed by the server to the file fp.
*/
-
-#endif /* NAMED_STATSCHANNEL_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_TKEYCONF_H
-#define NAMED_TKEYCONF_H 1
+#pragma once
/*! \file */
*/
ISC_LANG_ENDDECLS
-
-#endif /* NAMED_TKEYCONF_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_TSIGCONF_H
-#define NAMED_TSIGCONF_H 1
+#pragma once
/*! \file */
*/
ISC_LANG_ENDDECLS
-
-#endif /* NAMED_TSIGCONF_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_TYPES_H
-#define NAMED_TYPES_H 1
+#pragma once
/*! \file */
NAMED_RELOAD_IN_PROGRESS,
NAMED_RELOAD_FAILED,
} named_reload_t;
-
-#endif /* NAMED_TYPES_H */
* information regarding copyright ownership.
*/
-#ifndef NAMED_ZONECONF_H
-#define NAMED_ZONECONF_H 1
+#pragma once
/*! \file */
*/
ISC_LANG_ENDDECLS
-
-#endif /* NAMED_ZONECONF_H */
* information regarding copyright ownership.
*/
-#ifndef RNDC_UTIL_H
-#define RNDC_UTIL_H 1
+#pragma once
/*! \file */
fatal(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
ISC_LANG_ENDDECLS
-
-#endif /* RNDC_UTIL_H */
* Copyright (C) 2009-2015 Red Hat ; see COPYRIGHT for license
*/
-#ifndef _LD_INSTANCE_H_
-#define _LD_INSTANCE_H_
+#pragma once
#include <stdbool.h>
void
destroy_sample_instance(sample_instance_t **sample_instp);
-
-#endif /* !_LD_INSTANCE_H_ */
* Copyright (C) 2014-2015 Red Hat ; see COPYRIGHT for license
*/
-#ifndef LOCK_H_
-#define LOCK_H_
+#pragma once
#include "instance.h"
#include "util.h"
void
run_exclusive_exit(sample_instance_t *inst, isc_result_t state);
-
-#endif /* LOCK_H_ */
* Copyright (C) 2009--2015 Red Hat ; see COPYRIGHT for license
*/
-#ifndef _LD_LOG_H_
-#define _LD_LOG_H_
+#pragma once
#include <isc/error.h>
#include <isc/result.h>
void
log_write(int level, const char *format, ...) ISC_FORMAT_PRINTF(2, 3);
-
-#endif /* !_LD_LOG_H_ */
* Copyright (C) 2009-2015 Red Hat ; see COPYRIGHT for license
*/
-#ifndef _LD_UTIL_H_
-#define _LD_UTIL_H_
+#pragma once
#include <isc/mem.h>
#define MEM_PUT_AND_DETACH(target_ptr) \
isc_mem_putanddetach(&(target_ptr)->mctx, target_ptr, \
sizeof(*(target_ptr)))
-
-#endif /* !_LD_UTIL_H_ */
* information regarding copyright ownership.
*/
+#pragma once
+
#define CONCAT(a, b) a##b
#define DNSCONF_SET_STRING(FIELD) \
void CONCAT(DNSConf_set, FIELD)(DNSConf * cfg, const char *arg) { \
* PERFORMANCE OF THIS SOFTWARE.
*/
+#pragma once
+
#include <dirent.h>
#include <sys/types.h>
#include <dlz_minimal.h>
#include <dlz_pthread.h>
-#ifndef DLZ_DBI_H
-#define DLZ_DBI_H 1
+#pragma once
/*
* Types
char *
get_parameter_value(const char *input, const char *key);
-
-#endif /* DLZ_DBI_H */
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef DLZ_LIST_H
-#define DLZ_LIST_H 1
+#pragma once
#define DLZ_LIST(type) \
struct { \
#define DLZ_LIST_PREV(elt, link) ((elt)->link.prev)
#define DLZ_LIST_NEXT(elt, link) ((elt)->link.next)
-
-#endif /* DLZ_LIST_H */
* tree.
*/
-#ifndef DLZ_MINIMAL_H
-#define DLZ_MINIMAL_H 1
+#pragma once
#include <inttypes.h>
#include <stdbool.h>
isc_result_t
dlz_delrdataset(const char *name, const char *type, void *dbdata,
void *version);
-
-#endif /* DLZ_MINIMAL_H */
* PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef DLZ_PTHREAD_H
-#define DLZ_PTHREAD_H 1
+#pragma once
#ifndef PTHREADS
#define PTHREADS 1
#define dlz_mutex_trylock(a) (0)
#define dlz_mutex_unlock(a) (0)
#endif /* ifdef PTHREADS */
-
-#endif /* DLZ_PTHREAD_H */
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#pragma once
+
#include <dlz_minimal.h>
/* This is the only part that differs from dlz_minimal.h. */
* information regarding copyright ownership.
*/
+#pragma once
+
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
* information regarding copyright ownership.
*/
-#ifndef BIND9_CHECK_H
-#define BIND9_CHECK_H 1
+#pragma once
/*! \file bind9/check.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* BIND9_CHECK_H */
* information regarding copyright ownership.
*/
-#ifndef BIND9_GETADDRESSES_H
-#define BIND9_GETADDRESSES_H 1
+#pragma once
/*! \file bind9/getaddresses.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* BIND9_GETADDRESSES_H */
* information regarding copyright ownership.
*/
-#ifndef DST_OPENSSL_H
-#define DST_OPENSSL_H 1
+#pragma once
#include <openssl/bn.h>
#include <openssl/conf.h>
#endif /* if !defined(OPENSSL_NO_ENGINE) */
ISC_LANG_ENDDECLS
-
-#endif /* DST_OPENSSL_H */
-/*! \file */
*/
/*! \file */
-#ifndef DST_DST_PARSE_H
-#define DST_DST_PARSE_H 1
+#pragma once
#include <isc/lang.h>
const char *directory);
ISC_LANG_ENDDECLS
-
-#endif /* DST_DST_PARSE_H */
* The dir stuff was shrunk to fit the needs of gen.c.
*/
-#ifndef DNS_GEN_UNIX_H
-#define DNS_GEN_UNIX_H 1
+#pragma once
#include <dirent.h>
#include <errno.h>
}
ISC_LANG_ENDDECLS
-
-#endif /* DNS_GEN_UNIX_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_ACL_H
-#define DNS_ACL_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_ACL_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_ADB_H
-#define DNS_ADB_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_ADB_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_BADCACHE_H
-#define DNS_BADCACHE_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_BADCACHE_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_BIT_H
-#define DNS_BIT_H 1
+#pragma once
/*! \file dns/bit.h */
#define DNS_BIT_CLEAR(bit, bitset) (*(bitset) &= ~((dns_bitset_t)1 << (bit)))
#define DNS_BIT_CHECK(bit, bitset) \
((*(bitset) & ((dns_bitset_t)1 << (bit))) == ((dns_bitset_t)1 << (bit)))
-
-#endif /* DNS_BIT_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_BYADDR_H
-#define DNS_BYADDR_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_BYADDR_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_CACHE_H
-#define DNS_CACHE_H 1
+#pragma once
/*****
***** Module Info
#endif /* HAVE_JSON_C */
ISC_LANG_ENDDECLS
-
-#endif /* DNS_CACHE_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_CALLBACKS_H
-#define DNS_CALLBACKS_H 1
+#pragma once
/*! \file dns/callbacks.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_CALLBACKS_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_CATZ_H
-#define DNS_CATZ_H 1
+#pragma once
#include <inttypes.h>
#include <stdbool.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_CATZ_H_ */
* information regarding copyright ownership.
*/
-#ifndef DNS_CERT_H
-#define DNS_CERT_H 1
+#pragma once
/*! \file dns/cert.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_CERT_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_CLIENT_H
-#define DNS_CLIENT_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_CLIENT_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_CLIENTINFO_H
-#define DNS_CLIENTINFO_H 1
+#pragma once
/*****
***** Module Info
dns_clientinfo_init(dns_clientinfo_t *ci, void *data, void *versionp);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_CLIENTINFO_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_COMPRESS_H
-#define DNS_COMPRESS_H 1
+#pragma once
#include <inttypes.h>
#include <stdbool.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_COMPRESS_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_DB_H
-#define DNS_DB_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_DB_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_DBITERATOR_H
-#define DNS_DBITERATOR_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_DBITERATOR_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_DIFF_H
-#define DNS_DIFF_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_DIFF_H */
/*! \file dns/dlz.h */
-#ifndef DLZ_H
-#define DLZ_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DLZ_H */
/*! \file dns/dlz_dlopen.h */
-#ifndef DLZ_DLOPEN_H
-#define DLZ_DLOPEN_H
+#pragma once
#include <inttypes.h>
#include <stdbool.h>
void *version);
ISC_LANG_ENDDECLS
-
-#endif /* ifndef DLZ_DLOPEN_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_DNS64_H
-#define DNS_DNS64_H 1
+#pragma once
#include <stdbool.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_DNS64_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_DNSRPS_H
-#define DNS_DNSRPS_H
+#pragma once
#include <inttypes.h>
#include <stdbool.h>
#endif /* USE_DNSRPS */
ISC_LANG_ENDDECLS
-
-#endif /* DNS_DNSRPS_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_DNSSEC_H
-#define DNS_DNSSEC_H 1
+#pragma once
/*! \file dns/dnssec.h */
*\li Other values indicate error
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_DNSSEC_H */
* information regarding copyright ownership.
*/
-#ifndef _DNSTAP_H
-#define _DNSTAP_H
+#pragma once
/*****
***** Module Info
*
*\li '*handlep' is not NULL
*/
-
-#endif /* _DNSTAP_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_DS_H
-#define DNS_DS_H 1
+#pragma once
#include <isc/lang.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_DS_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_DSDIGEST_H
-#define DNS_DSDIGEST_H 1
+#pragma once
/*! \file dns/dsdigest.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_DSDIGEST_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_DYNDB_H
-#define DNS_DYNDB_H
+#pragma once
#include <stdbool.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_DYNDB_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_ECS_H
-#define DNS_ECS_H 1
+#pragma once
#include <inttypes.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_ECS_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_EDNS_H
-#define DNS_EDNS_H 1
+#pragma once
/*%
* The maximum version on EDNS supported by this build.
*/
#define DNS_EDNS_VERSION 1 /* draft-andrews-edns1 */
#endif /* ifdef DRAFT_ANDREWS_EDNS1 */
-
-#endif /* ifndef DNS_EDNS_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_EVENTS_H
-#define DNS_EVENTS_H 1
+#pragma once
#include <isc/eventclass.h>
#define DNS_EVENT_FIRSTEVENT (ISC_EVENTCLASS_DNS + 0)
#define DNS_EVENT_LASTEVENT (ISC_EVENTCLASS_DNS + 65535)
-
-#endif /* DNS_EVENTS_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_FIXEDNAME_H
-#define DNS_FIXEDNAME_H 1
+#pragma once
/*****
***** Module Info
dns_fixedname_initname(dns_fixedname_t *fixed);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_FIXEDNAME_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_FORWARD_H
-#define DNS_FORWARD_H 1
+#pragma once
/*! \file dns/forward.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_FORWARD_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_GEOIP_H
-#define DNS_GEOIP_H 1
+#pragma once
/*****
***** Module Info
ISC_LANG_ENDDECLS
#endif /* HAVE_GEOIP2 */
-
-#endif /* DNS_GEOIP_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_IPKEYLIST_H
-#define DNS_IPKEYLIST_H 1
+#pragma once
#include <inttypes.h>
* \li #ISC_R_SUCCESS if success
* \li #ISC_R_NOMEMORY if there's no memory, ipkeylist is left untouched
*/
-
-#endif /* ifndef DNS_IPKEYLIST_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_IPTABLE_H
-#define DNS_IPTABLE_H 1
+#pragma once
#include <inttypes.h>
#include <stdbool.h>
dns_iptable_detach(dns_iptable_t **tabp);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_IPTABLE_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_JOURNAL_H
-#define DNS_JOURNAL_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_JOURNAL_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_KASP_H
-#define DNS_KASP_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_KASP_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_KEYDATA_H
-#define DNS_KEYDATA_H 1
+#pragma once
/*****
***** Module Info
isc_mem_t *mctx);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_KEYDATA_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_KEYFLAGS_H
-#define DNS_KEYFLAGS_H 1
+#pragma once
/*! \file dns/keyflags.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_KEYFLAGS_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_KEYMGR_H
-#define DNS_KEYMGR_H 1
+#pragma once
/*! \file dns/keymgr.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_KEYMGR_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_KEYTABLE_H
-#define DNS_KEYTABLE_H 1
+#pragma once
/*****
***** Module Info
dns_name_t *, void *),
void *arg);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_KEYTABLE_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_KEYVALUES_H
-#define DNS_KEYVALUES_H 1
+#pragma once
/*! \file dns/keyvalues.h */
#define DNS_KEY_ED25519SIZE 32
#define DNS_KEY_ED448SIZE 57
-
-#endif /* DNS_KEYVALUES_H */
* version 1.2.12
*/
-#ifndef LIBRPZ_H
-#define LIBRPZ_H
+#pragma once
#include <inttypes.h>
#include <stdarg.h>
#endif /* LIBRPZ_LIB_OPEN */
}
#endif /* LIBRPZ_LIB_OPEN */
-
-#endif /* LIBRPZ_H */
/*! \file dns/log.h
*/
-#ifndef DNS_LOG_H
-#define DNS_LOG_H 1
+#pragma once
#include <isc/lang.h>
#include <isc/log.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_LOG_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_LOOKUP_H
-#define DNS_LOOKUP_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_LOOKUP_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_MASTER_H
-#define DNS_MASTER_H 1
+#pragma once
/*! \file dns/master.h */
* values to zero.
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_MASTER_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_MASTERDUMP_H
-#define DNS_MASTERDUMP_H 1
+#pragma once
/*! \file dns/masterdump.h */
dns_master_styledestroy(dns_master_style_t **style, isc_mem_t *mctx);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_MASTERDUMP_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_NAME_H
-#define DNS_NAME_H 1
+#pragma once
/*****
***** Module Info
#define dns_name_split(n, l, p, s) DNS_NAME_SPLIT(n, l, p, s)
#endif /* DNS_NAME_USEINLINE */
-
-#endif /* DNS_NAME_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_NCACHE_H
-#define DNS_NCACHE_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_NCACHE_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_NSEC_H
-#define DNS_NSEC_H 1
+#pragma once
/*! \file dns/nsec.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_NSEC_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_NSEC3_H
-#define DNS_NSEC3_H 1
+#pragma once
#include <stdbool.h>
dns_name_t *nearest, dns_nseclog_t logit, void *arg);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_NSEC3_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_NTA_H
-#define DNS_NTA_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_NTA_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_OPCODE_H
-#define DNS_OPCODE_H 1
+#pragma once
/*! \file dns/opcode.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_OPCODE_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_ORDER_H
-#define DNS_ORDER_H 1
+#pragma once
/*! \file dns/order.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_ORDER_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_PEER_H
-#define DNS_PEER_H 1
+#pragma once
/*****
***** Module Info
isc_result_t
dns_peer_getednsversion(dns_peer_t *peer, uint8_t *ednsversion);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_PEER_H */
#include <dns/db.h>
#include <dns/types.h>
-#ifndef DNS_PRIVATE_H
-#define DNS_PRIVATE_H
+#pragma once
ISC_LANG_BEGINDECLS
*/
ISC_LANG_ENDDECLS
-
-#endif /* ifndef DNS_PRIVATE_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RBT_H
-#define DNS_RBT_H 1
+#pragma once
/*! \file dns/rbt.h */
* and in unit tests.
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RBT_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RCODE_H
-#define DNS_RCODE_H 1
+#pragma once
/*! \file dns/rcode.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RCODE_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RDATA_H
-#define DNS_RDATA_H 1
+#pragma once
/*****
***** Module Info
dns_rdata_updateop(dns_rdata_t *rdata, dns_section_t section);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATA_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RDATACLASS_H
-#define DNS_RDATACLASS_H 1
+#pragma once
/*! \file dns/rdataclass.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATACLASS_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RDATALIST_H
-#define DNS_RDATALIST_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATALIST_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RDATASET_H
-#define DNS_RDATASET_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATASET_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RDATASETITER_H
-#define DNS_RDATASETITER_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATASETITER_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RDATASLAB_H
-#define DNS_RDATASLAB_H 1
+#pragma once
/*! \file dns/rdataslab.h
* \brief
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATASLAB_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RDATATYPE_H
-#define DNS_RDATATYPE_H 1
+#pragma once
/*! \file dns/rdatatype.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATATYPE_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_REQUEST_H
-#define DNS_REQUEST_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_REQUEST_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RESOLVER_H
-#define DNS_RESOLVER_H 1
+#pragma once
/*****
***** Module Info
#endif /* ifdef ENABLE_AFL */
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RESOLVER_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RESULT_H
-#define DNS_RESULT_H 1
+#pragma once
/*! \file dns/result.h */
dns_result_fromrcode(dns_rcode_t rcode);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RESULT_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_ROOTNS_H
-#define DNS_ROOTNS_H 1
+#pragma once
/*! \file dns/rootns.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_ROOTNS_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RPZ_H
-#define DNS_RPZ_H 1
+#pragma once
#include <inttypes.h>
#include <stdbool.h>
dns_rpz_zbits_t zbits, dns_name_t *trig_name);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RPZ_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RRITERATOR_H
-#define DNS_RRITERATOR_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RRITERATOR_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RRL_H
-#define DNS_RRL_H 1
+#pragma once
/*
* Rate limit DNS responses.
dns_rrl_init(dns_rrl_t **rrlp, dns_view_t *view, int min_entries);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RRL_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_SDB_H
-#define DNS_SDB_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_SDB_H */
/*! \file dns/sdlz.h */
-#ifndef SDLZ_H
-#define SDLZ_H 1
+#pragma once
#include <inttypes.h>
#include <stdbool.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* SDLZ_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_SECALG_H
-#define DNS_SECALG_H 1
+#pragma once
/*! \file dns/secalg.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_SECALG_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_SECPROTO_H
-#define DNS_SECPROTO_H 1
+#pragma once
/*! \file dns/secproto.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_SECPROTO_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_SOA_H
-#define DNS_SOA_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_SOA_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_SSU_H
-#define DNS_SSU_H 1
+#pragma once
/*! \file dns/ssu.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_SSU_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_STATS_H
-#define DNS_STATS_H 1
+#pragma once
/*! \file dns/stats.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_STATS_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_TIME_H
-#define DNS_TIME_H 1
+#pragma once
/*! \file dns/time.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_TIME_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_TIMER_H
-#define DNS_TIMER_H 1
+#pragma once
/*! \file dns/timer.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_TIMER_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_TKEY_H
-#define DNS_TKEY_H 1
+#pragma once
/*! \file dns/tkey.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_TKEY_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_TSEC_H
-#define DNS_TSEC_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_TSEC_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_TSIG_H
-#define DNS_TSIG_H 1
+#pragma once
/*! \file dns/tsig.h */
dns_keyring_restore(dns_tsig_keyring_t *ring, FILE *fp);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_TSIG_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_TTL_H
-#define DNS_TTL_H 1
+#pragma once
/*! \file dns/ttl.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_TTL_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_TYPES_H
-#define DNS_TYPES_H 1
+#pragma once
/*! \file dns/types.h
* \brief
dns_rdataclass_t, void *);
typedef void (*dns_nseclog_t)(void *val, int, const char *, ...);
-
-#endif /* DNS_TYPES_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_UPDATE_H
-#define DNS_UPDATE_H 1
+#pragma once
/*! \file dns/update.h */
dns_update_state_t **state);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_UPDATE_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_VALIDATOR_H
-#define DNS_VALIDATOR_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_VALIDATOR_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_VIEW_H
-#define DNS_VIEW_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_VIEW_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_XFRIN_H
-#define DNS_XFRIN_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_XFRIN_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_ZONE_H
-#define DNS_ZONE_H 1
+#pragma once
/*! \file dns/zone.h */
/*%<
* Return the name of the zone type 'type'.
*/
-
-#endif /* DNS_ZONE_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_ZONEKEY_H
-#define DNS_ZONEKEY_H 1
+#pragma once
/*! \file dns/zonekey.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_ZONEKEY_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_ZT_H
-#define DNS_ZT_H 1
+#pragma once
/*! \file dns/zt.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_ZT_H */
* information regarding copyright ownership.
*/
-#ifndef DST_DST_H
-#define DST_DST_H 1
+#pragma once
/*! \file dst/dst.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* DST_DST_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RBTDB_H
-#define DNS_RBTDB_H 1
+#pragma once
#include <isc/lang.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RBTDB_H */
* information regarding copyright ownership.
*/
-#ifndef ANY_255_TSIG_250_H
-#define ANY_255_TSIG_250_H 1
+#pragma once
/*% RFC2845 */
typedef struct dns_rdata_any_tsig {
uint16_t otherlen;
unsigned char *other;
} dns_rdata_any_tsig_t;
-
-#endif /* ANY_255_TSIG_250_H */
/* by Bjorn.Victor@it.uu.se, 2005-05-07 */
/* Based on generic/mx_15.h */
-#ifndef CH_3_A_1_H
-#define CH_3_A_1_H 1
+#pragma once
typedef uint16_t ch_addr_t;
ch_addr_t ch_addr; /* chaos address (16 bit) network
* order */
} dns_rdata_ch_a_t;
-
-#endif /* CH_3_A_1_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_AFSDB_18_H
-#define GENERIC_AFSDB_18_H 1
+#pragma once
/*!
* \brief Per RFC1183 */
uint16_t subtype;
dns_name_t server;
} dns_rdata_afsdb_t;
-
-#endif /* GENERIC_AFSDB_18_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_AMTRELAY_260_H
-#define GENERIC_AMTRELAY_260_H 1
+#pragma once
typedef struct dns_rdata_amtrelay {
dns_rdatacommon_t common;
unsigned char *data; /* gateway type > 3 */
uint16_t length;
} dns_rdata_amtrelay_t;
-
-#endif /* GENERIC_AMTRELAY_260_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_AVC_258_H
-#define GENERIC_AVC_258_H 1
+#pragma once
typedef dns_rdata_txt_string_t dns_rdata_avc_string_t;
* ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
* via rdatastructpre.h and rdatastructsuf.h.
*/
-#endif /* GENERIC_AVC_258_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_CAA_257_H
-#define GENERIC_CAA_257_H 1
+#pragma once
typedef struct dns_rdata_caa {
dns_rdatacommon_t common;
unsigned char *value;
uint16_t value_len;
} dns_rdata_caa_t;
-
-#endif /* GENERIC_CAA_257_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_CDNSKEY_60_H
-#define GENERIC_CDNSKEY_60_H 1
+#pragma once
/* CDNSKEY records have the same RDATA fields as DNSKEY records. */
typedef struct dns_rdata_key dns_rdata_cdnskey_t;
-
-#endif /* GENERIC_CDNSKEY_60_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_CDS_59_H
-#define GENERIC_CDS_59_H 1
+#pragma once
/* CDS records have the same RDATA fields as DS records. */
typedef struct dns_rdata_ds dns_rdata_cds_t;
-
-#endif /* GENERIC_CDS_59_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_CERT_37_H
-#define GENERIC_CERT_37_H 1
+#pragma once
/*% RFC2538 */
typedef struct dns_rdata_cert {
uint16_t length;
unsigned char *certificate;
} dns_rdata_cert_t;
-
-#endif /* GENERIC_CERT_37_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_CNAME_5_H
-#define GENERIC_CNAME_5_H 1
+#pragma once
typedef struct dns_rdata_cname {
dns_rdatacommon_t common;
isc_mem_t *mctx;
dns_name_t cname;
} dns_rdata_cname_t;
-
-#endif /* GENERIC_CNAME_5_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_CSYNC_62_H
-#define GENERIC_CSYNC_62_H 1
+#pragma once
/*!
* \brief Per RFC 7477
unsigned char *typebits;
uint16_t len;
} dns_rdata_csync_t;
-
-#endif /* GENERIC_CSYNC_62_H */
*/
/* draft-ietf-dnsext-delegation-signer-05.txt */
-#ifndef GENERIC_DLV_32769_H
-#define GENERIC_DLV_32769_H 1
+#pragma once
typedef struct dns_rdata_ds dns_rdata_dlv_t;
-
-#endif /* GENERIC_DLV_32769_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_DNAME_39_H
-#define GENERIC_DNAME_39_H 1
+#pragma once
/*!
* \brief per RFC2672 */
isc_mem_t *mctx;
dns_name_t dname;
} dns_rdata_dname_t;
-
-#endif /* GENERIC_DNAME_39_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_DNSKEY_48_H
-#define GENERIC_DNSKEY_48_H 1
+#pragma once
/*!
* \brief per RFC2535
*/
typedef struct dns_rdata_key dns_rdata_dnskey_t;
-
-#endif /* GENERIC_DNSKEY_48_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_DOA_259_H
-#define GENERIC_DOA_259_H 1
+#pragma once
typedef struct dns_rdata_doa {
dns_rdatacommon_t common;
uint8_t location;
uint8_t mediatype_len;
} dns_rdata_doa_t;
-
-#endif /* GENERIC_DOA_259_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_DS_43_H
-#define GENERIC_DS_43_H 1
+#pragma once
/*!
* \brief per draft-ietf-dnsext-delegation-signer-05.txt */
uint16_t length;
unsigned char *digest;
} dns_rdata_ds_t;
-
-#endif /* GENERIC_DS_43_H */
*/
/* */
-#ifndef GENERIC_EUI48_108_H
-#define GENERIC_EUI48_108_H 1
+#pragma once
typedef struct dns_rdata_eui48 {
dns_rdatacommon_t common;
unsigned char eui48[6];
} dns_rdata_eui48_t;
-
-#endif /* GENERIC_EUI48_10k_H */
*/
/* */
-#ifndef GENERIC_EUI64_109_H
-#define GENERIC_EUI64_109_H 1
+#pragma once
typedef struct dns_rdata_eui64 {
dns_rdatacommon_t common;
unsigned char eui64[8];
} dns_rdata_eui64_t;
-
-#endif /* GENERIC_EUI64_10k_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_GPOS_27_H
-#define GENERIC_GPOS_27_H 1
+#pragma once
/*!
* \brief per RFC1712 */
uint8_t lat_len;
uint8_t alt_len;
} dns_rdata_gpos_t;
-
-#endif /* GENERIC_GPOS_27_H */
* information regarding copyright ownership.
*/
-#ifndef RDATA_GENERIC_HINFO_13_C
-#define RDATA_GENERIC_HINFO_13_C
+#pragma once
#define RRTYPE_HINFO_ATTRIBUTES (0)
casecompare_hinfo(ARGS_COMPARE) {
return (compare_hinfo(rdata1, rdata2));
}
-#endif /* RDATA_GENERIC_HINFO_13_C */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_HINFO_13_H
-#define GENERIC_HINFO_13_H 1
+#pragma once
typedef struct dns_rdata_hinfo {
dns_rdatacommon_t common;
uint8_t cpu_len;
uint8_t os_len;
} dns_rdata_hinfo_t;
-
-#endif /* GENERIC_HINFO_13_H */
/* RFC 5205 */
-#ifndef RDATA_GENERIC_HIP_5_C
-#define RDATA_GENERIC_HIP_5_C
+#pragma once
#define RRTYPE_HIP_ATTRIBUTES (0)
}
return (isc_region_compare(&r1, &r2));
}
-
-#endif /* RDATA_GENERIC_HIP_5_C */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_HIP_5_H
-#define GENERIC_HIP_5_H 1
+#pragma once
/* RFC 5205 */
void
dns_rdata_hip_current(dns_rdata_hip_t *, dns_name_t *);
-
-#endif /* GENERIC_HIP_5_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_IPSECKEY_45_H
-#define GENERIC_IPSECKEY_45_H 1
+#pragma once
typedef struct dns_rdata_ipseckey {
dns_rdatacommon_t common;
unsigned char *key;
uint16_t keylength;
} dns_rdata_ipseckey_t;
-
-#endif /* GENERIC_IPSECKEY_45_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_ISDN_20_H
-#define GENERIC_ISDN_20_H 1
+#pragma once
/*!
* \brief Per RFC1183 */
uint8_t isdn_len;
uint8_t subaddress_len;
} dns_rdata_isdn_t;
-
-#endif /* GENERIC_ISDN_20_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_KEY_25_H
-#define GENERIC_KEY_25_H 1
+#pragma once
/*!
* \brief Per RFC2535 */
uint16_t datalen;
unsigned char *data;
} dns_rdata_key_t;
-
-#endif /* GENERIC_KEY_25_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_KEYDATA_65533_H
-#define GENERIC_KEYDATA_65533_H 1
+#pragma once
typedef struct dns_rdata_keydata {
dns_rdatacommon_t common;
uint16_t datalen;
unsigned char *data;
} dns_rdata_keydata_t;
-
-#endif /* GENERIC_KEYDATA_65533_H */
*/
/* */
-#ifndef GENERIC_L32_105_H
-#define GENERIC_L32_105_H 1
+#pragma once
typedef struct dns_rdata_l32 {
dns_rdatacommon_t common;
uint16_t pref;
struct in_addr l32;
} dns_rdata_l32_t;
-
-#endif /* GENERIC_L32_105_H */
*/
/* */
-#ifndef GENERIC_L64_106_H
-#define GENERIC_L64_106_H 1
+#pragma once
typedef struct dns_rdata_l64 {
dns_rdatacommon_t common;
uint16_t pref;
unsigned char l64[8];
} dns_rdata_l64_t;
-
-#endif /* GENERIC_L64_106_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_LOC_29_H
-#define GENERIC_LOC_29_H 1
+#pragma once
/*!
* \brief Per RFC1876 */
dns_rdata_loc_0_t v0;
} v;
} dns_rdata_loc_t;
-
-#endif /* GENERIC_LOC_29_H */
*/
/* */
-#ifndef GENERIC_LP_107_H
-#define GENERIC_LP_107_H 1
+#pragma once
typedef struct dns_rdata_lp {
dns_rdatacommon_t common;
uint16_t pref;
dns_name_t lp;
} dns_rdata_lp_t;
-
-#endif /* GENERIC_LP_107_H */
*/
/* */
-#ifndef GENERIC_MB_7_H
-#define GENERIC_MB_7_H 1
+#pragma once
typedef struct dns_rdata_mb {
dns_rdatacommon_t common;
isc_mem_t *mctx;
dns_name_t mb;
} dns_rdata_mb_t;
-
-#endif /* GENERIC_MB_7_H */
*/
/* */
-#ifndef GENERIC_MD_3_H
-#define GENERIC_MD_3_H 1
+#pragma once
typedef struct dns_rdata_md {
dns_rdatacommon_t common;
isc_mem_t *mctx;
dns_name_t md;
} dns_rdata_md_t;
-
-#endif /* GENERIC_MD_3_H */
*/
/* */
-#ifndef GENERIC_MF_4_H
-#define GENERIC_MF_4_H 1
+#pragma once
typedef struct dns_rdata_mf {
dns_rdatacommon_t common;
isc_mem_t *mctx;
dns_name_t mf;
} dns_rdata_mf_t;
-
-#endif /* GENERIC_MF_4_H */
*/
/* */
-#ifndef GENERIC_MG_8_H
-#define GENERIC_MG_8_H 1
+#pragma once
typedef struct dns_rdata_mg {
dns_rdatacommon_t common;
isc_mem_t *mctx;
dns_name_t mg;
} dns_rdata_mg_t;
-
-#endif /* GENERIC_MG_8_H */
*/
/* */
-#ifndef GENERIC_MINFO_14_H
-#define GENERIC_MINFO_14_H 1
+#pragma once
typedef struct dns_rdata_minfo {
dns_rdatacommon_t common;
dns_name_t rmailbox;
dns_name_t emailbox;
} dns_rdata_minfo_t;
-
-#endif /* GENERIC_MINFO_14_H */
*/
/* */
-#ifndef GENERIC_MR_9_H
-#define GENERIC_MR_9_H 1
+#pragma once
typedef struct dns_rdata_mr {
dns_rdatacommon_t common;
isc_mem_t *mctx;
dns_name_t mr;
} dns_rdata_mr_t;
-
-#endif /* GENERIC_MR_9_H */
*/
/* */
-#ifndef GENERIC_MX_15_H
-#define GENERIC_MX_15_H 1
+#pragma once
typedef struct dns_rdata_mx {
dns_rdatacommon_t common;
uint16_t pref;
dns_name_t mx;
} dns_rdata_mx_t;
-
-#endif /* GENERIC_MX_15_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_NAPTR_35_H
-#define GENERIC_NAPTR_35_H 1
+#pragma once
/*!
* \brief Per RFC2915 */
uint8_t regexp_len;
dns_name_t replacement;
} dns_rdata_naptr_t;
-
-#endif /* GENERIC_NAPTR_35_H */
*/
/* */
-#ifndef GENERIC_NID_104_H
-#define GENERIC_NID_104_H 1
+#pragma once
typedef struct dns_rdata_nid {
dns_rdatacommon_t common;
uint16_t pref;
unsigned char nid[8];
} dns_rdata_nid_t;
-
-#endif /* GENERIC_NID_104_H */
*/
/* */
-#ifndef GENERIC_NINFO_56_H
-#define GENERIC_NINFO_56_H 1
+#pragma once
typedef struct dns_rdata_txt_string dns_rdata_ninfo_string_t;
isc_result_t
dns_rdata_ninfo_current(dns_rdata_ninfo_t *, dns_rdata_ninfo_string_t *);
-
-#endif /* GENERIC_NINFO_16_H */
*/
/* */
-#ifndef GENERIC_NS_2_H
-#define GENERIC_NS_2_H 1
+#pragma once
typedef struct dns_rdata_ns {
dns_rdatacommon_t common;
isc_mem_t *mctx;
dns_name_t name;
} dns_rdata_ns_t;
-
-#endif /* GENERIC_NS_2_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_NSEC3_50_H
-#define GENERIC_NSEC3_50_H 1
+#pragma once
/*!
* \brief Per RFC 5155 */
* nameservers.
*/
#define DNS_NSEC3FLAG_NONSEC 0x10U
-
-#endif /* GENERIC_NSEC3_50_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_NSEC3PARAM_51_H
-#define GENERIC_NSEC3PARAM_51_H 1
+#pragma once
/*!
* \brief Per RFC 5155 */
unsigned char salt_length;
unsigned char *salt;
} dns_rdata_nsec3param_t;
-
-#endif /* GENERIC_NSEC3PARAM_51_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_NSEC_47_H
-#define GENERIC_NSEC_47_H 1
+#pragma once
/*!
* \brief Per RFC 3845 */
unsigned char *typebits;
uint16_t len;
} dns_rdata_nsec_t;
-
-#endif /* GENERIC_NSEC_47_H */
*/
/* */
-#ifndef GENERIC_NULL_10_H
-#define GENERIC_NULL_10_H 1
+#pragma once
typedef struct dns_rdata_null {
dns_rdatacommon_t common;
uint16_t length;
unsigned char *data;
} dns_rdata_null_t;
-
-#endif /* GENERIC_NULL_10_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_NXT_30_H
-#define GENERIC_NXT_30_H 1
+#pragma once
/*!
* \brief RFC2535 */
unsigned char *typebits;
uint16_t len;
} dns_rdata_nxt_t;
-
-#endif /* GENERIC_NXT_30_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_OPENPGPKEY_61_H
-#define GENERIC_OPENPGPKEY_61_H 1
+#pragma once
typedef struct dns_rdata_openpgpkey {
dns_rdatacommon_t common;
uint16_t length;
unsigned char *keyring;
} dns_rdata_openpgpkey_t;
-
-#endif /* GENERIC_OPENPGPKEY_61_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_OPT_41_H
-#define GENERIC_OPT_41_H 1
+#pragma once
/*!
* \brief Per RFC2671 */
isc_result_t
dns_rdata_opt_current(dns_rdata_opt_t *, dns_rdata_opt_opcode_t *);
-
-#endif /* GENERIC_OPT_41_H */
*/
/* */
-#ifndef GENERIC_PROFORMA_H
-#define GENERIC_PROFORMA_H 1
+#pragma once
typedef struct dns_rdata_ #{
dns_rdatacommon_t common;
/* type & class specific elements */
}
dns_rdata_ #_t;
-
-#endif /* GENERIC_PROFORMA_H */
*/
/* */
-#ifndef GENERIC_PTR_12_H
-#define GENERIC_PTR_12_H 1
+#pragma once
typedef struct dns_rdata_ptr {
dns_rdatacommon_t common;
isc_mem_t *mctx;
dns_name_t ptr;
} dns_rdata_ptr_t;
-
-#endif /* GENERIC_PTR_12_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_RKEY_57_H
-#define GENERIC_RKEY_57_H 1
+#pragma once
typedef struct dns_rdata_key dns_rdata_rkey_t;
-
-#endif /* GENERIC_RKEY_57_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_RP_17_H
-#define GENERIC_RP_17_H 1
+#pragma once
/*!
* \brief Per RFC1183 */
dns_name_t mail;
dns_name_t text;
} dns_rdata_rp_t;
-
-#endif /* GENERIC_RP_17_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_DNSSIG_46_H
-#define GENERIC_DNSSIG_46_H 1
+#pragma once
/*!
* \brief Per RFC2535 */
uint16_t siglen;
unsigned char *signature;
} dns_rdata_rrsig_t;
-
-#endif /* GENERIC_DNSSIG_46_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_RT_21_H
-#define GENERIC_RT_21_H 1
+#pragma once
/*!
* \brief Per RFC1183 */
uint16_t preference;
dns_name_t host;
} dns_rdata_rt_t;
-
-#endif /* GENERIC_RT_21_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_SIG_24_H
-#define GENERIC_SIG_24_H 1
+#pragma once
/*!
* \brief Per RFC2535 */
uint16_t siglen;
unsigned char *signature;
} dns_rdata_sig_t;
-
-#endif /* GENERIC_SIG_24_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_SINK_40_H
-#define GENERIC_SINK_40_H 1
+#pragma once
typedef struct dns_rdata_sink_t {
dns_rdatacommon_t common;
uint16_t datalen;
unsigned char *data;
} dns_rdata_sink_t;
-
-#endif /* GENERIC_SINK_40_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_SMIMEA_53_H
-#define GENERIC_SMIMEA_53_H 1
+#pragma once
typedef struct dns_rdata_tlsa dns_rdata_smimea_t;
-
-#endif /* GENERIC_SMIMEA_53_H */
*/
/* */
-#ifndef GENERIC_SOA_6_H
-#define GENERIC_SOA_6_H 1
+#pragma once
typedef struct dns_rdata_soa {
dns_rdatacommon_t common;
uint32_t expire; /*%< host order */
uint32_t minimum; /*%< host order */
} dns_rdata_soa_t;
-
-#endif /* GENERIC_SOA_6_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_SPF_99_H
-#define GENERIC_SPF_99_H 1
+#pragma once
typedef struct dns_rdata_spf_string {
uint8_t length;
* ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
* via rdatastructpre.h and rdatastructsuf.h.
*/
-#endif /* GENERIC_SPF_99_H */
/*!
* \brief Per RFC 4255 */
-#ifndef GENERIC_SSHFP_44_H
-#define GENERIC_SSHFP_44_H 1
+#pragma once
typedef struct dns_rdata_sshfp {
dns_rdatacommon_t common;
uint16_t length;
unsigned char *digest;
} dns_rdata_sshfp_t;
-
-#endif /* GENERIC_SSHFP_44_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_TA_32768_H
-#define GENERIC_TA_32768_H 1
+#pragma once
/*
* TA records are identical to DS records.
*/
typedef struct dns_rdata_ds dns_rdata_ta_t;
-
-#endif /* GENERIC_TA_32768_H */
* http://www.iana.org/assignments/dns-parameters/TALINK/talink-completed-template
*/
-#ifndef GENERIC_TALINK_58_H
-#define GENERIC_TALINK_58_H 1
+#pragma once
typedef struct dns_rdata_talink {
dns_rdatacommon_t common;
dns_name_t prev;
dns_name_t next;
} dns_rdata_talink_t;
-
-#endif /* GENERIC_TALINK_58_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_TKEY_249_H
-#define GENERIC_TKEY_249_H 1
+#pragma once
/*!
* \brief Per draft-ietf-dnsind-tkey-00.txt */
uint16_t otherlen;
unsigned char *other;
} dns_rdata_tkey_t;
-
-#endif /* GENERIC_TKEY_249_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_TLSA_52_H
-#define GENERIC_TLSA_52_H 1
+#pragma once
/*!
* \brief per rfc6698.txt
uint16_t length;
unsigned char *data;
} dns_rdata_tlsa_t;
-
-#endif /* GENERIC_TLSA_52_H */
*/
/* */
-#ifndef GENERIC_TXT_16_H
-#define GENERIC_TXT_16_H 1
+#pragma once
typedef struct dns_rdata_txt_string {
uint8_t length;
isc_result_t
dns_rdata_txt_current(dns_rdata_txt_t *, dns_rdata_txt_string_t *);
-
-#endif /* GENERIC_TXT_16_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_URI_256_H
-#define GENERIC_URI_256_H 1
+#pragma once
typedef struct dns_rdata_uri {
dns_rdatacommon_t common;
unsigned char *target;
uint16_t tgt_len;
} dns_rdata_uri_t;
-
-#endif /* GENERIC_URI_256_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_X25_19_H
-#define GENERIC_X25_19_H 1
+#pragma once
/*!
* \brief Per RFC1183 */
unsigned char *x25;
uint8_t x25_len;
} dns_rdata_x25_t;
-
-#endif /* GENERIC_X25_19_H */
* information regarding copyright ownership.
*/
-#ifndef GENERIC_ZONEMD_63_H
-#define GENERIC_ZONEMD_63_H 1
+#pragma once
/* Known digest type(s). */
#define DNS_ZONEMD_DIGEST_SHA384 (1)
unsigned char *digest;
uint16_t length;
} dns_rdata_zonemd_t;
-
-#endif /* GENERIC_ZONEMD_63_H */
* information regarding copyright ownership.
*/
-#ifndef RDATA_HS_4_A_1_C
-#define RDATA_HS_4_A_1_C
+#pragma once
#include <isc/net.h>
casecompare_hs_a(ARGS_COMPARE) {
return (compare_hs_a(rdata1, rdata2));
}
-
-#endif /* RDATA_HS_4_A_1_C */
*/
/* */
-#ifndef HS_4_A_1_H
-#define HS_4_A_1_H 1
+#pragma once
typedef struct dns_rdata_hs_a {
dns_rdatacommon_t common;
struct in_addr in_addr;
} dns_rdata_hs_a_t;
-
-#endif /* HS_4_A_1_H */
* information regarding copyright ownership.
*/
-#ifndef IN_1_A6_38_H
-#define IN_1_A6_38_H 1
+#pragma once
/*!
* \brief Per RFC2874 */
uint8_t prefixlen;
struct in6_addr in6_addr;
} dns_rdata_in_a6_t;
-
-#endif /* IN_1_A6_38_H */
*/
/* */
-#ifndef IN_1_A_1_H
-#define IN_1_A_1_H 1
+#pragma once
typedef struct dns_rdata_in_a {
dns_rdatacommon_t common;
struct in_addr in_addr;
} dns_rdata_in_a_t;
-
-#endif /* IN_1_A_1_H */
* information regarding copyright ownership.
*/
-#ifndef IN_1_AAAA_28_H
-#define IN_1_AAAA_28_H 1
+#pragma once
/*!
* \brief Per RFC1886 */
dns_rdatacommon_t common;
struct in6_addr in6_addr;
} dns_rdata_in_aaaa_t;
-
-#endif /* IN_1_AAAA_28_H */
*/
/* */
-#ifndef IN_1_APL_42_H
-#define IN_1_APL_42_H 1
+#pragma once
typedef struct dns_rdata_apl_ent {
bool negative;
unsigned int
dns_rdata_apl_count(const dns_rdata_in_apl_t *apl);
-
-#endif /* IN_1_APL_42_H */
* information regarding copyright ownership.
*/
-#ifndef IN_1_ATMA_22_H
-#define IN_1_ATMA_22_H 1
+#pragma once
/*!
* \brief Per RFC1706 */
unsigned char *atma;
uint16_t atma_len;
} dns_rdata_in_atma_t;
-
-#endif /* IN_1_ATMA_22_H */
*/
/* */
-#ifndef IN_1_DHCID_49_H
-#define IN_1_DHCID_49_H 1
+#pragma once
typedef struct dns_rdata_in_dhcid {
dns_rdatacommon_t common;
unsigned char *dhcid;
unsigned int length;
} dns_rdata_in_dhcid_t;
-
-#endif /* IN_1_DHCID_49_H */
* information regarding copyright ownership.
*/
-#ifndef IN_1_EID_31_H
-#define IN_1_EID_31_H 1
+#pragma once
/*!
* \brief http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt
unsigned char *eid;
uint16_t eid_len;
} dns_rdata_in_eid_t;
-
-#endif /* IN_1_EID_31_H */
/* draft-ietf-dnsop-svcb-https-02 */
-#ifndef RDATA_IN_1_HTTPS_65_C
-#define RDATA_IN_1_HTTPS_65_C
+#pragma once
#define RRTYPE_HTTPS_ATTRIBUTES (DNS_RDATATYPEATTR_FOLLOWADDITIONAL)
generic_rdata_in_svcb_current(https, region);
}
-
-#endif /* RDATA_IN_1_HTTPS_65_C */
* information regarding copyright ownership.
*/
-#ifndef IN_1_HTTPS_65_H
-#define IN_1_HTTPS_65_H 1
+#pragma once
/*!
* \brief Per draft-ietf-dnsop-svcb-https-02
void
dns_rdata_in_https_current(dns_rdata_in_https_t *, isc_region_t *);
-
-#endif /* IN_1_HTTPS_65_H */
* information regarding copyright ownership.
*/
-#ifndef IN_1_KX_36_H
-#define IN_1_KX_36_H 1
+#pragma once
/*!
* \brief Per RFC2230 */
uint16_t preference;
dns_name_t exchange;
} dns_rdata_in_kx_t;
-
-#endif /* IN_1_KX_36_H */
* information regarding copyright ownership.
*/
-#ifndef IN_1_NIMLOC_32_H
-#define IN_1_NIMLOC_32_H 1
+#pragma once
/*!
* \brief http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt
unsigned char *nimloc;
uint16_t nimloc_len;
} dns_rdata_in_nimloc_t;
-
-#endif /* IN_1_NIMLOC_32_H */
* information regarding copyright ownership.
*/
-#ifndef IN_1_NSAP_PTR_23_H
-#define IN_1_NSAP_PTR_23_H 1
+#pragma once
/*!
* \brief Per RFC1348. Obsoleted in RFC 1706 - use PTR instead. */
isc_mem_t *mctx;
dns_name_t owner;
} dns_rdata_in_nsap_ptr_t;
-
-#endif /* IN_1_NSAP_PTR_23_H */
* information regarding copyright ownership.
*/
-#ifndef IN_1_NSAP_22_H
-#define IN_1_NSAP_22_H 1
+#pragma once
/*!
* \brief Per RFC1706 */
unsigned char *nsap;
uint16_t nsap_len;
} dns_rdata_in_nsap_t;
-
-#endif /* IN_1_NSAP_22_H */
* information regarding copyright ownership.
*/
-#ifndef IN_1_PX_26_H
-#define IN_1_PX_26_H 1
+#pragma once
/*!
* \brief Per RFC2163 */
dns_name_t map822;
dns_name_t mapx400;
} dns_rdata_in_px_t;
-
-#endif /* IN_1_PX_26_H */
* information regarding copyright ownership.
*/
-#ifndef IN_1_SRV_33_H
-#define IN_1_SRV_33_H 1
+#pragma once
/*!
* \brief Per RFC2782 */
uint16_t port;
dns_name_t target;
} dns_rdata_in_srv_t;
-
-#endif /* IN_1_SRV_33_H */
* information regarding copyright ownership.
*/
-#ifndef IN_1_SVCB_64_H
-#define IN_1_SVCB_64_H 1
+#pragma once
/*!
* \brief Per draft-ietf-dnsop-svcb-https-02
void
dns_rdata_in_svcb_current(dns_rdata_in_svcb_t *, isc_region_t *);
-
-#endif /* IN_1_SVCB_64_H */
* information regarding copyright ownership.
*/
-#ifndef IN_1_WKS_11_H
-#define IN_1_WKS_11_H 1
+#pragma once
typedef struct dns_rdata_in_wks {
dns_rdatacommon_t common;
unsigned char *map;
uint16_t map_len;
} dns_rdata_in_wks_t;
-
-#endif /* IN_1_WKS_11_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RDATASTRUCT_H
-#define DNS_RDATASTRUCT_H 1
+#pragma once
#include <isc/lang.h>
#include <isc/sockaddr.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATASTRUCT_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_RDATALIST_P_H
-#define DNS_RDATALIST_P_H
+#pragma once
/*! \file */
isc__rdatalist_getownercase(const dns_rdataset_t *rdataset, dns_name_t *name);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATALIST_P_H */
* information regarding copyright ownership.
*/
+#pragma once
+
/*! \file */
#include <inttypes.h>
* information regarding copyright ownership.
*/
-#ifndef DNS_TSIG_P_H
-#define DNS_TSIG_P_H
+#pragma once
/*! \file */
dns__tsig_algallocated(const dns_name_t *algorithm);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_TSIG_P_H */
* information regarding copyright ownership.
*/
-#ifndef DNS_ZONE_P_H
-#define DNS_ZONE_P_H
+#pragma once
#include <stdbool.h>
unsigned char saltbuf[255], bool resalt);
ISC_LANG_ENDDECLS
-
-#endif /* DNS_ZONE_P_H */
* information regarding copyright ownership.
*/
-#ifndef UNIX_ERRNO2RESULT_H
-#define UNIX_ERRNO2RESULT_H 1
+#pragma once
/*! \file */
unsigned int line);
ISC_LANG_ENDDECLS
-
-#endif /* UNIX_ERRNO2RESULT_H */
/*! \file isc/aes.h */
-#ifndef ISC_AES_H
-#define ISC_AES_H 1
+#pragma once
#include <isc/lang.h>
#include <isc/types.h>
unsigned char *out);
ISC_LANG_ENDDECLS
-
-#endif /* ISC_AES_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_APP_H
-#define ISC_APP_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_APP_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_BASE32_H
-#define ISC_BASE32_H 1
+#pragma once
/*! \file */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_BASE32_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_BASE64_H
-#define ISC_BASE64_H 1
+#pragma once
/*! \file isc/base64.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_BASE64_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_BUFFER_H
-#define ISC_BUFFER_H 1
+#pragma once
/*****
***** Module Info
* No inline method for this one (yet).
*/
#define isc_buffer_putuint48 isc__buffer_putuint48
-
-#endif /* ISC_BUFFER_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_COMMANDLINE_H
-#define ISC_COMMANDLINE_H 1
+#pragma once
/*! \file isc/commandline.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_COMMANDLINE_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_COUNTER_H
-#define ISC_COUNTER_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_COUNTER_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_CRC64_H
-#define ISC_CRC64_H 1
+#pragma once
/*! \file isc/crc64.h
* \brief CRC64 in C
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_CRC64_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_DEPRECATED_H
-#define ISC_DEPRECATED_H
+#pragma once
#if (__GNUC__ + 0) > 3
#define ISC_DEPRECATED __attribute__((deprecated))
#else /* if (__GNUC__ + 0) > 3 */
#define ISC_DEPRECATED /* none */
#endif /* __GNUC__ > 3*/
-
-#endif /* ifndef ISC_DEPRECATED_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_ERRNO_H
-#define ISC_ERRNO_H 1
+#pragma once
/*! \file isc/file.h */
* \brief Convert a POSIX errno value to an ISC result code.
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_ERRNO_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_ERROR_H
-#define ISC_ERROR_H 1
+#pragma once
/*! \file isc/error.h */
((isc_error_runtimecheck)(__FILE__, __LINE__, #cond), 0)))
ISC_LANG_ENDDECLS
-
-#endif /* ISC_ERROR_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_EVENT_H
-#define ISC_EVENT_H 1
+#pragma once
/*! \file isc/event.h */
isc_event_free(isc_event_t **);
ISC_LANG_ENDDECLS
-
-#endif /* ISC_EVENT_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_EVENTCLASS_H
-#define ISC_EVENTCLASS_H 1
+#pragma once
/*! \file isc/eventclass.h
***** Registry of Predefined Event Type Classes
#define ISC_EVENTCLASS_ISCCC ISC_EVENTCLASS(8)
#define ISC_EVENTCLASS_NS ISC_EVENTCLASS(9)
/*@}*/
-
-#endif /* ISC_EVENTCLASS_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_FILE_H
-#define ISC_FILE_H 1
+#pragma once
/*! \file isc/file.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_FILE_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_FORMATCHECK_H
-#define ISC_FORMATCHECK_H 1
+#pragma once
/*! \file isc/formatcheck.h */
#else /* ifdef __GNUC__ */
#define ISC_FORMAT_PRINTF(fmt, args)
#endif /* ifdef __GNUC__ */
-
-#endif /* ISC_FORMATCHECK_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_FSACCESS_H
-#define ISC_FSACCESS_H 1
+#pragma once
/*! \file isc/fsaccess.h
* \brief The ISC filesystem access module encapsulates the setting of file
isc_fsaccess_set(const char *path, isc_fsaccess_t access);
ISC_LANG_ENDDECLS
-
-#endif /* ISC_FSACCESS_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_FUZZ_H
-#define ISC_FUZZ_H
+#pragma once
typedef enum {
isc_fuzz_none,
isc_fuzz_http,
isc_fuzz_rndc
} isc_fuzztype_t;
-
-#endif /* ISC_FUZZ_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_GLOB_H
-#define ISC_GLOB_H
+#pragma once
#include <isc/lang.h>
#include <isc/result.h>
isc_globfree(glob_t *pglob);
ISC_LANG_ENDDECLS
-
-#endif /* ISC_GLOB_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_HASH_H
-#define ISC_HASH_H 1
+#pragma once
#include <inttypes.h>
#include <stdbool.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_HASH_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_HEAP_H
-#define ISC_HEAP_H 1
+#pragma once
/*! \file isc/heap.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_HEAP_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_HEX_H
-#define ISC_HEX_H 1
+#pragma once
/*! \file isc/hex.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_HEX_H */
/* ! \file */
-#ifndef ISC_HT_H
-#define ISC_HT_H 1
+#pragma once
#include <inttypes.h>
#include <string.h>
*/
unsigned int
isc_ht_count(isc_ht_t *ht);
-#endif /* ifndef ISC_HT_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_HTTPD_H
-#define ISC_HTTPD_H 1
+#pragma once
/*! \file */
void
isc_httpd_setfinishhook(void (*fn)(void));
-
-#endif /* ISC_HTTPD_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_INTERFACEITER_H
-#define ISC_INTERFACEITER_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_INTERFACEITER_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_LANG_H
-#define ISC_LANG_H 1
+#pragma once
/*! \file isc/lang.h */
#define ISC_LANG_BEGINDECLS
#define ISC_LANG_ENDDECLS
#endif /* ifdef __cplusplus */
-
-#endif /* ISC_LANG_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_LEX_H
-#define ISC_LEX_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_LEX_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_LIKELY_H
-#define ISC_LIKELY_H 1
+#pragma once
/*%
* Performance
#define ISC_UNLIKELY(x) (x)
#endif /* ifdef HAVE_BUILTIN_EXPECT */
#endif /* ifdef CPPCHECK */
-
-#endif /* ISC_LIKELY_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_LIST_H
-#define ISC_LIST_H 1
+#pragma once
#include <isc/assertions.h>
__ISC_LIST_UNLINKUNSAFE_TYPE(list, elt, link, void)
#define __ISC_LIST_DEQUEUEUNSAFE_TYPE(list, elt, link, type) \
__ISC_LIST_UNLINKUNSAFE_TYPE(list, elt, link, type)
-
-#endif /* ISC_LIST_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_LOG_H
-#define ISC_LOG_H 1
+#pragma once
/*! \file isc/log.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_LOG_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_MAGIC_H
-#define ISC_MAGIC_H 1
+#pragma once
#include <isc/likely.h>
ISC_LIKELY(((const isc__magic_t *)(a))->magic == (b)))
#define ISC_MAGIC(a, b, c, d) ((a) << 24 | (b) << 16 | (c) << 8 | (d))
-
-#endif /* ISC_MAGIC_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_MEM_H
-#define ISC_MEM_H 1
+#pragma once
/*! \file isc/mem.h */
#endif
ISC_LANG_ENDDECLS
-
-#endif /* ISC_MEM_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_MEMINFO_H
-#define ISC_MEMINFO_H 1
+#pragma once
#include <inttypes.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_MEMINFO_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_MUTEX_H
-#define ISC_MUTEX_H 1
+#pragma once
/*! \file */
isc_mutex_init_errcheck(isc_mutex_t *mp);
ISC_LANG_ENDDECLS
-#endif /* ISC_MUTEX_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_MUTEXBLOCK_H
-#define ISC_MUTEXBLOCK_H 1
+#pragma once
/*! \file isc/mutexblock.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_MUTEXBLOCK_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_NET_H
-#define ISC_NET_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_NET_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_NETADDR_H
-#define ISC_NETADDR_H 1
+#pragma once
/*! \file isc/netaddr.h */
* 127.0.0.0/8 or ::1).
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_NETADDR_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_NETDB_H
-#define ISC_NETDB_H 1
+#pragma once
/*****
***** Module Info
#include <netdb.h>
#include <isc/net.h>
-
-#endif /* ISC_NETDB_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_NETSCOPE_H
-#define ISC_NETSCOPE_H 1
+#pragma once
/*! \file isc/netscope.h */
isc_netscope_pton(int af, char *scopename, void *addr, uint32_t *zoneid);
ISC_LANG_ENDDECLS
-
-#endif /* ISC_NETSCOPE_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_OFFSET_H
-#define ISC_OFFSET_H 1
+#pragma once
/*! \file
* \brief
#include <sys/types.h>
typedef off_t isc_offset_t;
-
-#endif /* ISC_OFFSET_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_ONCE_H
-#define ISC_ONCE_H 1
+#pragma once
/*! \file */
#define isc_once_do(op, f) \
((pthread_once((op), (f)) == 0) ? ISC_R_SUCCESS : ISC_R_UNEXPECTED)
-
-#endif /* ISC_ONCE_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_OS_H
-#define ISC_OS_H 1
+#pragma once
/*! \file isc/os.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_OS_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_PARSEINT_H
-#define ISC_PARSEINT_H 1
+#pragma once
#include <inttypes.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_PARSEINT_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_OBJPOOL_H
-#define ISC_OBJPOOL_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_OBJPOOL_H */
* in a place that can be accessed from multiple threads.
*/
-#ifndef ISC_PORTSET_H
-#define ISC_PORTSET_H 1
+#pragma once
/***
*** Imports
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_PORTSET_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_PRINT_H
-#define ISC_PRINT_H 1
+#pragma once
/*! \file isc/print.h */
***/
#include <stdio.h>
-
-#endif /* ISC_PRINT_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_QUOTA_H
-#define ISC_QUOTA_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_QUOTA_H */
* information regarding copyright ownership.
*/
-#ifndef _RADIX_H
-#define _RADIX_H
+#pragma once
#include <inttypes.h>
#include <string.h>
} \
} \
while (0)
-
-#endif /* _RADIX_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_RATELIMITER_H
-#define ISC_RATELIMITER_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_RATELIMITER_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_REGEX_H
-#define ISC_REGEX_H 1
+#pragma once
/*! \file isc/regex.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_REGEX_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_REGION_H
-#define ISC_REGION_H 1
+#pragma once
/*! \file isc/region.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_REGION_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_RESOURCE_H
-#define ISC_RESOURCE_H 1
+#pragma once
/*! \file isc/resource.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_RESOURCE_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_RESULT_H
-#define ISC_RESULT_H 1
+#pragma once
/*! \file isc/result.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_RESULT_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_RWLOCK_H
-#define ISC_RWLOCK_H 1
+#pragma once
#include <inttypes.h>
isc_rwlock_destroy(isc_rwlock_t *rwl);
ISC_LANG_ENDDECLS
-
-#endif /* ISC_RWLOCK_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_SAFE_H
-#define ISC_SAFE_H 1
+#pragma once
/*! \file isc/safe.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_SAFE_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_SERIAL_H
-#define ISC_SERIAL_H 1
+#pragma once
#include <inttypes.h>
#include <stdbool.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_SERIAL_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_SOCKADDR_H
-#define ISC_SOCKADDR_H 1
+#pragma once
/*! \file isc/sockaddr.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_SOCKADDR_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_STAT_H
-#define ISC_STAT_H 1
+#pragma once
/*****
***** Module Info
#include <sys/stat.h>
#include <sys/types.h>
-
-#endif /* ISC_STAT_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_STATS_H
-#define ISC_STATS_H 1
+#pragma once
/*! \file isc/stats.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_STATS_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_STDIO_H
-#define ISC_STDIO_H 1
+#pragma once
/*! \file isc/stdio.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_STDIO_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_STDTIME_H
-#define ISC_STDTIME_H 1
+#pragma once
/*! \file */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_STDTIME_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_SYMTAB_H
-#define ISC_SYMTAB_H 1
+#pragma once
/*****
***** Module Info
unsigned int
isc_symtab_count(isc_symtab_t *symtab);
ISC_LANG_ENDDECLS
-
-#endif /* ISC_SYMTAB_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_SYSLOG_H
-#define ISC_SYSLOG_H 1
+#pragma once
/*! \file */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_SYSLOG_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_TASKPOOL_H
-#define ISC_TASKPOOL_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_TASKPOOL_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_TIME_H
-#define ISC_TIME_H 1
+#pragma once
/*! \file */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_TIME_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_TM_H
-#define ISC_TM_H 1
+#pragma once
/*! \file isc/tm.h
* Provides portable conversion routines for struct tm.
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISC_TIMER_H */
* information regarding copyright ownership.
*/
-#ifndef ISC_TYPES_H
-#define ISC_TYPES_H 1
+#pragma once
#include <isc/bind9.h>
#include <isc/result.h>
isc_statsformat_xml,
isc_statsformat_json
} isc_statsformat_t;
-
-#endif /* ISC_TYPES_H */
* IN THE SOFTWARE.
*/
+#pragma once
+
#include <stdbool.h>
#include <stdint.h>
* information regarding copyright ownership.
*/
-#ifndef ISC_UTIL_H
-#define ISC_UTIL_H 1
+#pragma once
#include <inttypes.h>
* Misc
*/
#include <isc/deprecated.h>
-
-#endif /* ISC_UTIL_H */
* information regarding copyright ownership.
*/
+#pragma once
+
#include <isc/mem.h>
#include <isc/result.h>
#include <isc/socket.h>
* information regarding copyright ownership.
*/
+#pragma once
+
/*! \file */
#include <inttypes.h>
* information regarding copyright ownership.
*/
+#pragma once
+
#if HAVE_CMOCKA
#include <inttypes.h>
#include <sched.h> /* IWYU pragma: keep */
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef ISCCC_ALIST_H
-#define ISCCC_ALIST_H 1
+#pragma once
/*! \file isccc/alist.h */
FILE *stream);
ISC_LANG_ENDDECLS
-
-#endif /* ISCCC_ALIST_H */
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef ISCCC_BASE64_H
-#define ISCCC_BASE64_H 1
+#pragma once
/*! \file isccc/base64.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISCCC_BASE64_H */
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef ISCCC_CC_H
-#define ISCCC_CC_H 1
+#pragma once
/*! \file isccc/cc.h */
isccc_time_t now);
ISC_LANG_ENDDECLS
-
-#endif /* ISCCC_CC_H */
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef ISCCC_CCMSG_H
-#define ISCCC_CCMSG_H 1
+#pragma once
/*! \file isccc/ccmsg.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISCCC_CCMSG_H */
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef ISCCC_EVENTS_H
-#define ISCCC_EVENTS_H 1
+#pragma once
/*! \file isccc/events.h */
#define ISCCC_EVENT_FIRSTEVENT (ISC_EVENTCLASS_ISCCC + 0)
#define ISCCC_EVENT_LASTEVENT (ISC_EVENTCLASS_ISCCC + 65535)
-
-#endif /* ISCCC_EVENTS_H */
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef ISCCC_SEXPR_H
-#define ISCCC_SEXPR_H 1
+#pragma once
/*! \file isccc/sexpr.h */
isccc_sexpr_tobinary(isccc_sexpr_t *sexpr);
ISC_LANG_ENDDECLS
-
-#endif /* ISCCC_SEXPR_H */
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef ISCCC_SYMTAB_H
-#define ISCCC_SYMTAB_H 1
+#pragma once
/*****
***** Module Info
void *arg);
ISC_LANG_ENDDECLS
-
-#endif /* ISCCC_SYMTAB_H */
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef ISCCC_SYMTYPE_H
-#define ISCCC_SYMTYPE_H 1
+#pragma once
/*! \file isccc/symtype.h */
#define ISCCC_SYMTYPE_CCDUP 0x0002
#define ISCCC_SYMTYPE_TELLSERVICE 0x0003
#define ISCCC_SYMTYPE_TELLRESPONSE 0x0004
-
-#endif /* ISCCC_SYMTYPE_H */
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef ISCCC_TYPES_H
-#define ISCCC_TYPES_H 1
+#pragma once
/*! \file isccc/types.h */
unsigned char *rstart;
unsigned char *rend;
} isccc_region_t;
-
-#endif /* ISCCC_TYPES_H */
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef ISCCC_UTIL_H
-#define ISCCC_UTIL_H 1
+#pragma once
#include <inttypes.h>
(r).rstart = (unsigned char *)s; \
(r).rend = (r).rstart + strlen(s); \
} while (0)
-
-#endif /* ISCCC_UTIL_H */
* information regarding copyright ownership.
*/
-#ifndef ISCCFG_ACLCONF_H
-#define ISCCFG_ACLCONF_H 1
+#pragma once
#include <inttypes.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISCCFG_ACLCONF_H */
* information regarding copyright ownership.
*/
-#ifndef ISCCFG_CFG_H
-#define ISCCFG_CFG_H 1
+#pragma once
/*****
***** Module Info
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISCCFG_CFG_H */
* information regarding copyright ownership.
*/
-#ifndef ISCCFG_GRAMMAR_H
-#define ISCCFG_GRAMMAR_H 1
+#pragma once
/*! \file isccfg/grammar.h */
/*%<
* Print the necessary indent required by the current settings of 'pctx'.
*/
-
-#endif /* ISCCFG_GRAMMAR_H */
* information regarding copyright ownership.
*/
-#ifndef ISCCFG_KASPCONF_H
-#define ISCCFG_KASPCONF_H 1
+#pragma once
#include <isc/lang.h>
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISCCFG_KASPCONF_H */
* information regarding copyright ownership.
*/
-#ifndef ISCCFG_LOG_H
-#define ISCCFG_LOG_H 1
+#pragma once
/*! \file isccfg/log.h */
*/
ISC_LANG_ENDDECLS
-
-#endif /* ISCCFG_LOG_H */
* information regarding copyright ownership.
*/
-#ifndef ISCCFG_NAMEDCONF_H
-#define ISCCFG_NAMEDCONF_H 1
+#pragma once
/*! \file isccfg/namedconf.h
* \brief
/*%< DNSSEC Key and Signing Policy options */
extern cfg_type_t cfg_type_dnssecpolicyopts;
-
-#endif /* ISCCFG_NAMEDCONF_H */
* information regarding copyright ownership.
*/
-#ifndef NS_CLIENT_H
-#define NS_CLIENT_H 1
+#pragma once
/*****
***** Module Info
* Free all resources allocated to this client object, so that
* it can be freed.
*/
-
-#endif /* NS_CLIENT_H */
* information regarding copyright ownership.
*/
-#ifndef NS_EVENTS_H
-#define NS_EVENTS_H 1
+#pragma once
#include <isc/eventclass.h>
#define NS_EVENT_CLIENTCONTROL (ISC_EVENTCLASS_NS + 0)
#define NS_EVENT_HOOKASYNCDONE (ISC_EVENTCLASS_NS + 1)
-
-#endif /* NS_EVENTS_H */
* information regarding copyright ownership.
*/
-#ifndef NS_HOOKS_H
-#define NS_HOOKS_H 1
+#pragma once
/*! \file */
/*%<
* Allocate and initialize a hook table.
*/
-#endif /* NS_HOOKS_H */
* information regarding copyright ownership.
*/
-#ifndef NS_LISTENLIST_H
-#define NS_LISTENLIST_H 1
+#pragma once
/*****
***** Module Info
* all addresses with port 'port' (if 'enabled' is true),
* or no addresses (if 'enabled' is false).
*/
-
-#endif /* NS_LISTENLIST_H */
* information regarding copyright ownership.
*/
-#ifndef NS_LOG_H
-#define NS_LOG_H 1
+#pragma once
/*! \file */
* Requires:
*\li lctx is a valid logging context.
*/
-#endif /* NS_LOG_H */
* information regarding copyright ownership.
*/
-#ifndef NS_NOTIFY_H
-#define NS_NOTIFY_H 1
+#pragma once
#include <ns/client.h>
* Requires
*\li client to be valid.
*/
-
-#endif /* NS_NOTIFY_H */
* information regarding copyright ownership.
*/
-#ifndef NS_QUERY_H
-#define NS_QUERY_H 1
+#pragma once
/*! \file */
/*%<
* (Must not be used outside this module and its associated unit tests.)
*/
-
-#endif /* NS_QUERY_H */
* information regarding copyright ownership.
*/
-#ifndef NS_SERVER_H
-#define NS_SERVER_H 1
+#pragma once
/*! \file */
* Requires:
*\li 'sctx' is valid.
*/
-#endif /* NS_SERVER_H */
* information regarding copyright ownership.
*/
-#ifndef NS_SORTLIST_H
-#define NS_SORTLIST_H 1
+#pragma once
/*! \file */
* '*argp' an argument to pass to said function. If no sortlist statement
* applies, set '*orderp' and '*argp' to NULL.
*/
-
-#endif /* NS_SORTLIST_H */
* information regarding copyright ownership.
*/
-#ifndef NS_STATS_H
-#define NS_STATS_H 1
+#pragma once
/*! \file include/ns/stats.h */
isc_statscounter_t
ns_stats_get_counter(ns_stats_t *stats, isc_statscounter_t counter);
-
-#endif /* NS_STATS_H */
* information regarding copyright ownership.
*/
-#ifndef NS_TYPES_H
-#define NS_TYPES_H 1
+#pragma once
/*! \file */
typedef enum { ns_cookiealg_aes, ns_cookiealg_siphash24 } ns_cookiealg_t;
#define NS_COOKIE_VERSION_1 1
-
-#endif /* NS_TYPES_H */
* information regarding copyright ownership.
*/
-#ifndef NS_UPDATE_H
-#define NS_UPDATE_H 1
+#pragma once
/*****
***** Module Info
void
ns_update_start(ns_client_t *client, isc_nmhandle_t *handle,
isc_result_t sigresult);
-
-#endif /* NS_UPDATE_H */
* information regarding copyright ownership.
*/
-#ifndef NS_XFROUT_H
-#define NS_XFROUT_H 1
+#pragma once
/*****
***** Module Info
void
ns_xfr_start(ns_client_t *client, dns_rdatatype_t xfrtype);
-
-#endif /* NS_XFROUT_H */
* information regarding copyright ownership.
*/
+#pragma once
+
/*! \file */
#include <inttypes.h>