summaryrefslogtreecommitdiff
path: root/ace/Malloc.i
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-05 00:44:13 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-05 00:44:13 +0000
commitf18e114a04aa1dc6412b16aae0d59141d9c863db (patch)
tree2e180cc032ffecf1ad7b0f7a7746ebd409f5932a /ace/Malloc.i
parent46052f56a0d0853d7321fb43adc275de034c894d (diff)
downloadATCD-f18e114a04aa1dc6412b16aae0d59141d9c863db.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Malloc.i')
-rw-r--r--ace/Malloc.i94
1 files changed, 94 insertions, 0 deletions
diff --git a/ace/Malloc.i b/ace/Malloc.i
index ae0bc8064d4..12ec718df4a 100644
--- a/ace/Malloc.i
+++ b/ace/Malloc.i
@@ -2,3 +2,97 @@
// $Id$
// Malloc.i
+
+ACE_INLINE void *
+ACE_New_Allocator::malloc (size_t nbytes)
+{
+ return new char[nbytes];
+}
+
+ACE_INLINE void *
+ACE_New_Allocator::calloc (size_t nbytes, char initial_value)
+{
+ char *ptr = new char [nbytes];
+
+ if (ptr != 0)
+ ACE_OS::memset (ptr, initial_value, nbytes);
+
+ return 0;
+}
+
+ACE_INLINE void
+ACE_New_Allocator::free (void *ptr)
+{
+ delete [] (char *) ptr;
+}
+
+ACE_INLINE int
+ACE_New_Allocator::remove (void)
+{
+ return -1;
+}
+
+ACE_INLINE int
+ACE_New_Allocator::bind (const char *name, void *pointer, int duplicates)
+{
+ return -1;
+}
+
+ACE_INLINE int
+ACE_New_Allocator::trybind (const char *name, void *&pointer)
+{
+ return -1;
+}
+
+ACE_INLINE int
+ACE_New_Allocator::find (const char *name, void *&pointer)
+{
+ return -1;
+}
+
+ACE_INLINE int
+ACE_New_Allocator::find (const char *name)
+{
+ return -1;
+}
+
+ACE_INLINE int
+ACE_New_Allocator::unbind (const char *name)
+{
+ return -1;
+}
+
+ACE_INLINE int
+ACE_New_Allocator::unbind (const char *name, void *&pointer)
+{
+ return -1;
+}
+
+ACE_INLINE int
+ACE_New_Allocator::sync (ssize_t len, int flags)
+{
+ return -1;
+}
+
+ACE_INLINE int
+ACE_New_Allocator::sync (void *addr, size_t len, int flags)
+{
+ return -1;
+}
+
+ACE_INLINE int
+ACE_New_Allocator::protect (ssize_t len, int prot)
+{
+ return -1;
+}
+
+ACE_INLINE int
+ACE_New_Allocator::protect (void *addr, size_t len, int prot)
+{
+ return -1;
+}
+
+ACE_INLINE void
+ACE_New_Allocator::dump (void) const
+{
+}