When map size is 0, use the aligned size of the file.
authorVlad Brezae <brezaevlad@gmail.com>
Thu, 15 Jan 2015 23:56:17 +0000 (15:56 -0800)
committerVlad Brezae <brezaevlad@gmail.com>
Mon, 26 Jan 2015 23:08:15 +0000 (15:08 -0800)
commit8b914ca48b881f3f3ffe0b553b219798b06e3c6a
treeda8f7bfa1639e8d161a4c2a756a400f21ec67cfa
parent08f78b16155bd2020edaea1d2efce082c762465b
When map size is 0, use the aligned size of the file.

As MS does.
mcs/class/System.Core/Test/System.IO.MemoryMappedFiles/MemoryMappedFileTest.cs
mono/metadata/file-mmap-posix.c