From 680d5dd7b4382e007f3bec91c0e6abf3cadc177c Mon Sep 17 00:00:00 2001 From: janwas Date: Mon, 5 Jul 2004 02:31:32 +0000 Subject: [PATCH] revisions to file open flag comments. btw, these are now also used by VFS This was SVN commit r631. --- source/lib/res/file.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/source/lib/res/file.h b/source/lib/res/file.h index 4c2b0d9d7b..edc566515d 100755 --- a/source/lib/res/file.h +++ b/source/lib/res/file.h @@ -47,14 +47,17 @@ struct File enum { - // open for writing - FILE_WRITE = 1, + // write-only access; otherwise, read only + FILE_WRITE = 0x01, - FILE_MEM_READONLY = 2, + // buffers returned may be read-only (allows some caching optimizations) + FILE_MEM_READONLY = 0x02, - // do not cache any part of the file - // (e.g. if caching on a higher level) - FILE_NO_CACHE = 4 + // don't cache the whole file, e.g. if kept in memory elsewhere anyway. + FILE_NOCACHE = 0x04, + + // random access hint + FILE_RANDOM = 0x08 };