Programming Guide |
Sets the file I/O error
int sm_fio_error_set(int new_error);
new_error
- The error code to set, one of the file I/O error codes shown in the Returns section below.
- The value returned by the last call to a file I/O function, one of the following:
- -1
SMFIO_INVALID_HANDLE
: Invalid file handle.
- -2
SMFIO_HANDLE_CLOSE
: Handle points to closed file.
- -3
SMFIO_EOF
: Already at end of file.
- -5
SMFIO_INVALID_MODE
: Invalid mode specified for open operation.
- -6
SMFIO_NO_HANDLES
: All available file handles currently in use.
- -7
SMFIO_OPEN_ERROR
: Unable to open the file—for example, because it does not exist or is protected.
- -8
SMFIO_FIELD_ERROR
: Nonexistent field.
- -9
SMFIO_FILE_TRUNCATE
: Array not large enough to accept all file data; partial read was successful.
sm_fio_error_set
sets the error code for Panther's file I/O processing functions. Use this function to clear the last-reported error.For an example of this function, refer to sm_fio_error.