GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QCFG / V0-0-2

Constituent: qcfg     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

fi.c File Reference

Wrapper functions to stdio calls for reading a file. More...

#include "fi_p.h"
#include "error.h"
#include "PBS/BSWP.h"
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

Include dependency graph for fi.c:


Functions

unsigned file_open (int *fd, const char *name)
 Open the file for reading and verify the version information.
unsigned file_close (int fd)
 Closes the file.

Detailed Description

Wrapper functions to stdio calls for reading a file.

Author:
James Swain -- jswain@slac.stanford.edu

Function Documentation

unsigned file_close int  fd  ) 
 

Closes the file.

Parameters:
fd File descriptor of the file to close
Return values:
RIMG_FILE_CLOSE if the file close failed
QCFG_SUCCESS if all goes well

unsigned file_open int *  fd,
const char *  name
 

Open the file for reading and verify the version information.

Parameters:
fd Pointer to location to place the file descriptor
name Full pathname of the file to open
Return values:
QCFG_SUCCESS if the file opens for reading
RIM_FILE_OPEN if the file fails to open
QCFG_FILE_VERSION the version information at the head of the file is inconsisten with the current LATC version


Generated on Wed May 3 23:09:20 2006 by  doxygen 1.4.4