INtime SDK Help
_set_info

Modifies the maximum number of file handles for the current process.

#include <rtext.h>

int _set_info (unsigned int count, _CINFO_STRUCT *cinfo);

Parameters

count
Number of elements in _CINFO_STRUCT
cinfo
Pointer to CINFO_STRUCT:
typedef struct _cinfo_struct32f {
        int _reserved;
        unsigned long   accounting;
        unsigned short  num_accounting;
        unsigned short  num_clib_functs;
        unsigned long   flags;
        unsigned long   global_flags;
        unsigned short  num_files;
} _CINFO_STRUCT;

Elements

accounting Pointer to an array containing a counter for each configured function in the C library. The C library uses this array to keep track of the number of times a function has been called since the library was loaded, and to indicate whether or not a function is configured.
num_accounting Size of the accounting array.
num_clib_functs Number of functions implemented in this version of the C Library.
flags One entry per function indicating whether the function is configured.
num_files Number of entries in the file handle table for this process.

Remarks

Call _get_info to obtain the current values before calling _set_info to change the num_files value.

Return Values

0 (zero)
Success.
-1
Failure. The value of count is too large.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/rtext.h rtext.h clib.lib
See Also