]> sourceware.org Git - newlib-cygwin.git/commitdiff
* mmap.cc (mmap): Don't reuse anonymous memory in MAP_FIXED case.
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 18 Sep 2001 17:10:09 +0000 (17:10 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 18 Sep 2001 17:10:09 +0000 (17:10 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/mmap.cc

index 0ace10c9bb0a51099f73e921b1d118b23c9894dc..07ab2e4e327e5ce9a8b93a7587bf8f9f1076437a 100644 (file)
@@ -1,3 +1,7 @@
+Tue Sep 18 18:21:00 2001  Corinna Vinschen <corinna@vinschen.de>
+
+       * mmap.cc (mmap): Don't reuse anonymous memory in MAP_FIXED case.
+
 Mon Sep 17 17:29:25 2001  Christopher Faylor <cgf@cygnus.com>
 
        * include/io.h: Add access declaration.
index b88deb8720ce48ae0b7cf90c0145dd94540535ea..89ef69b279c96d3eff27724d8bcb018ebfe77983 100644 (file)
@@ -503,7 +503,7 @@ mmap (caddr_t addr, size_t len, int prot, int flags, int fd, off_t off)
   /* First check if this mapping matches into the chunk of another
      already performed mapping. Only valid for MAP_ANON in a special
      case of MAP_PRIVATE. */
-  if (l && fd == -1 && off == 0)
+  if (l && fd == -1 && off == 0 && !(flags & MAP_FIXED))
     {
       mmap_record *rec;
       if ((rec = l->match (off, len)) != NULL)
This page took 0.036654 seconds and 5 git commands to generate.