8 struct __locale_struct {
14 int has_thread_pointer;
19 volatile int threads_minus_1;
24 volatile int uselocale_cnt;
25 volatile int bytelocale_cnt_minus_1;
26 struct __locale_struct global_locale;
29 extern size_t __hwcap;
32 #define PAGE_SIZE libc.page_size
35 #if !defined(__PIC__) || (100*__GNUC__+__GNUC_MINOR__ >= 303 && !defined(__PCC__))
39 #define BROKEN_VISIBILITY 1
41 #define ATTR_LIBC_VISIBILITY __attribute__((visibility("hidden")))
43 #define ATTR_LIBC_VISIBILITY
46 extern struct __libc __libc ATTR_LIBC_VISIBILITY;
51 #define USE_LIBC_ACCESSOR
52 #define ATTR_LIBC_VISIBILITY
53 extern struct __libc *__libc_loc(void) __attribute__((const));
54 #define libc (*__libc_loc())
59 /* Designed to avoid any overhead in non-threaded processes */
60 void __lock(volatile int *) ATTR_LIBC_VISIBILITY;
61 void __unlock(volatile int *) ATTR_LIBC_VISIBILITY;
62 int __lockfile(FILE *) ATTR_LIBC_VISIBILITY;
63 void __unlockfile(FILE *) ATTR_LIBC_VISIBILITY;
64 #define LOCK(x) __lock(x)
65 #define UNLOCK(x) __unlock(x)
67 void __synccall(void (*)(void *), void *);
68 int __setxid(int, int, int, int);
70 extern char **__environ;
73 #define weak_alias(old, new) \
74 extern __typeof(old) new __attribute__((weak, alias(#old)))
77 #define LFS64_2(x, y) weak_alias(x, y)
80 #define LFS64(x) LFS64_2(x, x##64)