mallinfo.3: Further discourage use of mallinfo()

The BUGS section already explains why you need to be cautious
about using mallinfo, but given the number of bug reports we see
on Android, it seems not many people are reading that far. Call it
out up front.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Elliott Hughes 2019-04-30 12:36:46 -07:00 committed by Michael Kerrisk
parent aa6e1bee0e
commit 2eb8835a4d
1 changed files with 8 additions and 1 deletions

View File

@ -37,7 +37,14 @@ function returns a copy of a structure containing information about
memory allocations performed by
.BR malloc (3)
and related functions.
This structure is defined as follows:
.PP
Note that not all allocations are visible to
.BR mallinfo ();
see BUGS and consider using
.BR malloc_info (3)
instead.
.PP
The returned structure is defined as follows:
.PP
.in +4n
.EX