#include "kmp_environment.h"
#include "kmp_os.h"
#include "kmp.h"
#include "kmp_str.h"
#include "kmp_i18n.h"
Go to the source code of this file.
Functions | |
static void | ___kmp_env_blk_parse_string (kmp_env_blk_t *block, char const *env) |
static void | ___kmp_env_blk_parse_unix (kmp_env_blk_t *block, char **env) |
static void | ___kmp_env_blk_parse_windows (kmp_env_blk_t *block, char const *env) |
static int | ___kmp_env_var_cmp (kmp_env_var_t const *lhs, kmp_env_var_t const *rhs) |
void | __kmp_env_blk_free (kmp_env_blk_t *block) |
void | __kmp_env_blk_init (kmp_env_blk_t *block, char const *bulk) |
void | __kmp_env_blk_sort (kmp_env_blk_t *block) |
char const * | __kmp_env_blk_var (kmp_env_blk_t *block, char const *name) |
int | __kmp_env_exists (char const *name) |
void | __kmp_env_free (char const **value) |
char * | __kmp_env_get (char const *name) |
void | __kmp_env_set (char const *name, char const *value, int overwrite) |
void | __kmp_env_unset (char const *name) |
static void * | allocate (size_t size) |
static void ___kmp_env_blk_parse_string | ( | kmp_env_blk_t * | block, | |
char const * | env | |||
) | [static] |
Definition at line 333 of file kmp_environment.c.
References __kmp_str_format(), __kmp_str_split(), __kmp_str_token(), allocate(), __kmp_env_blk::bulk, __kmp_env_blk::count, KMP_DEBUG_ASSERT, __kmp_env_var::name, __kmp_env_var::value, and __kmp_env_blk::vars.
Referenced by __kmp_env_blk_init().
static void ___kmp_env_blk_parse_unix | ( | kmp_env_blk_t * | block, | |
char ** | env | |||
) | [static] |
Definition at line 481 of file kmp_environment.c.
References __kmp_str_split(), allocate(), __kmp_env_blk::bulk, __kmp_env_blk::count, i, __kmp_env_var::name, __kmp_env_var::value, and __kmp_env_blk::vars.
Referenced by __kmp_env_blk_init().
static void ___kmp_env_blk_parse_windows | ( | kmp_env_blk_t * | block, | |
char const * | env | |||
) | [static] |
Definition at line 406 of file kmp_environment.c.
References __kmp_str_split(), allocate(), __kmp_env_blk::bulk, __kmp_env_blk::count, __kmp_env_var::name, __kmp_env_var::value, and __kmp_env_blk::vars.
Referenced by __kmp_env_blk_init().
static int ___kmp_env_var_cmp | ( | kmp_env_var_t const * | lhs, | |
kmp_env_var_t const * | rhs | |||
) | [static] |
Definition at line 572 of file kmp_environment.c.
References __kmp_env_var::name.
Referenced by __kmp_env_blk_sort().
void __kmp_env_blk_free | ( | kmp_env_blk_t * | block | ) |
Definition at line 596 of file kmp_environment.c.
References __kmp_env_blk::bulk, __kmp_env_blk::count, KMP_INTERNAL_FREE, and __kmp_env_blk::vars.
Referenced by __kmp_env_initialize(), and __kmp_env_print().
void __kmp_env_blk_init | ( | kmp_env_blk_t * | block, | |
char const * | bulk | |||
) |
Definition at line 536 of file kmp_environment.c.
References ___kmp_env_blk_parse_string(), ___kmp_env_blk_parse_unix(), ___kmp_env_blk_parse_windows(), __kmp_msg(), __kmp_msg_null, KMP_ERR, kmp_ms_fatal, and KMP_MSG.
Referenced by __kmp_env_initialize(), and __kmp_env_print().
void __kmp_env_blk_sort | ( | kmp_env_blk_t * | block | ) |
Definition at line 580 of file kmp_environment.c.
References ___kmp_env_var_cmp(), __kmp_env_blk::count, and __kmp_env_blk::vars.
Referenced by __kmp_env_print().
char const* __kmp_env_blk_var | ( | kmp_env_blk_t * | block, | |
char const * | name | |||
) |
Definition at line 612 of file kmp_environment.c.
References __kmp_env_blk::count, i, __kmp_env_var::name, __kmp_env_var::value, and __kmp_env_blk::vars.
Referenced by __kmp_aux_env_initialize(), and __kmp_env_initialize().
int __kmp_env_exists | ( | char const * | name | ) |
Definition at line 212 of file kmp_environment.c.
References __kmp_msg(), __kmp_msg_null, KMP_ERR, kmp_ms_fatal, and KMP_MSG.
void __kmp_env_free | ( | char const ** | value | ) |
Definition at line 201 of file kmp_environment.c.
References KMP_DEBUG_ASSERT, and KMP_INTERNAL_FREE.
Referenced by __kmp_do_serial_initialize().
char* __kmp_env_get | ( | char const * | name | ) |
Definition at line 129 of file kmp_environment.c.
References __kmp_msg(), __kmp_msg_null, KMP_ERR, KMP_FATAL, KMP_INTERNAL_FREE, KMP_INTERNAL_MALLOC, kmp_ms_fatal, and KMP_MSG.
Referenced by __kmp_do_serial_initialize(), __kmp_register_library_startup(), and __kmp_unregister_library().
void __kmp_env_set | ( | char const * | name, | |
char const * | value, | |||
int | overwrite | |||
) |
Definition at line 242 of file kmp_environment.c.
References __kmp_msg(), __kmp_msg_null, KMP_ERR, KMP_HNT, kmp_ms_fatal, and KMP_MSG.
Referenced by __kmp_register_library_startup().
void __kmp_env_unset | ( | char const * | name | ) |
Definition at line 296 of file kmp_environment.c.
References __kmp_msg(), __kmp_msg_null, KMP_ERR, kmp_ms_fatal, and KMP_MSG.
Referenced by __kmp_register_library_startup(), and __kmp_unregister_library().
static void* allocate | ( | size_t | size | ) | [inline, static] |
Definition at line 117 of file kmp_environment.c.
References KMP_FATAL, and KMP_INTERNAL_MALLOC.
Referenced by ___kmp_env_blk_parse_string(), ___kmp_env_blk_parse_unix(), and ___kmp_env_blk_parse_windows().