LLVM OpenMP 20.0.0git
|
#include "kmp_i18n.h"
#include "kmp.h"
#include "kmp_debug.h"
#include "kmp_io.h"
#include "kmp_lock.h"
#include "kmp_os.h"
#include <errno.h>
#include <locale.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "kmp_environment.h"
#include "kmp_i18n_default.inc"
#include "kmp_str.h"
Go to the source code of this file.
Macros | |
#define | get_section(id) ((id) >> 16) |
#define | get_number(id) ((id)&0xFFFF) |
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 | |
static void | __kmp_msg (kmp_msg_severity_t severity, kmp_msg_t message, va_list ap) |
static void | __kmp_i18n_do_catopen () |
void | __kmp_i18n_catopen () |
void | __kmp_i18n_dump_catalog (kmp_str_buf_t *buffer) |
kmp_msg_t | __kmp_msg_format (unsigned id_arg,...) |
static char * | sys_error (int err) |
kmp_msg_t | __kmp_msg_error_code (int code) |
kmp_msg_t | __kmp_msg_error_mesg (char const *mesg) |
void | __kmp_msg (kmp_msg_severity_t severity, kmp_msg_t message,...) |
void | __kmp_fatal (kmp_msg_t message,...) |
Variables | |
kmp_msg_t | __kmp_msg_null = {kmp_mt_dummy, 0, NULL, 0} |
static char const * | no_message_available = "(No message available)" |
static volatile kmp_i18n_cat_status_t | status = KMP_I18N_CLOSED |
static kmp_bootstrap_lock_t | lock = KMP_BOOTSTRAP_LOCK_INITIALIZER(lock) |
Definition at line 34 of file kmp_i18n.cpp.
Definition at line 33 of file kmp_i18n.cpp.
typedef enum kmp_i18n_cat_status kmp_i18n_cat_status_t |
Definition at line 47 of file kmp_i18n.cpp.
enum kmp_i18n_cat_status |
Enumerator | |
---|---|
KMP_I18N_CLOSED | |
KMP_I18N_OPENED | |
KMP_I18N_ABSENT |
Definition at line 42 of file kmp_i18n.cpp.
Definition at line 864 of file kmp_i18n.cpp.
References __kmp_abort_process(), __kmp_msg(), __kmp_thread_sleep(), args, and kmp_ms_fatal.
Referenced by __kmp_check_stack_overlap(), __kmp_create_worker(), __kmp_dispatch_init_algorithm(), __kmp_dispatch_next_algorithm(), __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_initialize_system_tick(), __kmp_is_thread_alive(), __kmp_push_num_teams_51(), __kmp_reap_worker(), __kmp_register_library_startup(), __kmp_register_root(), __kmp_terminate_thread(), __kmp_thread_sleep(), and kmp_safe_raii_file_t::open().
void __kmp_i18n_catopen | ( | ) |
Definition at line 62 of file kmp_i18n.cpp.
References __kmp_acquire_bootstrap_lock(), __kmp_i18n_do_catopen(), __kmp_release_bootstrap_lock(), KMP_I18N_CLOSED, lock, and status.
|
static |
Referenced by __kmp_i18n_catopen().
void __kmp_i18n_dump_catalog | ( | kmp_str_buf_t * | buffer | ) |
Definition at line 593 of file kmp_i18n.cpp.
References __kmp_i18n_catgets(), __kmp_printf(), __kmp_str_buf_print(), and kmp_str_buf::str.
Referenced by __kmp_do_serial_initialize().
|
static |
Definition at line 789 of file kmp_i18n.cpp.
References __kmp_generate_warnings, __kmp_msg_format(), __kmp_printf(), __kmp_str_buf_cat(), __kmp_str_buf_free(), __kmp_str_buf_init, __kmp_str_free(), args, KMP_DEBUG_ASSERT, 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_msg::str, kmp_str_buf::str, and kmp_msg::type.
Referenced by __kmp_affinity_bind_thread(), __kmp_create_worker(), __kmp_fatal(), __kmp_msg(), __kmp_parse_single_omp_schedule(), __kmp_push_num_teams(), __kmp_push_num_teams_51(), __kmp_push_thread_limit(), __kmp_reserve_threads(), __kmp_set_schedule(), __kmp_stg_parse_barrier_branch_bit(), __kmp_stg_parse_barrier_pattern(), __kmp_stg_parse_blocktime(), and __kmp_stg_parse_bool().
void __kmp_msg | ( | kmp_msg_severity_t | severity, |
kmp_msg_t | message, | ||
... | |||
) |
Definition at line 857 of file kmp_i18n.cpp.
References __kmp_msg(), and args.
Definition at line 765 of file kmp_i18n.cpp.
References kmp_mt_syserr, KMP_STRLEN, kmp_msg::len, kmp_msg::num, kmp_msg::str, sys_error(), and kmp_msg::type.
Definition at line 777 of file kmp_i18n.cpp.
References __kmp_str_format(), kmp_mt_syserr, KMP_STRLEN, kmp_msg::len, kmp_msg::num, kmp_msg::str, and kmp_msg::type.
kmp_msg_t __kmp_msg_format | ( | unsigned | id_arg, |
... | |||
) |
Definition at line 624 of file kmp_i18n.cpp.
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_msg::str, kmp_str_buf::str, kmp_msg::type, and kmp_str_buf::used.
Referenced by __kmp_env_initialize(), __kmp_error_construct(), __kmp_error_construct2(), __kmp_msg(), and __kmp_pragma().
Definition at line 671 of file kmp_i18n.cpp.
References __kmp_str_format(), err, KMP_FATAL, KMP_INTERNAL_FREE, KMP_INTERNAL_MALLOC, and size.
Referenced by __kmp_msg_error_code().
kmp_msg_t __kmp_msg_null = {kmp_mt_dummy, 0, NULL, 0} |
Definition at line 36 of file kmp_i18n.cpp.
Referenced by __kmp_affinity_bind_thread(), __kmp_check_stack_overlap(), __kmp_create_worker(), __kmp_dispatch_init_algorithm(), __kmp_dispatch_next_algorithm(), __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_initialize_system_tick(), __kmp_is_thread_alive(), __kmp_parse_single_omp_schedule(), __kmp_push_num_teams(), __kmp_push_num_teams_51(), __kmp_push_thread_limit(), __kmp_reap_worker(), __kmp_register_library_startup(), __kmp_register_root(), __kmp_reserve_threads(), __kmp_set_schedule(), __kmp_stg_parse_barrier_branch_bit(), __kmp_stg_parse_barrier_pattern(), __kmp_stg_parse_blocktime(), __kmp_stg_parse_bool(), __kmp_terminate_thread(), __kmp_thread_sleep(), and kmp_safe_raii_file_t::open().
|
static |
Definition at line 57 of file kmp_i18n.cpp.
Referenced by __kmp_i18n_catopen(), __kmpc_destroy_lock(), and main().
|
static |
Definition at line 37 of file kmp_i18n.cpp.
|
static |
Definition at line 48 of file kmp_i18n.cpp.
Referenced by __kmp_barrier_template(), __kmp_clear_system_time(), __kmp_create_worker(), __kmp_disable(), __kmp_dispatch_next(), __kmp_dispatch_next_algorithm(), __kmp_elapsed(), __kmp_enable(), __kmp_enter_single(), __kmp_get_critical_section_ptr(), __kmp_get_load_balance(), __kmp_gtid_set_specific(), __kmp_i18n_catopen(), __kmp_initialize_system_tick(), __kmp_launch_worker(), __kmp_lock_suspend_mx(), __kmp_read_cpu_time(), __kmp_read_system_info(), __kmp_read_system_time(), __kmp_reap_worker(), __kmp_register_atfork(), __kmp_resume_template(), __kmp_runtime_destroy(), __kmp_runtime_initialize(), __kmp_set_stack_info(), __kmp_suspend_initialize(), __kmp_suspend_initialize_thread(), __kmp_suspend_template(), __kmp_suspend_uninitialize_thread(), __kmp_terminate_thread(), __kmp_thread_sleep(), __kmp_unlock_suspend_mx(), __kmpc_barrier_master(), __kmpc_masked(), __kmpc_master(), __kmps_get_wtime(), __kmps_init(), check_places(), KMP_API_NAME_GOMP_LOOP_DOACROSS_START(), KMP_API_NAME_GOMP_LOOP_ORDERED_START(), KMP_API_NAME_GOMP_LOOP_START(), KMP_API_NAME_GOMP_LOOP_ULL_DOACROSS_START(), KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_START(), KMP_API_NAME_GOMP_LOOP_ULL_START(), main(), kmp_hier_t< T >::next(), kmp_hier_top_unit_t< T >::set_next(), kmp_hier_top_unit_t< T >::set_next_hand_thread(), and topology_get_mask_from_file().