From: Zachary T Welch Date: Sun, 8 Nov 2009 06:37:39 +0000 (-0800) Subject: Add FILEIO_NONE access mode. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=da4cb3c029e7f271ee4fa7165ceefbef04d45e49;p=fw%2Fopenocd 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. --- diff --git a/src/helper/fileio.h b/src/helper/fileio.h index 024ad0832..8cba926a0 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 */