diff options
author | dougb <dougb@FreeBSD.org> | 2005-12-29 04:29:03 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2005-12-29 04:29:03 +0000 |
commit | 5356ece7af0458f6ec24871e4de69dc54a3170fd (patch) | |
tree | bcd05c0ac3aeb1c2284fed519ac7d2846276008e | |
parent | 4c84b65cf3f444794e70f63c880807dbd71b3555 (diff) | |
download | FreeBSD-src-5356ece7af0458f6ec24871e4de69dc54a3170fd.zip FreeBSD-src-5356ece7af0458f6ec24871e4de69dc54a3170fd.tar.gz |
Updated versions of header files generated per the instructions
in src/contrib/bind9/FREEBSD-Upgrade for the 9.2.3 import
-rw-r--r-- | lib/bind/bind/config.h | 4 | ||||
-rw-r--r-- | lib/bind/bind/port_after.h | 24 | ||||
-rw-r--r-- | lib/bind/bind/port_before.h | 10 | ||||
-rw-r--r-- | lib/bind/config.h | 23 | ||||
-rw-r--r-- | lib/bind/isc/isc/platform.h | 2 | ||||
-rw-r--r-- | lib/bind/lwres/lwres/platform.h | 12 |
6 files changed, 61 insertions, 14 deletions
diff --git a/lib/bind/bind/config.h b/lib/bind/bind/config.h index ac563d3..5177431 100644 --- a/lib/bind/bind/config.h +++ b/lib/bind/bind/config.h @@ -4,6 +4,8 @@ /* #undef _SOCKADDR_LEN */ #define HAVE_FCNTL_H 1 #define HAVE_PATHS_H 1 +#define HAVE_INTTYPES_H 1 +/* #undef HAVE_STROPTS_H */ #define HAVE_SYS_TIMERS_H 1 /* #undef SYS_CDEFS_H */ /* #undef _POSIX_PTHREAD_SEMANTICS */ @@ -38,6 +40,8 @@ #define HAS_PW_CLASS 1 +/* #undef uintptr_t */ + /* Shut up warnings about sputaux in stdio.h on BSD/OS pre-4.1 */ /* #undef SHUTUP_SPUTAUX */ #ifdef SHUTUP_SPUTAUX diff --git a/lib/bind/bind/port_after.h b/lib/bind/bind/port_after.h index 755779b..93b8e75 100644 --- a/lib/bind/bind/port_after.h +++ b/lib/bind/bind/port_after.h @@ -10,6 +10,9 @@ #if (!defined(BSD)) || (BSD < 199306) #include <sys/bitypes.h> #endif +#ifdef HAVE_INTTYPES_H +#include <inttypes.h> +#endif #undef NEED_PSELECT #define HAVE_SA_LEN 1 @@ -29,8 +32,6 @@ #undef INNETGR_ARGS #undef SETNETGRENT_ARGS #define USE_IFNAMELINKID 1 - -/* XXX sunos and cygwin needs O_NDELAY */ #define PORT_NONBLOCK O_NONBLOCK /* @@ -88,6 +89,19 @@ struct sockaddr_in6 { #undef IN6ADDR_LOOPBACK_INIT #endif +#ifdef _AIX +#ifndef IN6ADDR_ANY_INIT +#define IN6ADDR_ANY_INIT {{{ 0, 0, 0, 0 }}} +#endif +#ifndef IN6ADDR_LOOPBACK_INIT +#if BYTE_ORDER == BIG_ENDIAN +#define IN6ADDR_LOOPBACK_INIT {{{ 0, 0, 0, 1 }}} +#else +#define IN6ADDR_LOOPBACK_INIT {{{0, 0, 0, 0x01000000}}} +#endif +#endif +#endif + #ifndef IN6ADDR_ANY_INIT #ifdef s6_addr #define IN6ADDR_ANY_INIT \ @@ -244,7 +258,7 @@ char * strsep(char **stringp, const char *delim); #endif #ifndef ALIGN -#define ALIGN(p) (((unsigned int)(p) + (sizeof(int) - 1)) & ~(sizeof(int) - 1)) +#define ALIGN(p) (((uintptr_t)(p) + (sizeof(long) - 1)) & ~(sizeof(long) - 1)) #endif #ifdef NEED_SETGROUPENT @@ -287,7 +301,7 @@ GROUP_R_SET_RETURN setgrent_r(GROUP_R_ENT_ARGS); GROUP_R_END_RETURN endgrent_r(GROUP_R_ENT_ARGS); #endif -#ifdef NEED_INNETGR_R +#if defined(NEED_INNETGR_R) && defined(NGR_R_RETURN) NGR_R_RETURN innetgr_r(const char *, const char *, const char *, const char *); #endif @@ -370,7 +384,9 @@ int isc__gettimeofday(struct timeval *tp, struct timezone *tzp); int getnetgrent(char **machinep, char **userp, char **domainp); +#ifdef NGR_R_ARGS int getnetgrent_r(char **machinep, char **userp, char **domainp, NGR_R_ARGS); +#endif #ifdef SETNETGRENT_ARGS void setnetgrent(SETNETGRENT_ARGS); diff --git a/lib/bind/bind/port_before.h b/lib/bind/bind/port_before.h index 02a45bd..712de93 100644 --- a/lib/bind/bind/port_before.h +++ b/lib/bind/bind/port_before.h @@ -20,8 +20,11 @@ struct timezone; /* silence warning */ #undef WANT_IRS_PW #undef BSD_COMP +#undef HAVE_POLL +#undef HAVE_MD5 +#undef SOLARIS2 -#define DO_PTHREADS 1 +#undef DO_PTHREADS #define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups #define GETNETBYADDR_ADDR_T long #define SETPWENT_VOID 1 @@ -137,4 +140,9 @@ struct timezone; /* silence warning */ #define ISC_FORMAT_PRINTF(fmt, args) #endif +/* Pull in host order macros when _XOPEN_SOURCE_EXTENDED is defined. */ +#if defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED) +#include <sys/byteorder.h> +#endif + #endif diff --git a/lib/bind/config.h b/lib/bind/config.h index 42d2c14..df9f40e 100644 --- a/lib/bind/config.h +++ b/lib/bind/config.h @@ -149,9 +149,6 @@ int sigwait(const unsigned int *set, int *sig); /* Define if threads need PTHREAD_SCOPE_SYSTEM */ /* #undef NEED_PTHREAD_SCOPE_SYSTEM */ -/* Define to 1 if you have the <dlfcn.h> header file. */ -/* #undef HAVE_DLFCN_H */ - /* Define to 1 if you have the <fcntl.h> header file. */ #define HAVE_FCNTL_H 1 @@ -227,6 +224,9 @@ int sigwait(const unsigned int *set, int *sig); /* Define to 1 if you have the <unistd.h> header file. */ #define HAVE_UNISTD_H 1 +/* Defined if extern char *optarg is not declared. */ +/* #undef NEED_OPTARG */ + /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "" @@ -242,12 +242,20 @@ int sigwait(const unsigned int *set, int *sig); /* Define to the version of this package. */ #define PACKAGE_VERSION "" +/* Sets which flag to pass to open/fcntl to make non-blocking + (O_NDELAY/O_NONBLOCK). */ +#define PORT_NONBLOCK O_NONBLOCK + /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ #define TIME_WITH_SYS_TIME 1 +/* Defined if you need to use ioctl(FIONBIO) instead a fcntl call to make + non-blocking. */ +/* #undef USE_FIONBIO_IOCTL */ + /* Define to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ /* #undef WORDS_BIGENDIAN */ @@ -255,14 +263,15 @@ int sigwait(const unsigned int *set, int *sig); /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ -/* Define to `__inline__' or `__inline' if that's what the C compiler - calls it, or to nothing if 'inline' is not supported under any name. */ -#ifndef __cplusplus +/* Define as `__inline' if that's what the C compiler calls it, or to nothing + if it is not supported. */ /* #undef inline */ -#endif /* Define to `unsigned' if <sys/types.h> does not define. */ /* #undef size_t */ /* Define to `int' if <sys/types.h> does not define. */ /* #undef ssize_t */ + +/* Define to `unsigned long' if <sys/types.h> does not define. */ +/* #undef uintptr_t */ diff --git a/lib/bind/isc/isc/platform.h b/lib/bind/isc/isc/platform.h index c40be12..ae1cdc2 100644 --- a/lib/bind/isc/isc/platform.h +++ b/lib/bind/isc/isc/platform.h @@ -91,7 +91,7 @@ /* * If this system needs inet_pton(), ISC_PLATFORM_NEEDPTON will be defined. */ -#define ISC_PLATFORM_NEEDPTON 1 +#undef ISC_PLATFORM_NEEDPTON /* * If this system needs inet_aton(), ISC_PLATFORM_NEEDATON will be defined. diff --git a/lib/bind/lwres/lwres/platform.h b/lib/bind/lwres/lwres/platform.h index 99b7800..ed87c89 100644 --- a/lib/bind/lwres/lwres/platform.h +++ b/lib/bind/lwres/lwres/platform.h @@ -1,7 +1,7 @@ /* $FreeBSD$ */ /* - * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2000, 2001 Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any @@ -90,6 +90,16 @@ */ #undef LWRES_PLATFORM_NEEDSPRINTF +/* + * The printf format string modifier to use with lwres_uint64_t values. + */ +#define LWRES_PLATFORM_QUADFORMAT "ll" + +/*! \brief + * Define if this system needs strtoul. + */ +#undef ISC_PLATFORM_NEEDSTRTOUL + #ifndef LWRES_PLATFORM_USEDECLSPEC #define LIBLWRES_EXTERNAL_DATA #else |