aboutsummaryrefslogtreecommitdiff
path: root/malloc/malloc.h
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2021-07-22 18:38:12 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-07-22 18:38:12 +0530
commit1e5a5866cb9541b5231dba3d86c8a1a35d516de9 (patch)
tree85e7ca8d6a87ee9f50ea09ccf3ec1fb91770ed16 /malloc/malloc.h
parent0552fd2c7d4e8a570cb4fe4dfe65e96f6d24b0cd (diff)
downloadglibc-1e5a5866cb9541b5231dba3d86c8a1a35d516de9.tar
glibc-1e5a5866cb9541b5231dba3d86c8a1a35d516de9.tar.gz
glibc-1e5a5866cb9541b5231dba3d86c8a1a35d516de9.tar.bz2
glibc-1e5a5866cb9541b5231dba3d86c8a1a35d516de9.zip
Remove malloc hooks [BZ #23328]
Make malloc hooks symbols compat-only so that new applications cannot link against them and remove the declarations from the API. Also remove the unused malloc-hooks.h. Finally, mark all symbols in libc_malloc_debug.so as compat so that the library cannot be linked against. Add a note about the deprecation in NEWS. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'malloc/malloc.h')
-rw-r--r--malloc/malloc.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/malloc/malloc.h b/malloc/malloc.h
index 17ab9ee345..2df0b38050 100644
--- a/malloc/malloc.h
+++ b/malloc/malloc.h
@@ -156,21 +156,5 @@ extern void malloc_stats (void) __THROW;
/* Output information about state of allocator to stream FP. */
extern int malloc_info (int __options, FILE *__fp) __THROW;
-/* Hooks for debugging and user-defined versions. */
-extern void (*__MALLOC_HOOK_VOLATILE __free_hook) (void *__ptr,
- const void *)
-__MALLOC_DEPRECATED;
-extern void *(*__MALLOC_HOOK_VOLATILE __malloc_hook)(size_t __size,
- const void *)
-__MALLOC_DEPRECATED;
-extern void *(*__MALLOC_HOOK_VOLATILE __realloc_hook)(void *__ptr,
- size_t __size,
- const void *)
-__MALLOC_DEPRECATED;
-extern void *(*__MALLOC_HOOK_VOLATILE __memalign_hook)(size_t __alignment,
- size_t __size,
- const void *)
-__MALLOC_DEPRECATED;
-
__END_DECLS
#endif /* malloc.h */