10 struct __locale_struct {
13 struct __locale_map *cat[4];
17 int has_thread_pointer;
22 volatile int threads_minus_1;
27 volatile int uselocale_cnt;
28 volatile int bytelocale_cnt_minus_1;
29 struct __locale_struct global_locale;
32 extern size_t __hwcap;
35 #define PAGE_SIZE libc.page_size
38 #if !defined(__PIC__) || (100*__GNUC__+__GNUC_MINOR__ >= 303 && !defined(__PCC__))
42 #define BROKEN_VISIBILITY 1
44 #define ATTR_LIBC_VISIBILITY __attribute__((visibility("hidden")))
46 #define ATTR_LIBC_VISIBILITY
49 extern struct __libc __libc ATTR_LIBC_VISIBILITY;
54 #define USE_LIBC_ACCESSOR
55 #define ATTR_LIBC_VISIBILITY
56 extern struct __libc *__libc_loc(void) __attribute__((const));
57 #define libc (*__libc_loc())
62 /* Designed to avoid any overhead in non-threaded processes */
63 void __lock(volatile int *) ATTR_LIBC_VISIBILITY;
64 void __unlock(volatile int *) ATTR_LIBC_VISIBILITY;
65 int __lockfile(FILE *) ATTR_LIBC_VISIBILITY;
66 void __unlockfile(FILE *) ATTR_LIBC_VISIBILITY;
67 #define LOCK(x) __lock(x)
68 #define UNLOCK(x) __unlock(x)
70 void __synccall(void (*)(void *), void *);
71 int __setxid(int, int, int, int);
73 extern char **__environ;
76 #define weak_alias(old, new) \
77 extern __typeof(old) new __attribute__((weak, alias(#old)))
80 #define LFS64_2(x, y) weak_alias(x, y)
83 #define LFS64(x) LFS64_2(x, x##64)