Update of /cvsroot/monetdb/MonetDB/src/gdk
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12488

Modified Files:
      Tag: MonetDB_1-20
        gdk_posix.mx 
Log Message:
[ 1852327 ] M4: remap in src/modules/plain/Tests/bat.py fails on Win64
- try with some more conservative flags.



Index: gdk_posix.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_posix.mx,v
retrieving revision 1.143.2.4
retrieving revision 1.143.2.5
diff -u -d -r1.143.2.4 -r1.143.2.5
--- gdk_posix.mx        18 Dec 2007 15:49:28 -0000      1.143.2.4
+++ gdk_posix.mx        18 Dec 2007 16:32:08 -0000      1.143.2.5
@@ -1253,7 +1253,7 @@
 MT_mmap_open(MT_mmap_hdl *hdl, char *path, int mode, off_t off, size_t len, 
size_t nremaps)
 {
        void *ret = NULL;
-       int mode0 = GENERIC_READ;
+       int mode0 = FILE_READ_ATTRIBUTES | FILE_READ_DATA;
        int mode1 = FILE_SHARE_READ;
        int mode2 = mode & MMAP_ADVISE;
        int mode3 = PAGE_READONLY;
@@ -1264,7 +1264,7 @@
 
        memset(hdl, 0, sizeof(MT_mmap_hdl));
        if (mode & MMAP_WRITE) {
-               mode0 |= GENERIC_WRITE;
+               mode0 |= FILE_APPEND_DATA | FILE_WRITE_ATTRIBUTES | 
FILE_WRITE_DATA;
                mode1 |= FILE_SHARE_WRITE;
        }
        if (mode2 == MMAP_RANDOM || mode2 == MMAP_DONTNEED) {


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to