GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
QCFG / V0-0-1
Constituent: qcfg     Tag: linux-gcc
Interface Data Structures File List Data Fields Globals
fo.c File Reference
Wrapper functions to stdio calls for creating a file. More...
#include "fo_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 fo.c:
|
Functions |
| unsigned | file_create (int *fd, const char *name) |
| | Create a new file and insert version information.
|
| unsigned | file_finish (int fd) |
| | Closes the file.
|
Detailed Description
Wrapper functions to stdio calls for creating a file.
- Author:
- James Swain -- jswain@slac.stanford.edu
Function Documentation
| unsigned file_create |
( |
int * |
fd, |
|
|
const char * |
name |
|
) |
|
|
|
|
Create a new file and insert version information.
- Parameters:
-
| fd | Pointer to the location to place the file descriptor |
| name | Full pathname of the file to open |
- Return values:
-
| QCFG_SUCCESS | if the file opens successfully for writing |
| RIM_FILE_WRITE | if writing the version information to the file fails |
| RIM_FILE_OPEN | if the file fails to open |
|
| unsigned file_finish |
( |
int |
fd |
) |
|
|
|
|
Closes the file.
- Parameters:
-
| fd | File descriptor of the file to close |
- Return values:
-
| RIM_FILE_CLOSE | if the file close failed |
| QCFG_SUCCESS | if all goes well |
|
Generated on Fri Apr 14 00:29:34 2006 by
1.4.4