Add FILEIO_NONE access mode.
authorZachary T Welch <zw@superlucidity.net>
Sun, 8 Nov 2009 06:37:39 +0000 (22:37 -0800)
committerZachary T Welch <zw@superlucidity.net>
Mon, 16 Nov 2009 09:38:19 +0000 (01:38 -0800)
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.

src/helper/fileio.h

index 024ad0832b64673b6697c101419777c6746e6ae3..8cba926a087eb1dc523bf1b3e3e94720eef55348 100644 (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 */