From b2f46c3c0e2119545e52a01e1d73a93d21ebbc0d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 12 Nov 1999 17:15:18 +0000 Subject: Update. 1999-11-01 Wolfram Gloger * malloc/malloc.h: Describe __malloc_initialize_hook. * manual/memory.texi: Document __malloc_initialize_hook. * sysdeps/unix/sysv/linux/setrlimit.c: Correctly use rlimits. --- malloc/malloc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'malloc') diff --git a/malloc/malloc.h b/malloc/malloc.h index c453d728e6..4f02b5a093 100644 --- a/malloc/malloc.h +++ b/malloc/malloc.h @@ -206,8 +206,11 @@ extern __malloc_ptr_t malloc_get_state __MALLOC_P ((void)); extern int malloc_set_state __MALLOC_P ((__malloc_ptr_t __ptr)); #if defined __GLIBC__ || defined MALLOC_HOOKS -/* Hooks for debugging versions. */ +/* Called once when malloc is initialized; redefining this variable in + the application provides the preferred way to set up the hook + pointers. */ extern void (*__malloc_initialize_hook) __MALLOC_PMT ((void)); +/* Hooks for debugging and user-defined versions. */ extern void (*__free_hook) __MALLOC_PMT ((__malloc_ptr_t __ptr, __const __malloc_ptr_t)); extern __malloc_ptr_t (*__malloc_hook) __MALLOC_PMT ((size_t __size, -- cgit v1.2.3