#include "rtxsrc/osSysTypes.h"
#include "rtxsrc/rtxExternDefs.h"
Go to the source code of this file.
|
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...
|
|
◆ 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
-
name | Name 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
-
name | Name 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
-
name | Name of environment variable to test. |
value | Value to which variable should be set. |
overwrite | If 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.