GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FES / V6-5-0 > fes_ux / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

fesUtil.c File Reference

Low-level front-end simulator utility routines. More...

#include <fesUtil.h>
#include <fesParm.h>
#include <fesMsgs.h>
#include <EMSG/EMSG_pubdefs.h>
#include <NMSG/nmsgLib.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <time.h>
#include <VBI/vxwdef.h>

Functions

int fesErrnoTran (void)
 Translate system error codes.
int fesNmsgErrTran (int nStat)
 Translate NMSG error codes.
int fesTimeStr (char *str, int leng, const time_t tval)
 Format a time value as a string.
int fesEtimeStr (char *str, int leng, int tval)
 Format an elapsed time string.


Detailed Description

Low-level front-end simulator utility routines.

Author:
Owen H Saxton
$Id: fesUtil.c,v 1.6 2011/03/29 22:58:17 saxton Exp $

Function Documentation

int fesErrnoTran ( void   ) 

Translate system error codes.

This routine translate the value in errno to a FES status code.

Returns:
The translated message code.

Referenced by fesFileDiskInfoGet(), fesFileRead(), and fesFileWrite().

int fesEtimeStr ( char *  str,
int  leng,
int  tval 
)

Format an elapsed time string.

This routine formats an elapsed time into a string of the form ddd hh:mm:ss.

Parameters:
str The address of the area to receive the formatted time.
leng The size of the string area.
tval The elapsed time value to be formatted.
Returns:
The number of bytes in the formatted string.

int fesNmsgErrTran ( int  nStat  ) 

Translate NMSG error codes.

This routine translates a status code returned by an NMSG routine to a FES status code.

Parameters:
nStat The NMSG status code to be translated.
Returns:
The translated message code.

Referenced by fesFileRead(), fesFileSeek(), and fesFileStat().

int fesTimeStr ( char *  str,
int  leng,
const time_t  tval 
)

Format a time value as a string.

This routine formats a time into a standard time string.

Parameters:
str The address of the area to receive the formatted time.
leng The size of the string area.
tval The time value to be formatted.
Returns:
The number of bytes in the formatted string.

Referenced by fesDataShow(), fesFileShow(), and fesFileStatShow().


Generated on Sat Apr 9 19:57:47 2011 by  doxygen 1.5.8