LLVM OpenMP 22.0.0git
kmp_i18n.cpp File Reference
#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)
#define get_number(id)

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 charsys_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)

Macro Definition Documentation

◆ get_number

#define get_number ( id)
Value:
((id)&0xFFFF)

Definition at line 34 of file kmp_i18n.cpp.

◆ get_section

#define get_section ( id)
Value:
((id) >> 16)

Definition at line 33 of file kmp_i18n.cpp.

Typedef Documentation

◆ kmp_i18n_cat_status_t

Definition at line 47 of file kmp_i18n.cpp.

Enumeration Type Documentation

◆ kmp_i18n_cat_status

Enumerator
KMP_I18N_CLOSED 
KMP_I18N_OPENED 
KMP_I18N_ABSENT 

Definition at line 42 of file kmp_i18n.cpp.

Function Documentation

◆ __kmp_fatal()

◆ __kmp_i18n_catopen()

◆ __kmp_i18n_do_catopen()

void __kmp_i18n_do_catopen ( )
static

Referenced by __kmp_i18n_catopen().

◆ __kmp_i18n_dump_catalog()

void __kmp_i18n_dump_catalog ( kmp_str_buf_t * buffer)

◆ __kmp_msg() [1/2]

◆ __kmp_msg() [2/2]

void __kmp_msg ( kmp_msg_severity_t severity,
kmp_msg_t message,
... )

Definition at line 868 of file kmp_i18n.cpp.

References __kmp_msg(), and args.

◆ __kmp_msg_error_code()

kmp_msg_t __kmp_msg_error_code ( int code)

◆ __kmp_msg_error_mesg()

kmp_msg_t __kmp_msg_error_mesg ( char const * mesg)

◆ __kmp_msg_format()

◆ sys_error()

char * sys_error ( int err)
static

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().

Variable Documentation

◆ __kmp_msg_null

◆ lock

◆ no_message_available

char const* no_message_available = "(No message available)"
static

Definition at line 37 of file kmp_i18n.cpp.

◆ status

volatile kmp_i18n_cat_status_t status = KMP_I18N_CLOSED
static

Definition at line 48 of file kmp_i18n.cpp.

Referenced by __kmp_atomic_resume_64< false, true >(), __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_init_nest_lock_with_hint(), __kmpc_masked(), __kmpc_master(), __kmps_get_wtime(), __kmps_init(), check_places(), check_places(), check_places(), 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(), 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().