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
37 #define ATTR_LIBC_VISIBILITY __attribute__((visibility("hidden")))
39 #define ATTR_LIBC_VISIBILITY
42 extern struct __libc __libc ATTR_LIBC_VISIBILITY;
45 extern size_t __hwcap ATTR_LIBC_VISIBILITY;
46 extern size_t __sysinfo ATTR_LIBC_VISIBILITY;
47 extern char *__progname, *__progname_full;
49 /* Designed to avoid any overhead in non-threaded processes */
50 void __lock(volatile int *) ATTR_LIBC_VISIBILITY;
51 void __unlock(volatile int *) ATTR_LIBC_VISIBILITY;
52 int __lockfile(FILE *) ATTR_LIBC_VISIBILITY;
53 void __unlockfile(FILE *) ATTR_LIBC_VISIBILITY;
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);
60 extern char **__environ;
63 #define weak_alias(old, new) \
64 extern __typeof(old) new __attribute__((weak, alias(#old)))
67 #define LFS64_2(x, y) weak_alias(x, y)
70 #define LFS64(x) LFS64_2(x, x##64)