LLVM OpenMP 22.0.0git
kmp_safe_c_api.h File Reference
#include <type_traits>
#include "kmp_platform.h"
#include <string.h>

Go to the source code of this file.

Macros

#define KMP_ALLOCA   alloca
#define KMP_MEMCPY_S(dst, bsz, src, cnt)
#define KMP_SNPRINTF   snprintf
#define KMP_SSCANF   sscanf
#define KMP_STRCPY_S(dst, bsz, src)
#define KMP_STRNCPY_S(dst, bsz, src, cnt)
#define KMP_STRNCAT_S(dst, bsz, src, cnt)
#define KMP_VSNPRINTF   vsnprintf
#define KMP_STRNCPY   strncpy
#define KMP_STRLEN   strlen
#define KMP_MEMCPY   memcpy

Functions

static void __kmp_strncpy_truncate (char *buffer, size_t buf_size, char const *src, size_t src_size)

Macro Definition Documentation

◆ KMP_ALLOCA

#define KMP_ALLOCA   alloca

◆ KMP_MEMCPY

◆ KMP_MEMCPY_S

#define KMP_MEMCPY_S ( dst,
bsz,
src,
cnt )
Value:
memcpy(dst, src, cnt)

Definition at line 64 of file kmp_safe_c_api.h.

Referenced by __kmp_realloc_task_threads_data(), __kmp_str_buf_detach(), and __kmp_str_buf_reserve().

◆ KMP_SNPRINTF

#define KMP_SNPRINTF   snprintf

◆ KMP_SSCANF

#define KMP_SSCANF   sscanf

Definition at line 66 of file kmp_safe_c_api.h.

Referenced by __kmp_register_library_startup(), and __kmpc_ok_to_fork().

◆ KMP_STRCPY_S

#define KMP_STRCPY_S ( dst,
bsz,
src )
Value:
strcpy(dst, src)

Definition at line 67 of file kmp_safe_c_api.h.

Referenced by __kmp_env_initialize(), __kmp_expand_host_name(), and __kmp_register_library_startup().

◆ KMP_STRLEN

◆ KMP_STRNCAT_S

#define KMP_STRNCAT_S ( dst,
bsz,
src,
cnt )
Value:
strncat(dst, src, cnt)

Definition at line 69 of file kmp_safe_c_api.h.

Referenced by __kmp_str_buf_cat(), and __kmp_str_buf_catbuf().

◆ KMP_STRNCPY

#define KMP_STRNCPY   strncpy

Definition at line 71 of file kmp_safe_c_api.h.

Referenced by __kmp_expand_file_name().

◆ KMP_STRNCPY_S

#define KMP_STRNCPY_S ( dst,
bsz,
src,
cnt )

◆ KMP_VSNPRINTF

#define KMP_VSNPRINTF   vsnprintf

Definition at line 70 of file kmp_safe_c_api.h.

Referenced by __kmp_str_buf_vprint(), __kmp_str_format(), and __kmp_vprintf().

Function Documentation

◆ __kmp_strncpy_truncate()

void __kmp_strncpy_truncate ( char * buffer,
size_t buf_size,
char const * src,
size_t src_size )
inlinestatic