10 struct __locale_struct {
11 const struct __locale_map *volatile cat[6];
15 struct tls_module *next;
17 size_t len, size, align, offset;
24 volatile int threads_minus_1;
26 struct tls_module *tls_head;
27 size_t tls_size, tls_align, tls_cnt;
29 struct __locale_struct global_locale;
33 #define PAGE_SIZE libc.page_size
36 extern hidden struct __libc __libc;
39 void __init_libc(char **, char *);
40 void __init_tls(size_t *);
41 void __libc_start_init(void);
43 extern hidden size_t __hwcap;
44 extern hidden size_t __sysinfo;
45 extern char *__progname, *__progname_full;
47 extern hidden const char __libc_version[];
49 /* Designed to avoid any overhead in non-threaded processes */
50 hidden void __lock(volatile int *);
51 hidden void __unlock(volatile int *);
52 hidden int __lockfile(FILE *);
53 hidden void __unlockfile(FILE *);
54 #define LOCK(x) __lock(x)
55 #define UNLOCK(x) __unlock(x)
57 void __synccall(void (*)(void *), void *);
58 int __setxid(int, int, int, int);
61 #define LFS64_2(x, y) weak_alias(x, y)
64 #define LFS64(x) LFS64_2(x, x##64)