summaryrefslogtreecommitdiff
path: root/anthy/filemap.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2009-02-07 16:32:56 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2009-02-07 16:32:56 +0000
commita7a06a7ccfe0af1e134357678b8fa6cf87dff3b0 (patch)
treea966aeee62e69ae3ad13275d07ddb15049b14e0e /anthy/filemap.h
downloadanthy-a7a06a7ccfe0af1e134357678b8fa6cf87dff3b0.tar.gz
Diffstat (limited to 'anthy/filemap.h')
-rw-r--r--anthy/filemap.h14
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