diff options
Diffstat (limited to 'man3/malloc_get_state.3')
-rw-r--r-- | man3/malloc_get_state.3 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/man3/malloc_get_state.3 b/man3/malloc_get_state.3 index 51783bc57..4adc32232 100644 --- a/man3/malloc_get_state.3 +++ b/man3/malloc_get_state.3 @@ -24,24 +24,24 @@ these functions are removed in glibc 2.25. The .BR malloc_get_state () function records the current state of all -.BR malloc (3) +.MR malloc 3 internal bookkeeping variables (but not the actual contents of the heap or the state of -.BR malloc_hook (3) +.MR malloc_hook 3 functions pointers). The state is recorded in a system-dependent opaque data structure dynamically allocated via -.BR malloc (3), +.MR malloc 3 , and a pointer to that data structure is returned as the function result. (It is the caller's responsibility to -.BR free (3) +.MR free 3 this memory.) .P The .BR malloc_set_state () function restores the state of all -.BR malloc (3) +.MR malloc 3 internal bookkeeping variables to the values recorded in the opaque data structure pointed to by .IR state . @@ -72,7 +72,7 @@ is a more recent version than this implementation knows about, returns \-2. .SH ATTRIBUTES For an explanation of the terms used in this section, see -.BR attributes (7). +.MR attributes 7 . .TS allbox; lbx lb lb @@ -89,7 +89,7 @@ T} Thread safety MT-Safe GNU. .SH NOTES These functions are useful when using this -.BR malloc (3) +.MR malloc 3 implementation as part of a shared library, and the heap contents are saved/restored via some other method. This technique is used by GNU Emacs to implement its "dumping" function. @@ -97,7 +97,7 @@ This technique is used by GNU Emacs to implement its "dumping" function. Hook function pointers are never saved or restored by these functions, with two exceptions: if malloc checking (see -.BR mallopt (3)) +.MR mallopt 3 ) was in use when .BR malloc_get_state () was called, then @@ -111,5 +111,5 @@ if malloc checking was not in use in the recorded state, but the caller has requested malloc checking, then the hooks are reset to 0. .SH SEE ALSO -.BR malloc (3), -.BR mallopt (3) +.MR malloc 3 , +.MR mallopt 3 |