summaryrefslogtreecommitdiffstats
path: root/lib/bind/isc
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-09-21 19:01:48 +0000
committerdes <des@FreeBSD.org>2004-09-21 19:01:48 +0000
commita4c12f80064a9009ad12611adb31c37c72ee9eca (patch)
treeee65309033b0451fbda3772ae513fcd9b3dec47a /lib/bind/isc
parent168f1a937f7ee05bd260816130e8771ebf99ba51 (diff)
downloadFreeBSD-src-a4c12f80064a9009ad12611adb31c37c72ee9eca.zip
FreeBSD-src-a4c12f80064a9009ad12611adb31c37c72ee9eca.tar.gz
Switch from BIND 8 to BIND 9.
Submitted by: (in part) dougb@, trhodes@ Reviewed by: dougb@, trhodes@, re@ MFC after: 5 days
Diffstat (limited to 'lib/bind/isc')
-rw-r--r--lib/bind/isc/Makefile124
-rw-r--r--lib/bind/isc/isc/platform.h257
2 files changed, 381 insertions, 0 deletions
diff --git a/lib/bind/isc/Makefile b/lib/bind/isc/Makefile
new file mode 100644
index 0000000..437ba09
--- /dev/null
+++ b/lib/bind/isc/Makefile
@@ -0,0 +1,124 @@
+# $FreeBSD$
+
+BIND_DIR= ${.CURDIR}/../../../contrib/bind9
+LIB_BIND_DIR= ${.CURDIR}/..
+SRCDIR= ${BIND_DIR}/lib/isc
+
+.include "${LIB_BIND_DIR}/config.mk"
+
+LIB= isc
+
+.PATH: ${SRCDIR}/unix
+SRCS+= app.c dir.c entropy.c \
+ errno2result.c file.c fsaccess.c \
+ interfaceiter.c keyboard.c net.c \
+ os.c resource.c socket.c stdio.c \
+ stdtime.c strerror.c syslog.c time.c \
+
+.PATH: ${SRCDIR}/nls
+SRCS+= msgcat.c \
+
+.PATH: ${SRCDIR}/pthreads
+SRCS+= condition.c mutex.c \
+ thread.c
+
+.PATH: ${SRCDIR}
+SRCS+= inet_pton.c \
+ assertions.c base64.c bitstring.c buffer.c \
+ bufferlist.c commandline.c error.c event.c \
+ hash.c heap.c hex.c hmacmd5.c \
+ lex.c lfsr.c lib.c log.c md5.c \
+ mem.c mutexblock.c netaddr.c netscope.c ondestroy.c \
+ parseint.c print.c quota.c random.c \
+ ratelimiter.c region.c result.c rwlock.c \
+ serial.c sha1.c sockaddr.c string.c strtoul.c \
+ symtab.c task.c taskpool.c timer.c version.c
+
+CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/pthreads/include
+CFLAGS+= -I${SRCDIR}/include -I${.CURDIR} -I${.CURDIR}/..
+
+DPADD= ${LIBPTHREAD}
+LDADD= -lpthread
+
+INCS= ${SRCDIR}/include/isc/app.h \
+ ${SRCDIR}/include/isc/assertions.h \
+ ${SRCDIR}/include/isc/base64.h \
+ ${SRCDIR}/include/isc/bitstring.h \
+ ${SRCDIR}/include/isc/boolean.h \
+ ${SRCDIR}/include/isc/buffer.h \
+ ${SRCDIR}/include/isc/bufferlist.h \
+ ${SRCDIR}/include/isc/commandline.h \
+ ${SRCDIR}/include/isc/entropy.h \
+ ${SRCDIR}/include/isc/error.h \
+ ${SRCDIR}/include/isc/event.h \
+ ${SRCDIR}/include/isc/eventclass.h \
+ ${SRCDIR}/include/isc/file.h \
+ ${SRCDIR}/include/isc/formatcheck.h \
+ ${SRCDIR}/include/isc/fsaccess.h \
+ ${SRCDIR}/include/isc/hash.h \
+ ${SRCDIR}/include/isc/heap.h \
+ ${SRCDIR}/include/isc/hex.h \
+ ${SRCDIR}/include/isc/hmacmd5.h \
+ ${SRCDIR}/include/isc/interfaceiter.h \
+ ${SRCDIR}/include/isc/ipv6.h \
+ ${SRCDIR}/include/isc/lang.h \
+ ${SRCDIR}/include/isc/lex.h \
+ ${SRCDIR}/include/isc/lfsr.h \
+ ${SRCDIR}/include/isc/lib.h \
+ ${SRCDIR}/include/isc/list.h \
+ ${SRCDIR}/include/isc/log.h \
+ ${SRCDIR}/include/isc/magic.h \
+ ${SRCDIR}/include/isc/md5.h \
+ ${SRCDIR}/include/isc/mem.h \
+ ${SRCDIR}/include/isc/msgcat.h \
+ ${SRCDIR}/include/isc/msgs.h \
+ ${SRCDIR}/include/isc/mutexblock.h \
+ ${SRCDIR}/include/isc/netaddr.h \
+ ${SRCDIR}/include/isc/netscope.h \
+ ${SRCDIR}/include/isc/ondestroy.h \
+ ${SRCDIR}/include/isc/os.h \
+ ${SRCDIR}/include/isc/parseint.h \
+ ${SRCDIR}/include/isc/print.h \
+ ${SRCDIR}/include/isc/quota.h \
+ ${SRCDIR}/include/isc/random.h \
+ ${SRCDIR}/include/isc/ratelimiter.h \
+ ${SRCDIR}/include/isc/refcount.h \
+ ${SRCDIR}/include/isc/region.h \
+ ${SRCDIR}/include/isc/resource.h \
+ ${SRCDIR}/include/isc/result.h \
+ ${SRCDIR}/include/isc/resultclass.h \
+ ${SRCDIR}/include/isc/rwlock.h \
+ ${SRCDIR}/include/isc/serial.h \
+ ${SRCDIR}/include/isc/sha1.h \
+ ${SRCDIR}/include/isc/sockaddr.h \
+ ${SRCDIR}/include/isc/socket.h \
+ ${SRCDIR}/include/isc/stdio.h \
+ ${SRCDIR}/include/isc/stdlib.h \
+ ${SRCDIR}/include/isc/string.h \
+ ${SRCDIR}/include/isc/symtab.h \
+ ${SRCDIR}/include/isc/task.h \
+ ${SRCDIR}/include/isc/taskpool.h \
+ ${SRCDIR}/include/isc/timer.h \
+ ${SRCDIR}/include/isc/types.h \
+ ${SRCDIR}/include/isc/util.h \
+ ${SRCDIR}/include/isc/version.h \
+ ${SRCDIR}/pthreads/include/isc/condition.h \
+ ${SRCDIR}/pthreads/include/isc/mutex.h \
+ ${SRCDIR}/pthreads/include/isc/once.h \
+ ${SRCDIR}/pthreads/include/isc/thread.h \
+ ${SRCDIR}/unix/include/isc/dir.h \
+ ${SRCDIR}/unix/include/isc/int.h \
+ ${SRCDIR}/unix/include/isc/keyboard.h \
+ ${SRCDIR}/unix/include/isc/net.h \
+ ${SRCDIR}/unix/include/isc/netdb.h \
+ ${SRCDIR}/unix/include/isc/offset.h \
+ ${SRCDIR}/unix/include/isc/stat.h \
+ ${SRCDIR}/unix/include/isc/stdtime.h \
+ ${SRCDIR}/unix/include/isc/strerror.h \
+ ${SRCDIR}/unix/include/isc/syslog.h \
+ ${SRCDIR}/unix/include/isc/time.h \
+ isc/platform.h
+
+INCSDIR= ${INCLUDEDIR}/isc
+
+.include <bsd.lib.mk>
diff --git a/lib/bind/isc/isc/platform.h b/lib/bind/isc/isc/platform.h
new file mode 100644
index 0000000..be0e8eb
--- /dev/null
+++ b/lib/bind/isc/isc/platform.h
@@ -0,0 +1,257 @@
+/* $FreeBSD$ */
+
+/*
+ * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 1999-2003 Internet Software Consortium.
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+ * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+/* $Id: platform.h.in,v 1.24.2.1.10.11 2004/03/08 09:04:52 marka Exp $ */
+
+#ifndef ISC_PLATFORM_H
+#define ISC_PLATFORM_H 1
+
+/*****
+ ***** Platform-dependent defines.
+ *****/
+
+/***
+ *** Network.
+ ***/
+
+/*
+ * Define if this system needs the <netinet/in6.h> header file included
+ * for full IPv6 support (pretty much only UnixWare).
+ */
+#undef ISC_PLATFORM_NEEDNETINETIN6H
+
+/*
+ * Define if this system needs the <netinet6/in6.h> header file included
+ * to support in6_pkinfo (pretty much only BSD/OS).
+ */
+#undef ISC_PLATFORM_NEEDNETINET6IN6H
+
+/*
+ * If sockaddrs on this system have an sa_len field, ISC_PLATFORM_HAVESALEN
+ * will be defined.
+ */
+#define ISC_PLATFORM_HAVESALEN 1
+
+/*
+ * If this system has the IPv6 structure definitions, ISC_PLATFORM_HAVEIPV6
+ * will be defined.
+ */
+#define ISC_PLATFORM_HAVEIPV6 1
+
+/*
+ * If this system is missing in6addr_any, ISC_PLATFORM_NEEDIN6ADDRANY will
+ * be defined.
+ */
+#undef ISC_PLATFORM_NEEDIN6ADDRANY
+
+/*
+ * If this system is missing in6addr_loopback, ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
+ * will be defined.
+ */
+#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
+
+/*
+ * If this system has in6_pktinfo, ISC_PLATFORM_HAVEIN6PKTINFO will be
+ * defined.
+ */
+#define ISC_PLATFORM_HAVEIN6PKTINFO 1
+
+/*
+ * If this system has in_addr6, rather than in6_addr, ISC_PLATFORM_HAVEINADDR6
+ * will be defined.
+ */
+#undef ISC_PLATFORM_HAVEINADDR6
+
+/*
+ * If this system has sin6_scope_id, ISC_PLATFORM_HAVESCOPEID will be defined.
+ */
+#define ISC_PLATFORM_HAVESCOPEID 1
+
+/*
+ * If this system needs inet_ntop(), ISC_PLATFORM_NEEDNTOP will be defined.
+ */
+#undef ISC_PLATFORM_NEEDNTOP
+
+/*
+ * If this system needs inet_pton(), ISC_PLATFORM_NEEDPTON will be defined.
+ */
+#define ISC_PLATFORM_NEEDPTON 1
+
+/*
+ * If this system needs inet_aton(), ISC_PLATFORM_NEEDATON will be defined.
+ */
+#undef ISC_PLATFORM_NEEDATON
+
+/*
+ * If this system needs in_port_t, ISC_PLATFORM_NEEDPORTT will be defined.
+ */
+#undef ISC_PLATFORM_NEEDPORTT
+
+/*
+ * If the system needs strsep(), ISC_PLATFORM_NEEDSTRSEP will be defined.
+ */
+#undef ISC_PLATFORM_NEEDSTRSEP
+
+/*
+ * If the system needs strlcpy(), ISC_PLATFORM_NEEDSTRLCPY will be defined.
+ */
+#undef ISC_PLATFORM_NEEDSTRLCPY
+
+/*
+ * If the system needs strlcat(), ISC_PLATFORM_NEEDSTRLCAT will be defined.
+ */
+#undef ISC_PLATFORM_NEEDSTRLCAT
+
+/*
+ * Define either ISC_PLATFORM_BSD44MSGHDR or ISC_PLATFORM_BSD43MSGHDR.
+ */
+#define ISC_NET_BSD44MSGHDR 1
+
+/*
+ * Define if PTHREAD_ONCE_INIT should be surrounded by braces to
+ * prevent compiler warnings (such as with gcc on Solaris 2.8).
+ */
+#undef ISC_PLATFORM_BRACEPTHREADONCEINIT
+
+/*
+ * Define on some UnixWare systems to fix erroneous definitions of various
+ * IN6_IS_ADDR_* macros.
+ */
+#undef ISC_PLATFORM_FIXIN6ISADDR
+
+/***
+ *** Printing.
+ ***/
+
+/*
+ * If this system needs vsnprintf() and snprintf(), ISC_PLATFORM_NEEDVSNPRINTF
+ * will be defined.
+ */
+#undef ISC_PLATFORM_NEEDVSNPRINTF
+
+/*
+ * If this system need a modern sprintf() that returns (int) not (char*).
+ */
+#undef ISC_PLATFORM_NEEDSPRINTF
+
+/*
+ * The printf format string modifier to use with isc_uint64_t values.
+ */
+#define ISC_PLATFORM_QUADFORMAT "ll"
+
+/*
+ * Defined if we are using threads.
+ */
+#define ISC_PLATFORM_USETHREADS 1
+
+/*
+ * Defined if unistd.h does not cause fd_set to be delared.
+ */
+#undef ISC_PLATFORM_NEEDSYSSELECTH
+
+/*
+ * Type used for resource limits.
+ */
+#define ISC_PLATFORM_RLIMITTYPE rlim_t
+
+/*
+ * Define if your compiler supports "long long int".
+ */
+#define ISC_PLATFORM_HAVELONGLONG 1
+
+/*
+ * Define if the system has struct lifconf which is a extended struct ifconf
+ * for IPv6.
+ */
+#undef ISC_PLATFORM_HAVELIFCONF
+
+/*
+ * Define if the system has struct if_laddrconf which is a extended struct
+ * ifconf for IPv6.
+ */
+#undef ISC_PLATFORM_HAVEIF_LADDRCONF
+
+/*
+ * Define if the system has struct if_laddrreq.
+ */
+#undef ISC_PLATFORM_HAVEIF_LADDRREQ
+
+/*
+ * Used to control how extern data is linked; needed for Win32 platforms.
+ */
+#undef ISC_PLATFORM_USEDECLSPEC
+
+/*
+ * Define if the system supports if_nametoindex.
+ */
+#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1
+
+/*
+ * Define if this system needs strtoul.
+ */
+#undef ISC_PLATFORM_NEEDSTRTOUL
+
+/*
+ * Define if this system needs memmove.
+ */
+#undef ISC_PLATFORM_NEEDMEMMOVE
+
+#ifndef ISC_PLATFORM_USEDECLSPEC
+#define LIBISC_EXTERNAL_DATA
+#define LIBDNS_EXTERNAL_DATA
+#define LIBISCCC_EXTERNAL_DATA
+#define LIBISCCFG_EXTERNAL_DATA
+#define LIBBIND9_EXTERNAL_DATA
+#else /* ISC_PLATFORM_USEDECLSPEC */
+#ifdef LIBISC_EXPORTS
+#define LIBISC_EXTERNAL_DATA __declspec(dllexport)
+#else
+#define LIBISC_EXTERNAL_DATA __declspec(dllimport)
+#endif
+#ifdef LIBDNS_EXPORTS
+#define LIBDNS_EXTERNAL_DATA __declspec(dllexport)
+#else
+#define LIBDNS_EXTERNAL_DATA __declspec(dllimport)
+#endif
+#ifdef LIBISCCC_EXPORTS
+#define LIBISCCC_EXTERNAL_DATA __declspec(dllexport)
+#else
+#define LIBISCCC_EXTERNAL_DATA __declspec(dllimport)
+#endif
+#ifdef LIBISCCFG_EXPORTS
+#define LIBISCCFG_EXTERNAL_DATA __declspec(dllexport)
+#else
+#define LIBISCCFG_EXTERNAL_DATA __declspec(dllimport)
+#endif
+#ifdef LIBBIND9_EXPORTS
+#define LIBBIND9_EXTERNAL_DATA __declspec(dllexport)
+#else
+#define LIBBIND9_EXTERNAL_DATA __declspec(dllimport)
+#endif
+#endif /* ISC_PLATFORM_USEDECLSPEC */
+
+/*
+ * Tell emacs to use C mode for this file.
+ *
+ * Local Variables:
+ * mode: c
+ * End:
+ */
+
+#endif /* ISC_PLATFORM_H */
OpenPOWER on IntegriCloud