13 volatile int threads_minus_1;
21 extern size_t __hwcap;
24 #define PAGE_SIZE libc.page_size
27 #if !defined(__PIC__) || (100*__GNUC__+__GNUC_MINOR__ >= 303 && !defined(__PCC__))
31 #define BROKEN_VISIBILITY 1
33 #define ATTR_LIBC_VISIBILITY __attribute__((visibility("hidden")))
35 #define ATTR_LIBC_VISIBILITY
38 extern struct __libc __libc ATTR_LIBC_VISIBILITY;
43 #define USE_LIBC_ACCESSOR
44 #define ATTR_LIBC_VISIBILITY
45 extern struct __libc *__libc_loc(void) __attribute__((const));
46 #define libc (*__libc_loc())
51 /* Designed to avoid any overhead in non-threaded processes */
52 void __lock(volatile int *) ATTR_LIBC_VISIBILITY;
53 void __unlock(volatile int *) ATTR_LIBC_VISIBILITY;
54 int __lockfile(FILE *) ATTR_LIBC_VISIBILITY;
55 void __unlockfile(FILE *) ATTR_LIBC_VISIBILITY;
56 #define LOCK(x) __lock(x)
57 #define UNLOCK(x) __unlock(x)
59 void __synccall(void (*)(void *), void *);
60 int __setxid(int, int, int, int);
62 extern char **__environ;
65 #define weak_alias(old, new) \
66 extern __typeof(old) new __attribute__((weak, alias(#old)))
69 #define LFS64_2(x, y) weak_alias(x, y)
72 #define LFS64(x) LFS64_2(x, x##64)