MentOS
0.8.0
The Mentoring Operating System
|
Defines the functions used to manipulate the environmental variables. More...
Functions | |
static int | __find_entry (const char *name, const size_t name_len) |
Finds the entry in the environ. More... | |
static void | __clone_environ (void) |
Makes a clone of the current environ. | |
int | setenv (const char *name, const char *value, int replace) |
Tries to adds the variable to the environment. More... | |
int | unsetenv (const char *name) |
Tries to remove the variable from the environment. More... | |
char * | getenv (const char *name) |
Returns the value of the given variable. More... | |
Variables | |
char ** | environ |
Reference to the environ variable in setenv.c . | |
static char ** | __environ = NULL |
Global environ list. | |
static size_t | __environ_size = 0 |
Size of the global environ list. | |
Defines the functions used to manipulate the environmental variables.
|
inlinestatic |
Finds the entry in the environ.
name | the name of the entry we are looking for. |
name_len | the length of the name we received. |
char* getenv | ( | const char * | name | ) |
Returns the value of the given variable.
name | Name of the variable. |
int setenv | ( | const char * | name, |
const char * | value, | ||
int | overwrite | ||
) |
Tries to adds the variable to the environment.
name | Name of the variable. |
value | Value of the variable. |
overwrite | Override existing variable value or not. |
int unsetenv | ( | const char * | name | ) |
Tries to remove the variable from the environment.
name | Name of the variable. |