Changeset 24967

Show
Ignore:
Timestamp:
04/15/08 10:22:50 (7 months ago)
Author:
bonefish
Message:

mmap() was a little strict: The length parameter need not be page
aligned. It shall be rounded up by the implementation.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/src/system/libroot/posix/sys/mman.cpp

    r24964 r24967  
    2020{ 
    2121        // offset and length must be page-aligned 
    22         if (length == 0 || (offset | length) % B_PAGE_SIZE != 0) { 
     22        if (length == 0 || offset % B_PAGE_SIZE != 0) { 
    2323                errno = B_BAD_VALUE; 
    2424                return MAP_FAILED;