Function smt387fs_create_write – Sundance SMT387-FS User Manual
Page 15
Function smt387fs_create_write
Synopsis
int smt387fs_create_write (char *filename, smt387fs_stream_handle *handle);
Definition
Creates a new file and opens it for writing. 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_EXISTS if the named file already exists.
FS_NO_SPACE if the file system is full and the directory needs to be extended in
order to create this file.
??? Too many open files.
Otherwise FS_OK.
Page 15