aboutsummaryrefslogtreecommitdiffstats
path: root/man3/malloc_hook.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2007-05-12 00:30:29 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2007-05-12 00:30:29 +0000
commitfb186734289145885761fc285a1f97e5b294609f (patch)
tree3905a02a55673ae48bc8dc7f8cec551fe26fd667 /man3/malloc_hook.3
parent63f6a20a1acb380057d1940f286bde6d6758e51d (diff)
downloadman-pages-fb186734289145885761fc285a1f97e5b294609f.tar.gz
Adding section numbers to xrefs toother pages
Diffstat (limited to 'man3/malloc_hook.3')
-rw-r--r--man3/malloc_hook.318
1 files changed, 9 insertions, 9 deletions
diff --git a/man3/malloc_hook.3 b/man3/malloc_hook.3
index f53b5d9863..8ce32255f4 100644
--- a/man3/malloc_hook.3
+++ b/man3/malloc_hook.3
@@ -30,10 +30,10 @@ __after_morecore_hook \- malloc debugging variables
.BI "void (*__after_morecore_hook)(void);"
.SH DESCRIPTION
The GNU C library lets you modify the behavior of
-.BR malloc (),
-.BR realloc (),
+.BR malloc (3),
+.BR realloc (3),
and
-.BR free ()
+.BR free (3)
by specifying appropriate hook functions.
You can use these hooks
to help you debug programs that use dynamic memory allocation,
@@ -60,20 +60,20 @@ The four functions pointed to by
.BR __memalign_hook ,
.BR __free_hook
have a prototype like the functions
-.BR malloc (),
-.BR realloc (),
-.BR memalign (),
-.BR free (),
+.BR malloc (3),
+.BR realloc (3),
+.BR memalign (3),
+.BR free (3),
respectively, except that they have a final argument
.I caller
that gives the address of the caller of
-.BR malloc (),
+.BR malloc (3),
etc.
.LP
The variable
.B __after_morecore_hook
points at a function that is called each time after
-.BR sbrk ()
+.BR sbrk (2)
was asked for more memory.
.SH "EXAMPLE"
Here is a short example of how to use these variables.