summaryrefslogtreecommitdiff
path: root/src/heap.h
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-05-26 18:56:06 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-05-26 18:56:06 +0000
commit2e6ab58f37f142117921de04ebb07c71efef0a6e (patch)
tree3179a61626dbcab41e7ddd063a5131276b85eec9 /src/heap.h
parent63f481c61a47e21b171e33c35d415102b679f143 (diff)
downloadtinyproxy-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.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/heap.h b/src/heap.h
index fca28cb..1bfe47a 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -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