.\" <http://www.gnu.org/licenses/>.
.\" %%%LICENSE_END
.\"
-.TH MLOCK 2 2011-09-14 "Linux" "Linux Programmer's Manual"
+.TH MLOCK 2 2014-04-14 "Linux" "Linux Programmer's Manual"
.SH NAME
mlock, munlock, mlockall, munlockall \- lock and unlock memory
.SH SYNOPSIS
Lock all pages which will become mapped into the address space of the
process in the future.
These could be for instance new pages required
-by a growing heap and stack as well as new memory mapped files or
+by a growing heap and stack as well as new memory-mapped files or
shared memory regions.
.PP
If
and are automatically removed (unlocked) during an
.BR execve (2)
or when the process terminates.
+The
+.BR mlockall ()
+.B MCL_FUTURE
+setting is not inherited by a child created via
+.BR fork (2)
+and is cleared during an
+.BR execve (2).
The memory lock on an address range is automatically removed
if the address range is unmapped via
.BR sysconf (3),
.BR proc (5),
.BR capabilities (7)
+.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/.