informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_file_allocate()

The mi_file_allocate() function ensures that a specified number of files are available to be opened.

Syntax

Usage

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.

Return Values

>=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.

Related Topics

See the description of the mi_file_open() function.


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved