This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/16074] New: Document that mmap() returns MAP_FAILED on error, as per the POSIX standard.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]