summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-09-02 13:15:01 +0000
committerphk <phk@FreeBSD.org>1996-09-02 13:15:01 +0000
commita74ea45a26f38149f5e54d1f975524fbce7ab15b (patch)
tree15ffe6e9721901cd9f3b5c3c94b47b7134690ed3
parent59f8ce79a3d600161bcc0b3dd607ec17c06cc26f (diff)
downloadFreeBSD-src-a74ea45a26f38149f5e54d1f975524fbce7ab15b.zip
FreeBSD-src-a74ea45a26f38149f5e54d1f975524fbce7ab15b.tar.gz
Add cfree,
Move to usr/lib/compat
-rw-r--r--lib/libfakegnumalloc/Makefile3
-rw-r--r--lib/libfakegnumalloc/fakegnumalloc.c11
-rw-r--r--lib/libgnumalloc/Makefile3
-rw-r--r--lib/libgnumalloc/cfree.c11
4 files changed, 24 insertions, 4 deletions
diff --git a/lib/libfakegnumalloc/Makefile b/lib/libfakegnumalloc/Makefile
index 01fca56..98573e7 100644
--- a/lib/libfakegnumalloc/Makefile
+++ b/lib/libfakegnumalloc/Makefile
@@ -1,6 +1,7 @@
-# $Id: Makefile,v 1.2 1996/02/12 12:40:04 phk Exp $
+# $Id: Makefile,v 1.3 1996/08/30 01:08:03 peter Exp $
LIB= fakegnumalloc
+LIBDIR= /usr/lib/compat
SHLIB_MAJOR= 2
SHLIB_MINOR= 0
SRCS= fakegnumalloc.c
diff --git a/lib/libfakegnumalloc/fakegnumalloc.c b/lib/libfakegnumalloc/fakegnumalloc.c
index abaf931..4554903 100644
--- a/lib/libfakegnumalloc/fakegnumalloc.c
+++ b/lib/libfakegnumalloc/fakegnumalloc.c
@@ -1 +1,10 @@
-int fake_a_gnumalloc_lib() { return 1; }
+int
+fake_a_gnumalloc_lib()
+{
+return 1;
+}
+
+void cfree(void *foo)
+{
+free(foo);
+}
diff --git a/lib/libgnumalloc/Makefile b/lib/libgnumalloc/Makefile
index 01fca56..98573e7 100644
--- a/lib/libgnumalloc/Makefile
+++ b/lib/libgnumalloc/Makefile
@@ -1,6 +1,7 @@
-# $Id: Makefile,v 1.2 1996/02/12 12:40:04 phk Exp $
+# $Id: Makefile,v 1.3 1996/08/30 01:08:03 peter Exp $
LIB= fakegnumalloc
+LIBDIR= /usr/lib/compat
SHLIB_MAJOR= 2
SHLIB_MINOR= 0
SRCS= fakegnumalloc.c
diff --git a/lib/libgnumalloc/cfree.c b/lib/libgnumalloc/cfree.c
index abaf931..4554903 100644
--- a/lib/libgnumalloc/cfree.c
+++ b/lib/libgnumalloc/cfree.c
@@ -1 +1,10 @@
-int fake_a_gnumalloc_lib() { return 1; }
+int
+fake_a_gnumalloc_lib()
+{
+return 1;
+}
+
+void cfree(void *foo)
+{
+free(foo);
+}
OpenPOWER on IntegriCloud