|
tiny-shell 0.2
A mini shell project aiming to gain knowledge about Win32 and Linux API
|
#include "env.h"#include "../core/config.h"#include "../core/io_wrap.h"#include "../os/operations.h"#include <stdlib.h>
Go to the source code of this file.
Functions | |
| enum run_result | run_set_env (const os_char *name, const os_char *val) |
| Set current process's environment variable. | |
| enum run_result | run_unset_env (const os_char *name) |
| Unset current process's environment variable. | |
| enum run_result | run_get_all_env () |
| Set current process's environment variable. | |
| enum run_result | run_get_env (const os_char *name) |
| Set current process's environment variable. | |
| enum run_result run_get_all_env | ( | ) |
Set current process's environment variable.
Definition at line 15 of file env.c.
References format_output(), get_all_shell_env_display(), RUN_FAILED, and RUN_OK.
Referenced by invoke_runner().


| enum run_result run_get_env | ( | const os_char * | name | ) |
Set current process's environment variable.
Definition at line 26 of file env.c.
References ENV_VAR_BUFFER_SIZE, format_output(), get_shell_env(), RUN_FAILED, and RUN_OK.
Referenced by invoke_runner().


| enum run_result run_set_env | ( | const os_char * | name, |
| const os_char * | val ) |
Set current process's environment variable.
Definition at line 7 of file env.c.
References RUN_FAILED, RUN_OK, and set_shell_env().
Referenced by invoke_runner().


| enum run_result run_unset_env | ( | const os_char * | name | ) |
Unset current process's environment variable.
Definition at line 11 of file env.c.
References RUN_FAILED, RUN_OK, and unset_shell_env().
Referenced by invoke_runner().

