bring in squid 2.6, this disables winbind as it is no longer part of squid... epoll...
[openwrt/svn-archive/archive.git] / net / squid / patches / 001-cross_compile.patch
1 diff -urN squid-2.5.STABLE13/src/ctype.c squid-2.5.STABLE13.new/src/ctype.c
2 --- squid-2.5.STABLE13/src/ctype.c 1970-01-01 01:00:00.000000000 +0100
3 +++ squid-2.5.STABLE13.new/src/ctype.c 2006-04-15 10:29:39.000000000 +0200
4 @@ -0,0 +1,546 @@
5 +/*
6 + Static ctype data for IFC-7.1 / RedHat-9 workaround.
7 + This is taken from the GLIBC source code.
8 + Hack by Joe Krahn <krahn@niehs.nih.gov>
9 +
10 + To use, compile with gcc (ifc should work as well):
11 +
12 + gcc -c ctype.c
13 +
14 + Next, include the resulting ctype.o when creating executables.
15 + Do this automatically using a ~/.ifcrc file with a line like this:
16 +
17 + -Wl,/some/path/ctype.o
18 +
19 + That's all.
20 +
21 + My .ifcrc also turns off the typically excessive warnings:
22 + -cm -w90 -w95 -Wl,/home/krahn/Prog/ctype/ctype.o
23 +
24 + To IFC maintainters: it would be nice to flag on/off specific
25 + warning types, like -woff=22,33,44
26 +
27 +*/
28 +
29 +/*
30 + file: ctype.c
31 +
32 + Derived from C-ctype.c and ctype-info.c in the GLIBC 2.3 source.
33 +
34 + To compile: (either gcc or icc is OK)
35 + icc -c ctype.c
36 +
37 + To use, just add the object file ctype.o at link stage. Example:
38 + ifc -o hello hello.f ctype.o
39 +
40 +*/
41 +
42 +
43 +/* Copyright (C) 1995-1999, 2000, 2001, 2002 Free Software Foundation, Inc.
44 + This file is part of the GNU C Library.
45 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1995.
46 +
47 + The GNU C Library is free software; you can redistribute it and/or
48 + modify it under the terms of the GNU Lesser General Public
49 + License as published by the Free Software Foundation; either
50 + version 2.1 of the License, or (at your option) any later version.
51 +
52 + The GNU C Library is distributed in the hope that it will be useful,
53 + but WITHOUT ANY WARRANTY; without even the implied warranty of
54 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
55 + Lesser General Public License for more details.
56 +
57 + You should have received a copy of the GNU Lesser General Public
58 + License along with the GNU C Library; if not, write to the Free
59 + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
60 + 02111-1307 USA. */
61 +
62 +#include <stdint.h>
63 +
64 +/* This table's entries are taken from POSIX.2 Table 2-6
65 + ``LC_CTYPE Category Definition in the POSIX Locale''.
66 +
67 + The `_nl_C_LC_CTYPE_width' array is a GNU extension.
68 +
69 + In the `_nl_C_LC_CTYPE_class' array the value for EOF (== -1)
70 + is set to always return 0 and the conversion arrays return EOF. */
71 +
72 +const char _nl_C_LC_CTYPE_class[768] =
73 + /* 0x80 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
74 + /* 0x86 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
75 + /* 0x8c */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
76 + /* 0x92 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
77 + /* 0x98 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
78 + /* 0x9e */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
79 + /* 0xa4 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
80 + /* 0xaa */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
81 + /* 0xb0 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
82 + /* 0xb6 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
83 + /* 0xbc */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
84 + /* 0xc2 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
85 + /* 0xc8 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
86 + /* 0xce */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
87 + /* 0xd4 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
88 + /* 0xda */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
89 + /* 0xe0 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
90 + /* 0xe6 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
91 + /* 0xec */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
92 + /* 0xf2 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
93 + /* 0xf8 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
94 + /* 0xfe */ "\000\000" "\000\000" "\002\000" "\002\000" "\002\000" "\002\000"
95 + /* 0x04 */ "\002\000" "\002\000" "\002\000" "\002\000" "\002\000" "\003\040"
96 + /* 0x0a */ "\002\040" "\002\040" "\002\040" "\002\040" "\002\000" "\002\000"
97 + /* 0x10 */ "\002\000" "\002\000" "\002\000" "\002\000" "\002\000" "\002\000"
98 + /* 0x16 */ "\002\000" "\002\000" "\002\000" "\002\000" "\002\000" "\002\000"
99 + /* 0x1c */ "\002\000" "\002\000" "\002\000" "\002\000" "\001\140" "\004\300"
100 + /* 0x22 */ "\004\300" "\004\300" "\004\300" "\004\300" "\004\300" "\004\300"
101 + /* 0x28 */ "\004\300" "\004\300" "\004\300" "\004\300" "\004\300" "\004\300"
102 + /* 0x2e */ "\004\300" "\004\300" "\010\330" "\010\330" "\010\330" "\010\330"
103 + /* 0x34 */ "\010\330" "\010\330" "\010\330" "\010\330" "\010\330" "\010\330"
104 + /* 0x3a */ "\004\300" "\004\300" "\004\300" "\004\300" "\004\300" "\004\300"
105 + /* 0x40 */ "\004\300" "\010\325" "\010\325" "\010\325" "\010\325" "\010\325"
106 + /* 0x46 */ "\010\325" "\010\305" "\010\305" "\010\305" "\010\305" "\010\305"
107 + /* 0x4c */ "\010\305" "\010\305" "\010\305" "\010\305" "\010\305" "\010\305"
108 + /* 0x52 */ "\010\305" "\010\305" "\010\305" "\010\305" "\010\305" "\010\305"
109 + /* 0x58 */ "\010\305" "\010\305" "\010\305" "\004\300" "\004\300" "\004\300"
110 + /* 0x5e */ "\004\300" "\004\300" "\004\300" "\010\326" "\010\326" "\010\326"
111 + /* 0x64 */ "\010\326" "\010\326" "\010\326" "\010\306" "\010\306" "\010\306"
112 + /* 0x6a */ "\010\306" "\010\306" "\010\306" "\010\306" "\010\306" "\010\306"
113 + /* 0x70 */ "\010\306" "\010\306" "\010\306" "\010\306" "\010\306" "\010\306"
114 + /* 0x76 */ "\010\306" "\010\306" "\010\306" "\010\306" "\010\306" "\004\300"
115 + /* 0x7c */ "\004\300" "\004\300" "\004\300" "\002\000" "\000\000" "\000\000"
116 + /* 0x82 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
117 + /* 0x88 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
118 + /* 0x8e */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
119 + /* 0x94 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
120 + /* 0x9a */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
121 + /* 0xa0 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
122 + /* 0xa6 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
123 + /* 0xac */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
124 + /* 0xb2 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
125 + /* 0xb8 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
126 + /* 0xbe */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
127 + /* 0xc4 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
128 + /* 0xca */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
129 + /* 0xd0 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
130 + /* 0xd6 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
131 + /* 0xdc */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
132 + /* 0xe2 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
133 + /* 0xe8 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
134 + /* 0xee */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
135 + /* 0xf4 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
136 + /* 0xfa */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
137 +;
138 +const char _nl_C_LC_CTYPE_class32[1024] =
139 + /* 0x00 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
140 + /* 0x03 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
141 + /* 0x06 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
142 + /* 0x09 */ "\000\000\003\040" "\000\000\002\040" "\000\000\002\040"
143 + /* 0x0c */ "\000\000\002\040" "\000\000\002\040" "\000\000\002\000"
144 + /* 0x0f */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
145 + /* 0x12 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
146 + /* 0x15 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
147 + /* 0x18 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
148 + /* 0x1b */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
149 + /* 0x1e */ "\000\000\002\000" "\000\000\002\000" "\000\000\001\140"
150 + /* 0x21 */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
151 + /* 0x24 */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
152 + /* 0x27 */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
153 + /* 0x2a */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
154 + /* 0x2d */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
155 + /* 0x30 */ "\000\000\010\330" "\000\000\010\330" "\000\000\010\330"
156 + /* 0x33 */ "\000\000\010\330" "\000\000\010\330" "\000\000\010\330"
157 + /* 0x36 */ "\000\000\010\330" "\000\000\010\330" "\000\000\010\330"
158 + /* 0x39 */ "\000\000\010\330" "\000\000\004\300" "\000\000\004\300"
159 + /* 0x3c */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
160 + /* 0x3f */ "\000\000\004\300" "\000\000\004\300" "\000\000\010\325"
161 + /* 0x42 */ "\000\000\010\325" "\000\000\010\325" "\000\000\010\325"
162 + /* 0x45 */ "\000\000\010\325" "\000\000\010\325" "\000\000\010\305"
163 + /* 0x48 */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
164 + /* 0x4b */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
165 + /* 0x4e */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
166 + /* 0x51 */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
167 + /* 0x54 */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
168 + /* 0x57 */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
169 + /* 0x5a */ "\000\000\010\305" "\000\000\004\300" "\000\000\004\300"
170 + /* 0x5d */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
171 + /* 0x60 */ "\000\000\004\300" "\000\000\010\326" "\000\000\010\326"
172 + /* 0x63 */ "\000\000\010\326" "\000\000\010\326" "\000\000\010\326"
173 + /* 0x66 */ "\000\000\010\326" "\000\000\010\306" "\000\000\010\306"
174 + /* 0x69 */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
175 + /* 0x6c */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
176 + /* 0x6f */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
177 + /* 0x72 */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
178 + /* 0x75 */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
179 + /* 0x78 */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
180 + /* 0x7b */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
181 + /* 0x7e */ "\000\000\004\300" "\000\000\002\000" "\000\000\000\000"
182 + /* 0x81 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
183 + /* 0x84 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
184 + /* 0x87 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
185 + /* 0x8a */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
186 + /* 0x8d */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
187 + /* 0x90 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
188 + /* 0x93 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
189 + /* 0x96 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
190 + /* 0x99 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
191 + /* 0x9c */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
192 + /* 0x9f */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
193 + /* 0xa2 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
194 + /* 0xa5 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
195 + /* 0xa8 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
196 + /* 0xab */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
197 + /* 0xae */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
198 + /* 0xb1 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
199 + /* 0xb4 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
200 + /* 0xb7 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
201 + /* 0xba */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
202 + /* 0xbd */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
203 + /* 0xc0 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
204 + /* 0xc3 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
205 + /* 0xc6 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
206 + /* 0xc9 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
207 + /* 0xcc */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
208 + /* 0xcf */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
209 + /* 0xd2 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
210 + /* 0xd5 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
211 + /* 0xd8 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
212 + /* 0xdb */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
213 + /* 0xde */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
214 + /* 0xe1 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
215 + /* 0xe4 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
216 + /* 0xe7 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
217 + /* 0xea */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
218 + /* 0xed */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
219 + /* 0xf0 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
220 + /* 0xf3 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
221 + /* 0xf6 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
222 + /* 0xf9 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
223 + /* 0xfc */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
224 + /* 0xff */ "\000\000\000\000"
225 +;
226 +const uint32_t _nl_C_LC_CTYPE_toupper[384] =
227 +{
228 + /* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
229 + /* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
230 + /* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
231 + /* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
232 + /* 0xa0 */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
233 + /* 0xa8 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
234 + /* 0xb0 */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
235 + /* 0xb8 */ 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
236 + /* 0xc0 */ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
237 + /* 0xc8 */ 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
238 + /* 0xd0 */ 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
239 + /* 0xd8 */ 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
240 + /* 0xe0 */ 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
241 + /* 0xe8 */ 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
242 + /* 0xf0 */ 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
243 + /* 0xf8 */ 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xffffffff,
244 + /* 0x00 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
245 + /* 0x08 */ 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
246 + /* 0x10 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
247 + /* 0x18 */ 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
248 + /* 0x20 */ 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
249 + /* 0x28 */ 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
250 + /* 0x30 */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
251 + /* 0x38 */ 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
252 + /* 0x40 */ 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
253 + /* 0x48 */ 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
254 + /* 0x50 */ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
255 + /* 0x58 */ 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
256 + /* 0x60 */ 0x60, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
257 + /* 0x68 */ 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
258 + /* 0x70 */ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
259 + /* 0x78 */ 0x58, 0x59, 0x5a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
260 + /* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
261 + /* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
262 + /* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
263 + /* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
264 + /* 0xa0 */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
265 + /* 0xa8 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
266 + /* 0xb0 */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
267 + /* 0xb8 */ 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
268 + /* 0xc0 */ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
269 + /* 0xc8 */ 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
270 + /* 0xd0 */ 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
271 + /* 0xd8 */ 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
272 + /* 0xe0 */ 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
273 + /* 0xe8 */ 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
274 + /* 0xf0 */ 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
275 + /* 0xf8 */ 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff
276 +};
277 +const uint32_t _nl_C_LC_CTYPE_tolower[384] =
278 +{
279 + /* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
280 + /* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
281 + /* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
282 + /* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
283 + /* 0xa0 */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
284 + /* 0xa8 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
285 + /* 0xb0 */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
286 + /* 0xb8 */ 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
287 + /* 0xc0 */ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
288 + /* 0xc8 */ 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
289 + /* 0xd0 */ 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
290 + /* 0xd8 */ 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
291 + /* 0xe0 */ 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
292 + /* 0xe8 */ 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
293 + /* 0xf0 */ 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
294 + /* 0xf8 */ 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xffffffff,
295 + /* 0x00 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
296 + /* 0x08 */ 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
297 + /* 0x10 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
298 + /* 0x18 */ 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
299 + /* 0x20 */ 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
300 + /* 0x28 */ 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
301 + /* 0x30 */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
302 + /* 0x38 */ 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
303 + /* 0x40 */ 0x40, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
304 + /* 0x48 */ 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
305 + /* 0x50 */ 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
306 + /* 0x58 */ 0x78, 0x79, 0x7a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
307 + /* 0x60 */ 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
308 + /* 0x68 */ 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
309 + /* 0x70 */ 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
310 + /* 0x78 */ 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
311 + /* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
312 + /* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
313 + /* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
314 + /* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
315 + /* 0xa0 */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
316 + /* 0xa8 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
317 + /* 0xb0 */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
318 + /* 0xb8 */ 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
319 + /* 0xc0 */ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
320 + /* 0xc8 */ 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
321 + /* 0xd0 */ 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
322 + /* 0xd8 */ 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
323 + /* 0xe0 */ 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
324 + /* 0xe8 */ 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
325 + /* 0xf0 */ 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
326 + /* 0xf8 */ 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff
327 +};
328 +
329 +#define STRUCT_CTYPE_CLASS(p, q) \
330 + struct \
331 + { \
332 + uint32_t isctype_data[8]; \
333 + uint32_t header[5]; \
334 + uint32_t level1[1]; \
335 + uint32_t level2[1 << q]; \
336 + uint32_t level3[1 << p]; \
337 + }
338 +
339 +const STRUCT_CTYPE_CLASS(1, 1) _nl_C_LC_CTYPE_class_upper =
340 +{
341 + { 0x00000000, 0x00000000, 0x07fffffe, 0x00000000,
342 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
343 + },
344 + { 7, 1, 6, 1, 1 },
345 + /* 1st-level table */
346 + { 6 * sizeof (uint32_t) },
347 + /* 2nd-level table */
348 + { 0, 8 * sizeof (uint32_t) },
349 + /* 3rd-level table */
350 + { 0x07fffffe, 0x00000000 }
351 +};
352 +const STRUCT_CTYPE_CLASS(1, 1) _nl_C_LC_CTYPE_class_lower =
353 +{
354 + { 0x00000000, 0x00000000, 0x00000000, 0x07fffffe,
355 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
356 + },
357 + { 7, 1, 6, 1, 1 },
358 + /* 1st-level table */
359 + { 6 * sizeof (uint32_t) },
360 + /* 2nd-level table */
361 + { 0, 8 * sizeof (uint32_t) },
362 + /* 3rd-level table */
363 + { 0x00000000, 0x07fffffe }
364 +};
365 +const STRUCT_CTYPE_CLASS(1, 1) _nl_C_LC_CTYPE_class_alpha =
366 +{
367 + { 0x00000000, 0x00000000, 0x07fffffe, 0x07fffffe,
368 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
369 + },
370 + { 7, 1, 6, 1, 1 },
371 + /* 1st-level table */
372 + { 6 * sizeof (uint32_t) },
373 + /* 2nd-level table */
374 + { 0, 8 * sizeof (uint32_t) },
375 + /* 3rd-level table */
376 + { 0x07fffffe, 0x07fffffe }
377 +};
378 +const STRUCT_CTYPE_CLASS(1, 0) _nl_C_LC_CTYPE_class_digit =
379 +{
380 + { 0x00000000, 0x03ff0000, 0x00000000, 0x00000000,
381 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
382 + },
383 + { 6, 1, 6, 0, 1 },
384 + /* 1st-level table */
385 + { 6 * sizeof (uint32_t) },
386 + /* 2nd-level table */
387 + { 7 * sizeof (uint32_t) },
388 + /* 3rd-level table */
389 + { 0x00000000, 0x03ff0000 }
390 +};
391 +const STRUCT_CTYPE_CLASS(2, 0) _nl_C_LC_CTYPE_class_xdigit =
392 +{
393 + { 0x00000000, 0x03ff0000, 0x0000007e, 0x0000007e,
394 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
395 + },
396 + { 7, 1, 7, 0, 3 },
397 + /* 1st-level table */
398 + { 6 * sizeof (uint32_t) },
399 + /* 2nd-level table */
400 + { 7 * sizeof (uint32_t) },
401 + /* 3rd-level table */
402 + { 0x00000000, 0x03ff0000, 0x0000007e, 0x0000007e }
403 +};
404 +const STRUCT_CTYPE_CLASS(1, 0) _nl_C_LC_CTYPE_class_space =
405 +{
406 + { 0x00003e00, 0x00000001, 0x00000000, 0x00000000,
407 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
408 + },
409 + { 6, 1, 6, 0, 1 },
410 + /* 1st-level table */
411 + { 6 * sizeof (uint32_t) },
412 + /* 2nd-level table */
413 + { 7 * sizeof (uint32_t) },
414 + /* 3rd-level table */
415 + { 0x00003e00, 0x00000001 }
416 +};
417 +const STRUCT_CTYPE_CLASS(2, 0) _nl_C_LC_CTYPE_class_print =
418 +{
419 + { 0x00000000, 0xffffffff, 0xffffffff, 0x7fffffff,
420 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
421 + },
422 + { 7, 1, 7, 0, 3 },
423 + /* 1st-level table */
424 + { 6 * sizeof (uint32_t) },
425 + /* 2nd-level table */
426 + { 7 * sizeof (uint32_t) },
427 + /* 3rd-level table */
428 + { 0x00000000, 0xffffffff, 0xffffffff, 0x7fffffff }
429 +};
430 +const STRUCT_CTYPE_CLASS(2, 0) _nl_C_LC_CTYPE_class_graph =
431 +{
432 + { 0x00000000, 0xfffffffe, 0xffffffff, 0x7fffffff,
433 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
434 + },
435 + { 7, 1, 7, 0, 3 },
436 + /* 1st-level table */
437 + { 6 * sizeof (uint32_t) },
438 + /* 2nd-level table */
439 + { 7 * sizeof (uint32_t) },
440 + /* 3rd-level table */
441 + { 0x00000000, 0xfffffffe, 0xffffffff, 0x7fffffff }
442 +};
443 +const STRUCT_CTYPE_CLASS(1, 0) _nl_C_LC_CTYPE_class_blank =
444 +{
445 + { 0x00000200, 0x00000001, 0x00000000, 0x00000000,
446 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
447 + },
448 + { 6, 1, 6, 0, 1 },
449 + /* 1st-level table */
450 + { 6 * sizeof (uint32_t) },
451 + /* 2nd-level table */
452 + { 7 * sizeof (uint32_t) },
453 + /* 3rd-level table */
454 + { 0x00000200, 0x00000001 }
455 +};
456 +const STRUCT_CTYPE_CLASS(2, 0) _nl_C_LC_CTYPE_class_cntrl =
457 +{
458 + { 0xffffffff, 0x00000000, 0x00000000, 0x80000000,
459 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
460 + },
461 + { 7, 1, 7, 0, 3 },
462 + /* 1st-level table */
463 + { 6 * sizeof (uint32_t) },
464 + /* 2nd-level table */
465 + { 7 * sizeof (uint32_t) },
466 + /* 3rd-level table */
467 + { 0xffffffff, 0x00000000, 0x00000000, 0x80000000 }
468 +};
469 +const STRUCT_CTYPE_CLASS(2, 0) _nl_C_LC_CTYPE_class_punct =
470 +{
471 + { 0x00000000, 0xfc00fffe, 0xf8000001, 0x78000001,
472 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
473 + },
474 + { 7, 1, 7, 0, 3 },
475 + /* 1st-level table */
476 + { 6 * sizeof (uint32_t) },
477 + /* 2nd-level table */
478 + { 7 * sizeof (uint32_t) },
479 + /* 3rd-level table */
480 + { 0x00000000, 0xfc00fffe, 0xf8000001, 0x78000001 }
481 +};
482 +const STRUCT_CTYPE_CLASS(2, 0) _nl_C_LC_CTYPE_class_alnum =
483 +{
484 + { 0x00000000, 0x03ff0000, 0x07fffffe, 0x07fffffe,
485 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
486 + },
487 + { 7, 1, 7, 0, 3 },
488 + /* 1st-level table */
489 + { 6 * sizeof (uint32_t) },
490 + /* 2nd-level table */
491 + { 7 * sizeof (uint32_t) },
492 + /* 3rd-level table */
493 + { 0x00000000, 0x03ff0000, 0x07fffffe, 0x07fffffe }
494 +};
495 +
496 +const struct
497 +{
498 + uint32_t header[5];
499 + uint32_t level1[1];
500 + uint32_t level2[4];
501 + int32_t level3[32];
502 +}
503 +_nl_C_LC_CTYPE_map_toupper =
504 +{
505 + { 7, 1, 5, 3, 31 },
506 + /* 1st-level table */
507 + { 6 * sizeof (uint32_t) },
508 + /* 2nd-level table */
509 + { 0, 0, 0, 10 * sizeof (uint32_t) },
510 + /* 3rd-level table */
511 + {
512 + 0x00000000, 0xffffffe0, 0xffffffe0, 0xffffffe0,
513 + 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0,
514 + 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0,
515 + 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0,
516 + 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0,
517 + 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0,
518 + 0xffffffe0, 0xffffffe0, 0xffffffe0, 0x00000000,
519 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
520 + }
521 +},
522 +_nl_C_LC_CTYPE_map_tolower =
523 +{
524 + { 7, 1, 5, 3, 31 },
525 + /* 1st-level table */
526 + { 6 * sizeof (uint32_t) },
527 + /* 2nd-level table */
528 + { 0, 0, 10 * sizeof (uint32_t), 0 },
529 + /* 3rd-level table */
530 + {
531 + 0x00000000, 0x00000020, 0x00000020, 0x00000020,
532 + 0x00000020, 0x00000020, 0x00000020, 0x00000020,
533 + 0x00000020, 0x00000020, 0x00000020, 0x00000020,
534 + 0x00000020, 0x00000020, 0x00000020, 0x00000020,
535 + 0x00000020, 0x00000020, 0x00000020, 0x00000020,
536 + 0x00000020, 0x00000020, 0x00000020, 0x00000020,
537 + 0x00000020, 0x00000020, 0x00000020, 0x00000000,
538 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
539 + }
540 +};
541 +
542 +#define b(t,x,o) (((const t *) _nl_C_LC_CTYPE_##x) + o)
543 +
544 +const uint16_t *__ctype_b = b (uint16_t, class, 128);
545 +const uint32_t *__ctype32_b = b (uint32_t, class32, 0);
546 +const int32_t *__ctype_tolower = b (int32_t, tolower, 128);
547 +const int32_t *__ctype_toupper = b (int32_t, toupper, 128);
548 +const uint32_t *__ctype32_tolower = b (uint32_t, tolower, 128);
549 +const uint32_t *__ctype32_toupper = b (uint32_t, toupper, 128);
550 +
551 diff -urN squid-2.5.STABLE13/src/Makefile.in squid-2.5.STABLE13.new/src/Makefile.in
552 --- squid-2.5.STABLE13/src/Makefile.in 2005-09-28 22:57:21.000000000 +0200
553 +++ squid-2.5.STABLE13.new/src/Makefile.in 2006-04-15 10:29:39.000000000 +0200
554 @@ -1141,6 +1143,9 @@
555 $(SHELL) -c "test -f squid.conf.default || ./cf_gen cf.data"
556
557 cf_parser.h: cf.data cf_gen$(EXEEXT)
558 + rm -f cf_gen
559 + gcc -c ctype.c
560 + gcc -o cf_gen cf_gen.c -DNODEBUG=1 -I./ -I../ -I../include/ -L../lib -lmiscutil$(shell uname -m) -lm -lnsl -Wl,ctype.o
561 ./cf_gen cf.data
562
563 cf_gen_defines.h: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre