XBinder  Version 2.9.x
Functions
rtxSysInfo.h File Reference
#include "rtxsrc/osSysTypes.h"
#include "rtxsrc/rtxExternDefs.h"

Go to the source code of this file.

Functions

EXTERNRT int rtxGetPID ()
 This function return the process ID of the currently running process. More...
 
EXTERNRT char * rtxEnvVarDup (const char *name)
 This function make a duplicate copy of an environment variable. More...
 
EXTERNRT OSBOOL rtxEnvVarIsSet (const char *name)
 This function tests if an environment variable is set. More...
 
EXTERNRT int rtxEnvVarSet (const char *name, const char *value, int overwrite)
 This function sets an environment variable to the given value. More...
 

Function Documentation

◆ rtxEnvVarDup()

EXTERNRT char* rtxEnvVarDup ( const char *  name)

This function make a duplicate copy of an environment variable.

The variable should be used using the standard C RTL free function (note: the OSCRTLFREE macro may be used to abstract the free function).

Parameters
nameName of environment variable to duplicate.
Returns
The duplicated environment variable value.

◆ rtxEnvVarIsSet()

EXTERNRT OSBOOL rtxEnvVarIsSet ( const char *  name)

This function tests if an environment variable is set.

Parameters
nameName of environment variable to test.
Returns
True if environmental variable is set; false otherwise.

◆ rtxEnvVarSet()

EXTERNRT int rtxEnvVarSet ( const char *  name,
const char *  value,
int  overwrite 
)

This function sets an environment variable to the given value.

Parameters
nameName of environment variable to test.
valueValue to which variable should be set.
overwriteIf non-zero, overwrite existing variable with value.
Returns
Status of operation, 0 = success.

◆ rtxGetPID()

EXTERNRT int rtxGetPID ( )

This function return the process ID of the currently running process.

Returns
Process ID of currently running process.