From e9e8886089c3393fbb07cd04508f1c4aab38fa48 Mon Sep 17 00:00:00 2001 From: leitner Date: Tue, 8 Mar 2005 20:09:03 +0000 Subject: [PATCH] fix mmap_shared --- CHANGES | 1 + mmap/mmap_shared.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 89fd9fc..5e15b8e 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ ' '; needed for web servers, so they can serve libstdc++.tar.gz) fix iob_write to handle failure properly document that the iob_write callback should limit itself + fix mmap_shared add iob_free, add man pages for iob_free and iob_reset 0.21: diff --git a/mmap/mmap_shared.c b/mmap/mmap_shared.c index aaf7b88..184ebff 100644 --- a/mmap/mmap_shared.c +++ b/mmap/mmap_shared.c @@ -23,7 +23,7 @@ extern char* mmap_shared(const char* filename,unsigned long* filesize) { CloseHandle(fd); return map; #else - int fd=open_read(filename); + int fd=open_rw(filename); char *map; if (fd>=0) { *filesize=lseek(fd,0,SEEK_END);