12 volatile int threads_minus_1;
19 extern size_t __hwcap;
21 #if !defined(__PIC__) || (100*__GNUC__+__GNUC_MINOR__ >= 303 && !defined(__PCC__))
25 #define BROKEN_VISIBILITY 1
27 #define ATTR_LIBC_VISIBILITY __attribute__((visibility("hidden")))
29 #define ATTR_LIBC_VISIBILITY
32 extern struct __libc __libc ATTR_LIBC_VISIBILITY;
37 #define USE_LIBC_ACCESSOR
38 #define ATTR_LIBC_VISIBILITY
39 extern struct __libc *__libc_loc(void) __attribute__((const));
40 #define libc (*__libc_loc())
45 /* Designed to avoid any overhead in non-threaded processes */
46 void __lock(volatile int *) ATTR_LIBC_VISIBILITY;
47 void __unlock(volatile int *) ATTR_LIBC_VISIBILITY;
48 int __lockfile(FILE *) ATTR_LIBC_VISIBILITY;
49 void __unlockfile(FILE *) ATTR_LIBC_VISIBILITY;
50 #define LOCK(x) (libc.threads_minus_1 ? (__lock(x),1) : ((void)(x),1))
51 #define UNLOCK(x) (libc.threads_minus_1 ? (__unlock(x),1) : ((void)(x),1))
53 void __synccall(void (*)(void *), void *);
54 int __setxid(int, int, int, int);
56 extern char **__environ;
59 #define weak_alias(old, new) \
60 extern __typeof(old) new __attribute__((weak, alias(#old)))
63 #define LFS64_2(x, y) weak_alias(x, y)
66 #define LFS64(x) LFS64_2(x, x##64)