GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FILE / V3-11-1 > file_open_test / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

file_open_test.c File Reference

FILE package unit tests for file open/close software. More...

#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <PBS/PBS.h>
#include <PBS/TASK.h>
#include <MSG/MSG_pubdefs.h>
#include <MSG/MSG_printProc.h>
#include <FBS/FBS_pubrtos.h>

Functions

unsigned int file_open_test (const char *i_file, const char *o_file)
 Test FILE_open()/FILE_close() operations.
int main (int pcnt, char *parm[])
 Program to drive the single threaded MSG test suite.


Detailed Description

FILE package unit tests for file open/close software.

CVS $Id: file_open_test.c,v 1.3 2011/03/29 01:15:18 apw Exp $
Author:
A.P.Waite

Function Documentation

unsigned int file_open_test ( const char *  i_file,
const char *  o_file 
)

Test FILE_open()/FILE_close() operations.

Parameters:
i_file (in) Input file name
o_file (in) Output file name
file_open_test() opens the input file (in whatever form) and copies it to the output file (in "regular" form).

Return values:
0 Success
-1 Failure

Referenced by main().

int main ( int  pcnt,
char *  parm[] 
)

Program to drive the single threaded MSG test suite.

Parameters:
pcnt (in) Number of argument tokens
parm (in) Pointers to argument tokens
Return values:
0 Success
1 Failure

References file_open_test().


Generated on Wed Nov 21 21:02:14 2012 by  doxygen 1.5.8