This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: malloc_info(3) man page for review
Hi Jakub,
On Fri, Apr 27, 2012 at 7:35 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Fri, Apr 27, 2012 at 03:59:58PM +1200, Michael Kerrisk (man-pages) wrote:
>> Gidday,
>>
>> I've written the man page page below to document glibc's
>> malloc_info(3). Review comments welcome!
>
> I think it would be nice to mention there that e.g. open_memstream (or
> fmemopen) could be used to store the XML output into a buffer in the
> program rather than into some file. ?IMHO that is quite common thing and
> thus could be hinted in the man page.
Thanks. I had a subtle hint on the page: SEE ALSO lists fmemopen(3).
But, your comment makes me think that it's better to be more explicit.
Under NOTES, I added
==
The
.BR open_memstream (3)
function can be used to send the output of
.BR malloc_info ()
directly into a buffer in memory, rather than to a file.
==
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/