summaryrefslogtreecommitdiff
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2015-03-25 23:59:49 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2015-03-25 23:59:49 +0100
commit6f363f69221a6b40ef0f88631cd8d675465eb63d (patch)
tree768c1cd5d88a0c7cb63bdcf3bd2e85121dbfe0ef /include/stdlib.h
parent6ff9c31abc14f207265ab214370982ecb3bfe428 (diff)
include: Expand malloc-family comments
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 2065dfa2d..809256d0c 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -486,11 +486,11 @@ extern int lcong48_r (unsigned short int __param[7],
__BEGIN_NAMESPACE_STD
/* Allocate SIZE bytes of memory. */
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
-/* We want the malloc symbols overridable at runtime
- * libc_hidden_proto(malloc) */
+/* We want the malloc symbol overridable at runtime, do not hide it! */
/* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */
extern void *calloc (size_t __nmemb, size_t __size)
__THROW __attribute_malloc__ __wur;
+/* We want the calloc symbol overridable at runtime, do not hide it! */
__END_NAMESPACE_STD
#endif
@@ -503,8 +503,10 @@ __BEGIN_NAMESPACE_STD
between objects pointed by the old and new pointers. */
extern void *realloc (void *__ptr, size_t __size)
__THROW __wur;
+/* We want the realloc symbol overridable at runtime, do not hide it! */
/* Free a block allocated by `malloc', `realloc' or `calloc'. */
extern void free (void *__ptr) __THROW;
+/* We want the free symbol overridable at runtime, do not hide it! */
__END_NAMESPACE_STD
#if 0 /*def __USE_MISC*/