From 1f12f0550c81ede9d42e25dc1077c7ea6b9dbf23 Mon Sep 17 00:00:00 2001 From: Fabrice Bauzac Date: Tue, 22 Oct 2013 15:09:59 +0200 Subject: [PATCH] Document that mmap() returns MAP_FAILED on error, as per the POSIX standard. --- ChangeLog | 5 +++++ manual/llio.texi | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2027bd6..4912ffd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-10-22 Fabrice Bauzac + + * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns + MAP_FAILED on error. + 2013-05-11 Joseph Myers * math/libm-test.inc (fma_test): Use max_value instead of local diff --git a/manual/llio.texi b/manual/llio.texi index b129cf4..dd0eaa3 100644 --- a/manual/llio.texi +++ b/manual/llio.texi @@ -1226,8 +1226,8 @@ as the included @code{malloc} automatically uses @code{mmap} where appropriate. @end vtable -@code{mmap} returns the address of the new mapping, or @math{-1} for an -error. +@code{mmap} returns the address of the new mapping, or +@code{MAP_FAILED} for an error. Possible errors include: -- 1.7.10.4