summaryrefslogtreecommitdiffstats
path: root/man3/mallinfo.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/mallinfo.3')
-rw-r--r--man3/mallinfo.338
1 files changed, 19 insertions, 19 deletions
diff --git a/man3/mallinfo.3 b/man3/mallinfo.3
index 20ac7f896..726fa6dec 100644
--- a/man3/mallinfo.3
+++ b/man3/mallinfo.3
@@ -19,7 +19,7 @@ Standard C library
.SH DESCRIPTION
These functions return a copy of a structure containing information about
memory allocations performed by
-.BR malloc (3)
+.MR malloc 3
and related functions.
The structure returned by each function contains the same fields.
However, the older function,
@@ -28,7 +28,7 @@ is deprecated since the type used for the fields is too small (see BUGS).
.P
Note that not all allocations are visible to these functions;
see BUGS and consider using
-.BR malloc_info (3)
+.MR malloc_info 3
instead.
.P
The
@@ -66,7 +66,7 @@ The structure fields contain the following information:
.TP 10
.I arena
The total amount of memory allocated by means other than
-.BR mmap (2)
+.MR mmap 2
(i.e., memory allocated on the heap).
This figure includes both in-use blocks and blocks on the free list.
.TP
@@ -77,19 +77,19 @@ The number of ordinary (i.e., non-fastbin) free blocks.
.\" the glibc info page wrongly says this field is unused
.\" https://sourceware.org/bugzilla/show_bug.cgi?id=26746
The number of fastbin free blocks (see
-.BR mallopt (3)).
+.MR mallopt 3 ).
.TP
.I hblks
The number of blocks currently allocated using
-.BR mmap (2).
+.MR mmap 2 .
(See the discussion of
.B M_MMAP_THRESHOLD
in
-.BR mallopt (3).)
+.MR mallopt 3 .)
.TP
.I hblkhd
The number of bytes in blocks currently allocated using
-.BR mmap (2).
+.MR mmap 2 .
.TP
.I usmblks
This field is unused, and is always 0.
@@ -114,10 +114,10 @@ The total amount of releasable free space at the top
of the heap.
This is the maximum number of bytes that could ideally
(i.e., ignoring page alignment restrictions, and so on) be released by
-.BR malloc_trim (3).
+.MR malloc_trim 3 .
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
-.BR attributes (7).
+.MR attributes 7 .
.TS
allbox;
lb lb lbx
@@ -169,9 +169,9 @@ glibc 2.33.
.B Information is returned for only the main memory allocation area.
Allocations in other arenas are excluded.
See
-.BR malloc_stats (3)
+.MR malloc_stats 3
and
-.BR malloc_info (3)
+.MR malloc_info 3
for alternatives that include information about other arenas.
.P
The fields of the
@@ -192,11 +192,11 @@ The statistics are displayed on standard output.
.P
The first two command-line arguments specify the number and size of
blocks to be allocated with
-.BR malloc (3).
+.MR malloc 3 .
.P
The remaining three arguments specify which of the allocated blocks
should be freed with
-.BR free (3).
+.MR free 3 .
These three arguments are optional, and specify (in order):
the step size to be used in the loop that frees blocks
(the default is 1, meaning free all blocks in the range);
@@ -330,9 +330,9 @@ main(int argc, char *argv[])
.SH SEE ALSO
.ad l
.nh
-.BR mmap (2),
-.BR malloc (3),
-.BR malloc_info (3),
-.BR malloc_stats (3),
-.BR malloc_trim (3),
-.BR mallopt (3)
+.MR mmap 2 ,
+.MR malloc 3 ,
+.MR malloc_info 3 ,
+.MR malloc_stats 3 ,
+.MR malloc_trim 3 ,
+.MR mallopt 3