diff options
author | jhb <jhb@FreeBSD.org> | 2010-04-14 15:22:58 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2010-04-14 15:22:58 +0000 |
commit | 89a00e020b2c8a517462b74b3c52eaf1d11f7d6f (patch) | |
tree | 7beb9564f2205a26ca89cd7eae85354907823d9e /lib | |
parent | 8802087ba8c4d641e1297133815085d25c865d56 (diff) | |
download | FreeBSD-src-89a00e020b2c8a517462b74b3c52eaf1d11f7d6f.zip FreeBSD-src-89a00e020b2c8a517462b74b3c52eaf1d11f7d6f.tar.gz |
MFC 205536:
Reject attempts to create a MAP_ANON mapping with a non-zero offset.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/mmap.2 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2 index e632748..85019b2 100644 --- a/lib/libc/sys/mmap.2 +++ b/lib/libc/sys/mmap.2 @@ -105,7 +105,7 @@ The file descriptor used for creating must be \-1. The .Fa offset -argument is ignored. +argument must be 0. .\".It Dv MAP_FILE .\"Mapped from a regular file or character-special device memory. .It Dv MAP_FIXED @@ -312,6 +312,11 @@ was equal to zero. was specified and the .Fa fd argument was not -1. +.It Bq Er EINVAL +.Dv MAP_ANON +was specified and the +.Fa offset +argument was not 0. .It Bq Er ENODEV .Dv MAP_ANON has not been specified and |