[Previous] [Contents] [Next]

fcfgopen()

Open a configuration file

Synopsis:

#include <cfgopen.h>

FILE * fcfgopen( const char * path,
                 const char * mode, 
                 int location,
                 const char * historical, 
                 char * namebuf, 
                 int nblen );

Library:

libc

Description:

The fcfgopen() function is similar to cfgopen() with these exceptions:

mode
The mode string describes the mode to open in. See fopen().
location
Describes how the path is constructed. See the Search condition flags section in cfgopen().

Returns:

A valid fd if CFGFILE_NOFD isn't specified, a nonnegative value if CFGFILE_NOFD is specified, or -1 if an error occurs.

Classification:

QNX 6

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

cfgopen(), confstr()

mib.txt, snmpd.conf in the Utilities reference


[Previous] [Contents] [Next]