diff options
author | ache <ache@FreeBSD.org> | 1994-11-15 13:42:20 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-11-15 13:42:20 +0000 |
commit | aa56ad7f1ea75515ca455ad023fade8d9cb1f13f (patch) | |
tree | f93a3bd243def70c82c8a72e1eb8ed9fbcc501b1 /include/malloc.h | |
parent | cd1ac9794105cda8f2c236ef72cccceef72970e5 (diff) | |
download | FreeBSD-src-aa56ad7f1ea75515ca455ad023fade8d9cb1f13f.zip FreeBSD-src-aa56ad7f1ea75515ca455ad023fade8d9cb1f13f.tar.gz |
Add malloc.h for better SYSV/Linux compatibility like most
providers (like SUN f.e.) does.
malloc.h have comment about its SYSVism
Diffstat (limited to 'include/malloc.h')
-rw-r--r-- | include/malloc.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/malloc.h b/include/malloc.h new file mode 100644 index 0000000..d85c5d8 --- /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 <sys/cdefs.h> + +__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_ */ |