file-cache.h revision 74eff344f67ca582eec8c38dfdc6f5f6faa21fd8
#ifndef __FILE_CACHE_H
#define __FILE_CACHE_H
/* Create a new file cache. It works very much like file-backed mmap()ed
memory, but it works more nicely with remote filesystems (no SIGBUS). */
/* Change cached file descriptor. Invalidates the whole cache. */
/* Read data from file, returns how many bytes was actually read or -1 if
error occured. */
/* Returns pointer to beginning of cached file. Only parts of the returned
memory that are valid are the ones that have been file_cache_read().
Note that the pointer may become invalid after calling file_cache_read(). */
/* Invalidate cached memory area. It will be read again next time it's tried
to be accessed. */
#endif