summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2000-10-24 20:10:25 +0000
committerarchie <archie@FreeBSD.org>2000-10-24 20:10:25 +0000
commitefb8bd7bda1692f948c7871fb58ea6d3c5fdf11b (patch)
tree78c0df685400617b04e44fa81d4dfde258498637
parenta0ecb2ad9b9f4c0d17044a3d795112743988eebd (diff)
downloadFreeBSD-src-efb8bd7bda1692f948c7871fb58ea6d3c5fdf11b.zip
FreeBSD-src-efb8bd7bda1692f948c7871fb58ea6d3c5fdf11b.tar.gz
Build the ISC library as libisc. This library comes as part of the
bind distribution, but until now was not being built as a separate entity. For documentation, see these man pages: assertions(3), eventlib(3), heap(3), logging(3), memcluster(3), tree(3). Reviewed by: jdp
-rw-r--r--etc/mtree/BSD.include.dist2
-rw-r--r--lib/Makefile2
-rw-r--r--lib/libisc/Makefile135
-rw-r--r--share/mk/bsd.libnames.mk1
4 files changed, 139 insertions, 1 deletions
diff --git a/etc/mtree/BSD.include.dist b/etc/mtree/BSD.include.dist
index b9ce5ed..30fae63 100644
--- a/etc/mtree/BSD.include.dist
+++ b/etc/mtree/BSD.include.dist
@@ -21,6 +21,8 @@
std
..
..
+ isc
+ ..
isofs
cd9660
..
diff --git a/lib/Makefile b/lib/Makefile
index 7e8be99..3db3e82 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -23,7 +23,7 @@ SUBDIR= ${_csu} libcom_err ${_libcrypt} msun libmd \
libncurses libradius libskey libtacplus libutil \
${_compat} libalias libatm ${_libbind} libc ${_libc_r} libcalendar \
libcam libcompat libdevstat libdisk libedit libfetch libform \
- libftpio libgnumalloc ${_libio} libipsec libipx libkvm libmenu \
+ libftpio libgnumalloc ${_libio} libipsec libipx libisc libkvm libmenu \
${_libncp} \
libnetgraph libopie libpam libpanel libpcap \
libposix1e libresolv librpcsvc libsmdb libsmutil libss \
diff --git a/lib/libisc/Makefile b/lib/libisc/Makefile
new file mode 100644
index 0000000..c9d8f5d
--- /dev/null
+++ b/lib/libisc/Makefile
@@ -0,0 +1,135 @@
+# $FreeBSD$
+
+BIND_DIR= ${.CURDIR}/../../contrib/bind
+
+LIB= isc
+SHLIB_MAJOR= 1
+SHLIB_MINOR= 0
+
+.PATH: ${BIND_DIR}/lib/isc
+SRCS= assertions.c ev_connects.c ev_files.c ev_streams.c \
+ ev_timers.c ev_waits.c eventlib.c heap.c tree.c \
+ logging.c memcluster.c bitncmp.c
+
+# contrib/bind/include/* must not override any real system includes
+CFLAGS+= -I${BIND_DIR}/port/freebsd/include -I${BIND_DIR}/include
+CFLAGS+= -Wall -Wmissing-prototypes
+
+INCS= ${BIND_DIR}/include/isc/assertions.h \
+ ${BIND_DIR}/include/isc/eventlib.h \
+ ${BIND_DIR}/include/isc/heap.h \
+ ${BIND_DIR}/include/isc/logging.h \
+ ${BIND_DIR}/include/isc/memcluster.h \
+ ${BIND_DIR}/include/isc/misc.h \
+ ${BIND_DIR}/include/isc/tree.h
+INCDIR= /usr/include/isc
+
+MAN3= assertions.3 bitncmp.3 eventlib.3 heap.3 \
+ logging.3 memcluster.3 tree.3
+CLEANFILES+= ${MAN3}
+
+MLINKS+= assertions.3 ENSURE.3 \
+ assertions.3 ENSURE_ERR.3 \
+ assertions.3 INSIST.3 \
+ assertions.3 INSIST_ERR.3 \
+ assertions.3 INVARIANT.3 \
+ assertions.3 INVARIANT_ERR.3 \
+ assertions.3 REQUIRE.3 \
+ assertions.3 REQUIRE_ERR.3 \
+ assertions.3 assertion_type_to_text.3 \
+ assertions.3 set_assertion_failure_callback.3 \
+ eventlib.3 evAddTime.3 \
+ eventlib.3 evCancelConn.3 \
+ eventlib.3 evCancelRW.3 \
+ eventlib.3 evClearIdleTimer.3 \
+ eventlib.3 evClearTimer.3 \
+ eventlib.3 evCmpTime.3 \
+ eventlib.3 evConnFunc.3 \
+ eventlib.3 evConnect.3 \
+ eventlib.3 evConsIovec.3 \
+ eventlib.3 evConsTime.3 \
+ eventlib.3 evCreate.3 \
+ eventlib.3 evDefer.3 \
+ eventlib.3 evDeselectFD.3 \
+ eventlib.3 evDestroy.3 \
+ eventlib.3 evDispatch.3 \
+ eventlib.3 evDo.3 \
+ eventlib.3 evDrop.3 \
+ eventlib.3 evFileFunc.3 \
+ eventlib.3 evGetNext.3 \
+ eventlib.3 evHold.3 \
+ eventlib.3 evInitID.3 \
+ eventlib.3 evLastEventTime.3 \
+ eventlib.3 evListen.3 \
+ eventlib.3 evMainLoop.3 \
+ eventlib.3 evNowTime.3 \
+ eventlib.3 evPrintf.3 \
+ eventlib.3 evRead.3 \
+ eventlib.3 evResetTimer.3 \
+ eventlib.3 evSelectFD.3 \
+ eventlib.3 evSetDebug.3 \
+ eventlib.3 evSetIdleTimer.3 \
+ eventlib.3 evSetTimer.3 \
+ eventlib.3 evStreamFunc.3 \
+ eventlib.3 evSubTime.3 \
+ eventlib.3 evTestID.3 \
+ eventlib.3 evTimeRW.3 \
+ eventlib.3 evTimeSpec.3 \
+ eventlib.3 evTimeVal.3 \
+ eventlib.3 evTimerFunc.3 \
+ eventlib.3 evTouchIdleTimer.3 \
+ eventlib.3 evTryAccept.3 \
+ eventlib.3 evUnhold.3 \
+ eventlib.3 evUntimeRW.3 \
+ eventlib.3 evUnwait.3 \
+ eventlib.3 evWaitFor.3 \
+ eventlib.3 evWaitFunc.3 \
+ eventlib.3 evWrite.3 \
+ heap.3 heap_decreased.3 \
+ heap.3 heap_delete.3 \
+ heap.3 heap_element.3 \
+ heap.3 heap_for_each.3 \
+ heap.3 heap_free.3 \
+ heap.3 heap_increased.3 \
+ heap.3 heap_insert.3 \
+ heap.3 heap_new.3 \
+ logging.3 log_add_channel.3 \
+ logging.3 log_category_is_active.3 \
+ logging.3 log_close_stream.3 \
+ logging.3 log_dec_references.3 \
+ logging.3 log_free_channel.3 \
+ logging.3 log_free_context.3 \
+ logging.3 log_get_filename.3 \
+ logging.3 log_get_stream.3 \
+ logging.3 log_inc_references.3 \
+ logging.3 log_new_context.3 \
+ logging.3 log_new_file_channel.3 \
+ logging.3 log_new_null_channel.3 \
+ logging.3 log_new_syslog_channel.3 \
+ logging.3 log_open_stream.3 \
+ logging.3 log_option.3 \
+ logging.3 log_remove_channel.3 \
+ logging.3 log_set_file_owner.3 \
+ logging.3 log_vwrite.3 \
+ logging.3 log_write.3 \
+ memcluster.3 memget.3 \
+ memcluster.3 memput.3 \
+ memcluster.3 memstats.3 \
+ tree.3 tree_add.3 \
+ tree.3 tree_delete.3 \
+ tree.3 tree_init.3 \
+ tree.3 tree_mung.3 \
+ tree.3 tree_srch.3 \
+ tree.3 tree_trav.3
+
+.include <bsd.lib.mk>
+
+# This has to come after the .include <bsd.lib.mk>. Not sure why.
+
+.SUFFIXES: .mdoc .3
+.mdoc.3:
+ sed -e 's/@INDOT@//g' \
+ -e 's/@SYSCALL_EXT@/2/g' \
+ -e 's/@SYS_OPS_EXT@/8/g' \
+ < ${.ALLSRC} > ${.TARGET}
+
diff --git a/share/mk/bsd.libnames.mk b/share/mk/bsd.libnames.mk
index 222441e..6a6e7a5 100644
--- a/share/mk/bsd.libnames.mk
+++ b/share/mk/bsd.libnames.mk
@@ -38,6 +38,7 @@ LIBGNUREGEX?= ${DESTDIR}${LIBDIR}/libgnuregex.a
LIBHISTORY?= ${DESTDIR}${LIBDIR}/libhistory.a
LIBIPSEC?= ${DESTDIR}${LIBDIR}/libipsec.a
LIBIPX?= ${DESTDIR}${LIBDIR}/libipx.a
+LIBISC?= ${DESTDIR}${LIBDIR}/libisc.a
LIBKDB?= ${DESTDIR}${LIBDIR}/libkdb.a # XXX in secure dist, not base
LIBKRB?= ${DESTDIR}${LIBDIR}/libkrb.a # XXX in secure dist, not base
LIBKEYCAP?= ${DESTDIR}${LIBDIR}/libkeycap.a
OpenPOWER on IntegriCloud