.\" Copyright (c) 2012 by Michael Kerrisk <mtk.manpages@gmail.com>
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
-.TH MCHECK 3 2012-04-18 "GNU" "Linux Programmer's Manual"
+.TH MCHECK 3 2014-01-11 "GNU" "Linux Programmer's Manual"
.SH NAME
mcheck, mcheck_check_all, mcheck_pedantic, mprobe \- heap consistency checking
.SH SYNOPSIS
.B void mcheck_check_all(void);
.BI "enum mcheck_status mprobe(void *" ptr );
-
.fi
.SH DESCRIPTION
The
.BR malloc (3)
or a related function.
In cases where this is difficult to ensure, linking the program with
-.IR \-mcheck
+.IR \-lmcheck
inserts an implicit call to
.BR mcheck ()
(with a NULL argument)
The
.BR mcheck_check_all ()
function causes an immediate check on all allocated blocks.
-This call is only effective if
+This call is effective only if
.BR mcheck ()
is called beforehand.
.BR mcheck_check_all ()
functions are available since glibc 2.2.
The
-.BR mcheck()
+.BR mcheck ()
and
-.BR mprobe()
+.BR mprobe ()
functions are present since at least glibc 2.0
.SH CONFORMING TO
These functions are GNU extensions.
.B MALLOC_CHECK_
does not require the application to be relinked.
.\" But is MALLOC_CHECK_ slower?
-
.SH EXAMPLE
The program below calls
.BR mcheck ()
.fi
.SH SEE ALSO
.BR malloc (3),
-.\" FIXME add SEE ALSO pointer from malloc(3) to here
-.\" FIXME add SEE ALSO pointer from mallopt(3) to here
-.\" FIXME add SEE ALSO pointer from mtrace(3) to here
.BR mallopt (3),
.BR mtrace (3)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.