#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/stdio.h>
#include <isc/types.h>
#include <dns/types.h>
#include <dns/zone.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
setup_logging(FILE *errout);
extern bool docheckns;
extern bool dochecksrv;
extern dns_zoneopt_t zone_options;
-
-ISC_LANG_ENDDECLS
#include <stdio.h>
-#include <isc/lang.h>
-
-ISC_LANG_BEGINDECLS
-
int
set_user(FILE *fd, const char *user);
/*%<
* 0 success
* -1 insufficient permissions, or 'user' does not exist.
*/
-
-ISC_LANG_ENDDECLS
/*! \file */
#include <isc/buffer.h>
-#include <isc/lang.h>
#include <isc/mem.h>
#include <dns/secalg.h>
-ISC_LANG_BEGINDECLS
-
void
generate_key(isc_mem_t *mctx, dns_secalg_t alg, int keysize,
isc_buffer_t *key_txtbuffer);
alg_fromtext(const char *name);
int
alg_bits(dns_secalg_t alg);
-
-ISC_LANG_ENDDECLS
#include <isc/attributes.h>
#include <isc/formatcheck.h>
-#include <isc/lang.h>
#define NS_CONTROL_PORT 953
notify("%s", name); \
} while (0)
-ISC_LANG_BEGINDECLS
-
void
notify(const char *fmt, ...) ISC_FORMAT_PRINTF(1, 2);
ISC_NORETURN void
fatal(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
-
-ISC_LANG_ENDDECLS
#include <isc/file.h>
#include <isc/getaddresses.h>
#include <isc/hex.h>
-#include <isc/lang.h>
#include <isc/log.h>
#include <isc/loop.h>
#include <isc/managers.h>
#include <isc/attributes.h>
#include <isc/buffer.h>
#include <isc/formatcheck.h>
-#include <isc/lang.h>
#include <isc/list.h>
#include <isc/loop.h>
#include <isc/magic.h>
* in a tight loop of constant lookups. It's value is arbitrary.
*/
-ISC_LANG_BEGINDECLS
-
typedef struct dig_lookup dig_lookup_t;
typedef struct dig_query dig_query_t;
typedef struct dig_server dig_server_t;
bool
dig_lookup_is_tls(const dig_lookup_t *lookup);
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
-#include <isc/lang.h>
#include <isc/types.h>
#include <dns/clientinfo.h>
/*! \file */
-#include <isc/lang.h>
#include <isc/types.h>
#include <isccfg/cfg.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
named_tkeyctx_fromconfig(const cfg_obj_t *options, isc_mem_t *mctx,
dns_tkeyctx_t **tctxp);
*\li ISC_R_SUCCESS
*\li ISC_R_NOMEMORY
*/
-
-ISC_LANG_ENDDECLS
/*! \file */
-#include <isc/lang.h>
#include <isc/types.h>
#include <dns/transport.h>
#include <isccfg/cfg.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
named_transports_fromconfig(const cfg_obj_t *config, const cfg_obj_t *vconfig,
isc_mem_t *mctx, dns_transport_list_t **listp);
* \li 'listp' is not NULL, and '*listp' is NULL
*
*/
-
-ISC_LANG_ENDDECLS
/*! \file */
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
named_tsigkeyring_fromconfig(const cfg_obj_t *config, const cfg_obj_t *vconfig,
isc_mem_t *mctx, dns_tsigkeyring_t **ringp);
* \li ISC_R_SUCCESS
* \li ISC_R_NOMEMORY
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/types.h>
#include <isccfg/aclconf.h>
#include <isccfg/cfg.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
const cfg_obj_t *zconfig, cfg_aclconfctx_t *ac,
* \li 'rdclass' to be a valid rdataclass
* \li 'name' to be a valid zone origin name
*/
-
-ISC_LANG_ENDDECLS
#include <isc/attributes.h>
#include <isc/formatcheck.h>
-#include <isc/lang.h>
#define NS_CONTROL_PORT 953
notify("%s", name); \
} while (0)
-ISC_LANG_BEGINDECLS
-
void
notify(const char *fmt, ...) ISC_FORMAT_PRINTF(1, 2);
ISC_NORETURN void
fatal(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
-
-ISC_LANG_ENDDECLS
same level as their related C files, and often have `"_p"` in their names,
e.g. `lib/isc/mem_p.h`.
-Header files that define modules should have a structure like the
-following. Note that `<isc/lang.h>` MUST be included by any public header
-file using the ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS macros, so the
-correct name-mangling happens for function declarations when C++ programs
-include the file. `<isc/lang.h>` SHOULD be included for private header files
-or for public files that do not declare any functions.
-
-
/*
* Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
*
***/
/* #includes here. */
- #include <isc/lang.h>
/***
*** Types
/***
*** Functions
***/
- ISC_LANG_BEGINDECLS
/* (Function declarations here, with full prototypes.) */
- ISC_LANG_ENDDECLS
#### Including Interfaces (.h files)
#include <stdint.h>
#include <isc/dir.h>
-#include <isc/lang.h>
#include <isc/mem.h>
#include <isc/once.h>
#include <isc/types.h>
#include <dst/dst.h>
-ISC_LANG_BEGINDECLS
-
extern bool debug;
int
if ((x) != ISC_R_SUCCESS) { \
return (0); \
}
-
-ISC_LANG_ENDDECLS
#pragma once
#include <isc/heap.h>
-#include <isc/lang.h>
#include <isc/urcu.h>
#include <dns/nsec3.h>
#define IS_STUB(db) (((db)->common.attributes & DNS_DBATTR_STUB) != 0)
#define IS_CACHE(db) (((db)->common.attributes & DNS_DBATTR_CACHE) != 0)
-ISC_LANG_BEGINDECLS
-
struct dns_glue {
struct dns_glue *next;
dns_name_t name;
* 'maxrrperset' limit. 'op' is 'adding' or 'updating' depending on whether
* the addition is to create a new rdataset or to merge to an existing one.
*/
-
-ISC_LANG_ENDDECLS
#include <isc/buffer.h>
#include <isc/hmac.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/md.h>
#include <isc/refcount.h>
#include <dst/dst.h>
-ISC_LANG_BEGINDECLS
-
#define KEY_MAGIC ISC_MAGIC('D', 'S', 'T', 'K')
#define CTX_MAGIC ISC_MAGIC('D', 'S', 'T', 'C')
isc_result_t
dst_key_cleanup(char *tmpname, FILE *fp);
-ISC_LANG_ENDDECLS
-
/*! \file */
#include <openssl/evp.h>
#include <openssl/rand.h>
-#include <isc/lang.h>
#include <isc/log.h>
#include <isc/result.h>
#include <isc/tls.h>
-ISC_LANG_BEGINDECLS
-
#define dst__openssl_toresult(fallback) \
isc__tlserr2result(ISC_LOGCATEGORY_INVALID, ISC_LOGMODULE_INVALID, \
NULL, fallback, __FILE__, __LINE__)
void
dst__openssl_keypair_destroy(dst_key_t *key);
-
-ISC_LANG_ENDDECLS
/*! \file */
#pragma once
-#include <isc/lang.h>
-
#include <dst/dst.h>
#define MAXFIELDSIZE 512
typedef struct dst_private dst_private_t;
-ISC_LANG_BEGINDECLS
-
void
dst__privstruct_free(dst_private_t *priv, isc_mem_t *mctx);
isc_result_t
dst__privstruct_writefile(const dst_key_t *key, const dst_private_t *priv,
const char *directory);
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/netaddr.h>
#include <isc/refcount.h>
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
void
dns_acl_create(isc_mem_t *mctx, int n, dns_acl_t **target);
/*%<
*\li 'dest' is a valid ACL object;
*\li 'source' is a valid ACL object.
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/mem.h>
#include <isc/mutex.h>
#include <dns/types.h>
#include <dns/view.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Magic number checks
***/
* Requires:
* \li 'adb' is valid.
*/
-ISC_LANG_ENDDECLS
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Functions
***/
* \li cachename != NULL
* \li fp != NULL
*/
-
-ISC_LANG_ENDDECLS
*\li Drafts: TBS
*/
-#include <isc/lang.h>
-
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_byaddr_createptrname(const isc_netaddr_t *address, dns_name_t *name);
/*%<
* \li 'address' is a valid address.
* \li 'name' is a valid name with a dedicated buffer.
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/refcount.h>
#include <isc/stats.h>
#include <isc/stdtime.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Functions
***/
* Render cache statistics and status in JSON
*/
#endif /* HAVE_JSON_C */
-
-ISC_LANG_ENDDECLS
*** Imports
***/
-#include <isc/lang.h>
#include <isc/magic.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Types
***/
/*%<
* Like dns_rdatacallbacks_init, but logs to stdio.
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <isc/ht.h>
-#include <isc/lang.h>
#include <isc/refcount.h>
#include <isc/rwlock.h>
#include <isc/time.h>
#include <dns/rdata.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
#define DNS_CATZ_ERROR_LEVEL ISC_LOG_WARNING
#define DNS_CATZ_INFO_LEVEL ISC_LOG_INFO
#define DNS_CATZ_DEBUG_LEVEL1 ISC_LOG_DEBUG(1)
ISC_REFCOUNT_DECL(dns_catz_zone);
ISC_REFCOUNT_DECL(dns_catz_zones);
#endif /* DNS_CATZ_TRACE */
-
-ISC_LANG_ENDDECLS
/*! \file dns/cert.h */
-#include <isc/lang.h>
-
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_cert_fromtext(dns_cert_t *certp, isc_textregion_t *source);
/*%<
*\li #ISC_R_SUCCESS on success
*\li #ISC_R_NOSPACE target buffer is too small
*/
-
-ISC_LANG_ENDDECLS
#include <dst/dst.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Types
***/
*
*\li Anything else Failure.
*/
-
-ISC_LANG_ENDDECLS
#include <dns/ecs.h>
-ISC_LANG_BEGINDECLS
-
/*****
***** Types
*****/
* Set the ECS client data associated with a clientinfo object 'ci'.
* If 'ecs' is NULL, initialize ci->ecs to 0/0/0; otherwise copy it.
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/region.h>
#include <dns/name.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/*! \file dns/compress.h
* Direct manipulation of the structures is strongly discouraged.
*
return dctx == DNS_DECOMPRESS_ALWAYS ||
dctx == DNS_DECOMPRESS_PERMITTED;
}
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/loop.h>
#include <isc/magic.h>
#include <isc/rwlock.h>
#include <dns/rdataset.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/*%
* Tuning: external query load in packets per seconds.
*/
* stored at a given node, then any subsequent attempt to add an rdataset
* with a new RR type will return ISC_R_TOOMANYRECORDS.
*/
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/*****
***** Types
*****/
*
*\li Other results are possible, depending on the DB implementation.
*/
-
-ISC_LANG_ENDDECLS
#include <stddef.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <dns/name.h>
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
/**************************************************************************/
/*
* Manipulation of diffs and tuples.
*\li #ISC_R_UNEXPECTED
*\li any error from dns_rdataset_totext()
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <isc/buffer.h>
-#include <isc/lang.h>
#include <isc/mutex.h>
#include <isc/netmgr.h>
#include <isc/refcount.h>
/* Add -DDNS_DISPATCH_TRACE=1 to CFLAGS for detailed reference tracing */
-ISC_LANG_BEGINDECLS
-
/*%
* This is a set of one or more dispatches which can be retrieved
* round-robin fashion.
* Requires:
*\li disp is valid
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
-
#include <dns/clientinfo.h>
#include <dns/name.h>
#include <dns/types.h>
#include <dst/dst.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Types
***/
/*%<
* call a DLZ drivers ssumatch method, if supplied. Otherwise return false
*/
-
-ISC_LANG_ENDDECLS
#include <dns/sdlz.h>
-ISC_LANG_BEGINDECLS
-
/*
* This header provides a minimal set of defines and typedefs needed
* for the entry points of an external DLZ module for bind9.
typedef isc_result_t
dlz_dlopen_delrdataset_t(const char *name, const char *type, void *dbdata,
void *version);
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
-
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/*
* dns_dns64_create() flags.
*/
* into 'prefix'.
* ISC_R_NOTFOUND no prefixes where found.
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/stats.h>
#include <isc/stdtime.h>
#include <dst/dst.h>
-ISC_LANG_BEGINDECLS
-
extern isc_stats_t *dns_dnssec_stats;
/*%< Maximum number of keys supported in a zone. */
*\li ISC_R_NOTFOUND
*\li Other values indicate error
*/
-ISC_LANG_ENDDECLS
#pragma once
-#include <isc/lang.h>
-
#include <dns/rdatastruct.h>
#include <dns/types.h>
*/
#define DNS_DS_BUFFERSIZE (52)
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_ds_fromkeyrdata(const dns_name_t *owner, dns_rdata_t *key,
dns_dsdigest_t digest_type, unsigned char *digest,
* \li *rdata Contains a valid DS rdata. The 'data' member refers
* to 'buffer'.
*/
-
-ISC_LANG_ENDDECLS
/*! \file dns/dsdigest.h */
-#include <isc/lang.h>
-
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_dsdigest_fromtext(dns_dsdigest_t *dsdigestp, isc_textregion_t *source);
/*%<
/*%<
* Wrapper for dns_dsdigest_totext(), writing text into 'cp'
*/
-
-ISC_LANG_ENDDECLS
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/*!
* \brief
* Context for initializing a dyndb module.
* Destroys a dyndb initialization context structure; all
* reference-counted members are detached and the structure is freed.
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
-#include <isc/lang.h>
#include <isc/netaddr.h>
#include <isc/types.h>
/* <address>/NNN/NNN */
#define DNS_ECS_FORMATSIZE (ISC_NETADDR_FORMATSIZE + 9)
-ISC_LANG_BEGINDECLS
-
void
dns_ecs_init(dns_ecs_t *ecs);
/*%<
* \li 'buf' is not NULL.
* \li 'size' is at least DNS_ECS_FORMATSIZE
*/
-ISC_LANG_ENDDECLS
*****/
#include <isc/buffer.h>
-#include <isc/lang.h>
#include <dns/name.h>
unsigned char data[DNS_NAME_MAXWIRE];
};
-ISC_LANG_BEGINDECLS
-
void
dns_fixedname_init(dns_fixedname_t *fixed);
dns_name_t *
dns_fixedname_initname(dns_fixedname_t *fixed);
-
-ISC_LANG_ENDDECLS
/*! \file dns/forward.h */
-#include <isc/lang.h>
#include <isc/mem.h>
#include <isc/refcount.h>
#include <isc/result.h>
/* Add -DDNS_FORWARD_TRACE=1 to CFLAGS for detailed reference tracing */
-ISC_LANG_BEGINDECLS
-
struct dns_forwarder {
isc_sockaddr_t addr;
dns_name_t *tlsname;
#else
ISC_REFCOUNT_DECL(dns_forwarders);
#endif
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/netaddr.h>
#include <isc/refcount.h>
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
bool
dns_geoip_match(const isc_netaddr_t *reqaddr,
const dns_geoip_databases_t *geoip,
const dns_geoip_elem_t *elt);
-ISC_LANG_ENDDECLS
-
#endif /* HAVE_GEOIP2 */
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/radix.h>
#include <isc/refcount.h>
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
void
dns_iptable_create(isc_mem_t *mctx, dns_iptable_t **target);
/*
#else
ISC_REFCOUNT_DECL(dns_iptable);
#endif
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <dns/diff.h>
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
/**************************************************************************/
isc_result_t
* Returns:
* true if sourceserial has previously been set.
*/
-
-ISC_LANG_ENDDECLS
* signed and maintained.
*/
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/mutex.h>
#include <isc/refcount.h>
#include <dns/keystore.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/* For storing a list of digest types */
struct dns_kasp_digest {
dns_dsdigest_t digest;
*
*\li 'kasp' is a valid, thawed kasp.
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
-#include <isc/lang.h>
#include <isc/types.h>
#include <dns/rdatastruct.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_keydata_todnskey(dns_rdata_keydata_t *keydata, dns_rdata_dnskey_t *dnskey,
isc_mem_t *mctx);
dns_keydata_fromdnskey(dns_rdata_keydata_t *keydata, dns_rdata_dnskey_t *dnskey,
uint32_t refresh, uint32_t addhd, uint32_t removehd,
isc_mem_t *mctx);
-
-ISC_LANG_ENDDECLS
/*! \file dns/keyflags.h */
-#include <isc/lang.h>
-
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_keyflags_fromtext(dns_keyflags_t *flagsp, isc_textregion_t *source);
/*%<
*\li ISC_R_RANGE numeric flag value is out of range
*\li DNS_R_UNKNOWN mnemonic flag is unknown
*/
-
-ISC_LANG_ENDDECLS
/*! \file dns/keymgr.h */
-#include <isc/lang.h>
#include <isc/stdtime.h>
#include <dns/types.h>
#include <dst/dst.h>
-ISC_LANG_BEGINDECLS
-
void
dns_keymgr_settime_syncpublish(dst_key_t *key, dns_kasp_t *kasp, bool first);
/*%<
*\li Printable status in 'out'.
*
*/
-
-ISC_LANG_ENDDECLS
/* Add -DDNS_KEYSTORE_TRACE=1 to CFLAGS for detailed reference tracing */
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/mutex.h>
#include <isc/refcount.h>
#include <dst/dst.h>
-ISC_LANG_BEGINDECLS
-
/* Key store */
struct dns_keystore {
unsigned int magic;
#else
ISC_REFCOUNT_DECL(dns_keystore);
#endif /* DNS_KEYSTORE_TRACE */
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/refcount.h>
#include <isc/rwlock.h>
#include <dst/dst.h>
-ISC_LANG_BEGINDECLS
-
typedef void (*dns_keytable_callback_t)(const dns_name_t *name, void *fn_arg);
void
ISC_REFCOUNT_DECL(dns_keytable);
ISC_REFCOUNT_DECL(dns_keynode);
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdio.h>
-#include <isc/lang.h>
-
#include <dns/types.h>
/*
#define DNS_MASTER_CHECKTTL 0x00010000 /*%< Check max-zone-ttl */
#define DNS_MASTER_CHECKSVCB 0x00020000 /*%< Check SVBC records */
-ISC_LANG_BEGINDECLS
-
/*
* Structures that implement the "raw" format for master dump.
* These are provided for a reference purpose only; in the actual
* Initializes the header for a raw master file, setting all
* values to zero.
*/
-ISC_LANG_ENDDECLS
#include <stdio.h>
-#include <isc/lang.h>
-
#include <dns/types.h>
/***
*/
#define DNS_STYLEFLAG_CLASS_PERNAME 0x400000000ULL
-ISC_LANG_BEGINDECLS
-
/***
*** Constants
***/
void
dns_master_styledestroy(dns_master_style_t **style, isc_mem_t *mctx);
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/refcount.h>
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
void
dns_message_create(isc_mem_t *mctx, isc_mempool_t *namepool,
isc_mempool_t *rdspool, dns_message_intent_t intent,
* \li mctx to be non NULL;
* \li list to be non NULL;
*/
-
-ISC_LANG_ENDDECLS
#include <isc/buffer.h>
#include <isc/hashmap.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/region.h> /* Required for storage size of dns_label_t. */
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/*****
***** Names
*****
* Requires:
* \li 'name' to be valid.
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/refcount.h>
#include <isc/rwlock.h>
DNS_NAMETREE_COUNT
} dns_nametree_type_t;
-ISC_LANG_BEGINDECLS
-
void
dns_nametree_create(isc_mem_t *mctx, dns_nametree_type_t type, const char *name,
dns_nametree_t **ntp);
ISC_REFCOUNT_DECL(dns_nametree);
ISC_REFCOUNT_DECL(dns_ntnode);
#endif
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/stdtime.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/*%
* _OMITDNSSEC:
* Omit DNSSEC records when rendering.
* \li 'found' to be valid.
* \li 'rdataset' to be unassociated.
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
-
#include <dns/diff.h>
#include <dns/name.h>
#include <dns/types.h>
#define DNS_NSEC_BUFFERSIZE (DNS_NAME_MAXWIRE + 8192 + 512)
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_nsec_buildrdata(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
const dns_name_t *target, unsigned char *buffer,
* Requires:
* \li rdataset to be a NSEC rdataset.
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <isc/iterated_hash.h>
-#include <isc/lang.h>
#include <isc/log.h>
#include <dns/db.h>
*/
#define DNS_NSEC3_UNKNOWNALG ((dns_hash_t)245U)
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_nsec3_buildrdata(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
unsigned int hashalg, unsigned int optin,
bool *optout, bool *unknown, bool *setclosest,
bool *setnearest, dns_name_t *closest,
dns_name_t *nearest, dns_nseclog_t logit, void *arg);
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <isc/buffer.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/refcount.h>
#include <isc/rwlock.h>
/* Add -DDNS_NTA_TRACE=1 to CFLAGS for detailed reference tracing */
-ISC_LANG_BEGINDECLS
-
#define NTATABLE_MAGIC ISC_MAGIC('N', 'T', 'A', 't')
#define VALID_NTATABLE(nt) ISC_MAGIC_VALID(nt, NTATABLE_MAGIC)
#else
ISC_REFCOUNT_DECL(dns__nta);
#endif
-
-ISC_LANG_ENDDECLS
/*! \file dns/opcode.h */
-#include <isc/lang.h>
-
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_opcode_totext(dns_opcode_t opcode, isc_buffer_t *target);
/*%<
*\li #ISC_R_SUCCESS on success
*\li #ISC_R_NOSPACE target buffer is too small
*/
-
-ISC_LANG_ENDDECLS
/*! \file dns/order.h */
-#include <isc/lang.h>
#include <isc/types.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_order_create(isc_mem_t *mctx, dns_order_t **orderp);
/*%<
* Requires:
*\li '*orderp' to be valid.
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/netaddr.h>
#include <isc/refcount.h>
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_peerlist_new(isc_mem_t *mem, dns_peerlist_t **list);
isc_result_t
dns_peer_getednsversion(dns_peer_t *peer, uint8_t *ednsversion);
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/types.h>
#include <dns/db.h>
#pragma once
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_private_chains(dns_db_t *db, dns_dbversion_t *ver,
dns_rdatatype_t privatetype, bool *build_nsec,
* \li ISC_R_SUCCESS
* \li other on error
*/
-
-ISC_LANG_ENDDECLS
/*! \file dns/rcode.h */
-#include <isc/lang.h>
-
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_rcode_fromtext(dns_rcode_t *rcodep, isc_textregion_t *source);
/*%<
*\li #ISC_R_SUCCESS on success
*\li #DNS_R_UNKNOWN type is unknown
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
-
#include <dns/message.h>
#include <dns/name.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Types
***/
*\li #DNS_R_NOALPN -- ALPN required for 'owner', but not found
*\li #DNS_R_NODOHPATH -- DOHPATH required for 'owner', but not found
*/
-
-ISC_LANG_ENDDECLS
/*! \file dns/rdataclass.h */
-#include <isc/lang.h>
-
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_rdataclass_fromtext(dns_rdataclass_t *classp, isc_textregion_t *source);
/*%<
/*%<
* Minimum size of array to pass to dns_rdataclass_format().
*/
-
-ISC_LANG_ENDDECLS
*\li None.
*/
-#include <isc/lang.h>
-
#include <dns/types.h>
/*%
unsigned char upper[32];
};
-ISC_LANG_BEGINDECLS
-
void
dns_rdatalist_init(dns_rdatalist_t *rdatalist);
/*%<
void
dns_rdatalist_getownercase(const dns_rdataset_t *rdataset, dns_name_t *name);
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/stdtime.h>
#define DNS_RDATASET_COUNT 0
#endif /* DNS_RDATASET_FIXED */
-ISC_LANG_BEGINDECLS
-
typedef enum {
dns_rdatasetadditional_fromauth,
dns_rdatasetadditional_fromcache,
/*%<
* Display trust in textual form.
*/
-
-ISC_LANG_ENDDECLS
***** Imports
*****/
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/stdtime.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/*****
***** Types
*****/
*\li The rdataset cursor of 'iterator' is at a valid location (i.e. the
* result of last call to a cursor movement command was #ISC_R_SUCCESS).
*/
-
-ISC_LANG_ENDDECLS
#include <isc/atomic.h>
#include <isc/heap.h>
-#include <isc/lang.h>
#include <isc/stdtime.h>
#include <isc/urcu.h>
#include <dns/rdataset.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
#define DNS_RDATASLAB_FORCE 0x1
#define DNS_RDATASLAB_EXACT 0x2
/*%<
* Free all memory associated with a nonexistence proof.
*/
-ISC_LANG_ENDDECLS
/*! \file dns/rdatatype.h */
-#include <isc/lang.h>
-
#include <dns/types.h>
#define DNS_TYPEPAIR_TYPE(type) ((dns_rdatatype_t)((type) & 0xFFFF))
((dns_typepair_t)(((uint32_t)type) << 16) | \
(((uint32_t)dns_rdatatype_rrsig) & 0xffff))
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_rdatatype_fromtext(dns_rdatatype_t *typep, isc_textregion_t *source);
/*%<
* May need to be adjusted if a new RR type with a very long
* name is defined.
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/mem.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
#define DNS_REMOTE_MAGIC ISC_MAGIC('R', 'm', 't', 'e')
#define DNS_REMOTE_VALID(remote) ISC_MAGIC_VALID(remote, DNS_REMOTE_MAGIC)
* Requires:
* 'remote' is a valid remote structure.
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <isc/job.h>
-#include <isc/lang.h>
#include <isc/tls.h>
#include <dns/types.h>
#define DNS_REQUESTOPT_FIXEDID 0x00000004U
#define DNS_REQUESTOPT_LARGE 0x00000008U
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_requestmgr_create(isc_mem_t *mctx, isc_loopmgr_t *loopmgr,
dns_dispatchmgr_t *dispatchmgr,
#else
ISC_REFCOUNT_DECL(dns_request);
#endif
-
-ISC_LANG_ENDDECLS
#include <netinet/in.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/loop.h>
#include <isc/refcount.h>
#include <isc/stats.h>
/* Add -DDNS_RESOLVER_TRACE=1 to CFLAGS for detailed reference tracing */
-ISC_LANG_BEGINDECLS
-
/*%
* A dns_fetchresponse_t is sent to the caller when a fetch completes.
* Any of 'db', 'node', 'rdataset', and 'sigrdataset' may be bound; it
* Requires:
* \li 'frespp' is valid. No-op if *frespp == NULL
*/
-
-ISC_LANG_ENDDECLS
/*! \file dns/result.h */
-#include <isc/lang.h>
#include <isc/result.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
dns_rcode_t
dns_result_torcode(isc_result_t result);
isc_result_t
dns_result_fromrcode(dns_rcode_t rcode);
-
-ISC_LANG_ENDDECLS
/*! \file dns/rootns.h */
-#include <isc/lang.h>
-
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_rootns_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
const char *filename, dns_db_t **target);
*
* Requires view, hints and (cache) db to be valid.
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <isc/ht.h>
-#include <isc/lang.h>
#include <isc/refcount.h>
#include <isc/rwlock.h>
#include <isc/time.h>
#include <dns/rdata.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
#define DNS_RPZ_PREFIX "rpz-"
/*
* Sub-zones of various trigger types.
dns_rpz_zbits_t
dns_rpz_find_name(dns_rpz_zones_t *rpzs, dns_rpz_type_t rpz_type,
dns_rpz_zbits_t zbits, dns_name_t *trig_name);
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/stdtime.h>
#include <dns/rdatasetiter.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/*****
***** Types
*****/
*
*\li All resources used by the rriterator are freed.
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
-
#include <dns/fixedname.h>
#include <dns/rdata.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/*
* Memory allocation or other failures.
*/
isc_result_t
dns_rrl_init(dns_rrl_t **rrlp, dns_view_t *view, int min_entries);
-
-ISC_LANG_ENDDECLS
#include <dns/clientinfo.h>
#include <dns/dlz.h>
-ISC_LANG_BEGINDECLS
-
#define DNS_SDLZFLAG_THREADSAFE 0x00000001U
#define DNS_SDLZFLAG_RELATIVEOWNER 0x00000002U
#define DNS_SDLZFLAG_RELATIVERDATA 0x00000004U
/*%<
* Create the database pointers for a writeable SDLZ zone
*/
-
-ISC_LANG_ENDDECLS
/*! \file dns/secalg.h */
-#include <isc/lang.h>
-
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_secalg_fromtext(dns_secalg_t *secalgp, isc_textregion_t *source);
/*%<
/*%<
* Wrapper for dns_secalg_totext(), writing text into 'cp'
*/
-
-ISC_LANG_ENDDECLS
/*! \file dns/secproto.h */
-#include <isc/lang.h>
-
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_secproto_fromtext(dns_secproto_t *secprotop, isc_textregion_t *source);
/*%<
*\li ISC_R_SUCCESS on success
*\li ISC_R_NOSPACE target buffer is too small
*/
-
-ISC_LANG_ENDDECLS
#include <dns/diff.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
#define DNS_SKR_MAGIC ISC_MAGIC('S', 'K', 'R', '-')
#define DNS_SKR_VALID(t) ISC_MAGIC_VALID(t, DNS_SKR_MAGIC)
* Requires:
* \li 'skr' is a valid SKR
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
-#include <isc/lang.h>
#include <isc/types.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
#define DNS_SOA_BUFFERSIZE ((2 * DNS_NAME_MAXWIRE) + (4 * 5))
isc_result_t
* Requires:
* rdata refers to the rdata of a well-formed SOA record.
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
-
#include <dns/acl.h>
#include <dns/types.h>
#include <dst/dst.h>
-ISC_LANG_BEGINDECLS
-
typedef enum {
dns_ssumatchtype_name = 0,
dns_ssumatchtype_subdomain = 1,
*\li #ISC_R_SUCCESS
*\li #ISC_R_NOTFOUND
*/
-
-ISC_LANG_ENDDECLS
typedef void (*dns_opcodestats_dumper_t)(dns_opcode_t, uint64_t, void *);
typedef void (*dns_rcodestats_dumper_t)(dns_rcode_t, uint64_t, void *);
-ISC_LANG_BEGINDECLS
-
void
dns_generalstats_create(isc_mem_t *mctx, dns_stats_t **statsp, int ncounters);
/*%<
* Requires:
*\li 'stats' is a valid dns_stats_t created by dns_generalstats_create().
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <isc/buffer.h>
-#include <isc/lang.h>
-
-ISC_LANG_BEGINDECLS
/***
*** Functions
/*%<
* Covert a 32-bit cyclic time value into a 64 bit time stamp.
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
-
#include <dns/types.h>
#include <dst/dst.h>
#include <dst/gssapi.h>
-ISC_LANG_BEGINDECLS
-
/* Key agreement modes */
#define DNS_TKEYMODE_SERVERASSIGNED 1
#define DNS_TKEYMODE_DIFFIEHELLMAN 2
* DNS_R_CONTINUE additional context negotiation is required;
* send the new qmsg to the server
*/
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <isc/hashmap.h>
-#include <isc/lang.h>
#include <isc/refcount.h>
#include <isc/rwlock.h>
#include <isc/stdio.h>
ISC_LINK(dns_tsigkey_t) link;
};
-ISC_LANG_BEGINDECLS
-
const dns_name_t *
dns_tsigkey_identity(const dns_tsigkey_t *tsigkey);
/*%<
ISC_REFCOUNT_DECL(dns_tsigkey);
ISC_REFCOUNT_DECL(dns_tsigkeyring);
#endif
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Functions
***/
*\li ISC_R_SUCCESS
*\li DNS_R_BADTTL
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
-#include <isc/lang.h>
-
#include <dns/diff.h>
#include <dns/types.h>
void *arg;
} dns_update_log_t;
-ISC_LANG_BEGINDECLS
-
/***
*** Functions
***/
dns_dbversion_t *oldver, dns_dbversion_t *newver,
dns_diff_t *diff, uint32_t sigvalidityinterval,
dns_update_state_t **state);
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <isc/job.h>
-#include <isc/lang.h>
#include <isc/refcount.h>
#include <dns/fixedname.h>
#define DNS_VALIDATOR_NOCDFLAG 0x0004U
#define DNS_VALIDATOR_NONTA 0x0008U /*% Ignore NTA table */
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns_validator_create(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,
dns_rdataset_t *rdataset, dns_rdataset_t *sigrdataset,
#else
ISC_REFCOUNT_DECL(dns_validator);
#endif
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <stdio.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/mutex.h>
#include <isc/net.h>
#include <dns/types.h>
#include <dns/zt.h>
-ISC_LANG_BEGINDECLS
-
struct dns_view {
/* Unlocked. */
unsigned int magic;
*\li 'view' is valid;
*\li 'max_queries' is greater than 0.
*/
-
-ISC_LANG_ENDDECLS
*** Imports
***/
-#include <isc/lang.h>
#include <isc/refcount.h>
#include <isc/sockaddr.h>
#include <isc/tls.h>
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
void
dns_xfrin_create(dns_zone_t *zone, dns_rdatatype_t xfrtype,
uint32_t ixfr_maxdiffs, const isc_sockaddr_t *primaryaddr,
#else
ISC_REFCOUNT_DECL(dns_xfrin);
#endif
-ISC_LANG_ENDDECLS
#include <stdio.h>
#include <isc/formatcheck.h>
-#include <isc/lang.h>
#include <isc/rwlock.h>
#include <isc/tls.h>
* exponential backoff */
#endif /* ifndef DNS_ZONE_DEFAULTRETRY */
-ISC_LANG_BEGINDECLS
-
/***
*** Functions
***/
/*%
* Set the zone's serial to 'serial'.
*/
-ISC_LANG_ENDDECLS
isc_stats_t *
dns_zone_getgluecachestats(dns_zone_t *zone);
#include <stdbool.h>
-#include <isc/lang.h>
-
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
bool
dns_zonekey_iszonekey(dns_rdata_t *keyrdata);
/*%<
* Requires:
* 'keyrdata' is not NULL.
*/
-
-ISC_LANG_ENDDECLS
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
/*%
* Verify that certain things are sane:
*
dns_name_t *origin, dns_keytable_t *secroots,
isc_mem_t *mctx, bool ignore_kskflag, bool keyset_kskonly,
void (*report)(const char *, ...));
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/rwlock.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
typedef enum dns_ztfind {
DNS_ZTFIND_EXACT = 1 << 0,
DNS_ZTFIND_NOEXACT = 1 << 1,
* Requires:
*\li 'zt' to be valid.
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/log.h>
#include <isc/stdtime.h>
#include <dst/gssapi.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Types
***/
* Return the name associtated with the HMAC algorithm 'alg'
* or return "unknown".
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <isc/formatcheck.h>
-#include <isc/lang.h>
#include <isc/types.h>
#include <dns/types.h>
typedef void *dns_gss_cred_id_t;
typedef void *dns_gss_ctx_id_t;
-ISC_LANG_BEGINDECLS
-
/***
*** Types
***/
* in "name" (which represents the realm name).
*
*/
-
-ISC_LANG_ENDDECLS
#pragma once
-#include <isc/lang.h>
#include <isc/list.h>
#include <isc/types.h>
typedef ISC_LIST(irs_resconf_search_t) irs_resconf_searchlist_t;
-ISC_LANG_BEGINDECLS
-
isc_result_t
irs_resconf_load(isc_mem_t *mctx, const char *filename, irs_resconf_t **confp);
/*%<
*
*\li 'conf' is a valid resconf object.
*/
-
-ISC_LANG_ENDDECLS
#pragma once
#include <isc/heap.h>
-#include <isc/lang.h>
#include <isc/urcu.h>
#include <dns/nsec3.h>
* DNS QPDB Implementation (minimally adapted from RBTDB)
*/
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns__qpcache_create(isc_mem_t *mctx, const dns_name_t *base, dns_dbtype_t type,
dns_rdataclass_t rdclass, unsigned int argc, char *argv[],
*
* \li argc == 0 or argv[0] is a valid memory context.
*/
-ISC_LANG_ENDDECLS
#pragma once
#include <isc/heap.h>
-#include <isc/lang.h>
#include <isc/urcu.h>
#include <dns/nsec3.h>
* DNS QP-Trie DB Implementation
*/
-ISC_LANG_BEGINDECLS
-
isc_result_t
dns__qpzone_create(isc_mem_t *mctx, const dns_name_t *base, dns_dbtype_t type,
dns_rdataclass_t rdclass, unsigned int argc, char **argv,
*
* \li argc == 0 or argv[0] is a valid memory context.
*/
-ISC_LANG_ENDDECLS
/* private */
uint16_t offset;
} dns_rdata_avc_t;
-
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
typedef struct dns_rdata_txt dns_rdata_ninfo_t;
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
-
isc_result_t
dns_rdata_ninfo_first(dns_rdata_ninfo_t *);
uint16_t offset;
} dns_rdata_opt_t;
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
-
isc_result_t
dns_rdata_opt_first(dns_rdata_opt_t *);
/* private */
uint16_t offset;
} dns_rdata_resinfo_t;
-
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
/* private */
uint16_t offset;
} dns_rdata_spf_t;
-
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
uint16_t offset;
} dns_rdata_txt_t;
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
-
isc_result_t
dns_rdata_txt_first(dns_rdata_txt_t *);
typedef struct dns_rdata_txt dns_rdata_wallet_t;
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
-
isc_result_t
dns_rdata_wallet_first(dns_rdata_wallet_t *);
uint16_t offset;
} dns_rdata_in_apl_t;
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
-
isc_result_t
dns_rdata_apl_first(dns_rdata_in_apl_t *);
#pragma once
-#include <isc/lang.h>
#include <isc/sockaddr.h>
#include <dns/name.h>
#include <dns/types.h>
-ISC_LANG_BEGINDECLS
-
typedef struct dns_rdatacommon {
dns_rdataclass_t rdclass;
dns_rdatatype_t rdtype;
* See the COPYRIGHT file distributed with this work for additional
* information regarding copyright ownership.
*/
-
-ISC_LANG_ENDDECLS
* its associated unit tests.
*/
-ISC_LANG_BEGINDECLS
-
bool
dns__tsig_algvalid(unsigned int alg);
dst_algorithm_t
dns__tsig_algfromname(const dns_name_t *algorithm);
-
-ISC_LANG_ENDDECLS
* associated unit tests.
*/
-ISC_LANG_BEGINDECLS
-
typedef struct {
dns_diff_t *diff;
bool offline;
dns__zone_lookup_nsec3param(dns_zone_t *zone, dns_rdata_nsec3param_t *lookup,
dns_rdata_nsec3param_t *param,
unsigned char saltbuf[255], bool resalt);
-
-ISC_LANG_ENDDECLS
include/isc/interfaceiter.h \
include/isc/iterated_hash.h \
include/isc/job.h \
- include/isc/lang.h \
include/isc/lex.h \
include/isc/list.h \
include/isc/log.h \
#include <errno.h> /* Provides errno. */
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
#define isc__errno2result(x) isc___errno2result(x, true, __FILE__, __LINE__)
isc_result_t
isc___errno2result(int posixerrno, bool dolog, const char *file,
unsigned int line);
-
-ISC_LANG_ENDDECLS
#pragma once
#include <isc/attributes.h>
-#include <isc/lang.h>
-
-ISC_LANG_BEGINDECLS
/*% isc assertion type */
typedef enum {
(isc_assertion_failed(__FILE__, __LINE__, isc_assertiontype_insist, \
"unreachable"), \
__builtin_unreachable())
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <isc/job.h>
-#include <isc/lang.h>
#include <isc/loop.h>
#include <isc/mem.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
void
isc_async_run(isc_loop_t *loop, isc_job_cb cb, void *cbarg);
/*%<
/*%<
* Helper macro to run the job on the current loop
*/
-
-ISC_LANG_ENDDECLS
*** Functions
***/
-ISC_LANG_BEGINDECLS
int
isc_backtrace(void **addrs, int maxaddrs);
/*%<
/*
* Write a backtrace to the log.
*/
-
-ISC_LANG_ENDDECLS
* Base 32 hex "np" is base 32 hex but no padding is produced or accepted.
*/
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Functions
***/
* fit in 'target'.
*\li #ISC_R_BADBASE32 -- 'source' is not a valid base32 encoding.
*/
-
-ISC_LANG_ENDDECLS
/*! \file isc/base64.h */
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Functions
***/
* be read, if `length` is non-negative. The 'used' pointer in
* 'target' will be advanced as necessary.
*/
-
-ISC_LANG_ENDDECLS
#include <isc/assertions.h>
#include <isc/endian.h>
#include <isc/formatcheck.h>
-#include <isc/lang.h>
#include <isc/list.h>
#include <isc/magic.h>
#include <isc/mem.h>
#include <isc/types.h>
#include <isc/util.h>
-ISC_LANG_BEGINDECLS
-
/*@{*/
/*!
*** Magic numbers
return ISC_R_SUCCESS;
}
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/result.h>
#include <isc/types.h>
/*% Reset getopt. */
extern bool isc_commandline_reset;
-ISC_LANG_BEGINDECLS
-
int
isc_commandline_parse(int argc, char *const *argv, const char *options);
/*%<
* must free the array using isc_mem_free(). The string
* is modified in-place.
*/
-
-ISC_LANG_ENDDECLS
#include <stdlib.h>
#include <isc/error.h>
-#include <isc/lang.h>
#include <isc/mutex.h>
#include <isc/result.h>
#include <isc/string.h>
#include <isc/types.h>
#include <isc/util.h>
-ISC_LANG_BEGINDECLS
-
/*
* We use macros instead of static inline functions so that the exact code
* location can be reported when PTHREADS_RUNTIME_CHECK() fails or when mutrace
isc_result_t
isc__condition_waituntil(pthread_cond_t *, pthread_mutex_t *, isc_time_t *);
-
-ISC_LANG_ENDDECLS
*** Imports.
***/
-#include <isc/lang.h>
#include <isc/mutex.h>
#include <isc/types.h>
***** Types.
*****/
-ISC_LANG_BEGINDECLS
-
isc_result_t
isc_counter_create(isc_mem_t *mctx, int limit, isc_counter_t **counterp);
/*%<
* Detach (and destroy if reference counter has dropped to zero)
* a counter object.
*/
-
-ISC_LANG_ENDDECLS
#include <limits.h>
#include <sys/types.h> /* Required on some systems. */
-#include <isc/lang.h>
#include <isc/result.h>
#ifndef NAME_MAX
DIR *handle;
} isc_dir_t;
-ISC_LANG_BEGINDECLS
-
void
isc_dir_init(isc_dir_t *dir);
isc_result_t
isc_dir_chroot(const char *dirname);
-
-ISC_LANG_ENDDECLS
#include <stdlib.h>
-#include <isc/lang.h>
-
/*! \file isc/entropy.h
* \brief Implements wrapper around CSPRNG cryptographic library calls
* for getting cryptographically secure pseudo-random numbers.
* Uses synchronous version of uv_random().
*/
-ISC_LANG_BEGINDECLS
-
void
isc_entropy_get(void *buf, size_t buflen);
/*!<
* \brief Get cryptographically-secure pseudo-random data.
*/
-
-ISC_LANG_ENDDECLS
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
isc_errno_toresult(int err);
/*!<
* \brief Convert a POSIX errno value to an ISC result code.
*/
-ISC_LANG_ENDDECLS
#include <isc/attributes.h>
#include <isc/formatcheck.h>
-#include <isc/lang.h>
-
-ISC_LANG_BEGINDECLS
typedef void (*isc_errorcallback_t)(const char *, int, const char *,
const char *, va_list);
ISC_NORETURN void
isc_error_fatal(const char *, int, const char *, const char *, ...)
ISC_FORMAT_PRINTF(4, 5);
-
-ISC_LANG_ENDDECLS
#include <stdio.h>
#include <sys/stat.h>
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
isc_file_settime(const char *file, isc_time_t *time);
/*%<
* Return true if the path is a directory and is writable
*/
-
-ISC_LANG_ENDDECLS
*** Imports
***/
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Functions
***/
/*
* Enable FIPS mode.
*/
-
-ISC_LANG_ENDDECLS
/*! \file isc/getaddresses.h */
-#include <isc/lang.h>
#include <isc/net.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
isc_getaddresses(const char *hostname, in_port_t port, isc_sockaddr_t *addrs,
int addrsize, int *addrcount);
*\li #ISC_R_FAMILYNOSUPPORT - 'hostname' is an IPv6 address, and IPv6 is
* not supported.
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <isc/assertions.h>
-#include <isc/lang.h>
#include <isc/siphash.h>
#include <isc/types.h>
#include <isc/util.h>
/***
*** Functions
***/
-ISC_LANG_BEGINDECLS
void
isc__hash_initialize(void);
/* High bits are more random. */
return val * ISC_HASH_GOLDENRATIO_32 >> (32 - bits);
}
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
/*%
* The comparison function returns true if the first argument has
* higher priority than the second argument, and false otherwise.
*\li The heap structure CANNOT be modified during this iteration. The only
* safe function to call while iterating the heap is isc_heap_element().
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <isc/job.h>
-#include <isc/lang.h>
#include <isc/loop.h>
#include <isc/mem.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
void
isc_helper_run(isc_loop_t *loop, isc_job_cb cb, void *cbarg);
/*%<
/*%<
* Helper macro to run the job on the current loop
*/
-
-ISC_LANG_ENDDECLS
/*! \file isc/hex.h */
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
/*
* An `isc__hex_char` table entry is non-zero if the character is a hex digit;
* You can subtract the table entry from the character to convert the hex digit
* be read, if `length` is non-negative. The 'used' pointer in
* 'target' will be advanced as necessary.
*/
-
-ISC_LANG_ENDDECLS
#pragma once
-#include <isc/lang.h>
#include <isc/md.h>
#include <isc/result.h>
#include <isc/types.h>
#include <inttypes.h>
-#include <isc/lang.h>
#include <isc/netaddr.h>
#include <isc/types.h>
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
isc_result_t
isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp);
/*!<
/*!<
* \brief Destroy the iterator.
*/
-
-ISC_LANG_ENDDECLS
#pragma once
-#include <isc/lang.h>
-
/*
* The maximal hash length that can be encoded in a name
* using base32hex. floor(255/8)*5
*/
#define NSEC3_MAX_LABEL_HASH 35
-ISC_LANG_BEGINDECLS
-
int
isc_iterated_hash(unsigned char *out, const unsigned int hashalg,
const int iterations, const unsigned char *salt,
isc__iterated_hash_initialize(void);
void
isc__iterated_hash_shutdown(void);
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
-#include <isc/lang.h>
#include <isc/mem.h>
#include <isc/refcount.h>
#include <isc/types.h>
.link = ISC_LINK_INITIALIZER, \
}
-ISC_LANG_BEGINDECLS
-
void
isc_job_run(isc_loop_t *loop, isc_job_t *job, isc_job_cb cb, void *cbarg);
/*%<
*\li 'cb' is a callback function, must be non-NULL
*\li 'cbarg' is passed to the 'cb' as the only argument, may be NULL
*/
-
-ISC_LANG_ENDDECLS
+++ /dev/null
-/*
- * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
- *
- * SPDX-License-Identifier: MPL-2.0
- *
- * 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.
- */
-
-#pragma once
-
-/*! \file isc/lang.h */
-
-#ifdef __cplusplus
-#define ISC_LANG_BEGINDECLS extern "C" {
-#define ISC_LANG_ENDDECLS }
-#else /* ifdef __cplusplus */
-#define ISC_LANG_BEGINDECLS
-#define ISC_LANG_ENDDECLS
-#endif /* ifdef __cplusplus */
#include <stdbool.h>
#include <stdio.h>
-#include <isc/lang.h>
#include <isc/region.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Options
***/
* \li #true if the current input is a file,
*\li #false otherwise.
*/
-
-ISC_LANG_ENDDECLS
#include <syslog.h> /* XXXDCL NT */
#include <isc/formatcheck.h>
-#include <isc/lang.h>
#include <isc/types.h>
#include <isc/util.h>
extern isc_logmodule_t isc_modules[];
/*@}*/
-ISC_LANG_BEGINDECLS
-
void
isc_logconfig_create(isc_logconfig_t **lcfgp);
/*%<
/*%<
* Library constructor/destructor
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <isc/job.h>
-#include <isc/lang.h>
#include <isc/mem.h>
#include <isc/refcount.h>
#include <isc/types.h>
/* Add -DISC_LOOP_TRACE=1 to CFLAGS for detailed reference tracing */
-ISC_LANG_BEGINDECLS
-
/*%<
* Returns the current running loop.
*/
*
* \li 'loop' is a valid loop and the loop tid matches the current tid.
*/
-ISC_LANG_ENDDECLS
#pragma once
#include <isc/crypto.h>
-#include <isc/lang.h>
#include <isc/result.h>
#include <isc/types.h>
#include <stdio.h>
#include <isc/attributes.h>
-#include <isc/lang.h>
#include <isc/mutex.h>
#include <isc/overflow.h>
#include <isc/types.h>
#include <isc/urcu.h>
-ISC_LANG_BEGINDECLS
-
/*%
* Define ISC_MEM_TRACKLINES=1 to turn on detailed tracing of memory
* allocation and freeing by file and line number.
*/
#pragma pop_macro("malloc")
#endif
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
uint64_t
isc_meminfo_totalphys(void);
/*%<
* Return total available physical memory in bytes, or 0 if this cannot
* be determined
*/
-
-ISC_LANG_ENDDECLS
#include <stdio.h>
#include <stdlib.h>
-#include <isc/lang.h>
#include <isc/result.h> /* for ISC_R_ codes */
#include <isc/util.h>
-ISC_LANG_BEGINDECLS
-
/*
* We use macros instead of static inline functions so that the exact code
* location can be reported when PTHREADS_RUNTIME_CHECK() fails or when mutrace
int _ret = pthread_mutex_destroy(mp); \
PTHREADS_RUNTIME_CHECK(pthread_mutex_destroy, _ret); \
}
-
-ISC_LANG_ENDDECLS
/*! \file isc/mutexblock.h */
-#include <isc/lang.h>
#include <isc/mutex.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
void
isc_mutexblock_init(isc_mutex_t *block, unsigned int count);
/*%<
* the whole block was initialized via isc_mutex_initblock().
*
*/
-
-ISC_LANG_ENDDECLS
#include <sys/socket.h> /* Contractual promise. */
#include <sys/types.h>
-#include <isc/lang.h>
#include <isc/types.h>
#ifndef IN6ADDR_LOOPBACK_INIT
*** Functions.
***/
-ISC_LANG_BEGINDECLS
-
isc_result_t
isc_net_probeipv4(void);
/*%<
*\li *low and *high will be the ports specifying the low and high ends of
* the range.
*/
-
-ISC_LANG_ENDDECLS
#include <sys/types.h>
#include <sys/un.h>
-#include <isc/lang.h>
#include <isc/net.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
/*
* Any updates to this structure should also be applied in
* https://gitlab.isc.org/isc-projects/dlz-modules/-/raw/main/modules/include/dlz_minimal.h
* Test whether the netaddr 'na' is a loopback IPv4 or IPv6 address (in
* 127.0.0.0/8 or ::1).
*/
-ISC_LANG_ENDDECLS
#include <inttypes.h>
-ISC_LANG_BEGINDECLS
-
/*%
* Convert a string of an IPv6 scope zone to zone index. If the conversion
* succeeds, 'zoneid' will store the index value.
*/
isc_result_t
isc_netscope_pton(int af, char *scopename, void *addr, uint32_t *zoneid);
-
-ISC_LANG_ENDDECLS
#include <stdlib.h>
-#include <isc/lang.h>
-
/*! \file isc/nonce.h
* \brief Provides a function for generating an arbitrarily long nonce.
*/
-ISC_LANG_BEGINDECLS
-
void
isc_nonce_buf(void *buf, size_t buflen);
/*!<
* Fill 'buf', up to 'buflen' bytes, with random data from the
* crypto provider's random function.
*/
-
-ISC_LANG_ENDDECLS
/*! \file isc/os.h */
#include <sys/stat.h>
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
/*%<
* Hardcode the L1 cacheline size of the CPU to 64, this is checked in
* the os.c library constructor if operating system provide means to
/*%<
* Return umask of the current process as initialized at the program start
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
-#include <isc/lang.h>
#include <isc/types.h>
/*! \file isc/parseint.h
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
isc_result_t
isc_parse_uint32(uint32_t *uip, const char *string, int base);
*\li #ISC_R_BADNUMBER The string is not numeric (in the given base)
*\li #ISC_R_RANGE The number is not representable as the requested type.
*/
-
-ISC_LANG_ENDDECLS
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
isc_result_t
isc_portset_create(isc_mem_t *mctx, isc_portset_t **portsetp);
/*%<
*\li 'portlist' to be valid.
*\li port_lo <= port_hi
*/
-
-ISC_LANG_ENDDECLS
#define ISC_PROXY2_TLS_SUBHEADER_MIN_SIZE \
(1 /* client_flags */ + 4 /* verify */)
-ISC_LANG_BEGINDECLS
-
typedef enum isc_proxy2_command {
ISC_PROXY2_CMD_ILLEGAL = -1,
/*
*\li 'ISC_R_NOSPACE' - not enough data in the output buffer
*\li 'ISC_R_RANGE' - too much data for PROXYv2 header.
*/
-
-ISC_LANG_ENDDECLS
#include <isc/atomic.h>
#include <isc/job.h>
-#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/mutex.h>
#include <isc/os.h>
/* Add -DISC_QUOTA_TRACE=1 to CFLAGS for detailed reference tracing */
-ISC_LANG_BEGINDECLS
-
/*%
* isc_quota structure
*
/*%<
* Release one unit of quota.
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdlib.h>
-#include <isc/lang.h>
#include <isc/types.h>
/*! \file isc/random.h
*
*/
-ISC_LANG_BEGINDECLS
-
uint8_t
isc_random8(void);
/*!<
* resample is very small when the upper_bound is small, rising to 0.5
* when upper_bound is UINT32_MAX/2.
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/loop.h>
#include <isc/time.h>
#include <isc/types.h>
ISC_LINK(isc_rlevent_t) link;
};
-ISC_LANG_BEGINDECLS
-
/*****
***** Functions.
*****/
/*%<
* The rate limiter reference counting.
*/
-
-ISC_LANG_ENDDECLS
#include <isc/assertions.h>
#include <isc/atomic.h>
#include <isc/error.h>
-#include <isc/lang.h>
#include <isc/mutex.h>
#include <isc/tid.h>
#include <isc/types.h>
* counting. The isc_refcount_t type must not be accessed directly.
*/
-ISC_LANG_BEGINDECLS
-
typedef atomic_uint_fast32_t isc_refcount_t;
#define ISC_REFCOUNT_INITIALIZER(a) (a)
ISC__REFCOUNT_IMPL(name, destroy, ISC_REFCOUNT_BLANK)
#define ISC_REFCOUNT_STATIC_IMPL(name, destroy) \
ISC__REFCOUNT_IMPL(name, destroy, static inline)
-
-ISC_LANG_ENDDECLS
/*! \file isc/regex.h */
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
int
isc_regex_validate(const char *expression);
/*%<
*\li -1 on error.
*\li the number of groups in the expression.
*/
-
-ISC_LANG_ENDDECLS
/*! \file isc/region.h */
-#include <isc/lang.h>
#include <isc/types.h>
struct isc_region {
} while (0)
/*@}*/
-ISC_LANG_BEGINDECLS
-
int
isc_region_compare(isc_region_t *r1, isc_region_t *r2);
/*%<
*\li = 0 if r1 is lexicographically identical to r2
*\li > 0 if r1 is lexicographically greater than r2
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
-#include <isc/lang.h>
-
typedef enum isc_result {
ISC_R_SUCCESS, /*%< success */
ISC_R_NOMEMORY, /*%< out of memory */
ISC_R_MAKE_ENUM_32BIT = INT32_MAX,
} isc_result_t;
-ISC_LANG_BEGINDECLS
-
const char *isc_result_totext(isc_result_t);
/*%<
* Convert an isc_result_t into a string message describing the result.
* Convert an isc_result_t into a string identifier such as
* "ISC_R_SUCCESS".
*/
-
-ISC_LANG_ENDDECLS
/*! \file isc/rwlock.h */
-#include <isc/lang.h>
#include <isc/types.h>
#include <isc/util.h>
-ISC_LANG_BEGINDECLS
-
typedef enum {
isc_rwlocktype_none = 0,
isc_rwlocktype_read,
}
#endif /* USE_PTHREAD_RWLOCK */
-
-ISC_LANG_ENDDECLS
/*! \file isc/safe.h */
-#include <isc/lang.h>
-
-ISC_LANG_BEGINDECLS
-
int
isc_safe_memequal(const void *, const void *, size_t);
* function to perform the memset operation so that the compiler cannot
* infer about what the function does and optimize the call away.
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/types.h>
/*! \file isc/serial.h
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
bool
isc_serial_lt(uint32_t a, uint32_t b);
/*%<
/*%<
* Return true if 'a' != 'b' otherwise false.
*/
-
-ISC_LANG_ENDDECLS
#include <stdlib.h>
-#include <isc/lang.h>
#include <isc/loop.h>
typedef void (*isc_signal_cb)(void *, int);
-ISC_LANG_BEGINDECLS
-
isc_signal_t *
isc_signal_new(isc_loopmgr_t *loopmgr, isc_signal_cb cb, void *cbarg,
int signum);
* Stop using the signal handler 'signal'. (It can be restarted with
* isc_signal_start().)
*/
-ISC_LANG_ENDDECLS
#include <isc/ascii.h>
#include <isc/endian.h>
-#include <isc/lang.h>
#include <isc/types.h>
#include <isc/util.h>
#define U8TO64_ONE(case_sensitive, byte) \
(uint64_t)(case_sensitive ? byte : isc__ascii_tolower1(byte))
-ISC_LANG_BEGINDECLS
-
typedef struct isc_siphash24 {
uint64_t k0;
uint64_t k1;
isc_halfsiphash24_hash(&state, in, inlen, case_sensitive);
isc_halfsiphash24_finalize(&state, out);
}
-
-ISC_LANG_ENDDECLS
#include <sys/un.h>
#include <isc/hash.h>
-#include <isc/lang.h>
#include <isc/net.h>
#include <isc/types.h>
0x0008 /*%< when comparing scopes \
* zero scopes always match */
-ISC_LANG_BEGINDECLS
-
bool
isc_sockaddr_compare(const isc_sockaddr_t *a, const isc_sockaddr_t *b,
unsigned int flags);
* Report whether or not the address family of 'sockaddr'
* has been disabled.
*/
-
-ISC_LANG_ENDDECLS
#include <stdlib.h>
#include <isc/atomic.h>
-#include <isc/lang.h>
#include <isc/util.h>
-ISC_LANG_BEGINDECLS
-
/*
* We use macros instead of static inline functions so that the exact code
* location can be reported when PTHREADS_RUNTIME_CHECK() fails or when mutrace
}
#endif
-
-ISC_LANG_ENDDECLS
isc_sockstatscounter_max,
};
-ISC_LANG_BEGINDECLS
-
/*%<
* Flag(s) for isc_stats_dump().
*/
*\li 'stats' is a valid isc_stats_t.
*\li 'ncounters' is a non-zero positive number.
*/
-
-ISC_LANG_ENDDECLS
#include <stdio.h>
-#include <isc/lang.h>
#include <isc/result.h>
-ISC_LANG_BEGINDECLS
-
/*% Open */
isc_result_t
isc_stdio_open(const char *filename, const char *mode, FILE **fp);
* equivalent system-dependent operation. Note that this function has no
* direct counterpart in the stdio library.
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdlib.h>
-#include <isc/lang.h>
#include <isc/time.h>
/*%
*/
typedef uint32_t isc_stdtime_t;
-ISC_LANG_BEGINDECLS
-
isc_stdtime_t
isc_stdtime_now(void);
/*%<
* 'out' is a valid pointer.
* 'outlen' is at least 26.
*/
-
-ISC_LANG_ENDDECLS
#include <string.h>
-#include <isc/lang.h>
-
-ISC_LANG_BEGINDECLS
-
#if !defined(HAVE_STRLCPY)
size_t
strlcpy(char *dst, const char *src, size_t size);
int
isc_string_strerror_r(int errnum, char *buf, size_t buflen);
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/types.h>
/*
isc_symexists_add = 2 /*%< Add the new tuple */
} isc_symexists_t;
-ISC_LANG_BEGINDECLS
-
/*% Create a symbol table. */
isc_result_t
isc_symtab_create(isc_mem_t *mctx, unsigned int size,
/*% Return the number of items in a symbol table. */
unsigned int
isc_symtab_count(isc_symtab_t *symtab);
-ISC_LANG_ENDDECLS
/*! \file */
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
isc_result_t
isc_syslog_facilityfromstring(const char *str, int *facilityp);
/*%<
* \li #ISC_R_SUCCESS
* \li #ISC_R_NOTFOUND
*/
-
-ISC_LANG_ENDDECLS
#include <pthread_np.h>
#endif /* if defined(HAVE_PTHREAD_NP_H) */
-#include <isc/lang.h>
#include <isc/result.h>
-ISC_LANG_BEGINDECLS
-
typedef pthread_t isc_thread_t;
typedef void *(*isc_threadfunc_t)(void *);
isc_thread_setname(isc_thread_t thread, const char *name);
#define isc_thread_self (uintptr_t)pthread_self
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
-#include <isc/lang.h>
#include <isc/thread.h>
-ISC_LANG_BEGINDECLS
-
#define ISC_TID_UNKNOWN UINT32_MAX
uint32_t
void
isc__tid_initcount(uint32_t count);
-
-ISC_LANG_ENDDECLS
#include <time.h>
#include <isc/attributes.h>
-#include <isc/lang.h>
#include <isc/types.h>
/*
#define isc_interval_zero isc_time_epoch
#define isc_interval_t isc_time_t
-ISC_LANG_BEGINDECLS
-
#define isc_interval_set(i, seconds, nanoseconds) \
isc_time_set((isc_time_t *)i, seconds, nanoseconds)
/*%<
*\li 'buf' points to an array of at least len chars
*
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <isc/job.h>
-#include <isc/lang.h>
#include <isc/time.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Types
***/
*
*\li *timerp is NULL.
*/
-
-ISC_LANG_ENDDECLS
*/
#include <time.h>
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
time_t
isc_tm_timegm(struct tm *tm);
/*
/*
* Parse a formatted date string into struct tm.
*/
-
-ISC_LANG_ENDDECLS
#pragma once
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
bool
isc_utf8_bom(const unsigned char *buf, size_t len);
/*<
* Requires:
*\li 'buf' != NULL
*/
-
-ISC_LANG_ENDDECLS
#include <stdlib.h>
-#include <isc/lang.h>
#include <isc/loop.h>
typedef void (*isc_work_cb)(void *arg);
typedef void (*isc_after_work_cb)(void *arg);
typedef struct isc_work isc_work_t;
-ISC_LANG_BEGINDECLS
-
void
isc_work_enqueue(isc_loop_t *loop, isc_work_cb work_cb,
isc_after_work_cb after_work_cb, void *cbarg);
* \li 'loop' is a valid event loop.
* \li 'work_cb' and 'after_work_cb' are not NULL.
*/
-
-ISC_LANG_ENDDECLS
#include <isc/barrier.h>
#include <isc/job.h>
-#include <isc/lang.h>
#include <isc/loop.h>
#include <isc/magic.h>
#include <isc/mem.h>
#include <sys/types.h>
#include <unistd.h>
-#include <isc/lang.h>
#include <isc/thread.h>
#include <isc/tid.h>
#include <isc/util.h>
#include <stdbool.h>
#include <stdio.h>
-#include <isc/lang.h>
-
#include <isccc/types.h>
-ISC_LANG_BEGINDECLS
-
isccc_sexpr_t *
isccc_alist_create(void);
void
isccc_alist_prettyprint(isccc_sexpr_t *sexpr, unsigned int indent,
FILE *stream);
-
-ISC_LANG_ENDDECLS
/*! \file isccc/base64.h */
-#include <isc/lang.h>
-
#include <isccc/types.h>
-ISC_LANG_BEGINDECLS
-
/***
*** Functions
***/
*\li #ISC_R_BADBASE64 -- 'cstr' is not a valid base64 encoding.
*\li #ISC_R_NOSPACE -- 'target' is not big enough.
*/
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <isc/buffer.h>
-#include <isc/lang.h>
#include <dst/dst.h>
#include <isccc/types.h>
-ISC_LANG_BEGINDECLS
-
/*%
* The HMAC algorithms supported by isccc_cc_fromwire and
* isccc_cc_towire as implemented in DST.
isc_result_t
isccc_cc_checkdup(isccc_symtab_t *symtab, isccc_sexpr_t *message,
isccc_time_t now);
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <isc/buffer.h>
-#include <isc/lang.h>
#include <isc/netmgr.h>
#include <isc/sockaddr.h>
void *send_cbarg;
} isccc_ccmsg_t;
-ISC_LANG_BEGINDECLS
-
void
isccc_ccmsg_init(isc_mem_t *mctx, isc_nmhandle_t *handle, isccc_ccmsg_t *ccmsg);
/*%
void
isccc_ccmsg_toregion(isccc_ccmsg_t *ccmsg, isccc_region_t *ccregion);
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
#include <stdio.h>
-#include <isc/lang.h>
-
#include <isccc/types.h>
-ISC_LANG_BEGINDECLS
-
/*% dotted pair structure */
struct isccc_dottedpair {
isccc_sexpr_t *car;
isccc_region_t *
isccc_sexpr_tobinary(isccc_sexpr_t *sexpr);
-
-ISC_LANG_ENDDECLS
#include <stdbool.h>
-#include <isc/lang.h>
-
#include <isccc/types.h>
/***
isccc_symexists_add = 2
} isccc_symexists_t;
-ISC_LANG_BEGINDECLS
-
isc_result_t
isccc_symtab_create(unsigned int size,
isccc_symtabundefaction_t undefine_action,
void
isccc_symtab_foreach(isccc_symtab_t *symtab, isccc_symtabforeachaction_t action,
void *arg);
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
-#include <isc/lang.h>
-
#include <dns/geoip.h>
#include <dns/types.h>
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
isc_result_t
cfg_aclconfctx_create(isc_mem_t *mctx, cfg_aclconfctx_t **ret);
/*
* 'ctx' to be non NULL.
* '*target' to be NULL or a valid dns_acl_t.
*/
-
-ISC_LANG_ENDDECLS
#include <time.h>
#include <isc/formatcheck.h>
-#include <isc/lang.h>
#include <isc/list.h>
#include <isc/refcount.h>
#include <isc/types.h>
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
void
cfg_parser_attach(cfg_parser_t *src, cfg_parser_t **dest);
/*%<
* 'list'
* \li first 'callback' return value which was not #ISC_R_SUCCESS otherwise
*/
-
-ISC_LANG_ENDDECLS
/*! \file isccfg/check.h */
-#include <isc/lang.h>
#include <isc/types.h>
#include <isccfg/cfg.h>
* supported by the crypto provider.
*/
-ISC_LANG_BEGINDECLS
-
isc_result_t
isccfg_check_namedconf(const cfg_obj_t *config, unsigned int flags,
isc_mem_t *mctx);
/*%<
* Same as isccfg_check_namedconf(), but for a single 'key' statement.
*/
-
-ISC_LANG_ENDDECLS
#include <inttypes.h>
#include <stdbool.h>
-#include <isc/lang.h>
#include <isc/types.h>
-ISC_LANG_BEGINDECLS
-
#define CFG_DURATION_MAXLEN 80
/*%
* Returns:
*\li The duration in seconds.
*/
-
-ISC_LANG_ENDDECLS
#pragma once
-#include <isc/lang.h>
-
#include <isccfg/cfg.h>
/***
*** Functions
***/
-ISC_LANG_BEGINDECLS
-
isc_result_t
cfg_kasp_fromconfig(const cfg_obj_t *config, dns_kasp_t *default_kasp,
bool check_algorithms, isc_mem_t *mctx,
*
*\li Other errors are possible.
*/
-
-ISC_LANG_ENDDECLS
# check use of macros without having included proper header for them.
- if (/^(\Uisc\E_LANG_(BEGIN|END)DECLS)$/m &&
- ! m%^#include <isc/lang\.h>$%m) {
- print "$file has $1 without <isc/lang.h>\n";
- }
-
if (/$nocomment.*ISC_EVENTCLASS_/m && ! m%^#include <isc/eventclass\.h>%m) {
print "$file has ISC_EVENTCLASS_ without <isc/eventclass.h>\n"
unless $file =~ m%isc/eventclass.h%;
unless $file =~ m%\L$1\E/result.h%m;
}
- if (/^$nocomment(?!#define)[a-z].*([a-zA-Z0-9]\([^;]*\);)/m &&
- ! m%^#include <isc/lang.h>%m) {
- print "$file has declarations without <isc/lang.h>\n";
- }
-
#
# First see whether it can be compiled without any additional includes.
# Only bother doing this for files that will be installed as public
}
}
- if ($elided eq "<isc/lang.h>") {
- if (! /^\Uisc\E_LANG_BEGINDECLS$/m) {
- print "$file includes <isc/lang.h> but " .
- "has no \Uisc\E_LANG_BEGINDECLS\n";
- } elsif (! /^\Uisc\E_LANG_ENDDECLS$/m) {
- print "$file has \Uisc\E_LANG_BEGINDECLS but " .
- "has no \Uisc\E_LANG_ENDDECLS\n";
- } elsif (! /^$nocomment(?!#define)[a-z].*([a-zA-Z0-9]\()/m) {
- print "$file has <isc/lang.h> apparently not function declarations\n";
- }
- next;
- }
-
if ($elided eq "<isc/eventclass.h>") {
if (! /$nocomment.*ISC_EVENTCLASS_/m) {
print "$file has <isc/eventclass.h> without ISC_EVENTCLASS_\n";