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:
parent
51cd370b39
commit
da4cb3c029
|
@ -38,6 +38,7 @@ enum fileio_type
|
||||||
|
|
||||||
enum fileio_access
|
enum fileio_access
|
||||||
{
|
{
|
||||||
|
FILEIO_NONE, /* open without any access (invalid mode) */
|
||||||
FILEIO_READ, /* open for reading, position at beginning */
|
FILEIO_READ, /* open for reading, position at beginning */
|
||||||
FILEIO_WRITE, /* open for writing, position at beginning */
|
FILEIO_WRITE, /* open for writing, position at beginning */
|
||||||
FILEIO_READWRITE, /* open for writing, position at beginning, allow reading */
|
FILEIO_READWRITE, /* open for writing, position at beginning, allow reading */
|
||||||
|
|
Loading…
Reference in New Issue