10 struct __locale_struct {
11 volatile int ctype_utf8;
13 struct __locale_map *volatile cat[4];
20 volatile int threads_minus_1;
23 volatile int ofl_lock[2];
26 volatile int uselocale_cnt;
27 volatile int bytelocale_cnt_minus_1;
28 struct __locale_struct global_locale;
31 extern size_t __hwcap;
34 #define PAGE_SIZE libc.page_size
37 #if !defined(__PIC__) || (100*__GNUC__+__GNUC_MINOR__ >= 303 && !defined(__PCC__))
41 #define BROKEN_VISIBILITY 1
43 #define ATTR_LIBC_VISIBILITY __attribute__((visibility("hidden")))
45 #define ATTR_LIBC_VISIBILITY
48 extern struct __libc __libc ATTR_LIBC_VISIBILITY;
53 #define USE_LIBC_ACCESSOR
54 #define ATTR_LIBC_VISIBILITY
55 extern struct __libc *__libc_loc(void) __attribute__((const));
56 #define libc (*__libc_loc())
61 /* Designed to avoid any overhead in non-threaded processes */
62 void __lock(volatile int *) ATTR_LIBC_VISIBILITY;
63 void __unlock(volatile int *) ATTR_LIBC_VISIBILITY;
64 int __lockfile(FILE *) ATTR_LIBC_VISIBILITY;
65 void __unlockfile(FILE *) ATTR_LIBC_VISIBILITY;
66 #define LOCK(x) __lock(x)
67 #define UNLOCK(x) __unlock(x)
69 void __synccall(void (*)(void *), void *);
70 int __setxid(int, int, int, int);
72 extern char **__environ;
75 #define weak_alias(old, new) \
76 extern __typeof(old) new __attribute__((weak, alias(#old)))
79 #define LFS64_2(x, y) weak_alias(x, y)
82 #define LFS64(x) LFS64_2(x, x##64)