aboutsummaryrefslogtreecommitdiff
path: root/src/common/include/fs.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-09 22:26:25 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-09 22:26:25 +0100
commitde27176a8164bd037b4669d1c2b8cc24a747e633 (patch)
tree56b30a6025b73edd7eb12004f1ae65f6731a035f /src/common/include/fs.h
parenta1ebf864cc9f10f821413921f4aa5c75dcbe6f55 (diff)
downloadkogata-de27176a8164bd037b4669d1c2b8cc24a747e633.tar.gz
kogata-de27176a8164bd037b4669d1c2b8cc24a747e633.zip
Add stating on open files
Diffstat (limited to 'src/common/include/fs.h')
-rw-r--r--src/common/include/fs.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/common/include/fs.h b/src/common/include/fs.h
new file mode 100644
index 0000000..6cd624e
--- /dev/null
+++ b/src/common/include/fs.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <stdint.h>
+#include <stddef.h>
+
+typedef struct {
+ size_t size;
+ // TODO : times & more metadata
+} stat_t;
+
+#define FM_READ (0x01)
+#define FM_WRITE (0x02)
+#define FM_MMAP (0x04)
+#define FM_CREATE (0x10)
+#define FM_TRUNC (0x20)
+#define FM_APPEND (0x40)
+