10 struct __locale_struct {
11 const struct __locale_map *volatile cat[6];
18 volatile int threads_minus_1;
22 struct __locale_struct global_locale;
26 #define PAGE_SIZE libc.page_size
30 #define ATTR_LIBC_VISIBILITY __attribute__((visibility("hidden")))
32 #define ATTR_LIBC_VISIBILITY
35 extern struct __libc __libc ATTR_LIBC_VISIBILITY;
38 extern size_t __hwcap ATTR_LIBC_VISIBILITY;
39 extern size_t __sysinfo ATTR_LIBC_VISIBILITY;
40 extern char *__progname, *__progname_full;
42 /* Designed to avoid any overhead in non-threaded processes */
43 void __lock(volatile int *) ATTR_LIBC_VISIBILITY;
44 void __unlock(volatile int *) ATTR_LIBC_VISIBILITY;
45 int __lockfile(FILE *) ATTR_LIBC_VISIBILITY;
46 void __unlockfile(FILE *) ATTR_LIBC_VISIBILITY;
47 #define LOCK(x) __lock(x)
48 #define UNLOCK(x) __unlock(x)
50 void __synccall(void (*)(void *), void *);
51 int __setxid(int, int, int, int);
53 extern char **__environ;
56 #define weak_alias(old, new) \
57 extern __typeof(old) new __attribute__((weak, alias(#old)))
60 #define LFS64_2(x, y) weak_alias(x, y)
63 #define LFS64(x) LFS64_2(x, x##64)