OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man3 / mcheck.3
index ae97d7d..1edc771 100644 (file)
@@ -1,5 +1,6 @@
 .\" 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.
@@ -19,8 +20,9 @@
 .\"
 .\" 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
@@ -34,7 +36,6 @@ mcheck, mcheck_check_all, mcheck_pedantic, mprobe \- heap consistency checking
 .B void mcheck_check_all(void);
 
 .BI "enum mcheck_status mprobe(void *" ptr );
-
 .fi
 .SH DESCRIPTION
 The
@@ -54,7 +55,7 @@ function must be called before the first call to
 .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)
@@ -71,7 +72,7 @@ This can be very slow!
 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.
 
@@ -137,9 +138,9 @@ and
 .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.
@@ -155,7 +156,6 @@ But, using
 .B MALLOC_CHECK_
 does not require the application to be relinked.
 .\" But is MALLOC_CHECK_ slower?
-
 .SH EXAMPLE
 The program below calls
 .BR mcheck ()
@@ -203,8 +203,14 @@ main(int argc, char *argv[])
 .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/.