INFORMIX
DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home Contents Index Master Index New Book

mi_file_allocate()

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

Syntax

Usage

This file-support function can access operating-system files on the server computer from a DataBlade API program that is running in the database server.

You must call the mi_file_allocate() function if you use operating-system facilities such as UNIX open() or fopen(), rather than mi_file_open(), from a DataBlade API application running in the database server. If you use mi_file_open() to open files, you do not have to call mi_file_allocate().

Return Values

On success, returns the number of file descriptors allocated; on failure, returns MI_ERROR.

Related Topics

For additional information, see the description of the mi_file_open() function.




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.