diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2009-02-07 16:32:56 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2009-02-07 16:32:56 +0000 |
commit | a7a06a7ccfe0af1e134357678b8fa6cf87dff3b0 (patch) | |
tree | a966aeee62e69ae3ad13275d07ddb15049b14e0e /anthy/filemap.h | |
download | anthy-master.tar.gz |
anthy-9100hHEADanthy-9100hmaster
Diffstat (limited to 'anthy/filemap.h')
-rw-r--r-- | anthy/filemap.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/anthy/filemap.h b/anthy/filemap.h new file mode 100644 index 0000000..867687c --- /dev/null +++ b/anthy/filemap.h @@ -0,0 +1,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 |