diff options
author | rsc <devnull@localhost> | 2004-05-23 00:58:23 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-05-23 00:58:23 +0000 |
commit | 7e0e6522e576bc35b55a7182c23fb752cc1ec636 (patch) | |
tree | 81a40607b75c0054a57be190baaa68939ac806b9 /include | |
parent | c9896e2edba3bf17061447f3491a866a74e2cbb9 (diff) | |
download | plan9port-7e0e6522e576bc35b55a7182c23fb752cc1ec636.tar.gz plan9port-7e0e6522e576bc35b55a7182c23fb752cc1ec636.tar.bz2 plan9port-7e0e6522e576bc35b55a7182c23fb752cc1ec636.zip |
lock malloc ourselves
Diffstat (limited to 'include')
-rw-r--r-- | include/libc.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/libc.h b/include/libc.h index 8654bd98..18ac25aa 100644 --- a/include/libc.h +++ b/include/libc.h @@ -113,12 +113,9 @@ extern void* malloc(ulong); */ extern void* p9malloc(ulong); extern void* mallocz(ulong, int); -/* -extern void free(void*); -extern ulong msize(void*); -extern void* calloc(ulong, ulong); -extern void* realloc(void*, ulong); - */ +extern void p9free(void*); +extern void* p9calloc(ulong, ulong); +extern void* p9realloc(void*, ulong); extern void setmalloctag(void*, ulong); extern void setrealloctag(void*, ulong); extern ulong getmalloctag(void*); @@ -128,6 +125,9 @@ extern void* malloctopoolblock(void*); */ #ifndef NOPLAN9DEFINES #define malloc p9malloc +#define realloc p9realloc +#define calloc p9calloc +#define free p9free #endif /* |