]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Added some EINVAL errors.
authorMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 6 Sep 2006 04:44:04 +0000 (04:44 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 6 Sep 2006 04:44:04 +0000 (04:44 +0000)
man2/mmap.2

index 40ffb2bca4daf4e3236efdb9854bf3c98a909100..93659fcadfc78cbfb2de7c0d36876aeb764a17d9 100644 (file)
@@ -335,16 +335,24 @@ was not set).
 .TP
 .B EINVAL
 We don't like
-.I start
+.IR start ,
+.IR length ,
 or
+.IR offset
+(e.g., they are too large, or not aligned on a page boundary).
+.TP
+.B EINVAL
+(since Linux 2.6.12),
 .I length
+was 0.
+.TP
+.B EINVAL
+.I flags
+contained neither
+.B MAP_PRIVATE
 or
-.IR offset .
-(E.g., they are too large, or not aligned on a page boundary.)
-.\" jbl - not sure this actually happens ? see generic_file_mmap
-.\" mtk: Before 2.6.12, a length of 0 was permitted: mmap() did 
-.\" not create mapping, but just returned 'start'; since 2.6.12, 
-.\" a length of 0 yields EINVAL (as required by POSIX.1-2001).
+.BR MAP_SHARED ,
+or contained both of these values.
 .TP
 .B ENFILE
 .\" This is for shared anonymous segments