#include "kmp_i18n.h"
#include "kmp_os.h"
#include "kmp_debug.h"
#include "kmp.h"
#include "kmp_lock.h"
#include "kmp_io.h"
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <locale.h>
#include <stdarg.h>
#include "kmp_i18n_default.inc"
#include "kmp_str.h"
#include "kmp_environment.h"
Go to the source code of this file.
Defines | |
#define | get_number(id) ( (id) & 0xFFFF ) |
#define | get_section(id) ( (id) >> 16 ) |
Typedefs | |
typedef enum kmp_i18n_cat_status | kmp_i18n_cat_status_t |
Enumerations | |
enum | kmp_i18n_cat_status { KMP_I18N_CLOSED, KMP_I18N_OPENED, KMP_I18N_ABSENT } |
Functions | |
void | __kmp_i18n_catopen () |
static void | __kmp_i18n_do_catopen () |
void | __kmp_i18n_dump_catalog (kmp_str_buf_t &buffer) |
void | __kmp_msg (kmp_msg_severity_t severity, kmp_msg_t message,...) |
kmp_msg_t | __kmp_msg_error_code (int code) |
kmp_msg_t | __kmp_msg_error_mesg (char const *mesg) |
kmp_msg_t | __kmp_msg_format (kmp_i18n_id_t id,...) |
static char * | sys_error (int err) |
Variables | |
kmp_msg_t | __kmp_msg_empty = { kmp_mt_dummy, 0, "", 0 } |
kmp_msg_t | __kmp_msg_null = { kmp_mt_dummy, 0, NULL, 0 } |
static kmp_bootstrap_lock_t | lock = KMP_BOOTSTRAP_LOCK_INITIALIZER( lock ) |
static char const * | no_message_available = "(No message available)" |
static volatile kmp_i18n_cat_status_t | status = KMP_I18N_CLOSED |
#define get_number | ( | id | ) | ( (id) & 0xFFFF ) |
Definition at line 69 of file kmp_i18n.c.
#define get_section | ( | id | ) | ( (id) >> 16 ) |
Definition at line 68 of file kmp_i18n.c.
typedef enum kmp_i18n_cat_status kmp_i18n_cat_status_t |
Definition at line 80 of file kmp_i18n.c.
enum kmp_i18n_cat_status |
Definition at line 75 of file kmp_i18n.c.
void __kmp_i18n_catopen | ( | ) |
Definition at line 98 of file kmp_i18n.c.
References __kmp_acquire_bootstrap_lock(), __kmp_i18n_do_catopen(), __kmp_release_bootstrap_lock(), KMP_I18N_CLOSED, and status.
static void __kmp_i18n_do_catopen | ( | ) | [static] |
Referenced by __kmp_i18n_catopen().
void __kmp_i18n_dump_catalog | ( | kmp_str_buf_t & | buffer | ) |
Definition at line 699 of file kmp_i18n.c.
References __kmp_i18n_catgets(), __kmp_printf(), __kmp_str_buf_print(), and kmp_str_buf::str.
Referenced by __kmp_do_serial_initialize().
void __kmp_msg | ( | kmp_msg_severity_t | severity, | |
kmp_msg_t | message, | |||
... | ||||
) |
Definition at line 920 of file kmp_i18n.c.
References __kmp_abort_process(), __kmp_generate_warnings, __kmp_msg_format(), __kmp_printf(), __kmp_str_buf_cat(), __kmp_str_buf_free(), __kmp_str_buf_init, __kmp_thread_sleep(), args, KMP_DEBUG_ASSERT, KMP_INTERNAL_FREE, kmp_ms_fatal, kmp_ms_inform, kmp_ms_warning, kmp_mt_dummy, kmp_mt_hint, kmp_mt_syserr, kmp_warnings_off, kmp_msg::len, kmp_msg::num, kmp_str_buf::str, kmp_msg::str, and kmp_msg::type.
Referenced by __kmp_affinity_bind_thread(), __kmp_change_thread_affinity_mask(), __kmp_check_stack_overlap(), __kmp_create_monitor(), __kmp_create_worker(), __kmp_dispatch_init(), __kmp_do_serial_initialize(), __kmp_env_blk_init(), __kmp_env_exists(), __kmp_env_get(), __kmp_env_set(), __kmp_env_unset(), __kmp_error_construct(), __kmp_error_construct2(), __kmp_free_handle(), __kmp_get_system_affinity(), __kmp_initialize_system_tick(), __kmp_is_thread_alive(), __kmp_launch_monitor(), __kmp_reap_monitor(), __kmp_reap_worker(), __kmp_register_library_startup(), __kmp_register_root(), __kmp_reserve_threads(), __kmp_set_system_affinity(), __kmp_stg_parse_barrier_branch_bit(), __kmp_stg_parse_barrier_pattern(), __kmp_stg_parse_blocktime(), __kmp_stg_parse_bool(), __kmp_stg_parse_omp_schedule(), __kmp_terminate_thread(), __kmp_thread_sleep(), and __kmpc_threadprivate_cached().
kmp_msg_t __kmp_msg_error_code | ( | int | code | ) |
Definition at line 888 of file kmp_i18n.c.
References kmp_mt_syserr, kmp_msg::len, kmp_msg::num, kmp_msg::str, sys_error(), and kmp_msg::type.
kmp_msg_t __kmp_msg_error_mesg | ( | char const * | mesg | ) |
Definition at line 904 of file kmp_i18n.c.
References __kmp_str_format(), kmp_mt_syserr, kmp_msg::len, kmp_msg::num, kmp_msg::str, and kmp_msg::type.
kmp_msg_t __kmp_msg_format | ( | kmp_i18n_id_t | id, | |
... | ||||
) |
Definition at line 734 of file kmp_i18n.c.
References __kmp_i18n_catgets(), __kmp_str_buf_cat(), __kmp_str_buf_detach(), __kmp_str_buf_init, __kmp_str_buf_vprint(), args, kmp_msg::len, kmp_msg::num, kmp_str_buf::str, kmp_msg::str, kmp_msg::type, and kmp_str_buf::used.
Referenced by __kmp_error_construct(), __kmp_error_construct2(), __kmp_msg(), and __kmp_pragma().
static char* sys_error | ( | int | err | ) | [static] |
Definition at line 787 of file kmp_i18n.c.
References __kmp_str_format(), KMP_INTERNAL_FREE, and KMP_INTERNAL_MALLOC.
Referenced by __kmp_msg_error_code().
kmp_msg_t __kmp_msg_empty = { kmp_mt_dummy, 0, "", 0 } |
Definition at line 71 of file kmp_i18n.c.
kmp_msg_t __kmp_msg_null = { kmp_mt_dummy, 0, NULL, 0 } |
Definition at line 72 of file kmp_i18n.c.
Referenced by __kmp_affinity_bind_thread(), __kmp_change_thread_affinity_mask(), __kmp_check_stack_overlap(), __kmp_create_monitor(), __kmp_create_worker(), __kmp_dispatch_init(), __kmp_do_serial_initialize(), __kmp_env_blk_init(), __kmp_env_exists(), __kmp_env_get(), __kmp_env_set(), __kmp_env_unset(), __kmp_error_construct(), __kmp_error_construct2(), __kmp_free_handle(), __kmp_get_system_affinity(), __kmp_initialize_system_tick(), __kmp_is_thread_alive(), __kmp_launch_monitor(), __kmp_reap_monitor(), __kmp_reap_worker(), __kmp_register_library_startup(), __kmp_register_root(), __kmp_reserve_threads(), __kmp_set_system_affinity(), __kmp_stg_parse_barrier_branch_bit(), __kmp_stg_parse_barrier_pattern(), __kmp_stg_parse_blocktime(), __kmp_stg_parse_bool(), __kmp_stg_parse_omp_schedule(), __kmp_terminate_thread(), __kmp_thread_sleep(), and __kmpc_threadprivate_cached().
kmp_bootstrap_lock_t lock = KMP_BOOTSTRAP_LOCK_INITIALIZER( lock ) [static] |
Definition at line 92 of file kmp_i18n.c.
char const* no_message_available = "(No message available)" [static] |
Definition at line 73 of file kmp_i18n.c.
volatile kmp_i18n_cat_status_t status = KMP_I18N_CLOSED [static] |
Definition at line 81 of file kmp_i18n.c.
Referenced by __kmp_barrier(), __kmp_clear_system_time(), __kmp_dispatch_next(), __kmp_elapsed(), __kmp_enter_single(), __kmp_get_critical_section_ptr(), __kmp_get_load_balance(), __kmp_i18n_catopen(), __kmp_initialize_system_tick(), __kmp_is_address_mapped(), __kmp_launch_monitor(), __kmp_read_cpu_time(), __kmp_read_system_time(), __kmp_reap_monitor(), __kmp_resume(), __kmp_suspend(), __kmp_thread_sleep(), __kmpc_barrier_master(), __kmpc_master(), __kmps_get_wtime(), __kmps_init(), GOMP_sections_next(), and GOMP_sections_start().