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
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-02-26 15:22:41 +0300
committerCorinna Vinschen <corinna@vinschen.de>2007-02-26 15:22:41 +0300
commit457c7938f020cabd6029ab976ccfc35ba86d5369 (patch)
treed5a05ad641701a4f70e01a9addbe707e14bba237 /winsup/cygwin/mmap.cc
parentd9edc05f47edef645e8b80abdd937820a41d51d4 (diff)
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Drop comment.
* mmap.cc (gen_access): Remove. (mmap_record::gen_access): Remove. (mmap64): Don't mention 9x any longer. * syscalls.cc (statvfs): Drop status code consideration for 9x. * libc/minires-os-if.c (get_registry_dns_items): Don't mention 9x any longer. (get_registry_dns): Drop getting registry key on 9x. Drop is9x variable.
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r--winsup/cygwin/mmap.cc20
1 files changed, 2 insertions, 18 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc
index 7e4431771..18c8ec846 100644
--- a/winsup/cygwin/mmap.cc
+++ b/winsup/cygwin/mmap.cc
@@ -134,20 +134,6 @@ gen_protect (int prot, int flags)
return ret;
}
-/* Generate Windows access flags from mmap prot and flag values.
- Only used on 9x. PROT_EXEC not supported here since it's not
- necessary. */
-static inline DWORD
-gen_access (DWORD openflags, int flags)
-{
- DWORD ret = FILE_MAP_READ;
- if (priv (flags))
- ret = FILE_MAP_COPY;
- else if (openflags & GENERIC_WRITE)
- ret = priv (flags) ? FILE_MAP_COPY : FILE_MAP_WRITE;
- return ret;
-}
-
static HANDLE
CreateMapping (HANDLE fhdl, size_t len, _off64_t off, DWORD openflags,
int prot, int flags, const char *)
@@ -322,8 +308,6 @@ class mmap_record
{ return ::gen_create_protect (get_openflags (), get_flags ()); }
DWORD gen_protect () const
{ return ::gen_protect (get_prot (), get_flags ()); }
- DWORD gen_access () const
- { return ::gen_access (get_openflags (), get_flags ()); }
bool compatible_flags (int fl) const;
};
@@ -1034,8 +1018,8 @@ go_ahead:
to accomodate the requested length, but as reserved pages which
raise a SIGBUS when trying to access them. AT_ROUND_TO_PAGE
and page protection on shared pages is only supported by 32 bit NT,
- so don't even try on 9x and in WOW64. This is accomplished by not
- setting orig_len on 9x and in WOW64 above. */
+ so don't even try on WOW64. This is accomplished by not setting
+ orig_len on WOW64 above. */
#if 0
orig_len = roundup2 (orig_len, pagesize);
#endif