diff options
| author | Ivana Varekova <varekova@redhat.com> | 2010-10-19 12:32:26 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2010-10-19 12:32:26 +0200 |
| commit | d722a8bc9f36f4ff688377892f9f54e47ceb9ea4 (patch) | |
| tree | 10428838ac6741714bae869617f3652b050ff224 /man3/malloc_hook.3 | |
| parent | a57970603e2c0a32acc5b92e1159a203c20e78a4 (diff) | |
| download | man-pages-d722a8bc9f36f4ff688377892f9f54e47ceb9ea4.tar.gz | |
malloc_hook.3: Warn that these functions are deprecated
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/malloc_hook.3')
| -rw-r--r-- | man3/malloc_hook.3 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/man3/malloc_hook.3 b/man3/malloc_hook.3 index 3a56f8fef6..0e126459b5 100644 --- a/man3/malloc_hook.3 +++ b/man3/malloc_hook.3 @@ -3,11 +3,7 @@ .\" Heavily based on glibc documentation .\" Polished, added docs, removed glibc doc bug, 2002-07-20, aeb .\" -.\" FIXME -.\" According to a Fedora downstream patch, malloc hooks are deprecated -.\" https://bugzilla.redhat.com/show_bug.cgi?id=450187 -.\" Integrate this upstream? -.TH MALLOC_HOOK 3 2002-07-20 "GNU" "Linux Programmer's Manual" +.TH MALLOC_HOOK 3 2010-10-13 "GNU" "Linux Programmer's Manual" .SH NAME __malloc_hook, __malloc_initialize_hook, __memalign_hook, __free_hook, __realloc_hook, @@ -79,6 +75,12 @@ points at a function that is called each time after was asked for more memory. .SH "CONFORMING TO" These functions are GNU extensions. +.SH NOTES +The use of these hook functions is not safe in multithreaded programs, +and they are now deprecated. +.\" https://bugzilla.redhat.com/show_bug.cgi?id=450187 +Programmers should instead preempt calls to the relevant functions +by defining and exporting functions such as "malloc" and "free". .SH "EXAMPLE" Here is a short example of how to use these variables. .sp |
