From de27176a8164bd037b4669d1c2b8cc24a747e633 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 9 Feb 2015 22:26:25 +0100 Subject: Add stating on open files --- src/common/include/fs.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/common/include/fs.h (limited to 'src/common') 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 +#include + +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) + -- cgit v1.2.3