diff options
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r-- | winsup/cygwin/mmap.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc index 27b525a39..accc739c0 100644 --- a/winsup/cygwin/mmap.cc +++ b/winsup/cygwin/mmap.cc @@ -123,7 +123,7 @@ mmap_record::alloc_map (__off64_t off, DWORD len) off -= offset_; len = PAGE_CNT (len) * getpagesize (); if (off > 0 && - !VirtualProtect (base_address_, off, PAGE_NOACCESS, &old_prot)) + !VirtualProtect (base_address_, off, PAGE_NOACCESS, &old_prot)) syscall_printf ("VirtualProtect(%x,%d) failed: %E", base_address_, off); if (off + len < size_to_map_ && !VirtualProtect (base_address_ + off + len, @@ -143,7 +143,7 @@ mmap_record::map_map (__off64_t off, DWORD len) { /* Used ONLY if this mapping matches into the chunk of another already performed mapping in a special case of MAP_ANON|MAP_PRIVATE. - + Otherwise it's job is now done by alloc_map(). */ DWORD prot, old_prot; switch (access_mode_) @@ -771,11 +771,11 @@ fhandler_disk_file::mmap (caddr_t *addr, size_t len, DWORD access, switch (access) { case FILE_MAP_WRITE: - protect = PAGE_READWRITE; - break; + protect = PAGE_READWRITE; + break; case FILE_MAP_READ: - protect = PAGE_READONLY; - break; + protect = PAGE_READONLY; + break; default: protect = PAGE_WRITECOPY; break; @@ -989,7 +989,7 @@ fixup_mmaps_after_fork (HANDLE parent) || !wincap.virtual_protect_works_on_shared_pages ()) { system_printf ("ReadProcessMemory failed for " - "MAP_PRIVATE address %p, %E", + "MAP_PRIVATE address %p, %E", rec->get_address ()); return -1; } @@ -1013,7 +1013,7 @@ fixup_mmaps_after_fork (HANDLE parent) address, getpagesize (), old_prot, &dummy_prot)) system_printf ("WARNING: VirtualProtectEx to " - "return to previous state " + "return to previous state " "in parent failed for " "MAP_PRIVATE address %p, %E", rec->get_address ()); |