10 struct __locale_struct
{
11 const struct __locale_map
*cat
[6];
15 struct tls_module
*next
;
17 size_t len
, size
, align
, offset
;
21 #ifdef __wasilibc_unmodified_upstream
24 #if defined(__wasilibc_unmodified_upstream) || defined(_REENTRANT)
27 #ifdef __wasilibc_unmodified_upstream // WASI doesn't currently use any code that needs "secure" mode
30 #if defined(__wasilibc_unmodified_upstream) || defined(_REENTRANT)
31 volatile signed char need_locks
;
34 #ifdef __wasilibc_unmodified_upstream // WASI has no auxv
37 #ifdef __wasilibc_unmodified_upstream // WASI use different TLS implement
38 struct tls_module
*tls_head
;
39 size_t tls_size
, tls_align
, tls_cnt
;
41 #ifdef __wasilibc_unmodified_upstream // WASI doesn't get the page size from auxv
44 struct __locale_struct global_locale
;
45 #if defined(__wasilibc_unmodified_upstream) || defined(_REENTRANT)
47 struct __locale_struct
*current_locale
;
52 #define PAGE_SIZE libc.page_size
55 extern hidden
struct __libc __libc
;
58 hidden
void __init_libc(char **, char *);
59 hidden
void __init_tls(size_t *);
60 hidden
void __init_ssp(void *);
61 hidden
void __libc_start_init(void);
62 hidden
void __funcs_on_exit(void);
63 hidden
void __funcs_on_quick_exit(void);
64 hidden
void __libc_exit_fini(void);
65 hidden
void __fork_handler(int);
67 extern hidden
size_t __hwcap
;
68 extern hidden
size_t __sysinfo
;
69 extern char *__progname
, *__progname_full
;
71 extern hidden
const char __libc_version
[];
73 hidden
void __synccall(void (*)(void *), void *);
74 hidden
int __setxid(int, int, int, int);