Mercurial > dovecot > core-2.2
comparison src/lib/file-cache.h @ 21306:f7a5eb710cad
lib: Add file_cache_new_path() to include path in error messages.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 14 Dec 2016 19:35:05 +0200 |
parents | e4eb71ae8e96 |
children |
comparison
equal
deleted
inserted
replaced
21305:398d70068a08 | 21306:f7a5eb710cad |
---|---|
2 #define FILE_CACHE_H | 2 #define FILE_CACHE_H |
3 | 3 |
4 /* Create a new file cache. It works very much like file-backed mmap()ed | 4 /* Create a new file cache. It works very much like file-backed mmap()ed |
5 memory, but it works more nicely with remote filesystems (no SIGBUS). */ | 5 memory, but it works more nicely with remote filesystems (no SIGBUS). */ |
6 struct file_cache *file_cache_new(int fd); | 6 struct file_cache *file_cache_new(int fd); |
7 struct file_cache *file_cache_new_path(int fd, const char *path); | |
7 /* Destroy the cache and set cache pointer to NULL. */ | 8 /* Destroy the cache and set cache pointer to NULL. */ |
8 void file_cache_free(struct file_cache **cache); | 9 void file_cache_free(struct file_cache **cache); |
9 | 10 |
10 /* Change cached file descriptor. Invalidates the whole cache. */ | 11 /* Change cached file descriptor. Invalidates the whole cache. */ |
11 void file_cache_set_fd(struct file_cache *cache, int fd); | 12 void file_cache_set_fd(struct file_cache *cache, int fd); |