Details
Details
- Reviewers
brooks - Commits
- rG724e383bd4c4: munmap.2: Add STANDARDS and note about portability
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
2004 has:
The munmap() function shall fail if: [EINVAL] Addresses in the range [addr,addr+len) are outside the valid range for the address space of a process. [EINVAL] The len argument is 0. [EINVAL] The addr argument is not a multiple of the page size as returned by sysconf().
Unaligned addr moved from shall to may in 2008 AFAICT. I don't have a good enough handle on the variety of systems to know if any require aligned len, but AFAICT POSIX hasn't specified that.
lib/libsys/munmap.2 | ||
---|---|---|
76 | "is aligned to the page size" |
lib/libsys/munmap.2 | ||
---|---|---|
76 | Indeed, but I took the language that POSIX uses |