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.h File Reference

Definitions for the low-level utility routines. More...

#include <time.h>

Functions

int fesErrnoTran (void)
 Translate system error codes.
int fesNmsgErrTran (int nStat)
 Translate NMSG error codes.
int fesTimeStr (char *str, int leng, 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

Definitions for the low-level utility routines.

Author:
Owen H Saxton
$Id: fesUtil.h,v 1.5 2011/03/29 22:58:29 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