Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Function
int FILEIO_Initialize (void)
1.7.1.3.20 FILEIO_Reinitialize Function
Reinitialized the FILEIO library.
File
fileio_lfn.h
Syntax
int FILEIO_Reinitialize();
Returns
• If Success: FILEIO_RESULT_SUCCESS
• If Failure: FILEIO_RESULT_FAILURE
Description
Reinitialized the structures used by the FILEIO library.
Preconditions
FILEIO_Initialize must have been called.
Function
int FILEIO_Reinitialize (void)
1.7.1.3.21 FILEIO_Flush Function
Saves unwritten file data to the device without closing the file.
File
fileio_lfn.h
Syntax
int FILEIO_Flush(FILEIO_OBJECT * handle);
Returns
• If Success: FILEIO_RESULT_SUCCESS
• If Failure: FILEIO_RESULT_FAILURE
• Sets error code which can be retrieved with FILEIO_ErrorGet
• FILEIO_ERROR_WRITE - Data could not be written to the device.
• FILEIO_ERROR_BAD_CACHE_READ - The file's directory entry could not be cached.
Description
Saves unwritten file data to the device without closing the file. This function is useful if the user needs to continue writing to a
file but also wants to ensure that data isn't lost in the event of a reset or power loss condition.
Preconditions
The drive containing the file must be mounted and the file handle must represent a valid, opened file.
Parameters
Parameters Description
handle The handle of the file to flush.
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
58
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_fileio.pdf