Go to the source code of this file.
typedef void(* PtrAllVoidFn) (void) |
bool AreProgramArgsSet |
( |
void |
| ) |
|
int ExitProgram |
( |
int |
ret | ) |
|
Win32: kills progam itself and ignores ret. Unix: uses exit(ret). Return value is convenience only, so you can use like: return exitProgram( retval );
void ForkProcess |
( |
void |
| ) |
|
const char* GetFullExecutablePath |
( |
void |
| ) |
|
returns full path to executable. setProgramArgs must be called for it to work.
const char* GetLastSystemErrorMessage |
( |
void |
| ) |
|
const char* GetLocalHostName |
( |
void |
| ) |
|
returns (as expected) local host name
const char* GetOSIdentifier |
( |
void |
| ) |
|
const char* getProcessNameForPID |
( |
int |
pid | ) |
|
returns null if process not found, otherwise returns the executable name
const char* GetProjectVersionName |
( |
void |
| ) |
|
const char* GetVCSVersion |
( |
void |
| ) |
|
Returns Subversion revision number or git commit hash
int InSysAdmMode |
( |
void |
| ) |
|
returns 0 unless in sysadm mode
bool isProcessAlive |
( |
int |
pid | ) |
|
returns 1 if the process is still running
Function will be called on 'ExitProgram'
void PutIsLittleEndian |
( |
unsigned char * |
| ) |
|
Puts into 1 byte: 0=SunSparc/SGI (big), 1=PC (little)
void SetInSysAdmMode |
( |
void |
| ) |
|
void SetProgramArgs |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
void sleepSeconds |
( |
double |
| ) |
|
puts current thread to sleep for (fraction of) seconds
void SwapBytes |
( |
void * |
, |
|
|
int |
nbytes |
|
) |
| |
nbytes=2,4,... e.g. nbytes=4: abcd becomes cdab