hlrmisc.c File Reference

Miscelleanous routines. More...

#include <stdlib.h>
#include "hlrmisc.h"
#include "log.h"

Go to the source code of this file.

Functions

int hlr_system (char *cmd, int nonZeroOK)
 Execute shell command.


Detailed Description

Miscelleanous routines.

Author:
Adapted by Lukas Habegger (lukas.habegger@yale.edu)

Definition in file hlrmisc.c.


Function Documentation

int hlr_system ( char *  cmd,
int  nonZeroOK 
)

Execute shell command.

Parameters:
[in] cmd 
[in] nonZeroOK If 1, then a non-zero exit status from system is tolerated. If 0, then a non-zero exit status from system leads to a die()
Returns:
Exit status (0=OK). A non-zero exit status is only be returned if nonZeroOK=1
Note:
Exit status -1 indicates a serious condition of the operating system therefore causes a die() even if nonZeroOK is 1.

Definition at line 110 of file hlrmisc.c.


Generated on Fri Aug 7 15:46:43 2009 for BIOS by  doxygen 1.5.7.1