Add FILEIO_NONE access mode.

In some cases, the FILEIO_NONE access mode may be useful as a parameter
to indicate that file access should be disabled.  High-level routines can
use it to skip file access calls, as 'fileio_open' will fail presently
if called to open a file using this mode.
This commit is contained in:
Zachary T Welch 2009-11-07 22:37:39 -08:00
parent 51cd370b39
commit da4cb3c029

View File

@ -38,6 +38,7 @@ enum fileio_type
enum fileio_access
{
FILEIO_NONE, /* open without any access (invalid mode) */
FILEIO_READ, /* open for reading, position at beginning */
FILEIO_WRITE, /* open for writing, position at beginning */
FILEIO_READWRITE, /* open for writing, position at beginning, allow reading */