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 struct __locale_struct global_locale;
30 #define PAGE_SIZE libc.page_size
34 #define ATTR_LIBC_VISIBILITY __attribute__((visibility("hidden")))
36 #define ATTR_LIBC_VISIBILITY
39 extern struct __libc __libc ATTR_LIBC_VISIBILITY;
42 extern size_t __hwcap ATTR_LIBC_VISIBILITY;
43 extern size_t __sysinfo ATTR_LIBC_VISIBILITY;
44 extern char *__progname, *__progname_full;
46 /* Designed to avoid any overhead in non-threaded processes */
47 void __lock(volatile int *) ATTR_LIBC_VISIBILITY;
48 void __unlock(volatile int *) ATTR_LIBC_VISIBILITY;
49 int __lockfile(FILE *) ATTR_LIBC_VISIBILITY;
50 void __unlockfile(FILE *) ATTR_LIBC_VISIBILITY;
51 #define LOCK(x) __lock(x)
52 #define UNLOCK(x) __unlock(x)
54 void __synccall(void (*)(void *), void *);
55 int __setxid(int, int, int, int);
57 extern char **__environ;
60 #define weak_alias(old, new) \
61 extern __typeof(old) new __attribute__((weak, alias(#old)))
64 #define LFS64_2(x, y) weak_alias(x, y)
67 #define LFS64(x) LFS64_2(x, x##64)