From da4cb3c029e7f271ee4fa7165ceefbef04d45e49 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Sat, 7 Nov 2009 22:37:39 -0800 Subject: [PATCH] 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. --- src/helper/fileio.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helper/fileio.h b/src/helper/fileio.h index 024ad0832b..8cba926a08 100644 --- a/src/helper/fileio.h +++ b/src/helper/fileio.h @@ -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 */ -- 2.30.2