diff options
author | jraynard <jraynard@FreeBSD.org> | 1997-11-13 07:46:32 +0800 |
---|---|---|
committer | jraynard <jraynard@FreeBSD.org> | 1997-11-13 07:46:32 +0800 |
commit | 9e04fae056c361b44ff2d56c910234018269fbd9 (patch) | |
tree | 6922873dfac4cb47e8caab9fc5667b0504d0579c /devel/ElectricFence | |
parent | 61499b0edb9f6cddfb84ad8d0da4d66919d1191a (diff) | |
download | freebsd-ports-gnome-9e04fae056c361b44ff2d56c910234018269fbd9.tar.gz freebsd-ports-gnome-9e04fae056c361b44ff2d56c910234018269fbd9.tar.zst freebsd-ports-gnome-9e04fae056c361b44ff2d56c910234018269fbd9.zip |
ElectricFence, the debugging malloc library
Diffstat (limited to 'devel/ElectricFence')
-rw-r--r-- | devel/ElectricFence/Makefile | 25 | ||||
-rw-r--r-- | devel/ElectricFence/distinfo | 1 | ||||
-rw-r--r-- | devel/ElectricFence/files/patch-aa | 24 | ||||
-rw-r--r-- | devel/ElectricFence/pkg-comment | 1 | ||||
-rw-r--r-- | devel/ElectricFence/pkg-descr | 15 | ||||
-rw-r--r-- | devel/ElectricFence/pkg-plist | 2 |
6 files changed, 68 insertions, 0 deletions
diff --git a/devel/ElectricFence/Makefile b/devel/ElectricFence/Makefile new file mode 100644 index 000000000000..8f6e4065ec4c --- /dev/null +++ b/devel/ElectricFence/Makefile @@ -0,0 +1,25 @@ +# New ports collection makefile for: sfio +# Version required: 2.0.5 +# Date created: 13 November 1997 +# Whom: jraynard +# +# $Id$ +# + +DISTNAME= ElectricFence-2.0.5 +CATEGORIES= devel +MASTER_SITES= MASTER_SITE_LOCAL + +MAINTAINER= jraynard@freebsd.org + +MAN3= libefence.3 + +#do-build: +# @cd ${WRKDIR}/src/lib/sfio && ${MAKE} all -f makefile +# @cd ${WRKDIR}/src/lib/sfdisc && ${MAKE} all + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libefence.a ${PREFIX}/lib + ${INSTALL_MAN} ${WRKSRC}/libefence.3 ${PREFIX}/man/man3 + +.include <bsd.port.mk> diff --git a/devel/ElectricFence/distinfo b/devel/ElectricFence/distinfo new file mode 100644 index 000000000000..a31ca703e050 --- /dev/null +++ b/devel/ElectricFence/distinfo @@ -0,0 +1 @@ +MD5 (ElectricFence-2.0.5.tar.gz) = d6a8459d2e9ef955eb4d3f76004617f8 diff --git a/devel/ElectricFence/files/patch-aa b/devel/ElectricFence/files/patch-aa new file mode 100644 index 000000000000..75516213e476 --- /dev/null +++ b/devel/ElectricFence/files/patch-aa @@ -0,0 +1,24 @@ +--- Makefile.orig Fri Jan 20 05:33:04 1995 ++++ Makefile Wed Nov 12 22:47:51 1997 +@@ -4,7 +4,7 @@ + INSTALL= install + MV= mv + CHMOD= chmod +-CFLAGS= -g ++CFLAGS+= -g -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS + LIB_INSTALL_DIR= /usr/lib + MAN_INSTALL_DIR= /usr/man/man3 + +--- page.c.orig Wed Nov 12 21:57:13 1997 ++++ page.c Wed Nov 12 23:19:57 1997 +@@ -30,8 +30,10 @@ + static caddr_t startAddr = (caddr_t) 0; + + #if ( !defined(sgi) && !defined(_AIX) ) ++#if ( !defined(BSD) || (BSD < 199103) ) + extern int sys_nerr; + extern char * sys_errlist[]; ++#endif + #endif + + static const char * diff --git a/devel/ElectricFence/pkg-comment b/devel/ElectricFence/pkg-comment new file mode 100644 index 000000000000..cab5c8f78797 --- /dev/null +++ b/devel/ElectricFence/pkg-comment @@ -0,0 +1 @@ +A debugging malloc() that uses the VM hardware to detect buffer overruns. diff --git a/devel/ElectricFence/pkg-descr b/devel/ElectricFence/pkg-descr new file mode 100644 index 000000000000..7b04b84fb738 --- /dev/null +++ b/devel/ElectricFence/pkg-descr @@ -0,0 +1,15 @@ +Electric Fence is a different kind of malloc() debugger. It uses the virtual +memory hardware of your system to detect when software overruns the boundaries +of a malloc() buffer. It will also detect any accesses of memory that has +been released by free(). Because it uses the VM hardware for detection, +Electric Fence stops your program on the first instruction that causes +a bounds violation. It's then trivial to use a debugger to display the +offending statement. + +It will probably port to any ANSI/POSIX system that provides mmap(), and +mprotect(), as long as mprotect() has the capability to turn off all access +to a memory page, and mmap() can use /dev/zero or the MAP_ANONYMOUS flag +to create virtual memory pages. + +Complete information on the use of Electric Fence is in the manual page +libefence.3 . diff --git a/devel/ElectricFence/pkg-plist b/devel/ElectricFence/pkg-plist new file mode 100644 index 000000000000..fd909db17f2b --- /dev/null +++ b/devel/ElectricFence/pkg-plist @@ -0,0 +1,2 @@ +lib/libefence.a +man/man3/libefence.3.gz |