Function smt387fs_open_read – Sundance SMT387-FS User Manual
Page 16
Function smt387fs_open_read
Synopsis
int smt387fs_open_read (char *filename, smt387fs_stream_handle *handle);
Definition
Opens the named file for read. If successful, the object referred to by handle is made
a handle for the open file. The library supports a maximum of 10 files open at any
time; trying to open more than this will result in the ??? error. However, this value
may be further restricted if insufficient memory has been made available to the library
in the initial call to smt387fs_init; in this case, attempting to open too many files may
cause the library to pause waiting for additional resources, which will never arrive. If
this occurs, try increasing the amount of memory passed to smt387fs_init.
Synchronization
Thread safe.
Error Conditions
FS_BAD_NAME if the file name provided is not a valid name.
SMT387FS_FILE_NOEXIST if the file does not exist.
SMT387FS_FILE_OPEN if the file is currently open for reading or writing.
??? Too many open files.
Otherwise FS_OK.
Page 16