summaryrefslogtreecommitdiff
path: root/net/libunp/files
diff options
context:
space:
mode:
authorDan Moschuk <dan@FreeBSD.org>1999-10-02 19:13:06 +0000
committerDan Moschuk <dan@FreeBSD.org>1999-10-02 19:13:06 +0000
commita759fd52db0359173523ebf62e3c4521554d0fcf (patch)
treee7e27217d3de213cc80604d456d25a7f1d6577d7 /net/libunp/files
parentFix odd markup in the man page (diff)
libunp is the library used in W. Richard Steven's book "UNIX Network
Programming Volume 1, 2nd Edition". It contains the library and headers used in the examples as well as all programs from the text that compile on FreeBSD systems. PR: ports/14057 Submitted by: James FitzGibbon <james@targetnet.com>
Notes
Notes: svn path=/head/; revision=22128
Diffstat (limited to 'net/libunp/files')
-rw-r--r--net/libunp/files/patch-aa18
-rw-r--r--net/libunp/files/patch-ab10
-rw-r--r--net/libunp/files/patch-ac10
-rw-r--r--net/libunp/files/patch-ad12
-rw-r--r--net/libunp/files/patch-ae10
-rw-r--r--net/libunp/files/patch-af48
-rw-r--r--net/libunp/files/patch-ag20
-rw-r--r--net/libunp/files/patch-ah18
-rw-r--r--net/libunp/files/patch-ai15
-rw-r--r--net/libunp/files/patch-aj16
-rw-r--r--net/libunp/files/patch-ak15
-rw-r--r--net/libunp/files/patch-al20
-rw-r--r--net/libunp/files/patch-am20
-rw-r--r--net/libunp/files/patch-an11
-rw-r--r--net/libunp/files/patch-ao11
-rw-r--r--net/libunp/files/patch-ap11
-rw-r--r--net/libunp/files/patch-aq22
17 files changed, 287 insertions, 0 deletions
diff --git a/net/libunp/files/patch-aa b/net/libunp/files/patch-aa
new file mode 100644
index 000000000000..71c936aef1e9
--- /dev/null
+++ b/net/libunp/files/patch-aa
@@ -0,0 +1,18 @@
+--- Makefile.in.orig Fri Apr 11 18:42:26 1997
++++ Makefile.in Thu Sep 30 09:51:16 1999
+@@ -1,8 +1,13 @@
+ include ./Make.defines
+
++SUBDIRS = lib libfree libgai libroute
++
+ all:
+- @echo "Nothing to make in this directory"
+- @echo "Please read the README file"
++ PWD=`pwd`; \
++ for dir in $(SUBDIRS) ; \
++ do \
++ cd $$PWD/$$dir && $(MAKE) && cd .. ;\
++ done
+
+ clean:
+ rm -f $(CLEANFILES)
diff --git a/net/libunp/files/patch-ab b/net/libunp/files/patch-ab
new file mode 100644
index 000000000000..744bbd971c2e
--- /dev/null
+++ b/net/libunp/files/patch-ab
@@ -0,0 +1,10 @@
+--- intro/Makefile.orig Tue Sep 28 11:39:20 1999
++++ intro/Makefile Tue Sep 28 11:39:35 1999
+@@ -2,7 +2,6 @@
+
+ PROGS = daytimetcpcli daytimetcpcli1 daytimetcpcli2 daytimetcpcli3 \
+ daytimetcpsrv daytimetcpsrv1 daytimetcpsrv2 daytimetcpsrv3 \
+- daytimetcpcliv6 daytimetcpsrvv6 \
+ byteorder
+
+ all: ${PROGS}
diff --git a/net/libunp/files/patch-ac b/net/libunp/files/patch-ac
new file mode 100644
index 000000000000..18f3bf31563c
--- /dev/null
+++ b/net/libunp/files/patch-ac
@@ -0,0 +1,10 @@
+--- icmpd/Makefile.orig Tue Sep 28 11:40:21 1999
++++ icmpd/Makefile Tue Sep 28 11:40:24 1999
+@@ -1,6 +1,6 @@
+ include ../Make.defines
+
+-OBJS = icmpd.o readable_listen.o readable_conn.o readable_v4.o readable_v6.o
++OBJS = icmpd.o readable_listen.o readable_conn.o readable_v4.o
+
+ PROGS = icmpd udpcli01
+
diff --git a/net/libunp/files/patch-ad b/net/libunp/files/patch-ad
new file mode 100644
index 000000000000..ab4a7319b7ff
--- /dev/null
+++ b/net/libunp/files/patch-ad
@@ -0,0 +1,12 @@
+--- ping/Makefile.orig Tue Sep 28 11:40:42 1999
++++ ping/Makefile Tue Sep 28 11:40:53 1999
+@@ -1,7 +1,7 @@
+ include ../Make.defines
+
+-OBJS = main.o proc_v4.o proc_v6.o readloop.o \
+- send_v4.o send_v6.o sig_alrm.o tv_sub.o
++OBJS = main.o proc_v4.o readloop.o \
++ send_v4.o sig_alrm.o tv_sub.o
+ PROGS = ping
+
+ all: ${PROGS}
diff --git a/net/libunp/files/patch-ae b/net/libunp/files/patch-ae
new file mode 100644
index 000000000000..9702ebe43672
--- /dev/null
+++ b/net/libunp/files/patch-ae
@@ -0,0 +1,10 @@
+--- traceroute/Makefile.orig Tue Sep 28 11:41:09 1999
++++ traceroute/Makefile Tue Sep 28 11:41:17 1999
+@@ -1,6 +1,6 @@
+ include ../Make.defines
+
+-OBJS = main.o icmpcode_v4.o icmpcode_v6.o recv_v4.o recv_v6.o \
++OBJS = main.o icmpcode_v4.o recv_v4.o \
+ sig_alrm.o traceloop.o tv_sub.o
+ PROGS = traceroute
+
diff --git a/net/libunp/files/patch-af b/net/libunp/files/patch-af
new file mode 100644
index 000000000000..003640b52901
--- /dev/null
+++ b/net/libunp/files/patch-af
@@ -0,0 +1,48 @@
+--- configure.orig Thu Jul 10 11:19:39 1997
++++ configure Thu Sep 30 12:29:28 1999
+@@ -1101,10 +1101,12 @@
+ echo "$ac_t""yes" 1>&6
+ LIBUNP="$HOME/libunp.a"
+ LIBUNP_NAME=$HOME/libunp.a
++ LIBUNP_THREADSAFE_NAME=$HOME/libunp_r.a
+ else
+ echo "$ac_t""no" 1>&6
+ LIBUNP="../libunp.a"
+ LIBUNP_NAME=../libunp.a
++ LIBUNP_THREADSAFE_NAME=../libunp_r.a
+ fi
+
+ echo $ac_n "checking for $HOME/libunpxti.a""... $ac_c" 1>&6
+@@ -4288,7 +4290,6 @@
+ LIB_OBJS="$LIB_OBJS udp_connect.o"
+ LIB_OBJS="$LIB_OBJS udp_server.o"
+ LIB_OBJS="$LIB_OBJS wraplib.o"
+-LIB_OBJS="$LIB_OBJS wrapsock.o"
+ LIB_OBJS="$LIB_OBJS wrapstdio.o"
+ if test "$ac_cv_header_pthread_h" = yes ; then
+ LIB_OBJS="$LIB_OBJS wrappthread.o"
+@@ -4297,6 +4298,8 @@
+ LIB_OBJS="$LIB_OBJS write_fd.o"
+ LIB_OBJS="$LIB_OBJS writen.o"
+ LIB_OBJS="$LIB_OBJS writable_timeo.o"
++LIB_THREADSAFE_OBJS="$LIB_OBJS wrapsock_r.o"
++LIB_OBJS="$LIB_OBJS wrapsock.o"
+
+ LIBFREE_OBJS=
+
+@@ -4514,6 +4517,7 @@
+ s%@RANLIB@%$RANLIB%g
+ s%@CPP@%$CPP%g
+ s%@LIB_OBJS@%$LIB_OBJS%g
++s%@LIB_THREADSAFE_OBJS@%$LIB_THREADSAFE_OBJS%g
+ s%@LIBFREE_OBJS@%$LIBFREE_OBJS%g
+ s%@LIBGAI_OBJS@%$LIBGAI_OBJS%g
+ s%@LIBROUTE_OBJS@%$LIBROUTE_OBJS%g
+@@ -4522,6 +4526,7 @@
+ s%@LIBUNP@%$LIBUNP%g
+ s%@LIBUNPXTI@%$LIBUNPXTI%g
+ s%@LIBUNP_NAME@%$LIBUNP_NAME%g
++s%@LIBUNP_THREADSAFE_NAME@%$LIBUNP_THREADSAFE_NAME%g
+ s%@LIBUNPXTI_NAME@%$LIBUNPXTI_NAME%g
+
+ CEOF
diff --git a/net/libunp/files/patch-ag b/net/libunp/files/patch-ag
new file mode 100644
index 000000000000..0b4832540669
--- /dev/null
+++ b/net/libunp/files/patch-ag
@@ -0,0 +1,20 @@
+--- lib/Makefile.orig Fri Apr 11 17:38:27 1997
++++ lib/Makefile Thu Sep 30 11:34:21 1999
+@@ -1,8 +1,16 @@
+ include ../Make.defines
+
+-all: ${LIB_OBJS}
++CFLAGS += -I.. -I.
++
++all: libunp.a libunp_r.a
++
++libunp.a: ${LIB_OBJS}
+ ar rv ${LIBUNP_NAME} $?
+ ${RANLIB} ${LIBUNP_NAME}
++
++libunp_r.a: ${LIB_THREADSAFE_OBJS}
++ ar rv ${LIBUNP_THREADSAFE_NAME} $?
++ ${RANLIB} ${LIBUNP_THREADSAFE_NAME}
+
+ clean:
+ rm -f ${PROGS} ${CLEANFILES}
diff --git a/net/libunp/files/patch-ah b/net/libunp/files/patch-ah
new file mode 100644
index 000000000000..2fdb2887a59d
--- /dev/null
+++ b/net/libunp/files/patch-ah
@@ -0,0 +1,18 @@
+--- Make.defines.in.orig Thu Jun 12 16:20:21 1997
++++ Make.defines.in Thu Sep 30 10:13:57 1999
+@@ -17,6 +17,7 @@
+ # Following is the main library, built from all the object files
+ # in the lib/ and libfree/ directories.
+ LIBUNP_NAME = @LIBUNP_NAME@
++LIBUNP_THREADSAFE_NAME = @LIBUNP_THREADSAFE_NAME@
+
+ # Following is the XTI library, built from all the object files
+ # in the libxti/ directory.
+@@ -24,6 +25,7 @@
+
+ # Following are all the object files to create in the lib/ directory.
+ LIB_OBJS = @LIB_OBJS@
++LIB_THREADSAFE_OBJS = @LIB_THREADSAFE_OBJS@
+
+ # Following are all the object files to create in the libfree/ directory.
+ LIBFREE_OBJS = @LIBFREE_OBJS@
diff --git a/net/libunp/files/patch-ai b/net/libunp/files/patch-ai
new file mode 100644
index 000000000000..b02f2d5020e0
--- /dev/null
+++ b/net/libunp/files/patch-ai
@@ -0,0 +1,15 @@
+--- libfree/Makefile.orig Fri Oct 3 12:52:41 1997
++++ libfree/Makefile Thu Sep 30 11:34:21 1999
+@@ -1,8 +1,12 @@
+ include ../Make.defines
+
++CFLAGS += -I..
++
+ all: ${LIBFREE_OBJS}
+ ar rv ${LIBUNP_NAME} $?
+ ${RANLIB} ${LIBUNP_NAME}
++ ar rv ${LIBUNP_THREADSAFE_NAME} $?
++ ${RANLIB} ${LIBUNP_THREADSAFE_NAME}
+
+ clean:
+ rm -f ${PROGS} ${CLEANFILES}
diff --git a/net/libunp/files/patch-aj b/net/libunp/files/patch-aj
new file mode 100644
index 000000000000..45eb9ea9b918
--- /dev/null
+++ b/net/libunp/files/patch-aj
@@ -0,0 +1,16 @@
+--- libgai/Makefile.orig Mon Jun 2 18:03:30 1997
++++ libgai/Makefile Thu Sep 30 11:34:11 1999
+@@ -6,9 +6,13 @@
+ # appear in the book (too much clutter, given the amount of conditional
+ # testing for all the code in this directory).
+
++CFLAGS += -I..
++
+ all: ${LIBGAI_OBJS}
+ ar rv ${LIBUNP_NAME} $?
+ ${RANLIB} ${LIBUNP_NAME}
++ ar rv ${LIBUNP_THREADSAFE_NAME} $?
++ ${RANLIB} ${LIBUNP_THREADSAFE_NAME}
+
+ PROGS = testga test1
+
diff --git a/net/libunp/files/patch-ak b/net/libunp/files/patch-ak
new file mode 100644
index 000000000000..6c2dd5bedf61
--- /dev/null
+++ b/net/libunp/files/patch-ak
@@ -0,0 +1,15 @@
+--- libroute/Makefile.orig Thu Jun 12 16:16:47 1997
++++ libroute/Makefile Thu Sep 30 11:34:21 1999
+@@ -1,8 +1,12 @@
+ include ../Make.defines
+
++CFLAGS += -I..
++
+ all: ${LIBROUTE_OBJS}
+ ar rv ${LIBUNP_NAME} $?
+ ${RANLIB} ${LIBUNP_NAME}
++ ar rv ${LIBUNP_THREADSAFE_NAME} $?
++ ${RANLIB} ${LIBUNP_THREADSAFE_NAME}
+
+ clean:
+ rm -f ${PROGS} ${CLEANFILES}
diff --git a/net/libunp/files/patch-al b/net/libunp/files/patch-al
new file mode 100644
index 000000000000..c896e52d7ced
--- /dev/null
+++ b/net/libunp/files/patch-al
@@ -0,0 +1,20 @@
+--- lib/unp.h.orig Sun Sep 14 15:49:59 1997
++++ lib/unp.h Thu Sep 30 11:12:55 1999
+@@ -4,7 +4,7 @@
+ #ifndef __unp_h
+ #define __unp_h
+
+-#include "../config.h" /* configuration options for current OS */
++#include <unp/config.h> /* configuration options for current OS */
+ /* "../config.h" is generated by configure */
+
+ /* If anything changes in the following list of #includes, must change
+@@ -197,7 +197,7 @@
+ #define max(a,b) ((a) > (b) ? (a) : (b))
+
+ #ifndef HAVE_ADDRINFO_STRUCT
+-# include "../lib/addrinfo.h"
++# include <unp/addrinfo.h>
+ #endif
+
+ #ifndef HAVE_IF_NAMEINDEX_STRUCT
diff --git a/net/libunp/files/patch-am b/net/libunp/files/patch-am
new file mode 100644
index 000000000000..40b08fb3f03c
--- /dev/null
+++ b/net/libunp/files/patch-am
@@ -0,0 +1,20 @@
+--- lib/wrappthread.c.orig Thu Sep 30 11:06:22 1999
++++ lib/wrappthread.c Thu Sep 30 11:06:34 1999
+@@ -40,17 +40,6 @@
+ }
+
+ void
+-Pthread_kill(pthread_t tid, int signo)
+-{
+- int n;
+-
+- if ( (n = pthread_kill(tid, signo)) == 0)
+- return;
+- errno = n;
+- err_sys("pthread_kill error");
+-}
+-
+-void
+ Pthread_mutexattr_init(pthread_mutexattr_t *attr)
+ {
+ int n;
diff --git a/net/libunp/files/patch-an b/net/libunp/files/patch-an
new file mode 100644
index 000000000000..d3cecdac1803
--- /dev/null
+++ b/net/libunp/files/patch-an
@@ -0,0 +1,11 @@
+--- lib/unpifi.h.orig Thu Sep 30 11:13:10 1999
++++ lib/unpifi.h Thu Sep 30 11:13:43 1999
+@@ -4,7 +4,7 @@
+ #ifndef __unp_ifi_h
+ #define __unp_ifi_h
+
+-#include "unp.h"
++#include <unp.h>
+ #include <net/if.h>
+
+ #define IFI_NAME 16 /* same as IFNAMSIZ in <net/if.h> */
diff --git a/net/libunp/files/patch-ao b/net/libunp/files/patch-ao
new file mode 100644
index 000000000000..3df5be5e7189
--- /dev/null
+++ b/net/libunp/files/patch-ao
@@ -0,0 +1,11 @@
+--- lib/unprtt.h.orig Thu Sep 30 11:13:16 1999
++++ lib/unprtt.h Thu Sep 30 11:13:37 1999
+@@ -1,7 +1,7 @@
+ #ifndef __unp_rtt_h
+ #define __unp_rtt_h
+
+-#include "unp.h"
++#include <unp.h>
+
+ struct rtt_info {
+ float rtt_rtt; /* most recent measured RTT, seconds */
diff --git a/net/libunp/files/patch-ap b/net/libunp/files/patch-ap
new file mode 100644
index 000000000000..360bae21a1bd
--- /dev/null
+++ b/net/libunp/files/patch-ap
@@ -0,0 +1,11 @@
+--- lib/unpthread.h.orig Thu Sep 30 11:13:20 1999
++++ lib/unpthread.h Thu Sep 30 11:13:41 1999
+@@ -4,7 +4,7 @@
+ #ifndef __unp_pthread_h
+ #define __unp_pthread_h
+
+-#include "unp.h"
++#include <unp.h>
+
+ void Pthread_create(pthread_t *, const pthread_attr_t *,
+ void * (*)(void *), void *);
diff --git a/net/libunp/files/patch-aq b/net/libunp/files/patch-aq
new file mode 100644
index 000000000000..d53ced0afae2
--- /dev/null
+++ b/net/libunp/files/patch-aq
@@ -0,0 +1,22 @@
+--- lib/wrapsock_r.c.orig Thu Sep 30 12:04:02 1999
++++ lib/wrapsock_r.c Thu Sep 30 12:04:10 1999
+@@ -97,19 +97,6 @@
+ }
+ /* end Listen */
+
+-#ifdef HAVE_POLL
+-int
+-Poll(struct pollfd *fdarray, unsigned long nfds, int timeout)
+-{
+- int n;
+-
+- if ( (n = poll(fdarray, nfds, timeout)) < 0)
+- err_sys("poll error");
+-
+- return(n);
+-}
+-#endif
+-
+ ssize_t
+ Recv(int fd, void *ptr, size_t nbytes, int flags)
+ {