This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/16074] New: Document that mmap() returns MAP_FAILED on error, as per the POSIX standard.
- From: "libnoon at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 22 Oct 2013 13:15:05 +0000
- Subject: [Bug manual/16074] New: Document that mmap() returns MAP_FAILED on error, as per the POSIX standard.
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16074
Bug ID: 16074
Summary: Document that mmap() returns MAP_FAILED on error, as
per the POSIX standard.
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: manual
Assignee: unassigned at sourceware dot org
Reporter: libnoon at gmail dot com
CC: mtk.manpages at gmail dot com, roland at gnu dot org
Created attachment 7247
--> https://sourceware.org/bugzilla/attachment.cgi?id=7247&action=edit
The proposed patch.
Hello,
This patch documents mmap() as returning MAP_FAILED on error, as required by
POSIX:
http://pubs.opengroup.org/onlinepubs/009695399/functions/mmap.html
Previously, the documentation indicated that it returns -1 on error, which is
cumbersome (cast needed between pointer and integer) and not portable.
Could you please review the attached patch?
Thanks!
Best regards
Fabrice
--
You are receiving this mail because:
You are on the CC list for the bug.