Bug 215469 - mmap(2) with MAP_EXCL is misdocumented to return EINVAL if already mapped
Summary: mmap(2) with MAP_EXCL is misdocumented to return EINVAL if already mapped
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-21 14:09 UTC by martin
Modified: 2018-04-10 19:54 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martin 2016-12-21 14:09:40 UTC
The man page for mmap(2) says:

     [EINVAL]           Both MAP_FIXED and MAP_EXCL were specified, but the
                        requested region is already used by a mapping.

I think this should be ENOMEM rather than EINVAL.