This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Open a configuration file
#include <cfgopen.h> FILE * fcfgopen( const char * path, const char * mode, int location, const char * historical, char * namebuf, int nblen );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
This function is in libc.a, but not in libc.so (in order to save space). |
The fcfgopen() function is similar to cfgopen() with these exceptions:
A valid fd if CFGFILE_NOFD isn't specified, a nonnegative value if CFGFILE_NOFD is specified, or -1 if an error occurs.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
mib.txt, snmpd.conf in the Utilities Reference