|
The mi_file_allocate() function ensures that a specified number of files are available to be opened.
The mi_file_allocate() function allocates num_files number of file descriptors for use with operating-system calls such as UNIX open() or fopen().
Tip: Informix provides the mi_file_allocate() function for backward compatibility only. This function is no longer required for file access in DataBlade API modules. In new code, use DataBlade API file-access functions such as mi_file_open() and mi_file_close().
This function does not perform any tasks when called within a user-defined routine.
| >=0 | is the number of file descriptors that mi_file_allocate() has allocated. |
| MI_ERROR | indicates that the function was not successful. |
The mi_file_allocate() function does not throw an MI_Exception event when it encounters a runtime error. Therefore, it does not cause callbacks to be invoked.
See the description of the mi_file_open() function.