mremap.2: Clarify existence of fifth argument.

Reported-by: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-06-11 08:07:47 +02:00
parent 1fd0fa4338
commit ebbb5118f0
1 changed files with 7 additions and 2 deletions

View File

@ -28,7 +28,7 @@
.\" Update for Linux 1.3.87 and later
.\" 2005-10-11 mtk: Added NOTES for MREMAP_FIXED; revised EINVAL text.
.\"
.TH MREMAP 2 2005-09-13 "Linux" "Linux Programmer's Manual"
.TH MREMAP 2 2010-06-10 "Linux" "Linux Programmer's Manual"
.SH NAME
mremap \- remap a virtual memory address
.SH SYNOPSIS
@ -38,7 +38,7 @@ mremap \- remap a virtual memory address
.B #include <sys/mman.h>
.sp
.BI "void *mremap(void *" old_address ", size_t " old_size ,
.BI " size_t " new_size ", int " flags );
.BI " size_t " new_size ", int " flags ", ... /* void *" new_address " */);"
.fi
.SH DESCRIPTION
.BR mremap ()
@ -54,6 +54,11 @@ aligned.
virtual memory block.
\fInew_size\fP is the requested size of the
virtual memory block after the resize.
An optional fifth argument,
.IR new_address ,
may be provided; see the description of
.B MREMAP_FIXED
below.
In Linux the memory is divided into pages.
A user process has (one or)