summaryrefslogtreecommitdiff
path: root/anthy/filemap.h
blob: 867687c6ae07107e6c4edd9ad2d6bfe1ecc9acd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* mmapを抽象化する */
#ifndef _filemap_h_included_
#define _filemap_h_included_

/* メモリ上にmapされたファイルのハンドル */
struct filemapping;

struct filemapping *anthy_mmap(const char *fn, int wr);
void *anthy_mmap_address(struct filemapping *m);
int anthy_mmap_size(struct filemapping *m);
int anthy_mmap_is_writable(struct filemapping *m);
void anthy_munmap(struct filemapping *m);

#endif