diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-05-26 18:56:06 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-05-26 18:56:06 +0000 |
commit | 2e6ab58f37f142117921de04ebb07c71efef0a6e (patch) | |
tree | 3179a61626dbcab41e7ddd063a5131276b85eec9 /src/heap.h | |
parent | 63f481c61a47e21b171e33c35d415102b679f143 (diff) | |
download | tinyproxy-2e6ab58f37f142117921de04ebb07c71efef0a6e.tar.gz tinyproxy-2e6ab58f37f142117921de04ebb07c71efef0a6e.zip |
Added the malloc_shared_memory() and calloc_shared_memory() function to
allow the use of shared memory between all the children.
Diffstat (limited to '')
-rw-r--r-- | src/heap.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: heap.h,v 1.1 2002-05-23 04:41:10 rjkaes Exp $ +/* $Id: heap.h,v 1.2 2002-05-26 18:56:06 rjkaes Exp $ * * See 'heap.c' for a detailed description. * @@ -46,4 +46,10 @@ extern char *debugging_strdup(const char* s, const char* file, # define safestrdup(x) strdup(x) #endif +/* + * Allocate memory from the "shared" region of memory. + */ +extern void* malloc_shared_memory(size_t size); +extern void* calloc_shared_memory(size_t nmemb, size_t size); + #endif |