Add an option to forbid downloads.
Idea and code-base from Don Elwell <don@manifoldlabs.com>, adapted by me.
/trunk/scripts/functions | 6 6 0 0 ++++++
/trunk/config/global/download.in | 18 18 0 0 ++++++++++++++++++
2 files changed, 24 insertions(+)
1 Index: uClibc/ldso/ldso/sparc/dl-sysdep.h
2 ===================================================================
3 --- uClibc/ldso/ldso/sparc/dl-sysdep.h (revision 23055)
4 +++ uClibc/ldso/ldso/sparc/dl-sysdep.h (working copy)
6 static __inline__ Elf32_Addr
7 elf_machine_load_address (void)
9 - register Elf32_Addr *pc __asm__ ("%o7"), *got __asm ("%l7");
10 + register Elf32_Addr *pc __asm__ ("%o7"), *got __asm__ ("%l7");
12 __asm__ ("sethi %%hi(_GLOBAL_OFFSET_TABLE_-4), %1\n\t"
14 Index: uClibc/libc/sysdeps/linux/i386/bits/mathinline.h
15 ===================================================================
16 --- uClibc/libc/sysdeps/linux/i386/bits/mathinline.h (revision 23055)
17 +++ uClibc/libc/sysdeps/linux/i386/bits/mathinline.h (working copy)
19 __extension__ long long int __p = (long long int) __x; \
20 if (__x == (long double) __p) \
22 - __asm __volatile__ \
23 + __asm__ __volatile__ \
25 : "=t" (__value) : "0" (1.0), "u" (__x)); \
28 - __asm __volatile__ \
29 + __asm__ __volatile__ \
31 "frndint # int(x)\n\t" \
34 "f2xm1 # 2^(fract(x)) - 1\n\t" \
35 : "=t" (__value), "=u" (__exponent) : "0" (__x)); \
37 - __asm __volatile__ \
38 + __asm__ __volatile__ \
40 : "=t" (__value) : "0" (__value), "u" (__exponent)); \
43 # define __sincos_code \
44 register long double __cosr; \
45 register long double __sinr; \
46 - __asm __volatile__ \
47 + __asm__ __volatile__ \
50 "testl $0x400, %%eax\n\t" \
52 register long double __value; \
53 register long double __exponent; \
54 register long double __temp; \
55 - __asm __volatile__ \
56 + __asm__ __volatile__ \
57 ("fldl2e # e^x - 1 = 2^(x * log2(e)) - 1\n\t" \
58 "fmul %%st(1) # x * log2(e)\n\t" \
61 "f2xm1 # 2^(fract(x * log2(e))) - 1\n\t" \
62 "fscale # 2^(x * log2(e)) - 2^(int(x * log2(e)))\n\t" \
63 : "=t" (__value), "=u" (__exponent) : "0" (__x)); \
64 - __asm __volatile__ \
65 + __asm__ __volatile__ \
66 ("fscale # 2^int(x * log2(e))\n\t" \
67 : "=t" (__temp) : "0" (1.0), "u" (__exponent)); \
71 register long double __value; \
72 register long double __exponent; \
73 - __asm __volatile__ \
74 + __asm__ __volatile__ \
75 ("fldl2e # e^x = 2^(x * log2(e))\n\t" \
76 "fmul %%st(1) # x * log2(e)\n\t" \
79 "f2xm1 # 2^(fract(x * log2(e))) - 1\n\t" \
80 : "=t" (__value), "=u" (__exponent) : "0" (__x)); \
82 - __asm __volatile__ \
83 + __asm__ __volatile__ \
85 : "=t" (__value) : "0" (__value), "u" (__exponent)); \
88 __inline_mathcodeNP (tan, __x, \
89 register long double __value; \
90 register long double __value2 __attribute__ ((__unused__)); \
91 - __asm __volatile__ \
92 + __asm__ __volatile__ \
94 : "=t" (__value2), "=u" (__value) : "0" (__x)); \
98 # define __atan2_code \
99 register long double __value; \
100 - __asm __volatile__ \
101 + __asm__ __volatile__ \
103 : "=t" (__value) : "0" (__x), "u" (__y) : "st(1)"); \
106 #if defined __FAST_MATH__ && !__GNUC_PREREQ (3, 5)
107 __inline_mathcodeNP2 (fmod, __x, __y, \
108 register long double __value; \
109 - __asm __volatile__ \
110 + __asm__ __volatile__ \
116 # define __ldexp_code \
117 register long double __value; \
118 - __asm __volatile__ \
119 + __asm__ __volatile__ \
121 : "=t" (__value) : "0" (__x), "u" ((long double) __y)); \
124 if (__fabsl (__x) >= 1.0 - 0.5 * __M_SQRT2) \
125 __value = logl (1.0 + __x); \
127 - __asm __volatile__ \
128 + __asm__ __volatile__ \
133 __inline_mathcodeNP(logb, __x, \
134 register long double __value; \
135 register long double __junk; \
136 - __asm __volatile__ \
137 + __asm__ __volatile__ \
139 : "=t" (__junk), "=u" (__value) : "0" (__x)); \
142 __inline_mathcodeNP2 (drem, __x, __y, \
143 register double __value; \
144 register int __clobbered; \
145 - __asm __volatile__ \
146 + __asm__ __volatile__ \
150 Index: uClibc/libc/sysdeps/linux/x86_64/sigaction.c
151 ===================================================================
152 --- uClibc/libc/sysdeps/linux/x86_64/sigaction.c (revision 23055)
153 +++ uClibc/libc/sysdeps/linux/x86_64/sigaction.c (working copy)
156 #define RESTORE(name, syscall) RESTORE2 (name, syscall)
157 # define RESTORE2(name, syscall) \
163 Index: uClibc/libc/sysdeps/linux/mips/sigaction.c
164 ===================================================================
165 --- uClibc/libc/sysdeps/linux/mips/sigaction.c (revision 23055)
166 +++ uClibc/libc/sysdeps/linux/mips/sigaction.c (working copy)
169 #define RESTORE(name, syscall) RESTORE2 (name, syscall)
170 #define RESTORE2(name, syscall) \