mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 05:00:00 -04:00
Use clang-format-22 to update formatting
This commit is contained in:
parent
ffd7636e79
commit
239464f276
11 changed files with 22 additions and 22 deletions
|
|
@ -58,11 +58,11 @@
|
|||
|
||||
#define STATS_XML_VERSION_MAJOR "3"
|
||||
#define STATS_XML_VERSION_MINOR "14"
|
||||
#define STATS_XML_VERSION STATS_XML_VERSION_MAJOR "." STATS_XML_VERSION_MINOR
|
||||
#define STATS_XML_VERSION STATS_XML_VERSION_MAJOR "." STATS_XML_VERSION_MINOR
|
||||
|
||||
#define STATS_JSON_VERSION_MAJOR "1"
|
||||
#define STATS_JSON_VERSION_MINOR "8"
|
||||
#define STATS_JSON_VERSION STATS_JSON_VERSION_MAJOR "." STATS_JSON_VERSION_MINOR
|
||||
#define STATS_JSON_VERSION STATS_JSON_VERSION_MAJOR "." STATS_JSON_VERSION_MINOR
|
||||
|
||||
struct named_statschannel {
|
||||
/* Unlocked */
|
||||
|
|
|
|||
|
|
@ -424,12 +424,12 @@ enum {
|
|||
*/
|
||||
#define FIND_WANTEVENT(fn) (((fn)->options & DNS_ADBFIND_WANTEVENT) != 0)
|
||||
#define FIND_WANTEMPTYEVENT(fn) (((fn)->options & DNS_ADBFIND_EMPTYEVENT) != 0)
|
||||
#define FIND_AVOIDFETCHES(fn) (((fn)->options & DNS_ADBFIND_AVOIDFETCHES) != 0)
|
||||
#define FIND_STARTATZONE(fn) (((fn)->options & DNS_ADBFIND_STARTATZONE) != 0)
|
||||
#define FIND_STATICSTUB(fn) (((fn)->options & DNS_ADBFIND_STATICSTUB) != 0)
|
||||
#define FIND_NOVALIDATE(fn) (((fn)->options & DNS_ADBFIND_NOVALIDATE) != 0)
|
||||
#define FIND_HAS_ADDRS(fn) (!ISC_LIST_EMPTY((fn)->list))
|
||||
#define FIND_NOFETCH(fn) (((fn)->options & DNS_ADBFIND_NOFETCH) != 0)
|
||||
#define FIND_AVOIDFETCHES(fn) (((fn)->options & DNS_ADBFIND_AVOIDFETCHES) != 0)
|
||||
#define FIND_STARTATZONE(fn) (((fn)->options & DNS_ADBFIND_STARTATZONE) != 0)
|
||||
#define FIND_STATICSTUB(fn) (((fn)->options & DNS_ADBFIND_STATICSTUB) != 0)
|
||||
#define FIND_NOVALIDATE(fn) (((fn)->options & DNS_ADBFIND_NOVALIDATE) != 0)
|
||||
#define FIND_HAS_ADDRS(fn) (!ISC_LIST_EMPTY((fn)->list))
|
||||
#define FIND_NOFETCH(fn) (((fn)->options & DNS_ADBFIND_NOFETCH) != 0)
|
||||
|
||||
#define ADBNAME_TYPE_MASK \
|
||||
(DNS_ADBFIND_STARTATZONE | DNS_ADBFIND_STATICSTUB | \
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ enum {
|
|||
#define DNS_EDE_MAX_ERRORS 3
|
||||
#define DNS_EDNS_MAX_OPTIONS DNS_OPT_COUNT + DNS_EDE_MAX_ERRORS
|
||||
|
||||
#define DNS_MESSAGE_REPLYPRESERVE (DNS_MESSAGEFLAG_RD | DNS_MESSAGEFLAG_CD)
|
||||
#define DNS_MESSAGE_REPLYPRESERVE (DNS_MESSAGEFLAG_RD | DNS_MESSAGEFLAG_CD)
|
||||
#define DNS_MESSAGEEXTFLAG_REPLYPRESERVE (DNS_MESSAGEEXTFLAG_DO)
|
||||
|
||||
#define DNS_MESSAGE_HEADERLEN 12 /*%< 6 uint16_t's */
|
||||
|
|
|
|||
|
|
@ -330,8 +330,8 @@ dns_sdlz_putrr_t dns_sdlz_putrr;
|
|||
*/
|
||||
|
||||
typedef isc_result_t
|
||||
dns_sdlz_putsoa_t(dns_sdlzlookup_t *lookup, const char *mname,
|
||||
const char *rname, uint32_t serial);
|
||||
dns_sdlz_putsoa_t(dns_sdlzlookup_t *lookup, const char *mname,
|
||||
const char *rname, uint32_t serial);
|
||||
dns_sdlz_putsoa_t dns_sdlz_putsoa;
|
||||
/*%<
|
||||
* This function may optionally be called from the 'authority'
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ dns_time64_totext(int64_t t, isc_buffer_t *target) {
|
|||
/*
|
||||
* Warning. Do NOT use arguments with side effects with these macros.
|
||||
*/
|
||||
#define is_leap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0)
|
||||
#define year_secs(y) ((is_leap(y) ? 366 : 365) * 86400)
|
||||
#define is_leap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0)
|
||||
#define year_secs(y) ((is_leap(y) ? 366 : 365) * 86400)
|
||||
#define month_secs(m, y) ((days[m] + ((m == 1 && is_leap(y)) ? 1 : 0)) * 86400)
|
||||
|
||||
tm.tm_year = 70;
|
||||
|
|
|
|||
|
|
@ -588,7 +588,7 @@ typedef enum {
|
|||
DNS_ZONEFLG___MAX = UINT64_MAX, /* trick to make the ENUM 64-bit wide */
|
||||
} dns_zoneflg_t;
|
||||
|
||||
#define DNS_ZONE_OPTION(z, o) ((atomic_load_relaxed(&(z)->options) & (o)) != 0)
|
||||
#define DNS_ZONE_OPTION(z, o) ((atomic_load_relaxed(&(z)->options) & (o)) != 0)
|
||||
#define DNS_ZONE_SETOPTION(z, o) atomic_fetch_or(&(z)->options, (o))
|
||||
#define DNS_ZONE_CLROPTION(z, o) atomic_fetch_and(&(z)->options, ~(o))
|
||||
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@ STATIC_ASSERT(sizeof(struct __cds_wfcq_head) <= ISC_OS_CACHELINE_SIZE,
|
|||
typedef struct isc_queue {
|
||||
struct __cds_wfcq_head head;
|
||||
uint8_t __padding_head[ISC_OS_CACHELINE_SIZE -
|
||||
sizeof(struct __cds_wfcq_head)];
|
||||
sizeof(struct __cds_wfcq_head)];
|
||||
struct cds_wfcq_tail tail;
|
||||
uint8_t __padding_tail[ISC_OS_CACHELINE_SIZE -
|
||||
sizeof(struct __cds_wfcq_head)];
|
||||
sizeof(struct __cds_wfcq_head)];
|
||||
} isc_queue_t;
|
||||
|
||||
typedef struct cds_wfcq_node isc_queue_node_t;
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ struct isc_quota {
|
|||
struct {
|
||||
struct cds_wfcq_head head;
|
||||
uint8_t __padding[ISC_OS_CACHELINE_SIZE -
|
||||
sizeof(struct __cds_wfcq_head)];
|
||||
sizeof(struct __cds_wfcq_head)];
|
||||
struct cds_wfcq_tail tail;
|
||||
} jobs;
|
||||
ISC_LINK(isc_quota_t) link;
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ typedef atomic_uint_fast32_t isc_refcount_t;
|
|||
__attribute__((unused)); \
|
||||
stat void name##_detach(name##_t **ptrp) __attribute__((unused))
|
||||
|
||||
#define ISC_REFCOUNT_DECL(name) ISC__REFCOUNT_DECL(name, ISC_REFCOUNT_BLANK)
|
||||
#define ISC_REFCOUNT_DECL(name) ISC__REFCOUNT_DECL(name, ISC_REFCOUNT_BLANK)
|
||||
#define ISC_REFCOUNT_STATIC_DECL(name) ISC__REFCOUNT_DECL(name, static inline)
|
||||
|
||||
#define ISC__REFCOUNT_IMPL(name, destroy, stat) \
|
||||
|
|
|
|||
|
|
@ -256,8 +256,8 @@ struct ns_client {
|
|||
#define NS_CLIENTATTR_WANTNSID 0x000020 /*%< include nameserver ID */
|
||||
#define NS_CLIENTATTR_BADCOOKIE \
|
||||
0x000040 /*%< Presented cookie is bad/out-of-date */
|
||||
#define NS_CLIENTATTR_WANTRC 0x000080 /*%< include Report-Channel */
|
||||
#define NS_CLIENTATTR_WANTAD 0x000100 /*%< want AD in response if possible */
|
||||
#define NS_CLIENTATTR_WANTRC 0x000080 /*%< include Report-Channel */
|
||||
#define NS_CLIENTATTR_WANTAD 0x000100 /*%< want AD in response if possible */
|
||||
#define NS_CLIENTATTR_WANTCOOKIE 0x000200 /*%< return a COOKIE */
|
||||
#define NS_CLIENTATTR_HAVECOOKIE 0x000400 /*%< has a valid COOKIE */
|
||||
#define NS_CLIENTATTR_WANTEXPIRE 0x000800 /*%< return seconds to expire */
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@
|
|||
|
||||
#include <tests/isc.h>
|
||||
|
||||
#define NAME "internal"
|
||||
#define SHA "3bed2cb3a3acf7b6a8ef408420cc682d5520e26976d354254f528c965612054f"
|
||||
#define NAME "internal"
|
||||
#define SHA "3bed2cb3a3acf7b6a8ef408420cc682d5520e26976d354254f528c965612054f"
|
||||
#define TRUNC_SHA "3bed2cb3a3acf7b6"
|
||||
|
||||
#define BAD1 "in/internal"
|
||||
|
|
|
|||
Loading…
Reference in a new issue