mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch 'ondrej/fix-clang-format-headers-symlinks' into 'master'
Fix .clang-format.headers symlinks See merge request isc-projects/bind9!3212
This commit is contained in:
commit
e19117b5a9
25 changed files with 83 additions and 77 deletions
|
|
@ -1 +1 @@
|
|||
../../../.clang-format.headers
|
||||
../../../../.clang-format.headers
|
||||
|
|
@ -1 +1 @@
|
|||
../../../.clang-format.headers
|
||||
../../../../.clang-format.headers
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
#define BIND_SERVICE_NAME "named"
|
||||
|
||||
void
|
||||
ntservice_init();
|
||||
ntservice_init();
|
||||
void UpdateSCM(DWORD);
|
||||
void
|
||||
ServiceControl(DWORD dwCtrlCode);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
../../../.clang-format.headers
|
||||
../../../../.clang-format.headers
|
||||
|
|
@ -57,9 +57,9 @@ typedef struct driverinstance driverinstance_t;
|
|||
* special tokens are %zone%, %record%, %client%
|
||||
*/
|
||||
struct query_segment {
|
||||
void *sql;
|
||||
void * sql;
|
||||
unsigned int strlen;
|
||||
bool direct;
|
||||
bool direct;
|
||||
ISC_LINK(query_segment_t) link;
|
||||
};
|
||||
|
||||
|
|
@ -71,19 +71,19 @@ struct query_segment {
|
|||
* make sure no two threads try to use the same DBI at a time.
|
||||
*/
|
||||
struct dbinstance {
|
||||
void *dbconn;
|
||||
void * dbconn;
|
||||
query_list_t *allnodes_q;
|
||||
query_list_t *allowxfr_q;
|
||||
query_list_t *authority_q;
|
||||
query_list_t *findzone_q;
|
||||
query_list_t *lookup_q;
|
||||
query_list_t *countzone_q;
|
||||
char *query_buf;
|
||||
char *zone;
|
||||
char *record;
|
||||
char *client;
|
||||
isc_mem_t *mctx;
|
||||
isc_mutex_t instance_lock;
|
||||
char * query_buf;
|
||||
char * zone;
|
||||
char * record;
|
||||
char * client;
|
||||
isc_mem_t * mctx;
|
||||
isc_mutex_t instance_lock;
|
||||
ISC_LINK(dbinstance_t) link;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
../../../.clang-format.headers
|
||||
../../../../.clang-format.headers
|
||||
|
|
@ -61,9 +61,9 @@ typedef struct driverinstance driverinstance_t;
|
|||
* special tokens are %zone%, %record%, %client%
|
||||
*/
|
||||
struct query_segment {
|
||||
void *cmd;
|
||||
void * cmd;
|
||||
unsigned int strlen;
|
||||
bool direct;
|
||||
bool direct;
|
||||
DLZ_LINK(query_segment_t) link;
|
||||
};
|
||||
|
||||
|
|
@ -75,18 +75,18 @@ struct query_segment {
|
|||
* make sure no two threads try to use the same DBI at a time.
|
||||
*/
|
||||
struct dbinstance {
|
||||
void *dbconn;
|
||||
void * dbconn;
|
||||
query_list_t *allnodes_q;
|
||||
query_list_t *allowxfr_q;
|
||||
query_list_t *authority_q;
|
||||
query_list_t *findzone_q;
|
||||
query_list_t *lookup_q;
|
||||
query_list_t *countzone_q;
|
||||
char *query_buf;
|
||||
char *zone;
|
||||
char *record;
|
||||
char *client;
|
||||
dlz_mutex_t lock;
|
||||
char * query_buf;
|
||||
char * zone;
|
||||
char * record;
|
||||
char * client;
|
||||
dlz_mutex_t lock;
|
||||
DLZ_LINK(dbinstance_t) link;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef ISC_PLATFORM_HAVESYSUNH
|
||||
|
|
@ -38,7 +39,7 @@
|
|||
#include <netinet/in.h>
|
||||
|
||||
typedef unsigned int isc_result_t;
|
||||
typedef uint32_t dns_ttl_t;
|
||||
typedef uint32_t dns_ttl_t;
|
||||
|
||||
/*
|
||||
* Define DLZ_DLOPEN_VERSION to different values to use older versions
|
||||
|
|
@ -81,7 +82,7 @@ typedef uint32_t dns_ttl_t;
|
|||
do { \
|
||||
union { \
|
||||
const void *k; \
|
||||
void *v; \
|
||||
void * v; \
|
||||
} _u; \
|
||||
_u.k = konst; \
|
||||
var = _u.v; \
|
||||
|
|
@ -100,37 +101,37 @@ typedef void *dns_dlzdb_t;
|
|||
*/
|
||||
typedef struct isc_sockaddr {
|
||||
union {
|
||||
struct sockaddr sa;
|
||||
struct sockaddr_in sin;
|
||||
struct sockaddr sa;
|
||||
struct sockaddr_in sin;
|
||||
struct sockaddr_in6 sin6;
|
||||
#ifdef ISC_PLATFORM_HAVESYSUNH
|
||||
struct sockaddr_un sunix;
|
||||
#endif /* ifdef ISC_PLATFORM_HAVESYSUNH */
|
||||
} type;
|
||||
unsigned int length;
|
||||
void *link;
|
||||
void * link;
|
||||
} isc_sockaddr_t;
|
||||
|
||||
#define DNS_CLIENTINFO_VERSION 2
|
||||
typedef struct dns_clientinfo {
|
||||
uint16_t version;
|
||||
void *data;
|
||||
void *dbversion;
|
||||
void * data;
|
||||
void * dbversion;
|
||||
} dns_clientinfo_t;
|
||||
|
||||
typedef isc_result_t (*dns_clientinfo_sourceip_t)(dns_clientinfo_t *client,
|
||||
isc_sockaddr_t **addrp);
|
||||
isc_sockaddr_t ** addrp);
|
||||
|
||||
typedef isc_result_t (*dns_clientinfo_version_t)(dns_clientinfo_t *client,
|
||||
void **addrp);
|
||||
void ** addrp);
|
||||
|
||||
#define DNS_CLIENTINFOMETHODS_VERSION 2
|
||||
#define DNS_CLIENTINFOMETHODS_AGE 1
|
||||
typedef struct dns_clientinfomethods {
|
||||
uint16_t version;
|
||||
uint16_t age;
|
||||
uint16_t version;
|
||||
uint16_t age;
|
||||
dns_clientinfo_sourceip_t sourceip;
|
||||
dns_clientinfo_version_t dbversion;
|
||||
dns_clientinfo_version_t dbversion;
|
||||
} dns_clientinfomethods_t;
|
||||
#endif /* DLZ_DLOPEN_VERSION > 1 */
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
../../../.clang-format.headers
|
||||
../../../../.clang-format.headers
|
||||
|
|
@ -23,15 +23,15 @@
|
|||
|
||||
#ifdef ISC_IRS_NEEDADDRINFO
|
||||
struct addrinfo {
|
||||
int ai_flags; /* AI_PASSIVE, AI_CANONNAME */
|
||||
int ai_family; /* PF_xxx */
|
||||
int ai_socktype; /* SOCK_xxx */
|
||||
int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and
|
||||
* IPv6 */
|
||||
size_t ai_addrlen; /* Length of ai_addr */
|
||||
char *ai_canonname; /* Canonical name for hostname */
|
||||
struct sockaddr *ai_addr; /* Binary address */
|
||||
struct addrinfo *ai_next; /* Next structure in linked list */
|
||||
int ai_flags; /* AI_PASSIVE, AI_CANONNAME */
|
||||
int ai_family; /* PF_xxx */
|
||||
int ai_socktype; /* SOCK_xxx */
|
||||
int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and
|
||||
* IPv6 */
|
||||
size_t ai_addrlen; /* Length of ai_addr */
|
||||
char * ai_canonname; /* Canonical name for hostname */
|
||||
struct sockaddr *ai_addr; /* Binary address */
|
||||
struct addrinfo *ai_next; /* Next structure in linked list */
|
||||
};
|
||||
#endif /* ifdef ISC_IRS_NEEDADDRINFO */
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
../../../.clang-format.headers
|
||||
../../../../.clang-format.headers
|
||||
|
|
@ -52,7 +52,7 @@ extern pthread_mutexattr_t isc__mutex_attrs;
|
|||
typedef struct isc_mutexstats isc_mutexstats_t;
|
||||
|
||||
typedef struct {
|
||||
pthread_mutex_t mutex; /*%< The actual mutex. */
|
||||
pthread_mutex_t mutex; /*%< The actual mutex. */
|
||||
isc_mutexstats_t *stats; /*%< Mutex statistics. */
|
||||
} isc_mutex_t;
|
||||
#else /* if ISC_MUTEX_PROFILE */
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@
|
|||
ISC_LANG_BEGINDECLS
|
||||
|
||||
typedef pthread_t isc_thread_t;
|
||||
typedef void *isc_threadresult_t;
|
||||
typedef void *isc_threadarg_t;
|
||||
typedef void * isc_threadresult_t;
|
||||
typedef void * isc_threadarg_t;
|
||||
typedef isc_threadresult_t (*isc_threadfunc_t)(isc_threadarg_t);
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
../../../.clang-format.headers
|
||||
../../../../.clang-format.headers
|
||||
|
|
@ -15,24 +15,25 @@
|
|||
/*! \file */
|
||||
|
||||
#include <dirent.h>
|
||||
#include <sys/types.h> /* Required on some systems. */
|
||||
|
||||
#include <isc/lang.h>
|
||||
#include <isc/platform.h>
|
||||
#include <isc/result.h>
|
||||
|
||||
#include <sys/types.h> /* Required on some systems. */
|
||||
|
||||
/*% Directory Entry */
|
||||
typedef struct isc_direntry {
|
||||
char name[NAME_MAX];
|
||||
char name[NAME_MAX];
|
||||
unsigned int length;
|
||||
} isc_direntry_t;
|
||||
|
||||
/*% Directory */
|
||||
typedef struct isc_dir {
|
||||
unsigned int magic;
|
||||
char dirname[PATH_MAX];
|
||||
unsigned int magic;
|
||||
char dirname[PATH_MAX];
|
||||
isc_direntry_t entry;
|
||||
DIR *handle;
|
||||
DIR * handle;
|
||||
} isc_dir_t;
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
|
|
|||
|
|
@ -64,17 +64,18 @@
|
|||
/***
|
||||
*** Imports.
|
||||
***/
|
||||
#include <arpa/inet.h> /* Contractual promise. */
|
||||
#include <inttypes.h>
|
||||
#include <net/if.h>
|
||||
#include <netinet/in.h> /* Contractual promise. */
|
||||
#include <sys/socket.h> /* Contractual promise. */
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <isc/lang.h>
|
||||
#include <isc/platform.h>
|
||||
#include <isc/types.h>
|
||||
|
||||
#include <arpa/inet.h> /* Contractual promise. */
|
||||
#include <net/if.h>
|
||||
#include <netinet/in.h> /* Contractual promise. */
|
||||
#include <sys/socket.h> /* Contractual promise. */
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifndef IN6ADDR_LOOPBACK_INIT
|
||||
#ifdef s6_addr
|
||||
/*% IPv6 address loopback init */
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
#include <limits.h> /* Required for CHAR_BIT. */
|
||||
#include <stddef.h> /* For Linux Standard Base. */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
typedef off_t isc_offset_t;
|
||||
|
|
|
|||
|
|
@ -73,11 +73,11 @@ enum memory_order {
|
|||
|
||||
typedef enum memory_order memory_order;
|
||||
|
||||
typedef int_fast32_t atomic_int_fast32_t;
|
||||
typedef int_fast32_t atomic_int_fast32_t;
|
||||
typedef uint_fast32_t atomic_uint_fast32_t;
|
||||
typedef int_fast64_t atomic_int_fast64_t;
|
||||
typedef int_fast64_t atomic_int_fast64_t;
|
||||
typedef uint_fast64_t atomic_uint_fast64_t;
|
||||
typedef bool atomic_bool;
|
||||
typedef bool atomic_bool;
|
||||
|
||||
typedef uint_fast64_t atomic_uintptr_t;
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
../../../.clang-format.headers
|
||||
../../../../.clang-format.headers
|
||||
|
|
@ -23,12 +23,12 @@ typedef struct isc_condition_thread isc_condition_thread_t;
|
|||
|
||||
struct isc_condition_thread {
|
||||
unsigned long th;
|
||||
HANDLE handle[2];
|
||||
HANDLE handle[2];
|
||||
ISC_LINK(isc_condition_thread_t) link;
|
||||
};
|
||||
|
||||
typedef struct isc_condition {
|
||||
HANDLE events[2];
|
||||
HANDLE events[2];
|
||||
unsigned int waiters;
|
||||
ISC_LIST(isc_condition_thread_t) threadlist;
|
||||
} isc_condition_t;
|
||||
|
|
|
|||
|
|
@ -21,17 +21,17 @@
|
|||
#include <isc/result.h>
|
||||
|
||||
typedef struct {
|
||||
char name[NAME_MAX];
|
||||
unsigned int length;
|
||||
char name[NAME_MAX];
|
||||
unsigned int length;
|
||||
WIN32_FIND_DATA find_data;
|
||||
} isc_direntry_t;
|
||||
|
||||
typedef struct {
|
||||
unsigned int magic;
|
||||
char dirname[PATH_MAX];
|
||||
unsigned int magic;
|
||||
char dirname[PATH_MAX];
|
||||
isc_direntry_t entry;
|
||||
bool entry_filled;
|
||||
HANDLE search_handle;
|
||||
bool entry_filled;
|
||||
HANDLE search_handle;
|
||||
} isc_dir_t;
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
|
|
|||
|
|
@ -76,7 +76,6 @@
|
|||
#define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */
|
||||
#endif /* ifndef _WINSOCKAPI_ */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
|
||||
|
|
@ -84,6 +83,8 @@
|
|||
#include <isc/lang.h>
|
||||
#include <isc/types.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
/*
|
||||
* This is here because named client, interfacemgr.c, etc. use the name as
|
||||
* a variable
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
* File offsets are operating-system dependent.
|
||||
*/
|
||||
#include <limits.h> /* Required for CHAR_BIT. */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
typedef _off_t isc_offset_t;
|
||||
|
|
|
|||
|
|
@ -355,7 +355,7 @@ static inline bool
|
|||
atomic_compare_exchange_strong_explicit8(atomic_int_fast8_t *obj,
|
||||
int8_t *expected, int8_t desired,
|
||||
memory_order succ, memory_order fail) {
|
||||
bool __r;
|
||||
bool __r;
|
||||
int8_t __v;
|
||||
|
||||
UNUSED(succ);
|
||||
|
|
@ -375,7 +375,7 @@ atomic_compare_exchange_strong_explicit32(atomic_int_fast32_t *obj,
|
|||
int32_t *expected, int32_t desired,
|
||||
memory_order succ,
|
||||
memory_order fail) {
|
||||
bool __r;
|
||||
bool __r;
|
||||
int32_t __v;
|
||||
|
||||
UNUSED(succ);
|
||||
|
|
@ -411,7 +411,7 @@ atomic_compare_exchange_strong_explicit64(atomic_int_fast64_t *obj,
|
|||
int64_t *expected, int64_t desired,
|
||||
memory_order succ,
|
||||
memory_order fail) {
|
||||
bool __r;
|
||||
bool __r;
|
||||
int64_t __v;
|
||||
|
||||
UNUSED(succ);
|
||||
|
|
|
|||
|
|
@ -62,8 +62,8 @@ WaitAbandonedIndex(DWORD dwWaitResult) {
|
|||
}
|
||||
|
||||
typedef HANDLE isc_thread_t;
|
||||
typedef DWORD isc_threadresult_t;
|
||||
typedef void *isc_threadarg_t;
|
||||
typedef DWORD isc_threadresult_t;
|
||||
typedef void * isc_threadarg_t;
|
||||
typedef isc_threadresult_t(WINAPI *isc_threadfunc_t)(isc_threadarg_t);
|
||||
|
||||
#define isc_thread_self (unsigned long)GetCurrentThreadId
|
||||
|
|
|
|||
Loading…
Reference in a new issue