1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
/* -*- C++ -*- */
// $Id$
// Malloc.i
ACE_INLINE void *
ACE_New_Allocator::malloc (size_t nbytes)
{
char *ptr;
ACE_NEW_RETURN (ptr, char[nbytes], 0);
return (void *) ptr;
}
ACE_INLINE void *
ACE_New_Allocator::calloc (size_t nbytes,
char initial_value)
{
char *ptr;
ACE_NEW_RETURN (ptr, char[nbytes], 0);
ACE_OS::memset (ptr, initial_value, nbytes);
return (void *) ptr;
}
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 *, void *, int)
{
return -1;
}
ACE_INLINE int
ACE_New_Allocator::trybind (const char *, void *&)
{
return -1;
}
ACE_INLINE int
ACE_New_Allocator::find (const char *, void *&)
{
return -1;
}
ACE_INLINE int
ACE_New_Allocator::find (const char *)
{
return -1;
}
ACE_INLINE int
ACE_New_Allocator::unbind (const char *)
{
return -1;
}
ACE_INLINE int
ACE_New_Allocator::unbind (const char *, void *&)
{
return -1;
}
ACE_INLINE int
ACE_New_Allocator::sync (ssize_t, int)
{
return -1;
}
ACE_INLINE int
ACE_New_Allocator::sync (void *, size_t, int)
{
return -1;
}
ACE_INLINE int
ACE_New_Allocator::protect (ssize_t, int)
{
return -1;
}
ACE_INLINE int
ACE_New_Allocator::protect (void *, size_t, int)
{
return -1;
}
ACE_INLINE void
ACE_New_Allocator::dump (void) const
{
}
|