Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
652 B

21 years ago
#ifndef MMAP_H
#define MMAP_H
/* open file for reading, mmap whole file, close file, write length of
* map in filesize and return pointer to map. */
20 years ago
extern char* mmap_read(const char *filename,unsigned long* filesize);
21 years ago
/* open file for writing, mmap whole file privately (copy on write),
* close file, write length of map in filesize and return pointer to
* map. */
19 years ago
extern char* mmap_private(const char *filename,unsigned long* filesize);
21 years ago
/* open file for writing, mmap whole file shared, close file, write
* length of map in filesize and return pointer to map. */
extern char* mmap_shared(const char *filename,unsigned long* filesize);
21 years ago
#endif