|
|
@ -8,7 +8,7 @@ extern char* mmap_read(const char *filename,unsigned long* filesize);
|
|
|
|
/* open file for writing, mmap whole file privately (copy on write),
|
|
|
|
/* open file for writing, mmap whole file privately (copy on write),
|
|
|
|
* close file, write length of map in filesize and return pointer to
|
|
|
|
* close file, write length of map in filesize and return pointer to
|
|
|
|
* map. */
|
|
|
|
* map. */
|
|
|
|
extern char* mmap_write(const char *filename,unsigned long* filesize);
|
|
|
|
extern char* mmap_private(const char *filename,unsigned long* filesize);
|
|
|
|
|
|
|
|
|
|
|
|
/* open file for writing, mmap whole file shared, close file, write
|
|
|
|
/* open file for writing, mmap whole file shared, close file, write
|
|
|
|
* length of map in filesize and return pointer to map. */
|
|
|
|
* length of map in filesize and return pointer to map. */
|
|
|
|