fix mmap_shared

master
leitner 20 years ago
parent 882885fdff
commit e9e8886089

@ -6,6 +6,7 @@
' '; needed for web servers, so they can serve libstdc++.tar.gz) ' '; needed for web servers, so they can serve libstdc++.tar.gz)
fix iob_write to handle failure properly fix iob_write to handle failure properly
document that the iob_write callback should limit itself document that the iob_write callback should limit itself
fix mmap_shared
add iob_free, add man pages for iob_free and iob_reset add iob_free, add man pages for iob_free and iob_reset
0.21: 0.21:

@ -23,7 +23,7 @@ extern char* mmap_shared(const char* filename,unsigned long* filesize) {
CloseHandle(fd); CloseHandle(fd);
return map; return map;
#else #else
int fd=open_read(filename); int fd=open_rw(filename);
char *map; char *map;
if (fd>=0) { if (fd>=0) {
*filesize=lseek(fd,0,SEEK_END); *filesize=lseek(fd,0,SEEK_END);

Loading…
Cancel
Save