From a7a06a7ccfe0af1e134357678b8fa6cf87dff3b0 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Sat, 7 Feb 2009 16:32:56 +0000 Subject: anthy-9100h --- anthy/filemap.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 anthy/filemap.h (limited to 'anthy/filemap.h') 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 -- cgit v1.2.1