From 89247e2d784e4bf7a6bdcd07886af4586a9d0c1e Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 15 Nov 1994 13:42:20 +0000 Subject: [PATCH] Add malloc.h for better SYSV/Linux compatibility like most providers (like SUN f.e.) does. malloc.h have comment about its SYSVism --- include/Makefile | 4 ++-- include/malloc.h | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 include/malloc.h diff --git a/include/Makefile b/include/Makefile index a117cc7d385..a3002bc676a 100644 --- a/include/Makefile +++ b/include/Makefile @@ -1,5 +1,5 @@ # From: @(#)Makefile 8.2 (Berkeley) 1/4/94 -# $Id: Makefile,v 1.18 1994/10/31 00:42:20 ats Exp $ +# $Id: Makefile,v 1.19 1994/11/01 09:19:50 pst Exp $ # # Doing a make install builds /usr/include # @@ -12,7 +12,7 @@ SUBDIR= rpcsvc # XXX MISSING: mp.h FILES= a.out.h ar.h assert.h bitstring.h ctype.h db.h dirent.h disktab.h \ err.h f2c.h fnmatch.h fstab.h fts.h glob.h grp.h histedit.h kvm.h \ - limits.h link.h locale.h memory.h mpool.h ndbm.h \ + limits.h link.h locale.h malloc.h memory.h mpool.h ndbm.h \ netdb.h nlist.h paths.h pwd.h ranlib.h regex.h regexp.h \ resolv.h rune.h runetype.h setjmp.h sgtty.h signal.h \ stab.h stddef.h stdio.h stdlib.h string.h strings.h struct.h \ diff --git a/include/malloc.h b/include/malloc.h new file mode 100644 index 00000000000..d85c5d878ae --- /dev/null +++ b/include/malloc.h @@ -0,0 +1,16 @@ +/* This file is SYSV-ism (for compatibility only) */ +/* this declarations must match stdlib.h ones */ + +#if !defined(_MALLOC_H_) && !defined(_STDLIB_H_) +#define _MALLOC_H_ + +#include + +__BEGIN_DECLS +void *calloc __P((size_t, size_t)); +void free __P((void *)); +void *malloc __P((size_t)); +void *realloc __P((void *, size_t)); +__END_DECLS + +#endif /* _MALLOC_H_ */