Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-08-25 23:02:35 +0300
committerCorinna Vinschen <corinna@vinschen.de>2015-08-25 23:02:35 +0300
commit70b02101ca6b5175c3e0b09757064f2aed8c3a35 (patch)
tree90f94775a5fe5e75584cd9a0aa10f863d6345aa5 /winsup
parent8c665d189b072ea75609c1b6d5cff319d0bf026f (diff)
mmap.cc: Fix some comments
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/mmap.cc15
2 files changed, 10 insertions, 9 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 1ec6c714b..a23f835f8 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2015-08-25 Corinna Vinschen <corinna@vinschen.de>
+
+ * mmap.cc: Fix a few comments.
+
2015-08-24 Corinna Vinschen <corinna@vinschen.de>
* ntdll.h (PROCESSINFOCLASS): Define ProcessDebugFlags.
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc
index 8175d6ea3..cb8b8284e 100644
--- a/winsup/cygwin/mmap.cc
+++ b/winsup/cygwin/mmap.cc
@@ -1,7 +1,7 @@
/* mmap.cc
Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
- 2008, 2009, 2010, 2011, 2012, 2013 Red Hat, Inc.
+ 2008, 2009, 2010, 2011, 2012, 2013, 2015 Red Hat, Inc.
This file is part of Cygwin.
@@ -712,7 +712,7 @@ is_mmapped_region (caddr_t start_addr, caddr_t end_address)
Check if the address range is all within noreserve mmap regions. If so,
call VirtualAlloc to commit the pages and return MMAP_NORESERVE_COMMITED
on success. If the page has __PROT_ATTACH (SUSv3 memory protection
- extension), or if VirutalAlloc fails, return MMAP_RAISE_SIGBUS.
+ extension), or if VirtualAlloc fails, return MMAP_RAISE_SIGBUS.
Otherwise, return MMAP_NONE if the address range is not covered by an
attached or noreserve map.
@@ -1262,8 +1262,7 @@ munmap (void *addr, size_t len)
LIST_LOCK ();
- /* Iterate through the map, unmap pages between addr and addr+len
- in all maps. */
+ /* Iterate over maps, unmap pages between addr and addr+len in all maps. */
mmap_list *map_list, *next_map_list;
LIST_FOREACH_SAFE (map_list, &mmapped_areas.lists, ml_next, next_map_list)
{
@@ -1327,8 +1326,7 @@ msync (void *addr, size_t len, int flags)
len = roundup2 (len, wincap.allocation_granularity ());
#endif
- /* Iterate through the map, looking for the mmapped area.
- Error if not found. */
+ /* Iterate over maps, looking for the mmapped area. Error if not found. */
LIST_FOREACH (map_list, &mmapped_areas.lists, ml_next)
{
mmap_record *rec;
@@ -1385,8 +1383,7 @@ mprotect (void *addr, size_t len, int prot)
LIST_LOCK ();
- /* Iterate through the map, protect pages between addr and addr+len
- in all maps. */
+ /* Iterate over maps, protect pages between addr and addr+len in all maps. */
mmap_list *map_list;
LIST_FOREACH (map_list, &mmapped_areas.lists, ml_next)
{
@@ -1820,7 +1817,7 @@ fhandler_disk_file::fixup_mmap_after_fork (HANDLE h, int prot, int flags,
int __stdcall
fixup_mmaps_after_fork (HANDLE parent)
{
- /* Iterate through the map */
+ /* Iterate over maps */
mmap_list *map_list;
LIST_FOREACH (map_list, &mmapped_areas.lists, ml_next)
{