summaryrefslogtreecommitdiff
path: root/net/cnet/files
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2001-08-28 05:35:40 +0000
committerPete Fritchman <petef@FreeBSD.org>2001-08-28 05:35:40 +0000
commitf254027b5f65981ae3eccc99be5302bf1255526c (patch)
treec87c90b4526402941908aa4325e7cbb4d0671a96 /net/cnet/files
parentUpdate the original dictionary to 20010615 (diff)
- update to 1.7.4
- use tk83 PR: 30143 Submitted by: KATO Tsuguru <tkato@prontomail.com>
Notes
Notes: svn path=/head/; revision=47002
Diffstat (limited to 'net/cnet/files')
-rw-r--r--net/cnet/files/Makefile.freebsd28
-rw-r--r--net/cnet/files/compile.c75
-rw-r--r--net/cnet/files/patch-ab13
-rw-r--r--net/cnet/files/patch-ad13
-rw-r--r--net/cnet/files/patch-ae35
-rw-r--r--net/cnet/files/patch-af20
6 files changed, 0 insertions, 184 deletions
diff --git a/net/cnet/files/Makefile.freebsd b/net/cnet/files/Makefile.freebsd
deleted file mode 100644
index 530f439665f2..000000000000
--- a/net/cnet/files/Makefile.freebsd
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# The following #defines are for FreeBSD
-#
-XINCLUDES = -I${X11BASE}/include
-XLIBS = -lXpm -lX11 -lm -L${X11BASE}/lib
-
-ANSICC = ${CC}
-
-INCLUDES = -I${LOCALBASE}/include \
- -I${LOCALBASE}/include/tcl8.2 \
- -I${LOCALBASE}/include/tk8.2
-CFLAGS += $(INCLUDES) $(XINCLUDES)
-
-LD = ${CC}
-LIBDIRS = -L${LOCALBASE}/lib
-LIBS = -ltcl82 -ltk82 -lm -lgnuregex
-STRIP = strip
-
-BINDIR = ${PREFIX}/bin
-MANDIR = ${PREFIX}/man/manl
-MANEXT = 1
-INCDIR = ${PREFIX}/include
-
-
-# ---------------------- No user-serviceable code below -----------------
-
-include Makefile.common
-
diff --git a/net/cnet/files/compile.c b/net/cnet/files/compile.c
deleted file mode 100644
index 5f0405d14496..000000000000
--- a/net/cnet/files/compile.c
+++ /dev/null
@@ -1,75 +0,0 @@
-#include <dlfcn.h>
-#include <nlist.h>
-
-static int add_compile_args(int ac, char *av[], int kflag)
-{
- av[ac++] = "-fPIC";
- return(ac);
-}
-
-
-static int add_link_args(int ac, char *av[], int kflag)
-{
- av[ac++] = findenv("CNETLD", CNETLD);
- av[ac++] = "ld";
- av[ac++] = "-shared";
- return(ac);
-}
-
-
-static void data_segments(int n, void *handle, char *so_filenm)
-{
- extern int nlist(const char *, struct nlist *);
-
- typedef struct _c {
- char *so_filenm;
- unsigned long length_data;
- char *incore_data;
- char *original_data;
- struct _c *next;
- } CACHE;
-
- static CACHE *chd = (CACHE *)NULL;
- CACHE *cp = chd;
-
- NODE *np = &NP[n];
- struct nlist nls[3];
-
- while(cp != (CACHE *)NULL) {
- if(strcmp(cp->so_filenm, so_filenm) == 0)
- goto found;
- cp = cp->next;
- }
-
- nls[0].n_name = "__DYNAMIC";
- nls[1].n_name = "_end";
- nls[2].n_name = (char *)NULL;
-
- if(nlist(so_filenm, nls) != 0) {
- fprintf(stderr,"%s: cannot load symbols from %s\n",
- argv0,so_filenm);
- ++nerrors;
- return;
- }
-
- cp = (CACHE *)malloc(sizeof(CACHE));
- cp->so_filenm = strdup(so_filenm);
- cp->length_data = (nls[1].n_value - nls[0].n_value);
- cp->incore_data = (char *)((long)dlsym(handle,"end") - cp->length_data);
- cp->original_data = (char *)malloc(cp->length_data);
- memcpy(cp->original_data, cp->incore_data, cp->length_data);
- cp->next = chd;
- chd = cp;
-
- if(vflag)
- fprintf(stderr,"%s dataseg=0x%08lx len(dataseg)=%ld\n",
- so_filenm, (long)cp->incore_data, cp->length_data);
-found:
-
- np->length_data[0] = cp->length_data;
- np->incore_data[0] = cp->incore_data;
- np->original_data[0] = cp->original_data;
-
- np->private_data[0] = (char *)malloc(cp->length_data);
- memcpy(np->private_data[0], cp->original_data, cp->length_data);
-}
diff --git a/net/cnet/files/patch-ab b/net/cnet/files/patch-ab
deleted file mode 100644
index 7a3d525a4043..000000000000
--- a/net/cnet/files/patch-ab
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/cnetheader.h.orig Thu Jul 24 09:15:13 1997
-+++ src/cnetheader.h Sun Aug 16 23:27:41 1998
-@@ -22,6 +22,10 @@
- #define NDATASEGS 1
- #define LENDATA_EVER_0 FALSE
-
-+#elif defined(USE_FREEBSD)
-+#define NDATASEGS 1
-+#define LENDATA_EVER_0 FALSE
-+
- #elif defined(USE_SOLARIS2)
- #define NDATASEGS 1
- #define LENDATA_EVER_0 FALSE
diff --git a/net/cnet/files/patch-ad b/net/cnet/files/patch-ad
deleted file mode 100644
index 44e00b2b000f..000000000000
--- a/net/cnet/files/patch-ad
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/compile.c.orig Sat May 13 03:41:53 2000
-+++ src/compile.c Sat Jul 22 01:44:09 2000
-@@ -25,6 +25,10 @@
- #elif defined(USE_IRIX5)
- #include "compile/irix5.c"
-
-+#elif defined(USE_FREEBSD)
-+#include <dlfcn.h>
-+#include "compile/freebsd.c"
-+
- #elif defined(USE_WIN32)
- #include <process.h>
- #include "compile/win32.c"
diff --git a/net/cnet/files/patch-ae b/net/cnet/files/patch-ae
deleted file mode 100644
index 2ced039b8e5d..000000000000
--- a/net/cnet/files/patch-ae
+++ /dev/null
@@ -1,35 +0,0 @@
---- src/config.h.orig Thu Jun 22 16:39:34 2000
-+++ src/config.h Sat Jul 22 01:41:04 2000
-@@ -19,6 +19,9 @@
- #elif defined(sgi) || defined(__sgi) || defined(__sgi__)
- #define USE_IRIX5
-
-+#elif defined(__FreeBSD__)
-+#define USE_FREEBSD
-+
- #elif defined(_WIN32)
- /* Don't get too excited here . The Windows implementation is still being
- developed and will first appear in the non-alpha version of 1.6.
-@@ -78,6 +81,13 @@
- #define CNETGCC "/usr/local/bin/gcc"
- #define CNETLD "/bin/ld"
-
-+#elif defined(USE_FREEBSD)
-+#define OS_DEFINE "-DFREEBSD"
-+#define CNETCPP "/usr/libexec/cpp"
-+#define CNETCC "%%CC%%"
-+#define CNETGCC "%%CC%%"
-+#define CNETLD "/usr/bin/ld"
-+
- #elif defined(USE_WIN32)
- #define OS_DEFINE "/DWIN32"
- #endif
-@@ -102,7 +112,7 @@
- CNETPATH must be defined.
- */
-
--#define CNETPATH ".:/cslinux/cnetlib:/home/chris/cnetlib"
-+#define CNETPATH ".:%%PREFIX%%/share/cnet:%%PREFIX%%/include"
-
-
- /* A small number of common errors are detected by cnet at run-time.
diff --git a/net/cnet/files/patch-af b/net/cnet/files/patch-af
deleted file mode 100644
index b2cd7bedfc12..000000000000
--- a/net/cnet/files/patch-af
+++ /dev/null
@@ -1,20 +0,0 @@
---- src/Makefile.orig Mon Feb 7 02:49:35 2000
-+++ src/Makefile Sat Jul 22 01:42:34 2000
-@@ -14,6 +14,8 @@
- make -f Makefile.osf1 $(NAME) ; fi
- @if uname -s -r | grep "IRIX" ; then \
- make -f Makefile.irix5 $(NAME) ; fi
-+ @if uname -s -r | grep "FreeBSD" ; then \
-+ $(MAKE) -f Makefile.freebsd $(NAME) ; fi
- cp cnet ..
-
- install:
-@@ -27,6 +29,8 @@
- make -f Makefile.osf1 install ; fi
- @if uname -s -r | grep "IRIX" ; then \
- make -f Makefile.irix5 install ; fi
-+ @if uname -s -r | grep "FreeBSD" ; then \
-+ $(MAKE) -f Makefile.freebsd install ; fi
-
- # ---------------------------------------------------------------------
-