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.

17 lines
650 B

20 years ago
19 years ago
20 years ago
20 years ago
20 years ago
  1. #ifndef MMAP_H
  2. #define MMAP_H
  3. /* open file for reading, mmap whole file, close file, write length of
  4. * map in filesize and return pointer to map. */
  5. extern char* mmap_read(const char *filename,unsigned long* filesize);
  6. /* open file for writing, mmap whole file privately (copy on write),
  7. * close file, write length of map in filesize and return pointer to
  8. * map. */
  9. extern char* mmap_write(const char *filename,unsigned long* filesize);
  10. /* open file for writing, mmap whole file shared, close file, write
  11. * length of map in filesize and return pointer to map. */
  12. extern char* mmap_shared(const char *filename,unsigned long* filesize);
  13. #endif