ports/85521: update sysutils/memdump from 1.0 to 1.01

Jonathan afarsec at 012.net.il
Wed Aug 31 14:00:40 UTC 2005


>Number:         85521
>Category:       ports
>Synopsis:       update sysutils/memdump from 1.0 to 1.01
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 31 14:00:38 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan
>Release:        FreeBSD 6.0-BETA3 i386
>Organization:
a newt??
>Environment:
System: FreeBSD stars.at.elbows 6.0-BETA3 FreeBSD 6.0-BETA3 #3: Fri Aug 26 09:52:07 IDT 2005 root at server.afarsec.com:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
Our patches were incorporated to the vendor tarball.
Please note this compile cleanly without the comment-patches that we used once.
I do remember there were many warnings about those, so please verify that we can really kill them.
>How-To-Repeat:
N/A
>Fix:

	

--- memdump-1.01.diff begins here ---
diff -urN memdump.orig/Makefile memdump/Makefile
--- memdump.orig/Makefile	Sun Feb 20 19:03:31 2005
+++ memdump/Makefile	Wed Aug 31 16:39:50 2005
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	memdump
-PORTVERSION=	1.0
+PORTVERSION=	1.01
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.porcupine.org/forensics/
 
diff -urN memdump.orig/distinfo memdump/distinfo
--- memdump.orig/distinfo	Tue Jul 20 10:24:05 2004
+++ memdump/distinfo	Wed Aug 31 16:40:01 2005
@@ -1,2 +1,2 @@
-MD5 (memdump-1.0.tar.gz) = 90c331de23ea6146a978a6e5ed6d9c34
-SIZE (memdump-1.0.tar.gz) = 12669
+MD5 (memdump-1.01.tar.gz) = 41076a611098af79f3b893f515ae22da
+SIZE (memdump-1.01.tar.gz) = 12713
diff -urN memdump.orig/files/patch-Makefile memdump/files/patch-Makefile
--- memdump.orig/files/patch-Makefile	Tue Jul 20 10:24:05 2004
+++ memdump/files/patch-Makefile	Thu Jan  1 02:00:00 1970
@@ -1,11 +0,0 @@
---- Makefile.orig	Wed Jun 16 23:37:28 2004
-+++ Makefile	Wed Jun 16 23:37:47 2004
-@@ -3,7 +3,7 @@
- OPT	= -O
- DEBUG	= -g
- PROGS	= memdump
--CFLAGS	= $(OPT) $(DEBUG) -I. $(XFLAGS) $(DEFS)
-+CFLAGS += $(OPT) $(DEBUG) -I. $(XFLAGS) $(DEFS)
- OBJS	= memdump.o convert_size.o error.o mymalloc.o
- PROGS	= memdump
- MAN	= memdump.1
diff -urN memdump.orig/files/patch-convert_size.c memdump/files/patch-convert_size.c
--- memdump.orig/files/patch-convert_size.c	Sun Feb 20 19:03:31 2005
+++ memdump/files/patch-convert_size.c	Thu Jan  1 02:00:00 1970
@@ -1,59 +0,0 @@
---- convert_size.c.orig	Sun Feb 20 15:53:46 2005
-+++ convert_size.c	Sun Feb 20 15:54:02 2005
-@@ -1,30 +1,30 @@
- /*++
--/* NAME
--/*	convert_size 3
--/* SUMMARY
--/*	string to size conversion
--/* SYNOPSIS
--/*	#include <convert_size.h>
--/*
--/*	size_t	convert_size(str)
--/*	const char *str;
--/* DESCRIPTION
--/*	convert_size() converts its argument to internal form. if the
--/*	argument ends in 'k', 'm' or 'g' the result is multiplied by
--/*	1024 (1K), 1048576 (1M), 1073741824 (1G), respectively.
--/*	The suffix is case insensitive.
--/* SEE ALSO
--/*	error(3) error reporting module.
--/* DIAGNOSTICS
--/*	The result is negative in case of error.
--/* LICENSE
--/*	This software is distributed under the IBM Public License.
--/* AUTHOR(S)
--/*	Wietse Venema
--/*	IBM T.J. Watson Research
--/*	P.O. Box 704
--/*	Yorktown Heights, NY 10598, USA
--/*--*/
-+ * NAME
-+ *	convert_size 3
-+ * SUMMARY
-+ *	string to size conversion
-+ * SYNOPSIS
-+ *	#include <convert_size.h>
-+ *
-+ *	size_t	convert_size(str)
-+ *	const char *str;
-+ * DESCRIPTION
-+ *	convert_size() converts its argument to internal form. if the
-+ *	argument ends in 'k', 'm' or 'g' the result is multiplied by
-+ *	1024 (1K), 1048576 (1M), 1073741824 (1G), respectively.
-+ *	The suffix is case insensitive.
-+ * SEE ALSO
-+ *	error(3) error reporting module.
-+ * DIAGNOSTICS
-+ *	The result is negative in case of error.
-+ * LICENSE
-+ *	This software is distributed under the IBM Public License.
-+ * AUTHOR(S)
-+ *	Wietse Venema
-+ *	IBM T.J. Watson Research
-+ *	P.O. Box 704
-+ *	Yorktown Heights, NY 10598, USA
-+ *--*/
- 
- /* System library. */
- 
diff -urN memdump.orig/files/patch-convert_size.h memdump/files/patch-convert_size.h
--- memdump.orig/files/patch-convert_size.h	Sun Feb 20 19:03:31 2005
+++ memdump/files/patch-convert_size.h	Thu Jan  1 02:00:00 1970
@@ -1,46 +0,0 @@
---- convert_size.h.orig	Sun Feb 20 15:54:28 2005
-+++ convert_size.h	Sun Feb 20 15:54:46 2005
-@@ -1,25 +1,25 @@
- /*++
--/* NAME
--/*	convert_size 3h
--/* SUMMARY
--/*	string to size conversion
--/* SYNOPSIS
--/*	#include <convert_size.h>
--/* DESCRIPTION
--/* .nf
-+ * NAME
-+ *	convert_size 3h
-+ * SUMMARY
-+ *	string to size conversion
-+ * SYNOPSIS
-+ *	#include <convert_size.h>
-+ * DESCRIPTION
-+ * .nf
- 
-- /*
-+  *
-   * External interface.
-   */
- extern size_t convert_size(const char *);
- 
- /* LICENSE
--/* .ad
--/* .fi
--/*	The IBM Public License must be distributed with this software.
--/* AUTHOR(S)
--/*	Wietse Venema
--/*	IBM T.J. Watson Research
--/*	P.O. Box 704
--/*	Yorktown Heights, NY 10598, USA
--/*--*/
-+ * .ad
-+ * .fi
-+ *	The IBM Public License must be distributed with this software.
-+ * AUTHOR(S)
-+ *	Wietse Venema
-+ *	IBM T.J. Watson Research
-+ *	P.O. Box 704
-+ *	Yorktown Heights, NY 10598, USA
-+ *--*/
diff -urN memdump.orig/files/patch-error.c memdump/files/patch-error.c
--- memdump.orig/files/patch-error.c	Sun Feb 20 19:03:31 2005
+++ memdump/files/patch-error.c	Thu Jan  1 02:00:00 1970
@@ -1,117 +0,0 @@
---- error.c.orig	Sun Feb 20 15:52:40 2005
-+++ error.c	Sun Feb 20 15:53:14 2005
-@@ -1,59 +1,59 @@
- /*++
--/* NAME
--/*	error 3
--/* SUMMARY
--/*	diagnostics handlers
--/* SYNOPSIS
--/*	#include <error.h>
--/*
--/*	void	error(format, ...)
--/*	char	*format;
--/*
--/*	void	remark(format, ...)
--/*	char	*format;
--/*
--/*	void	panic(format, ...)
--/*	char	*format;
--/*
--/*	char	*progname;
--/*	int	verbose;
--/* DESCRIPTION
--/*	This module reports diagnostics. Each routine produces a one-line
--/*	record with the program name and a caller-provided informative
--/*	message. In the format string, %m is replaced by the text that
--/*	corresponds to the present \fBerrno\fR value.
--/*
--/*	error() writes a message to the standard error stream and
--/*	terminates the process with a non-zero exit status.
--/*
--/*	remark() writes a message to the standard error stream.
--/*
--/*	panic() writes a message to the standard error stream and
--/*	forces a core dump.
--/*
--/*	progname is a global variable that the application should
--/*	assign the program name. The initial value is a pointer to
--/*	the string \fB"unknown"\fR.
--/*
--/*	verbose is a global variable (initially, zero), that exists
--/*	solely for the convenience of the application. Typical usage
--/*	is like:
--/*
--/* .ti +5
--/*	if (verbose) remark(...);
--/* SEE ALSO
--/*	errno(2) error numbers
--/* HISTORY
--/*	error() and remark() appear in "Software Tools" by B.W. Kernighan
--/*	and P.J. Plaugher.
--/* LICENSE
--/*	This software is distributed under the IBM Public License.
--/* AUTHOR(S)
--/*	Wietse Venema
--/*	IBM T.J. Watson Research
--/*	P.O. Box 704
--/*	Yorktown Heights, NY 10598, USA
--/*--*/
-+ * NAME
-+ *	error 3
-+ * SUMMARY
-+ *	diagnostics handlers
-+ * SYNOPSIS
-+ *	#include <error.h>
-+ *
-+ *	void	error(format, ...)
-+ *	char	*format;
-+ *
-+ *	void	remark(format, ...)
-+ *	char	*format;
-+ *
-+ *	void	panic(format, ...)
-+ *	char	*format;
-+ *
-+ *	char	*progname;
-+ *	int	verbose;
-+ * DESCRIPTION
-+ *	This module reports diagnostics. Each routine produces a one-line
-+ *	record with the program name and a caller-provided informative
-+ *	message. In the format string, %m is replaced by the text that
-+ *	corresponds to the present \fBerrno\fR value.
-+ *
-+ *	error() writes a message to the standard error stream and
-+ *	terminates the process with a non-zero exit status.
-+ *
-+ *	remark() writes a message to the standard error stream.
-+ *
-+ *	panic() writes a message to the standard error stream and
-+ *	forces a core dump.
-+ *
-+ *	progname is a global variable that the application should
-+ *	assign the program name. The initial value is a pointer to
-+ *	the string \fB"unknown"\fR.
-+ *
-+ *	verbose is a global variable (initially, zero), that exists
-+ *	solely for the convenience of the application. Typical usage
-+ *	is like:
-+ *
-+ * .ti +5
-+ *	if (verbose) remark(...);
-+ * SEE ALSO
-+ *	errno(2) error numbers
-+ * HISTORY
-+ *	error() and remark() appear in "Software Tools" by B.W. Kernighan
-+ *	and P.J. Plaugher.
-+ * LICENSE
-+ *	This software is distributed under the IBM Public License.
-+ * AUTHOR(S)
-+ *	Wietse Venema
-+ *	IBM T.J. Watson Research
-+ *	P.O. Box 704
-+ *	Yorktown Heights, NY 10598, USA
-+ *--*/
- 
- /* System library. */
- 
diff -urN memdump.orig/files/patch-error.h memdump/files/patch-error.h
--- memdump.orig/files/patch-error.h	Sun Feb 20 19:03:31 2005
+++ memdump/files/patch-error.h	Thu Jan  1 02:00:00 1970
@@ -1,48 +0,0 @@
---- error.h.orig	Sun Feb 20 15:50:37 2005
-+++ error.h	Sun Feb 20 15:50:53 2005
-@@ -1,14 +1,14 @@
- /*++
--/* NAME
--/*	error 3h
--/* SUMMARY
--/*	diagnostics handlers
--/* SYNOPSIS
--/*	#include <error.h>
--/* DESCRIPTION
--/* .nf
-+ * NAME
-+ *	error 3h
-+ * SUMMARY
-+ *	diagnostics handlers
-+ * SYNOPSIS
-+ *	#include <error.h>
-+ * DESCRIPTION
-+ * .nf
- 
-- /*
-+  *
-   * External interface.
-   */
- #ifndef PRINTFLIKE
-@@ -31,12 +31,12 @@
- #endif
- 
- /* LICENSE
--/* .ad
--/* .fi
--/*	The IBM Public License must be distributed with this software.
--/* AUTHOR(S)
--/*	Wietse Venema
--/*	IBM T.J. Watson Research
--/*	P.O. Box 704
--/*	Yorktown Heights, NY 10598, USA
--/*--*/
-+ * .ad
-+ * .fi
-+ *	The IBM Public License must be distributed with this software.
-+ * AUTHOR(S)
-+ *	Wietse Venema
-+ *	IBM T.J. Watson Research
-+ *	P.O. Box 704
-+ *	Yorktown Heights, NY 10598, USA
-+ *--*/
diff -urN memdump.orig/files/patch-makedefs memdump/files/patch-makedefs
--- memdump.orig/files/patch-makedefs	Tue Aug 30 21:24:18 2005
+++ memdump/files/patch-makedefs	Thu Jan  1 02:00:00 1970
@@ -1,15 +0,0 @@
---- makedefs.orig	Sun Feb 20 15:41:41 2005
-+++ makedefs	Sun Feb 20 15:42:41 2005
-@@ -8,6 +8,12 @@
-                 ;;
-   FreeBSD.4*)   DEFS="-DFREEBSD4"
-                 ;;
-+  FreeBSD.5*)   DEFS="-DFREEBSD5"
-+                ;;
-+  FreeBSD.6*)   DEFS="-DFREEBSD6"
-+                ;;
-+  FreeBSD.7*)   DEFS="-DFREEBSD7"
-+                ;;
-   OpenBSD.2*)   DEFS="-DOPENBSD2"
-                 ;;
-   OpenBSD.3*)   DEFS="-DOPENBSD3"
diff -urN memdump.orig/files/patch-memdump.c memdump/files/patch-memdump.c
--- memdump.orig/files/patch-memdump.c	Tue Aug 30 21:23:21 2005
+++ memdump/files/patch-memdump.c	Thu Jan  1 02:00:00 1970
@@ -1,214 +0,0 @@
---- memdump.c.orig	Thu Jan  1 19:30:09 2004
-+++ memdump.c	Sun Feb 20 15:58:34 2005
-@@ -1,92 +1,92 @@
- /*++
--/* NAME
--/*	memdump 1
--/* SUMMARY
--/*	memory dumper
--/* SYNOPSIS
--/* .ad
--/* .fi
--/*	\fBmemdump\fR [\fB-kv\fR] [\fB-b \fIbuffer_size\fR]
--/*	[\fB-d \fIdump_size\fR] [\fB-m \fImap_file\fR] [\fB-p \fIpage_size\fR]
--/* DESCRIPTION
--/*	This program dumps system memory to the standard output stream, 
--/*	skipping over holes in memory maps.
--/*	By default, the program dumps the contents of physical memory
--/*	(\fB/dev/mem\fR).
--/*
--/*	Output is in the form of a raw dump; if necessary, use the \fB-m\fR
--/*	option to capture memory layout information.
--/*
--/*	Output should be sent off-host over the network, to avoid changing
--/*	all the memory in the file system cache. Use netcat, stunnel, or
--/*	openssl, depending on your requirements.
--/*
--/*	The size arguments below understand the \fBk\fR (kilo) \fBm\fR (mega)
--/*	and \fBg\fR (giga) suffixes. Suffixes are case insensitive.
--/*
--/*	Options
--/* .IP \fB-k\fR
--/*	Attempt to dump kernel memory (\fB/dev/kmem\fR) rather than physical
--/*	memory.
--/* .sp
--/*	Warning: this can lock up the system to the point that you have
--/*	to use the power switch (for example, Solaris 8 on 64-bit SPARC).
--/* .sp
--/*	Warning: this produces bogus results on Linux 2.2 kernels.
--/* .sp
--/*	Warning: this is very slow on 64-bit machines because the entire
--/*	memory address range has to be searched.
--/* .sp
--/*	Warning: kernel virtual memory mappings change frequently. Depending
--/*	on the operating system, mappings smaller than \fIpage_size\fR or
--/*	\fIbuffer_size\fR may be missed or may be reported incorrectly.
--/* .IP "\fB-b \fIbuffer_size\fR (default: 0)"
--/*	Number of bytes per memory read operation. By default, the program
--/*	uses the \fIpage_size\fR value.
--/* .sp
--/*	Warning: a too large read buffer size causes memory to be missed on
--/*	FreeBSD or Solaris.
--/* .IP "\fB-d \fIdump-size\fR (default: 0)"
--/*	Number of memory bytes to dump. By default, the program runs
--/*	until the memory device reports an end-of-file (Linux), or until
--/*	it has dumped from \fB/dev/mem\fR as much memory as reported present
--/*	by the kernel (FreeBSD, Solaris), or until pointer wrap-around happens.
--/* .sp
--/*	Warning: a too large value causes the program to spend a lot of time
--/*	skipping over non-existent memory on Solaris systems.
--/* .sp
--/*	Warning: a too large value causes the program to copy non-existent
--/*	data on FreeBSD systems.
--/* .IP "\fB-m\fR \fImap_file\fR"
--/*	Write the memory map to \fImap_file\fR, one entry per line.
--/*	Specify \fB-m-\fR to write to the standard error stream.
--/*	Each map entry consists of a region start address and the first
--/*	address beyond that region. Addresses are separated by space,
--/*	and are printed as hexadecimal numbers (0xhhhh).
--/* .IP "\fB-p \fIpage_size\fR (default: 0)"
--/*	Use \fIpage_size\fR as the memory page size. By default the program
--/*	uses the system page size.
--/* .sp
--/*	Warning: a too large page size causes memory to be missed
--/*	while skipping over holes in memory.
--/* .IP \fB-v\fR
--/*	Enable verbose logging for debugging purposes. Multiple \fB-v\fR
--/*	options make the program more verbose.
--/* BUGS
--/*	On many hardware platforms the firmware (boot PROM, BIOS, etc.)
--/*	takes away some memory. This memory is not accessible through
--/*	\fB/dev/mem\fR.
--/*
--/*	This program should produce output in a format that supports
--/*	structure information such as ELF.
--/* LICENSE
--/*	This software is distributed under the IBM Public License.
--/* AUTHOR
--/*	Wietse Venema
--/*	IBM T.J. Watson Research
--/*	P.O. Box 704
--/*	USA
--/*--*/
-+ * NAME
-+ *	memdump 1
-+ * SUMMARY
-+ *	memory dumper
-+ * SYNOPSIS
-+ * .ad
-+ * .fi
-+ *	\fBmemdump\fR [\fB-kv\fR] [\fB-b \fIbuffer_size\fR]
-+ *	[\fB-d \fIdump_size\fR] [\fB-m \fImap_file\fR] [\fB-p \fIpage_size\fR]
-+ * DESCRIPTION
-+ *	This program dumps system memory to the standard output stream, 
-+ *	skipping over holes in memory maps.
-+ *	By default, the program dumps the contents of physical memory
-+ *	(\fB/dev/mem\fR).
-+ *
-+ *	Output is in the form of a raw dump; if necessary, use the \fB-m\fR
-+ *	option to capture memory layout information.
-+ *
-+ *	Output should be sent off-host over the network, to avoid changing
-+ *	all the memory in the file system cache. Use netcat, stunnel, or
-+ *	openssl, depending on your requirements.
-+ *
-+ *	The size arguments below understand the \fBk\fR (kilo) \fBm\fR (mega)
-+ *	and \fBg\fR (giga) suffixes. Suffixes are case insensitive.
-+ *
-+ *	Options
-+ * .IP \fB-k\fR
-+ *	Attempt to dump kernel memory (\fB/dev/kmem\fR) rather than physical
-+ *	memory.
-+ * .sp
-+ *	Warning: this can lock up the system to the point that you have
-+ *	to use the power switch (for example, Solaris 8 on 64-bit SPARC).
-+ * .sp
-+ *	Warning: this produces bogus results on Linux 2.2 kernels.
-+ * .sp
-+ *	Warning: this is very slow on 64-bit machines because the entire
-+ *	memory address range has to be searched.
-+ * .sp
-+ *	Warning: kernel virtual memory mappings change frequently. Depending
-+ *	on the operating system, mappings smaller than \fIpage_size\fR or
-+ *	\fIbuffer_size\fR may be missed or may be reported incorrectly.
-+ * .IP "\fB-b \fIbuffer_size\fR (default: 0)"
-+ *	Number of bytes per memory read operation. By default, the program
-+ *	uses the \fIpage_size\fR value.
-+ * .sp
-+ *	Warning: a too large read buffer size causes memory to be missed on
-+ *	FreeBSD or Solaris.
-+ * .IP "\fB-d \fIdump-size\fR (default: 0)"
-+ *	Number of memory bytes to dump. By default, the program runs
-+ *	until the memory device reports an end-of-file (Linux), or until
-+ *	it has dumped from \fB/dev/mem\fR as much memory as reported present
-+ *	by the kernel (FreeBSD, Solaris), or until pointer wrap-around happens.
-+ * .sp
-+ *	Warning: a too large value causes the program to spend a lot of time
-+ *	skipping over non-existent memory on Solaris systems.
-+ * .sp
-+ *	Warning: a too large value causes the program to copy non-existent
-+ *	data on FreeBSD systems.
-+ * .IP "\fB-m\fR \fImap_file\fR"
-+ *	Write the memory map to \fImap_file\fR, one entry per line.
-+ *	Specify \fB-m-\fR to write to the standard error stream.
-+ *	Each map entry consists of a region start address and the first
-+ *	address beyond that region. Addresses are separated by space,
-+ *	and are printed as hexadecimal numbers (0xhhhh).
-+ * .IP "\fB-p \fIpage_size\fR (default: 0)"
-+ *	Use \fIpage_size\fR as the memory page size. By default the program
-+ *	uses the system page size.
-+ * .sp
-+ *	Warning: a too large page size causes memory to be missed
-+ *	while skipping over holes in memory.
-+ * .IP \fB-v\fR
-+ *	Enable verbose logging for debugging purposes. Multiple \fB-v\fR
-+ *	options make the program more verbose.
-+ * BUGS
-+ *	On many hardware platforms the firmware (boot PROM, BIOS, etc.)
-+ *	takes away some memory. This memory is not accessible through
-+ *	\fB/dev/mem\fR.
-+ *
-+ *	This program should produce output in a format that supports
-+ *	structure information such as ELF.
-+ * LICENSE
-+ *	This software is distributed under the IBM Public License.
-+ * AUTHOR
-+ *	Wietse Venema
-+ *	IBM T.J. Watson Research
-+ *	P.O. Box 704
-+ *	USA
-+ *--*/
- 
- /* System libraries. */
- 
-@@ -108,7 +108,7 @@
- #endif
- 
- #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
--	|| defined(FREEBSD5) \
-+	|| defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \
- 	|| defined(OPENBSD2) || defined(OPENBSD3) \
- 	|| defined(BSDI2) || defined(BSDI3) || defined(BSDI4)
- #include <sys/param.h>
-@@ -184,7 +184,7 @@
- #endif
- 
- #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
--	|| defined(FREEBSD5) \
-+	|| defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \
- 	|| defined(OPENBSD2) || defined(OPENBSD3)
-     int     name[] = {CTL_HW, HW_PHYSMEM};
-     size_t  len;
-@@ -220,9 +220,9 @@
- static void dump_memory(int fd, FILE * map, char *buffer, size_t buffer_size,
- 		              size_t dump_size, size_t page_size, int flags)
- {
--    OFFT_TYPE start;
--    OFFT_TYPE where;
--    OFFT_TYPE count;
-+    OFFT_TYPE start = 0;
-+    OFFT_TYPE where = 0;
-+    OFFT_TYPE count = 0;
-     size_t  todo;
-     ssize_t read_count;
-     int     in_region = 0;
diff -urN memdump.orig/files/patch-mymalloc.c memdump/files/patch-mymalloc.c
--- memdump.orig/files/patch-mymalloc.c	Sun Feb 20 19:03:31 2005
+++ memdump/files/patch-mymalloc.c	Thu Jan  1 02:00:00 1970
@@ -1,91 +0,0 @@
---- mymalloc.c.orig	Sun Feb 20 15:51:11 2005
-+++ mymalloc.c	Sun Feb 20 15:52:01 2005
-@@ -1,46 +1,46 @@
- /*++
--/* NAME
--/*	mymalloc 3
--/* SUMMARY
--/*	memory management wrappers
--/* SYNOPSIS
--/*	#include <mymalloc.h>
--/*
--/*	char	*mymalloc(len)
--/*	int	len;
--/*
--/*	char	*myrealloc(ptr, len)
--/*	char	*ptr;
--/*	int	len;
--/*
--/*	char	*mystrdup(str)
--/*	const char *str;
--/* DESCRIPTION
--/*	This module performs low-level memory management with error
--/*	handling. A call of these functions either succeeds or it does
--/*	not return at all.
--/*
--/*	mymalloc() allocates the requested amount of memory. The memory
--/*	is not set to zero.
--/*
--/*	myrealloc() resizes memory obtained from mymalloc() or myrealloc()
--/*	to the requested size. The result pointer value may differ from
--/*	that given via the \fBptr\fR argument.
--/*
--/*	mystrdup() returns a dynamic-memory copy of its null-terminated
--/*	argument. This routine uses mymalloc().
--/* SEE ALSO
--/*	error(3) error reporting module.
--/* DIAGNOSTICS
--/*	Fatal errors: the requested amount of memory is not available.
--/* LICENSE
--/*	This software is distributed under the IBM Public License.
--/* AUTHOR(S)
--/*	Wietse Venema
--/*	IBM T.J. Watson Research
--/*	P.O. Box 704
--/*	Yorktown Heights, NY 10598, USA
--/*--*/
-+ * NAME
-+ *	mymalloc 3
-+ * SUMMARY
-+ *	memory management wrappers
-+ * SYNOPSIS
-+ *	#include <mymalloc.h>
-+ *
-+ *	char	*mymalloc(len)
-+ *	int	len;
-+ *
-+ *	char	*myrealloc(ptr, len)
-+ *	char	*ptr;
-+ *	int	len;
-+ *
-+ *	char	*mystrdup(str)
-+ *	const char *str;
-+ * DESCRIPTION
-+ *	This module performs low-level memory management with error
-+ *	handling. A call of these functions either succeeds or it does
-+ *	not return at all.
-+ *
-+ *	mymalloc() allocates the requested amount of memory. The memory
-+ *	is not set to zero.
-+ *
-+ *	myrealloc() resizes memory obtained from mymalloc() or myrealloc()
-+ *	to the requested size. The result pointer value may differ from
-+ *	that given via the \fBptr\fR argument.
-+ *
-+ *	mystrdup() returns a dynamic-memory copy of its null-terminated
-+ *	argument. This routine uses mymalloc().
-+ * SEE ALSO
-+ *	error(3) error reporting module.
-+ * DIAGNOSTICS
-+ *	Fatal errors: the requested amount of memory is not available.
-+ * LICENSE
-+ *	This software is distributed under the IBM Public License.
-+ * AUTHOR(S)
-+ *	Wietse Venema
-+ *	IBM T.J. Watson Research
-+ *	P.O. Box 704
-+ *	Yorktown Heights, NY 10598, USA
-+ *--*/
- 
- /* System library. */
- 
diff -urN memdump.orig/files/patch-mymalloc.h memdump/files/patch-mymalloc.h
--- memdump.orig/files/patch-mymalloc.h	Sun Feb 20 19:03:31 2005
+++ memdump/files/patch-mymalloc.h	Thu Jan  1 02:00:00 1970
@@ -1,48 +0,0 @@
---- mymalloc.h.orig	Sun Feb 20 15:48:02 2005
-+++ mymalloc.h	Sun Feb 20 15:49:36 2005
-@@ -1,14 +1,14 @@
- /*++
--/* NAME
--/*	mymalloc 3h
--/* SUMMARY
--/*	memory management wrappers
--/* SYNOPSIS
--/*	#include "mymalloc.h"
--/* DESCRIPTION
--/* .nf
-+ * NAME
-+ *	mymalloc 3h
-+ * SUMMARY
-+ *	memory management wrappers
-+ * SYNOPSIS
-+ *	#include "mymalloc.h"
-+ * DESCRIPTION
-+ * .nf
- 
-- /*
-+  *
-   * External interface.
-   */
- extern char *mymalloc(int);
-@@ -16,12 +16,12 @@
- extern char *mystrdup(const char *);
- 
- /* LICENSE
--/* .ad
--/* .fi
--/*	The IBM Public License must be distributed with this software.
--/* AUTHOR(S)
--/*	Wietse Venema
--/*	IBM T.J. Watson Research
--/*	P.O. Box 704
--/*	Yorktown Heights, NY 10598, USA
--/*--*/
-+ * .ad
-+ * .fi
-+ *	The IBM Public License must be distributed with this software.
-+ * AUTHOR(S)
-+ *	Wietse Venema
-+ *	IBM T.J. Watson Research
-+ *	P.O. Box 704
-+ *	Yorktown Heights, NY 10598, USA
-+ *--*/
--- memdump-1.01.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list