
Name: |
int gfdOpenStatusFile (int chassis, int mode) | |
Inputs: |
int chassis |
|
int mode |
| |
Outputs: |
None |
|
Returns: |
Handle to the open status file |
|
|
-1 |
|
Includes: |
gfdstatu.h |
|
The gfdOpenStatusFile( ) function prepares a status file for reading by other functions. This routine creates the name of the status file and attempts to open it. The path for the status file is obtained from the GFAX environment variable. Low-level functions, such as gfdReadStatusFileHeader and gfdReadStatusFileRecord, cannot be used unless gfdOpenStatusFile is called first successfully.
#include "gfdstatu.h"
int chassis = 1; /* Default to one chassis*/
int status_fid;
status_fid = gfdOpenStatusFile(chassis,O_RDONLY);
if (status_fid < 0)
{
printf ("No status file open\n");
exit (1);
}
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation