summaryrefslogtreecommitdiff
path: root/src/util/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/map.h')
-rw-r--r--src/util/map.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/map.h b/src/util/map.h
new file mode 100644
index 0000000..232720f
--- /dev/null
+++ b/src/util/map.h
@@ -0,0 +1,10 @@
+#include <sys/stat.h>
+
+struct map {
+ char *addr;
+ struct stat sb;
+ int fd;
+};
+
+struct map *open_map(const char *fname);
+void close_map(struct map *m);