mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user