Update.
[platform/upstream/glibc.git] / ChangeLog
1 2001-02-19  Ulrich Drepper  <drepper@redhat.com>
2
3         * sysdeps/generic/e_scalb.c: Set invalid exception for invalid
4         parameters.
5         * sysdeps/generic/e_scalbf.c: New file.
6         * sysdeps/generic/e_scalbl.c: New file.
7
8         * sysdeps/ia64/fpu/Makefile (libm-sysdep-routines): Add libm_error,
9         libm_frexp4, libm_frexp4f, libm_frexp4l, and all the functions also
10         in libc.
11         (routines): Replace libm_error with libc_libm_error.
12         * sysdeps/ia64/fpu/Dist: Add libc_libm_error.c.
13         * sysdeps/ia64/fpu/libc_libm_error.c: New file.
14
15 2001-02-18  Mark Kettenis  <kettenis@gnu.org>
16
17         * malloc/mtrace.c [USE_IN_LIBIO]: Define fopen as _IO_fopen64.
18         (mtrace): Revert 2001-02-13 patch: use fopen instead of fopen64.
19
20 2001-02-17  H.J. Lu  <hjl@gnu.org>
21
22         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use clone2 and don't use
23         scratch registers across the system call.
24
25 2001-02-19  Andreas Jaeger  <aj@suse.de>
26
27         * malloc/Makefile (tests): Run mtrace only when perl is available.
28         Reported by Achim Gottinger <achim@gentoo.org>.
29
30 2001-02-19  Ulrich Drepper  <drepper@redhat.com>
31
32         * sysdeps/ieee754/ldbl-96/e_j1l.c: New file.
33         Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.
34
35         * sysdeps/i386/fpu/libm-test-ulps: Adjust error values for j1 and y1.
36         * sysdeps/ia64/fpu/libm-test-ulps: Adjust error values for y1.
37         * math/libm-test.inc (j1_test): Mark constants as long double.
38         (jn_test): Likewise.
39         (y1_test): Likewise.
40         (yn_test): Likewise.
41
42         * libio/iogetline.c: Move return until after last statement.
43
44         * localedata/show-ucs-data.c: Don't show < > for better readability.
45
46         * sysdeps/ia64/fpu/Dist: New file.
47         * sysdeps/ia64/fpu/Makefile: New file.
48         * sysdeps/ia64/fpu/Versions: New file.
49         * sysdeps/ia64/fpu/e_acos.S: New file.
50         * sysdeps/ia64/fpu/e_acosf.S: New file.
51         * sysdeps/ia64/fpu/e_acosl.S: New file.
52         * sysdeps/ia64/fpu/e_asin.S: New file.
53         * sysdeps/ia64/fpu/e_asinf.S: New file.
54         * sysdeps/ia64/fpu/e_asinl.S: New file.
55         * sysdeps/ia64/fpu/e_atan2.S: New file.
56         * sysdeps/ia64/fpu/e_atan2f.S: New file.
57         * sysdeps/ia64/fpu/e_atan2l.c: New file.
58         * sysdeps/ia64/fpu/e_cosh.S: New file.
59         * sysdeps/ia64/fpu/e_coshf.S: New file.
60         * sysdeps/ia64/fpu/e_coshl.S: New file.
61         * sysdeps/ia64/fpu/e_exp.S: New file.
62         * sysdeps/ia64/fpu/e_expf.S: New file.
63         * sysdeps/ia64/fpu/e_expl.c: New file.
64         * sysdeps/ia64/fpu/e_fmod.S: New file.
65         * sysdeps/ia64/fpu/e_fmodf.S: New file.
66         * sysdeps/ia64/fpu/e_fmodl.S: New file.
67         * sysdeps/ia64/fpu/e_hypot.S: New file.
68         * sysdeps/ia64/fpu/e_hypotf.S: New file.
69         * sysdeps/ia64/fpu/e_hypotl.S: New file.
70         * sysdeps/ia64/fpu/e_log.S: New file.
71         * sysdeps/ia64/fpu/e_log10.c: New file.
72         * sysdeps/ia64/fpu/e_log10f.c: New file.
73         * sysdeps/ia64/fpu/e_log10l.c: New file.
74         * sysdeps/ia64/fpu/e_logf.S: New file.
75         * sysdeps/ia64/fpu/e_logl.c: New file.
76         * sysdeps/ia64/fpu/e_pow.S: New file.
77         * sysdeps/ia64/fpu/e_powf.S: New file.
78         * sysdeps/ia64/fpu/e_powl.S: New file.
79         * sysdeps/ia64/fpu/e_rem_pio2.c: New file.
80         * sysdeps/ia64/fpu/e_rem_pio2f.c: New file.
81         * sysdeps/ia64/fpu/e_remainder.S: New file.
82         * sysdeps/ia64/fpu/e_remainderf.S: New file.
83         * sysdeps/ia64/fpu/e_remainderl.S: New file.
84         * sysdeps/ia64/fpu/e_scalb.S: New file.
85         * sysdeps/ia64/fpu/e_scalbf.S: New file.
86         * sysdeps/ia64/fpu/e_scalbl.S: New file.
87         * sysdeps/ia64/fpu/e_sinh.S: New file.
88         * sysdeps/ia64/fpu/e_sinhf.S: New file.
89         * sysdeps/ia64/fpu/e_sinhl.S: New file.
90         * sysdeps/ia64/fpu/e_sqrt.S: New file.
91         * sysdeps/ia64/fpu/e_sqrtf.S: New file.
92         * sysdeps/ia64/fpu/e_sqrtl.S: New file.
93         * sysdeps/ia64/fpu/k_rem_pio2.c: New file.
94         * sysdeps/ia64/fpu/k_rem_pio2f.c: New file.
95         * sysdeps/ia64/fpu/k_rem_pio2l.c: New file.
96         * sysdeps/ia64/fpu/libm_atan2_reg.S: New file.
97         * sysdeps/ia64/fpu/libm_error.c: New file.
98         * sysdeps/ia64/fpu/libm_frexp4.S: New file.
99         * sysdeps/ia64/fpu/libm_frexp4f.S: New file.
100         * sysdeps/ia64/fpu/libm_frexp4l.S: New file.
101         * sysdeps/ia64/fpu/libm_reduce.S: New file.
102         * sysdeps/ia64/fpu/libm_support.h: New file.
103         * sysdeps/ia64/fpu/libm_tan.S: New file.
104         * sysdeps/ia64/fpu/s_atan.S: New file.
105         * sysdeps/ia64/fpu/s_atanf.S: New file.
106         * sysdeps/ia64/fpu/s_atanl.S: New file.
107         * sysdeps/ia64/fpu/s_cbrt.S: New file.
108         * sysdeps/ia64/fpu/s_cbrtf.S: New file.
109         * sysdeps/ia64/fpu/s_cbrtl.S: New file.
110         * sysdeps/ia64/fpu/s_ceil.S: New file.
111         * sysdeps/ia64/fpu/s_ceilf.S: New file.
112         * sysdeps/ia64/fpu/s_ceill.S: New file.
113         * sysdeps/ia64/fpu/s_cos.S: New file.
114         * sysdeps/ia64/fpu/s_cosf.S: New file.
115         * sysdeps/ia64/fpu/s_cosl.S: New file.
116         * sysdeps/ia64/fpu/s_expm1.S: New file.
117         * sysdeps/ia64/fpu/s_expm1f.S: New file.
118         * sysdeps/ia64/fpu/s_expm1l.S: New file.
119         * sysdeps/ia64/fpu/s_floor.S: New file.
120         * sysdeps/ia64/fpu/s_floorf.S: New file.
121         * sysdeps/ia64/fpu/s_floorl.S: New file.
122         * sysdeps/ia64/fpu/s_frexp.c: New file.
123         * sysdeps/ia64/fpu/s_frexpf.c: New file.
124         * sysdeps/ia64/fpu/s_frexpl.c: New file.
125         * sysdeps/ia64/fpu/s_ilogb.S: New file.
126         * sysdeps/ia64/fpu/s_ilogbf.S: New file.
127         * sysdeps/ia64/fpu/s_ilogbl.S: New file.
128         * sysdeps/ia64/fpu/s_ldexp.S: New file.
129         * sysdeps/ia64/fpu/s_ldexpf.S: New file.
130         * sysdeps/ia64/fpu/s_ldexpl.S: New file.
131         * sysdeps/ia64/fpu/s_log1p.S: New file.
132         * sysdeps/ia64/fpu/s_log1pf.S: New file.
133         * sysdeps/ia64/fpu/s_log1pl.S: New file.
134         * sysdeps/ia64/fpu/s_logb.S: New file.
135         * sysdeps/ia64/fpu/s_logbf.S: New file.
136         * sysdeps/ia64/fpu/s_logbl.S: New file.
137         * sysdeps/ia64/fpu/s_matherrf.c: New file.
138         * sysdeps/ia64/fpu/s_matherrl.c: New file.
139         * sysdeps/ia64/fpu/s_modf.S: New file.
140         * sysdeps/ia64/fpu/s_modff.S: New file.
141         * sysdeps/ia64/fpu/s_modfl.S: New file.
142         * sysdeps/ia64/fpu/s_nearbyint.S: New file.
143         * sysdeps/ia64/fpu/s_nearbyintf.S: New file.
144         * sysdeps/ia64/fpu/s_nearbyintl.S: New file.
145         * sysdeps/ia64/fpu/s_rint.S: New file.
146         * sysdeps/ia64/fpu/s_rintf.S: New file.
147         * sysdeps/ia64/fpu/s_rintl.S: New file.
148         * sysdeps/ia64/fpu/s_round.S: New file.
149         * sysdeps/ia64/fpu/s_roundf.S: New file.
150         * sysdeps/ia64/fpu/s_roundl.S: New file.
151         * sysdeps/ia64/fpu/s_scalbn.S: New file.
152         * sysdeps/ia64/fpu/s_scalbnf.S: New file.
153         * sysdeps/ia64/fpu/s_scalbnl.S: New file.
154         * sysdeps/ia64/fpu/s_significand.S: New file.
155         * sysdeps/ia64/fpu/s_significandf.S: New file.
156         * sysdeps/ia64/fpu/s_significandl.S: New file.
157         * sysdeps/ia64/fpu/s_sin.c: New file.
158         * sysdeps/ia64/fpu/s_sincos.c: New file.
159         * sysdeps/ia64/fpu/s_sincosf.c: New file.
160         * sysdeps/ia64/fpu/s_sincosl.c: New file.
161         * sysdeps/ia64/fpu/s_sinf.c: New file.
162         * sysdeps/ia64/fpu/s_sinl.c: New file.
163         * sysdeps/ia64/fpu/s_tan.S: New file.
164         * sysdeps/ia64/fpu/s_tanf.S: New file.
165         * sysdeps/ia64/fpu/s_tanl.S: New file.
166         * sysdeps/ia64/fpu/s_trunc.S: New file.
167         * sysdeps/ia64/fpu/s_truncf.S: New file.
168         * sysdeps/ia64/fpu/s_truncl.S: New file.
169         * sysdeps/ia64/fpu/w_acos.c: New file.
170         * sysdeps/ia64/fpu/w_acosf.c: New file.
171         * sysdeps/ia64/fpu/w_acosl.c: New file.
172         * sysdeps/ia64/fpu/w_asin.c: New file.
173         * sysdeps/ia64/fpu/w_asinf.c: New file.
174         * sysdeps/ia64/fpu/w_asinl.c: New file.
175         * sysdeps/ia64/fpu/w_atan2.c: New file.
176         * sysdeps/ia64/fpu/w_atan2f.c: New file.
177         * sysdeps/ia64/fpu/w_atan2l.c: New file.
178         * sysdeps/ia64/fpu/w_cosh.c: New file.
179         * sysdeps/ia64/fpu/w_coshf.c: New file.
180         * sysdeps/ia64/fpu/w_coshl.c: New file.
181         * sysdeps/ia64/fpu/w_exp.c: New file.
182         * sysdeps/ia64/fpu/w_expf.c: New file.
183         * sysdeps/ia64/fpu/w_fmod.c: New file.
184         * sysdeps/ia64/fpu/w_fmodf.c: New file.
185         * sysdeps/ia64/fpu/w_fmodl.c: New file.
186         * sysdeps/ia64/fpu/w_hypot.c: New file.
187         * sysdeps/ia64/fpu/w_hypotf.c: New file.
188         * sysdeps/ia64/fpu/w_hypotl.c: New file.
189         * sysdeps/ia64/fpu/w_log.c: New file.
190         * sysdeps/ia64/fpu/w_log10.c: New file.
191         * sysdeps/ia64/fpu/w_log10f.c: New file.
192         * sysdeps/ia64/fpu/w_log10l.c: New file.
193         * sysdeps/ia64/fpu/w_logf.c: New file.
194         * sysdeps/ia64/fpu/w_logl.c: New file.
195         * sysdeps/ia64/fpu/w_pow.c: New file.
196         * sysdeps/ia64/fpu/w_powf.c: New file.
197         * sysdeps/ia64/fpu/w_powl.c: New file.
198         * sysdeps/ia64/fpu/w_remainder.c: New file.
199         * sysdeps/ia64/fpu/w_remainderf.c: New file.
200         * sysdeps/ia64/fpu/w_remainderl.c: New file.
201         * sysdeps/ia64/fpu/w_scalb.c: New file.
202         * sysdeps/ia64/fpu/w_scalbf.c: New file.
203         * sysdeps/ia64/fpu/w_scalbl.c: New file.
204         * sysdeps/ia64/fpu/w_sqrt.c: New file.
205         * sysdeps/ia64/fpu/w_sqrtf.c: New file.
206         * sysdeps/ia64/fpu/w_sqrtl.c: New file.
207         * sysdeps/ia64/fpu/libm-test-ulps: Adjust for long double
208         implementation.
209         * sysdeps/ia64/fpu/bits/mathdef.h: Correct float_t and double_t types.
210         Change FP_ILOGBNAN for new implementation.
211         * Verions.def: Add 2.2.3 versions.
212
213 2001-02-18  Ulrich Drepper  <drepper@redhat.com>
214
215         * math/libm-test.inc (scalb_test): Require invalid exception being
216         raised for invalid parameters.
217         * sysdeps/i386/fpu/e_scalb.S: Raise invalid exception if necessary.
218         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
219         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
220
221 2001-02-18  Mark Kettenis  <kettenis@gnu.org>
222
223         * sysdeps/mach/getsysstats.c (__get_phys_pages): Change return
224         value to long int.
225         (__get_avphys_pages): Likewise.
226
227 2001-02-18  Ulrich Drepper  <drepper@redhat.com>
228
229         * math/libm-test.inc (pow_test): Correct expected results for x == +-1.
230         * sysdeps/i386/fpu/e_pow.S: Handle x == +-1 correctly.
231         * sysdeps/i386/fpu/e_powf.S: Likewise.
232         * sysdeps/i386/fpu/e_powl.S: Likewise.
233
234         * sysdeps/i386/fpu/bits/mathinline.h: Remove pow inline code.
235
236 2001-02-17  Ulrich Drepper  <drepper@redhat.com>
237
238         * math/Makefile (libm-calls): It's e_exp2 not s_exp2.
239
240         * sysdeps/generic/s_exp2l.c: Renamed to...
241         * sysdeps/generic/e_exp2l.c: ...this.   New file.
242         * sysdeps/i386/fpu/s_exp2.S: Renamed to...
243         * sysdeps/i386/fpu/e_exp2.S: ...this.   New file.
244         * sysdeps/i386/fpu/s_exp2f.S: Renamed to...
245         * sysdeps/i386/fpu/e_exp2f.S: ...this.   New file.
246         * sysdeps/i386/fpu/s_exp2l.S: Renamed to...
247         * sysdeps/i386/fpu/e_exp2l.S: ...this.   New file.
248         * sysdeps/ieee754/flt-32/s_exp2f.c: Renamed to...
249         * sysdeps/ieee754/flt-32/e_exp2f.c: ...this.   New file.
250         * sysdeps/ieee754/dbl-64/s_exp2.c: Renamed to...
251         * sysdeps/ieee754/dbl-64/e_exp2.c: ...this.   New file.
252         * sysdeps/m68k/fpu/s_exp2.c: Renamed to...
253         * sysdeps/m68k/fpu/e_exp2.c: ...this.   New file.
254         * sysdeps/m68k/fpu/s_exp2f.c: Renamed to...
255         * sysdeps/m68k/fpu/e_exp2f.c: ...this.   New file.
256         * sysdeps/m68k/fpu/s_exp2l.c: Renamed to...
257         * sysdeps/m68k/fpu/e_exp2l.c: ...this.   New file.
258
259 2001-02-17  Andreas Jaeger  <aj@suse.de>
260
261         * configure.in: Allow gcc 3.
262
263 2001-02-16  Ulrich Drepper  <drepper@redhat.com>
264
265         * math/w_acos.c: Move to ...
266         * sysdeps/generic/w_acos.c: ...here.  New file.
267         * math/w_acosf.c: Move to ...
268         * sysdeps/generic/w_acosf.c: ...here.  New file.
269         * math/w_acosh.c: Move to ...
270         * sysdeps/generic/w_acosh.c: ...here.  New file.
271         * math/w_acoshf.c: Move to ...
272         * sysdeps/generic/w_acoshf.c: ...here.  New file.
273         * math/w_acoshl.c: Move to ...
274         * sysdeps/generic/w_acoshl.c: ...here.  New file.
275         * math/w_acosl.c: Move to ...
276         * sysdeps/generic/w_acosl.c: ...here.  New file.
277         * math/w_asin.c: Move to ...
278         * sysdeps/generic/w_asin.c: ...here.  New file.
279         * math/w_asinf.c: Move to ...
280         * sysdeps/generic/w_asinf.c: ...here.  New file.
281         * math/w_asinl.c: Move to ...
282         * sysdeps/generic/w_asinl.c: ...here.  New file.
283         * math/w_atan2.c: Move to ...
284         * sysdeps/generic/w_atan2.c: ...here.  New file.
285         * math/w_atan2f.c: Move to ...
286         * sysdeps/generic/w_atan2f.c: ...here.  New file.
287         * math/w_atan2l.c: Move to ...
288         * sysdeps/generic/w_atan2l.c: ...here.  New file.
289         * math/w_atanh.c: Move to ...
290         * sysdeps/generic/w_atanh.c: ...here.  New file.
291         * math/w_atanhf.c: Move to ...
292         * sysdeps/generic/w_atanhf.c: ...here.  New file.
293         * math/w_atanhl.c: Move to ...
294         * sysdeps/generic/w_atanhl.c: ...here.  New file.
295         * math/w_cosh.c: Move to ...
296         * sysdeps/generic/w_cosh.c: ...here.  New file.
297         * math/w_coshf.c: Move to ...
298         * sysdeps/generic/w_coshf.c: ...here.  New file.
299         * math/w_coshl.c: Move to ...
300         * sysdeps/generic/w_coshl.c: ...here.  New file.
301         * math/w_drem.c: Move to ...
302         * sysdeps/generic/w_drem.c: ...here.  New file.
303         * math/w_dremf.c: Move to ...
304         * sysdeps/generic/w_dremf.c: ...here.  New file.
305         * math/w_dreml.c: Move to ...
306         * sysdeps/generic/w_dreml.c: ...here.  New file.
307         * math/w_exp10.c: Move to ...
308         * sysdeps/generic/w_exp10.c: ...here.  New file.
309         * math/w_exp10f.c: Move to ...
310         * sysdeps/generic/w_exp10f.c: ...here.  New file.
311         * math/w_exp10l.c: Move to ...
312         * sysdeps/generic/w_exp10l.c: ...here.  New file.
313         * math/w_exp2.c: Move to ...
314         * sysdeps/generic/w_exp2.c: ...here.  New file.
315         * math/w_exp2f.c: Move to ...
316         * sysdeps/generic/w_exp2f.c: ...here.  New file.
317         * math/w_exp2l.c: Move to ...
318         * sysdeps/generic/w_exp2l.c: ...here.  New file.
319         * math/w_fmod.c: Move to ...
320         * sysdeps/generic/w_fmod.c: ...here.  New file.
321         * math/w_fmodf.c: Move to ...
322         * sysdeps/generic/w_fmodf.c: ...here.  New file.
323         * math/w_fmodl.c: Move to ...
324         * sysdeps/generic/w_fmodl.c: ...here.  New file.
325         * math/w_hypot.c: Move to ...
326         * sysdeps/generic/w_hypot.c: ...here.  New file.
327         * math/w_hypotf.c: Move to ...
328         * sysdeps/generic/w_hypotf.c: ...here.  New file.
329         * math/w_hypotl.c: Move to ...
330         * sysdeps/generic/w_hypotl.c: ...here.  New file.
331         * math/w_j0.c: Move to ...
332         * sysdeps/generic/w_j0.c: ...here.  New file.
333         * math/w_j0f.c: Move to ...
334         * sysdeps/generic/w_j0f.c: ...here.  New file.
335         * math/w_j0l.c: Move to ...
336         * sysdeps/generic/w_j0l.c: ...here.  New file.
337         * math/w_j1.c: Move to ...
338         * sysdeps/generic/w_j1.c: ...here.  New file.
339         * math/w_j1f.c: Move to ...
340         * sysdeps/generic/w_j1f.c: ...here.  New file.
341         * math/w_j1l.c: Move to ...
342         * sysdeps/generic/w_j1l.c: ...here.  New file.
343         * math/w_jn.c: Move to ...
344         * sysdeps/generic/w_jn.c: ...here.  New file.
345         * math/w_jnf.c: Move to ...
346         * sysdeps/generic/w_jnf.c: ...here.  New file.
347         * math/w_jnl.c: Move to ...
348         * sysdeps/generic/w_jnl.c: ...here.  New file.
349         * math/w_lgamma.c: Move to ...
350         * sysdeps/generic/w_lgamma.c: ...here.  New file.
351         * math/w_lgammaf.c: Move to ...
352         * sysdeps/generic/w_lgammaf.c: ...here.  New file.
353         * math/w_lgammaf_r.c: Move to ...
354         * sysdeps/generic/w_lgammaf_r.c: ...here.  New file.
355         * math/w_lgammal.c: Move to ...
356         * sysdeps/generic/w_lgammal.c: ...here.  New file.
357         * math/w_lgammal_r.c: Move to ...
358         * sysdeps/generic/w_lgammal_r.c: ...here.  New file.
359         * math/w_lgamma_r.c: Move to ...
360         * sysdeps/generic/w_lgamma_r.c: ...here.  New file.
361         * math/w_log10.c: Move to ...
362         * sysdeps/generic/w_log10.c: ...here.  New file.
363         * math/w_log10f.c: Move to ...
364         * sysdeps/generic/w_log10f.c: ...here.  New file.
365         * math/w_log10l.c: Move to ...
366         * sysdeps/generic/w_log10l.c: ...here.  New file.
367         * math/w_log.c: Move to ...
368         * sysdeps/generic/w_log.c: ...here.  New file.
369         * math/w_logf.c: Move to ...
370         * sysdeps/generic/w_logf.c: ...here.  New file.
371         * math/w_logl.c: Move to ...
372         * sysdeps/generic/w_logl.c: ...here.  New file.
373         * math/w_pow.c: Move to ...
374         * sysdeps/generic/w_pow.c: ...here.  New file.
375         * math/w_powf.c: Move to ...
376         * sysdeps/generic/w_powf.c: ...here.  New file.
377         * math/w_powl.c: Move to ...
378         * sysdeps/generic/w_powl.c: ...here.  New file.
379         * math/w_remainder.c: Move to ...
380         * sysdeps/generic/w_remainder.c: ...here.  New file.
381         * math/w_remainderf.c: Move to ...
382         * sysdeps/generic/w_remainderf.c: ...here.  New file.
383         * math/w_remainderl.c: Move to ...
384         * sysdeps/generic/w_remainderl.c: ...here.  New file.
385         * math/w_scalb.c: Move to ...
386         * sysdeps/generic/w_scalb.c: ...here.  New file.
387         * math/w_scalbf.c: Move to ...
388         * sysdeps/generic/w_scalbf.c: ...here.  New file.
389         * math/w_scalbl.c: Move to ...
390         * sysdeps/generic/w_scalbl.c: ...here.  New file.
391         * math/w_sinh.c: Move to ...
392         * sysdeps/generic/w_sinh.c: ...here.  New file.
393         * math/w_sinhf.c: Move to ...
394         * sysdeps/generic/w_sinhf.c: ...here.  New file.
395         * math/w_sinhl.c: Move to ...
396         * sysdeps/generic/w_sinhl.c: ...here.  New file.
397         * math/w_sqrtl.c: Move to ...
398         * sysdeps/generic/w_sqrtl.c: ...here.  New file.
399         * math/w_tgamma.c: Move to ...
400         * sysdeps/generic/w_tgamma.c: ...here.  New file.
401         * math/w_tgammaf.c: Move to ...
402         * sysdeps/generic/w_tgammaf.c: ...here.  New file.
403         * math/w_tgammal.c: Move to ...
404         * sysdeps/generic/w_tgammal.c: ...here.  New file.
405
406         * locale/programs/ld-address.c (address_finish): Add 'S' to allow
407         formats for postal_fmt.
408
409 2001-02-16  Jakub Jelinek  <jakub@redhat.com>
410
411         * sysdeps/unix/sysv/linux/alpha/syscalls.list (ftruncate): Add
412         __ftruncate64 alias.
413         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (ftruncate):
414         Likewise.
415
416 2001-02-15  David Mosberger  <davidm@hpl.hp.com>
417
418         * sysdeps/unix/sysv/linux/ia64/__longjmp.S (__longjmp): No need to
419         do "loadrs".  Writing to bspstore already takes care of
420         invalidating the "clean" partition.
421
422 2001-02-16  Andreas Schwab  <schwab@suse.de>
423
424         * sysdeps/m68k/fpu/s_nextafterl.c: New file.
425         * sysdeps/m68k/fpu/s_fpclassifyl.c: New file.
426
427 2001-02-15  Jakub Jelinek  <jakub@redhat.com>
428
429         * posix/regex.c (init_syntax_once): Add prototype.
430         (TRANSLATE): If MBS_SUPPORT, translate all characters up to '\xff'.
431         (re_search_2): Avoid warning.
432         (count_mbs_length): Add prototype.
433         * posix/tst-regex3.c: New file.
434         * posix/Makefile (tests): Add bug-regex3.
435
436 2001-02-15  Ulrich Drepper  <drepper@redhat.com>
437
438         * stdio-common/Makefile (tests): Add tst-gets.
439         * stdio-common/tst-gets.c: New file.
440         * stdio-common/tst-gets.input: New file.
441
442         * elf/elf.h (DT_CHECKSUM): Define.
443
444         * sysdeps/generic/strtoll.c: Don't export __strto*_internal as
445         default symbol.
446         * sysdeps/generic/strtoull.c: Likewise.
447
448 2001-02-14  Wolfram Gloger  <wg@malloc.de>
449
450         * malloc/malloc.c (new_heap): When allocating large chunk aligned
451         to HEAP_MAX_SIZE, prefer one with lower address, to avoid `holes'
452         between the heaps.
453
454 2001-02-14  Ulrich Drepper  <drepper@redhat.com>
455
456         * math/libm-test.inc (j0_test): Check whether sincos is available.
457         (j1_test): Likewise.
458         (jn_test): Likewise.
459         (y0_test): Likewise.
460         (y1_test): Likewise.
461         (yn_test): Likewise.
462
463         * posix/tst-gnuglob.c: Make a few entries DT_UNKNOWN and teach
464         fake filesystem routines to handle this.
465
466         * time/sys/time.h: Make settimeofday and adjtime available if
467         _BSD_SOURCE.
468
469         * time/sys/time.h: Make timer* macros available for BSD.
470
471         * iconvdata/gb18030.c: Update for Dec 2000 re-release of GB18030.
472         Patch by Yong Li <rigel863@yahoo.com>.
473
474         * sysdeps/generic/glob.c (CONVERT_DIRENT_DIRENT64): Fix copying of
475         name.
476
477         * posix/Makefile (tests): Add tst-gnuglob.
478         * posix/tst-gnuglob.c: New file.
479
480 2001-02-13  H.J. Lu  <hjl@gnu.org>
481
482         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __ftruncate64.
483
484 2001-02-13  Ulrich Drepper  <drepper@redhat.com>
485
486         * locale/programs/ld-paper.c (paper_output): Pretty printing.
487
488         * iconvdata/Makefile (modules): Add GBBIG5.
489         (distribute): Add gbbig5.c.
490         * iconvdata/gconv-modules: Add entries for GBBIG5 module.
491
492         * iconvdata/gbbig5.c: New file.
493         Contributed by Yong Li <rigel863@yahoo.com>.
494
495 2001-02-13  Philip Blundell  <pb@futuretv.com>
496
497         * manual/crypt.texi: Remove outdated references to crypt add-on.
498
499         * manual/creature.texi: Improve wording slightly.
500
501 2001-02-13  Ulrich Drepper  <drepper@redhat.com>
502
503         * io/ftw.c: Always use readdir64.
504         * io/ftw64.c: Likewise.
505         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
506         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
507         * sysdeps/generic/glob.c: Likewise.  Convert results of gl_readdir
508         callback to dirent.  Still allow compiling outside glibc.
509         * sysdeps/gnu/glob64.c: Define COMPILE_GLOB64.
510         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
511
512         * malloc/mtrace.c: Use fopen64.
513         * posix/spawni.c: Use __open64.
514         * sysdeps/unix/opendir.c: Likewise.
515         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
516
517         * sysdeps/generic/ftruncate64.c: Define __ftruncate64 and make old
518         name a weak alias.
519         * sysdeps/unix/sysv/aix/ftruncate64.c: Likewise.
520         * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
521         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
522         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
523
524         * resolv/res_data.c: Add cast to avoid warning.
525
526         * include/unistd.h: Declare __ftruncate64.
527
528         * sysdeps/generic/utmp_file.c: Use LFS functions and types.
529
530         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use __lseek64
531         instead of __lseek.
532
533 2001-02-13  Andreas Jaeger  <aj@suse.de>
534
535         * login/getutent_r.c: Include <stdlib.h> for NULL.
536         * login/getutid_r.c: Likewise.
537
538 2001-02-12  Ulrich Drepper  <drepper@redhat.com>
539
540         * sysdeps/dbl-64/e_j0.c: Little optimization, use sincos.
541         * sysdeps/dbl-64/e_j1.c: Likewise.
542         * sysdeps/dbl-64/e_jn.c: Likewise.
543         * sysdeps/flt-32/e_j0f.c: Likewise.
544         * sysdeps/flt-32/e_j1f.c: Likewise.
545         * sysdeps/ldbl-96/e_j0l.c: Likewise.
546
547 2000-12-02  H.J. Lu  <hjl@gnu.org>
548
549         * resolv/res_libc.c (res_init): Don't make it default.
550
551 2001-02-12  Ulrich Drepper  <drepper@redhat.com>
552
553         * manual/debug.texi: Improved the wording.
554         Patch by Philip Blundell <pb@futuretv.com>.
555
556 2001-02-12  Andreas Jaeger  <aj@suse.de>
557
558         * posix/Makefile (tests): Don't run bug-regex2 when
559         cross-compiling.
560
561         * libio/Makefile (tests): Don't run test-freopen when
562         cross-compiling.
563
564         * manual/stdio.texi (Streams and I18N): Fix typos.
565
566 2001-02-12  Ulrich Drepper  <drepper@redhat.com>
567
568         * sysdeps/i386/fpu/libm-test-ulps: Adjust for errors in y0l.
569
570         * math/libm-test.inc (j0_test): Make expected results long double
571         constants.
572         (y0_test): Likewise.
573
574         * sysdeps/ieee754/ldbl-96/e_j0l.c: New file.
575         Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.
576
577 2001-02-11  Jakub Jelinek  <jakub@redhat.com>
578
579         * sysdeps/generic/strtoll.c (__strtoq_internal): Ressurect alias
580         which was exported from libc.
581         * sysdeps/generic/strtoull.c (__strtouq_internal): Likewise.
582
583 2001-02-12  Andreas Jaeger  <aj@suse.de>
584
585         * manual/arith.texi (Parsing of Integers): Fix some wordings.
586
587 2001-02-11  Ulrich Drepper  <drepper@redhat.com>
588
589         * sysdeps/generic/getsysstat.c: Change return value of get_phys_pages
590         and get_avphys_page to long int.
591         * sysdeps/unix/sysv/linux/getsysstat.c: Likewise.
592         * include/sys/sysinfo.h: Likewise.
593         * sysdeps/generic/sys/sysinfo.h: Likewise.
594         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Likewise.
595
596         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Fail if we
597         cannot return as many values as the user asked for.
598
599 2001-02-11  Andreas Jaeger  <aj@suse.de>
600
601         * manual/resource.texi (Memory Resources): Fix typo.
602
603         * libio/Makefile ($(objpfx)test-freopen.out): Pass
604         run-program-prefix.
605
606         * libio/test-freopen.sh: Use run_program_prefix.
607
608 2001-02-10  Andreas Jaeger  <aj@suse.de>
609
610         * stdlib/Makefile (tests): Don't run tst-fmtmsg when
611         cross-compiling.
612         ($(objpfx)tst-fmtmsg.out): Pass run-program-prefix.
613
614         * stdlib/tst-fmtmsg.sh (test): Use run_program_prefix for static
615         only builds.
616
617         * elf/Makefile (tests): Only run tst-pathopt with shared libs.
618
619         * posix/Makefile: Fix typo, it's build-static-nss.
620
621         * iconv/Makefile (extra-objs): New.
622
623 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
624
625         * sysdeps/unix/stime.c: Include <time.h>.
626
627         * sysdeps/mach/hurd/setitimer.c: Include <time.h>.
628
629 2001-02-10  Andreas Jaeger  <aj@suse.de>
630
631         * manual/string.texi (Search Functions): Fix typo.
632
633 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
634
635         * sysdeps/unix/bsd/times.c: Reorder includes and add <time.h>.
636         (timeval_to_clock_t): Add clk_tck argument and use that instead of
637         CLK_TCK.
638         (__times): Use __getclktck to get the number of clock ticks per
639         second and use its return value instead of CLK_TCK.
640
641 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
642
643         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h (_HAVE_SA_LEN): Define.
644
645 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
646
647         * sysdeps/mach/gettimeofday.c: Include <stddef.h>.
648
649 2001-02-10  Andreas Jaeger  <aj@suse.de>
650
651         * wctype/wcfuncs.c (func): Add prototype declarations to avoid
652         warning.
653
654 2001-02-09  Ulrich Drepper  <drepper@redhat.com>
655
656         * posix/Makefile: Add rules to build and run bug-regex2.
657         * posix/bug-regex2.c: New file.
658
659 2001-02-10  Jakub Jelinek  <jakub@redhat.com>
660
661         * posix/regex.c (convert_mbs_to_wcs): Change is_binary to char *.
662         (regex_compile): Likewise.
663         (FREE_VARIABLES): Don't free is_binary1 and is_binary2.
664         (re_match_2_internal): Use just is_binary instead of two variables.
665         Use REGEX_TALLOC to allocate it and FREE_VAR to free on failure.
666
667 2001-02-09  Ulrich Drepper  <drepper@redhat.com>
668
669         * version.h (VERSION): Bump to 2.2.2.
670
671         * iconv/Makefile (distribute): Add iconv_charmap.c and
672         dummy-repertoire.c.
673         * elf/Makefile (distribute): Add firstobj.c.
674         * Makefile (distribute): Add include/pthread.h.
675
676         * configure.in: Require makeinfo version 4.
677
678         * libio/tst_wscanf.c (main): Add cast to avoid warning.
679         * libio/tst_swscanf.c (main): Likewise..
680
681 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
682
683         * sysdeps/generic/setenv.c (unsetenv): Remove const from len.
684         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, fdim): Don't define if
685         __NO_MATH_INLINES.
686         * sysdeps/i386/dl-machine.h (elf_machine_rel): Only declare refsym
687         if not RTLD_BOOTSTRAP.
688         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
689         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
690
691 2001-02-09  Ulrich Drepper  <drepper@redhat.com>
692
693         * locale/programs/linereader.c (get_ident): Stop loop if EOF.  Use
694         lr_ungetc to push back last read character.
695         * locale/programs/linereader.h (lr_ungetc): Don't push back is
696         character is EOF.
697         (lr_ignore_rest): Don't warn about garbage if it is really the end
698         of the file.
699
700         * manual/Makefile: Use ifnottext and not ifinfo to protect Top node
701         definition.
702
703 2001-02-08  Ulrich Drepper  <drepper@redhat.com>
704
705         * Makerules (build-shlib): Work around different order of
706         processing of -B option in different gcc versions.
707
708         * posix/regex.c: Fix alignment problem.
709         Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
710
711         * sysdeps/alpha/strrchr.S: Little optimization.
712         Patch by Richard Henderson <rth@redhat.com>.
713
714         * sysdeps/alpha/alphaev67/strrchr.S: New file.
715         Contributed by Rick Gorton <rick.gorton@alpha-processor.com>.
716
717 2001-02-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
718
719         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Correct function name
720         in the assembler end directive.
721
722 2001-02-08  Andreas Jaeger  <aj@suse.de>
723
724         * manual/stdio.texi (Closing Streams): Fix typos.
725
726 2001-02-07  Ulrich Drepper  <drepper@redhat.com>
727
728         * sysdeps/alpha/alphaev67/strncat.S: Align last write address.
729         Patch by Richard Henderson <rth@redhat.com>.
730         Reported by Claus-Justus Heine <heine@instmath.rwth-aachen.de>.
731
732         * stdlib/strfmon.c [USE_IN_LIBIO]: Define lock variable and store
733         pointer in FILE structure before calling _IO_init.
734         * stdlib/Makefile: Add -D_IO_MTSAFE_IO to CFLAGS for strfmon and
735         strfmon_l if necessary.
736         Reported by Jury Gerold <gjury@grips.com>.
737
738         * sysdeps/gnu/netinet/tcp.h: Correct values of TCP_ macros.
739         Patch by Pekka.Pietikainen@cern.ch.
740
741         * posix/regex.c: Correct several problems with 64-bit architectures
742         introduced in the MBS changes.
743         Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
744
745 2001-02-07  Jakub Jelinek  <jakub@redhat.com>
746
747         * math/tgmath.h: Only add l suffixes if __NO_LONG_DOUBLE_MATH is
748         not defined.
749         * sysdeps/alpha/fpu/bits/mathinline.h: Honour __NO_MATH_INLINES.
750
751 2001-02-07  Andreas Jaeger  <aj@suse.de>
752
753         * manual/install.texi (Tools for Compilation): Fix typo.
754         Reported by Pavel Machek <pavel@bug.ucw.cz>.
755
756 2001-02-07  Ulrich Drepper  <drepper@redhat.com>
757
758         * stdlib/strtod.c: Never stop prematurely reading digits before the
759         decimal point is found.  Compute exponent limit for negative exponents
760         correctly.  For numbers ending in all zeros eat the zeros even before
761         the decimal point if the exponent is negative [PR libc/2072].
762         * stdlib/Makefile (tests): Add bug-strtod.
763         * stdlib/bug-strtod.c: New file.
764
765 2001-02-07  Andreas Jaeger  <aj@suse.de>
766
767         * posix/bug-regex1.c: Include <wchar.h> for fwide.
768
769 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
770
771         * posix/regex.c (regex_compile): Don't store pointer in wchar_t array.
772         Store index.
773         (compile_range): Handle index being passed, not pointer.
774         Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
775
776         * posix/regex.c: Fix a cast in the code for bracket handling which
777         caused 8-bit uncleanliness.
778         Patch by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>.
779
780         * posix/Makefile (tests): Add bug-regex1.
781         * posix/bug-regex1.c: New file.
782         Contributed by Jim Meyering <jim@meyering.net>.
783
784         * posix/regex.c: Many cleanups for incorrect format strings.
785
786 2001-02-06  Andreas Jaeger  <aj@suse.de>
787
788         * time/time.h (CLK_TCK): Check for !__STRICT_ANSI.
789
790 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
791
792         * locale/programs/locale.c (write_locales): Use scandir to read
793         directory so that the entries are sorted.
794
795 2001-02-06  Andreas Jaeger  <aj@suse.de>
796
797         * include/pthread.h: New file.
798
799         * wctype/wctype.h: Move internal interfaces from here to...
800         * include/wctype.h: ...here.
801
802         * wcsmbs/wchar.h: Move __wcslen from here to...
803         * include/wchar.h: ...here.
804
805         * posix/sys/wait.h: Move __wait from here to...
806         * include/sys/wait.h: ...here.
807
808         * string/string.h: Move __ffs and __strerror_r from here to...
809         * include/string.h: ...here.
810
811         * stdlib/stdlib.h: Move __on_exit from here to...
812         * include/stdlib.h: ...here.
813
814         * libio/stdio.h: Move __vsnprintf from here to...
815         * include/stdio.h: ...here.
816
817 2001-02-06  Andreas Schwab  <schwab@suse.de>
818
819         * sysdeps/unix/sysv/linux/ia64/ioperm.c: Don't include kernel
820         headers.
821
822         * timezone/Makefile: Don't assume that $(inst_zonedir) is a subdir
823         of $(inst_datadir).
824
825 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
826
827         * iconvdata/Makefile: Add dependency for bug-iconv2.out.
828
829 2001-02-06  Andreas Jaeger  <aj@suse.de>
830
831         * elf/firstobj.c: Add prototype.
832
833         * posix/regex.c (convert_mbs_to_wcs): Make static, add prototype
834         (truncate_wchar): Likewise.
835
836 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
837
838         * locale/programs/locale.c: Implement --verbose option for -a
839         which prints detailed information about the locales.
840
841 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
842
843         * sunrpc/xdr_rec.c (set_input_fragment): Change type of header
844         variable to uint32_t.
845         Reported by Ulrich Weigand <weigand@immd1.informatik.uni-erlangen.de>.
846
847 2001-02-04  Bruno Haible  <haible@clisp.cons.org>
848
849         * locale/C-translit.h.in: Add transliterations for CJK units of
850         measurement.
851
852 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
853
854         * elf/cache.c (print_entry): Use PRIx64 instead of Lx in printf
855         string.  Include <inttypes.h> instead of <stdint.h>.
856
857         * localedata/Makefile (tests): Add bug-iconv-trans.
858         Define bug-iconv-trans-ENV.
859         * localedata/bug-iconv-trans.c: New file.
860
861 2001-02-04  Bruno Haible  <haible@clisp.cons.org>
862
863         * iconv/gconv_trans.c (__gconv_transliterate): Use a temporary output
864         pointer, to avoid accumulating output from incomplete (unsuccessful)
865         transliteration attempts.
866
867 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
868
869         * elf/ldconfig.c (search_dir): Use PRIx64 instead of Lx in printf
870         string.  Include <inttypes.h> instead of <stdint.h>.
871
872         * configure.in: Add check for bison.
873         * config.make.in: Define BISON variable.
874         * intl/Makefile: Use BISON instead of YACC when generating plural.c.
875         Rename YFLAGS to BISONFLAGS.
876
877 2001-02-05  Andreas Jaeger  <aj@suse.de>
878
879         * io/test-lfs.c (do_test): Test lseek64 return value, call
880         test_ftello.
881         (test_ftello): New function to test ftello64 and fseeko64.
882
883         * signal/signal.h: Move __sigaction from here to...
884         * include/signal.h: ...here.
885
886         * io/fcntl.h: Move __fcntl and __open to...
887         * include/fcntl.h: ...here.
888
889 2001-02-04  Philip Blundell  <philb@gnu.org>
890
891         * configure.in: Distinguish ARM from Thumb.
892
893 2001-02-04  Philip Blundell  <philb@gnu.org>
894
895         * sysdeps/arm/dl-machine.h (elf_machine_rel): Correct handling of
896         PC24 relocs with negative value.
897
898 2001-02-04  Ulrich Drepper  <drepper@redhat.com>
899
900         * iconv/Makefile (iconv_prog-modules): Define.  Add vpath to find
901         files in locale/programs.  Add CFLAGS definition to allow compiling
902         localedef files.
903         * iconv/dummy-repertoire.c: New file.
904         * iconv/iconv_charmap.c: New file.
905         * iconv/iconv_prog.h: New file.
906         * iconv/iconv_prog.c: Make verbose and omit_invalid global.
907         (main): If parameter for -f and -t contain slashes try first to resolve
908         the strings as filenames of charmap files.  Use them for conversion
909         in this case.
910         * iconvdata/run-iconv-test.sh: If charmaps exist also run tests with
911         iconv getting charmap names as parameters.
912         * locale/programs/linereader.c (lr_token): Take extra parameters
913         verbose and pass it to get_string.
914         (get_string): Take extra parameters verbose.
915         * locale/programs/charmap.c (parse_charmap): Take extra parameters
916         verbose and be_quiet.  Change all callers of lr_token and
917         parse_charmap.
918         * locale/programs/charmap.h: Likewise.
919         * locale/programs/ld-address.c: Likewise.
920         * locale/programs/ld-collate.c: Likewise.
921         * locale/programs/ld-ctype.c: Likewise.
922         * locale/programs/ld-identification.c: Likewise.
923         * locale/programs/ld-measurement.c: Likewise.
924         * locale/programs/ld-messages.c: Likewise.
925         * locale/programs/ld-monetary.c: Likewise.
926         * locale/programs/ld-name.c: Likewise.
927         * locale/programs/ld-numeric.c: Likewise.
928         * locale/programs/ld-paper.c: Likewise.
929         * locale/programs/ld-telephone.c: Likewise.
930         * locale/programs/ld-time.c: Likewise.
931         * locale/programs/linereader.c: Likewise.
932         * locale/programs/linereader.h: Likewise.
933         * locale/programs/localedef.c: Likewise.
934         * locale/programs/locfile.c: Likewise.
935         * locale/programs/locfile.h: Likewise.
936         * locale/programs/repertoire.c: Likewise.
937
938 2001-02-03  Ulrich Drepper  <drepper@redhat.com>
939
940         * iconv/iconv_prog.c (main): If output file name is "-" write to
941         stdout.
942         (main): If -f or -t argument is missing use charset of the current
943         locale.
944
945 2001-02-03  Andreas Jaeger  <aj@suse.de>
946
947         * sysdeps/i386/elf/start.S (_start): Align stack to 16-byte
948         boundary for SSE/SSE-2 alignment.
949
950         * posix/Makefile ($(objpfx)annexc.out): Also pass sysincludes to
951         annexc.
952
953 2001-02-03  Ulrich Drepper  <drepper@redhat.com>
954
955         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: File was using crlf.
956         Remove comma at end of enum.
957
958         * elf/dl-init.c: Add a few __builtin_expect.
959
960         * hesiod/hesiod.c: Remove unnecessary code.  Remove all uses of strcat.
961
962 2001-02-02  Ulrich Drepper  <drepper@redhat.com>
963
964         * hesiod/hesiod.c (hesiod_resolve): Also search HS records if
965         errno is ECONNREFUSED.
966
967         * posix/Makefile: Define MBS_SUPPORT for regex.c.
968         * posix/regex.c: Implement multibyte character handling.
969         Patch by Isamu Hasegawa <isamu@yamato.ibm.co.jp>.
970
971         * string/tst-svc.input: Add two more test cases.
972         * string/tst-svc.expect: Modify to reflect new test cases.
973
974 2001-02-01  Jakub Jelinek  <jakub@redhat.com>
975
976         * sysdeps/posix/getaddrinfo.c (gaih_local, gaih_inet): Replace all
977         tp->name tests with tp->name[0] tests.
978
979 2001-01-29  Ben Collins  <bcollins@debian.org>
980
981         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r):
982         Fix check for name == NULL.
983
984 2001-02-01  Ulrich Drepper  <drepper@redhat.com>
985
986         * elf/Makefile: Add rules to build and run initfirst test.
987         * elf/initfirst.c: New file.
988         * elf/firstobj.c: New file.
989
990         * Makerules (build-shlib): Add $(extra-B-$(@F:lib%.so=%).so).
991         * configure.in: Test for -z initfirst linker option.
992         * config.make.in: Add have-z-initfirst.
993         * elf/dl-init.c (_dl_init): Split out actual initialization code in
994         new function call_init.  If _dl_initfirst is non-NULL initialize first.
995         * elf/dl-load.c (_dl_map_from_fd): If DF_1_INITFIRST flag is set
996         remember object in _dl_initfirst.
997         * elf/soinit.c: Remove special support for calling
998         __pthread_initialize_minimal.
999
1000         * conform/conformtest.pl: Add missing $prepend in type test.
1001
1002 2001-01-31  Ulrich Drepper  <drepper@redhat.com>
1003
1004         * elf/elf.h (SHT_CHECKSUM): New definition.
1005
1006         * posix/fnmatch_loop.c: Remove incorrect reverse condition in
1007         [. .] matching.  Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
1008         * posix/tst-fnmatch.input: Add tests for [. .] in locales.
1009
1010 2001-01-31  Mark Kettenis  <kettenis@gnu.org>
1011
1012         * misc/sys/select.h: Include <bits/time.h> instead of <sys/time.h>
1013         to get definition of `struct timeval'.
1014
1015 2001-01-31  Ulrich Drepper  <drepper@redhat.com>
1016
1017         * posix/tst-fnmatch.input: Add test cases for de_DE.UTF-8 locale.
1018         * posix/fnmatch_loop.c: Fix handling of [= =] for multibyte charsets.
1019
1020 2001-01-30  Ulrich Drepper  <drepper@redhat.com>
1021
1022         * iconv/gconv_open.c (__gconv_open): Set conv_flags if IGNORE is
1023         seen, not flags.
1024
1025         * nis/nis_findserv.c: Include <time.h>.
1026
1027 2001-01-30  Yong Li  <yong.li@asu.edu>
1028
1029         * iconv/iconv_prog.c (main): Correct error handling method name.
1030
1031 2001-01-29  Ben Collins  <bcollins@debian.org>
1032
1033         * sysdeps/sparc/fpu/fraiseexcpt.c: Include <float.h>.
1034         * sysdeps/hppa/fpu/fraiseexcpt.c: Likewise.
1035         * sysdeps/m68k/fpu/fraiseexcpt.c: Likewise.
1036         * sysdeps/s390/fpu/fraiseexcpt.c: Likewise.
1037
1038 2001-01-30  Ulrich Drepper  <drepper@redhat.com>
1039
1040         * locale/programs/ld-measurement.c (measurement_finish): Fix a typo.
1041         Patch by Marko Myllynen <myllynen@lut.fi>.
1042
1043         * string/bits/string2.h (__strpbrk_c2): Correct parameter types
1044         (int instead of char).
1045         (__strpbrk_c3): Likewise.
1046         Reported by GOTO Masanori <gotom@debian.or.jp>.
1047
1048         * sysdeps/generic/bits/sockaddr.h: Remove SA_LEN macro.
1049         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Likewise.
1050         * include/sys/socket.h: Add SA_LEN here for internal use.
1051         Reported by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
1052
1053 2001-01-29  Ulrich Drepper  <drepper@redhat.com>
1054
1055         * malloc/Makefile: Don't build memusagestat if cross-compiling.
1056
1057         * sysdeps/generic/dl-sysdep.c (set_seen): Fix typo.
1058
1059         * math/libm-test.inc (rint_test): Add a few more tests for round
1060         to even rounding.
1061
1062 2001-01-28  Ulrich Drepper  <drepper@redhat.com>
1063
1064         * conform/data/pthread.h-data: Correct return type of pthread_exit.
1065
1066         * conform/conformtest.pl: Add -fno-builtin to CFLAGS.
1067
1068         * conform/data/stdlib.h-data: Add _Exit.
1069
1070         * inet/arpa/inet.h: Don't include <sys/types.h>.  Define socklen_t
1071         if not already happened.
1072         * inet/netinet/in.h: Don't include <sys/types.h>, use <bits/types.h>.
1073         Don't include <limits.h> and <bits/sockaddr.h>.
1074
1075         * conform/data/netinet/in.h-data: Allow all of <inttypes.h>.
1076
1077         * conform/data/spawn.h-data: Allow all of <sched.h>.
1078
1079         * sysdeps/ia64/fpu/fraiseexcpt.c: Include <float.h>.  Removed
1080         unused variable.
1081
1082         * sunrpc/xdr_rec.c (xdrrec_getpos): Add cast to long to avoid warning.
1083         * sunrpc/xdr_sizeof.c (x_inline): Likewise.
1084
1085         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include <float.h>.
1086
1087         * conform/conformtest.pl: Define $mustprepend{"stdio.h"}.
1088         * libio/stdio.h: Define va_list correctly.
1089
1090         * conform/data/pthread.h-data: Make priority protocol related
1091         functions optional.  Fix typos.
1092
1093         * posix/sched.h: Define sched_priority as __sched_priority.
1094         * sysdeps/generic/bits/sched.h (struct sched_param): Rename element
1095         to __sched_priority.
1096         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1097
1098 2001-01-27  Ulrich Drepper  <drepper@redhat.com>
1099
1100         * sysdeps/generic/clock_getcpuclockid.c: Include <time.h> instead
1101         of <sys/time.h>.
1102
1103         * sysdeps/unix/stime.c: Include <stddef.h> for NULL.
1104         * sysdeps/unix/time.c: Likewise.
1105
1106         * conform/data/time.h-data: CLK_TCK is not in XPG6.  Fix tzname entry.
1107         * sysdeps/mach/hurd/bits/time.h: Don't define CLK_TCK for XPG6.
1108         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
1109         * sysdeps/unix/sysv/linux/bits/time.h: Likewise.
1110         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
1111         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
1112         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
1113         * time/time.h: Likewise.
1114
1115         * conform/conformtest.pl (@headers): Add complex.h and tgmath.h.
1116         * conform/data/complex.h-data: New file.
1117         * conform/data/tgmath.h-data: New file.
1118
1119         * conform/data/wchar.h-data: Add missing functions.
1120
1121         * sysdeps/gnu/bits/utmpx.h: Define RUN_LVL only if __USE_GNU.
1122
1123         * conform/data/termios.h-data: Add missing const in tcsetattr()
1124         prototype.
1125
1126         * posix/sys/wait.h: Include <signal.h> and <sys/resource.h>.
1127         Don't define pid_t here.
1128
1129         * conform/data/sys/utsname.h-data: Don't provide fixed array sizes.
1130
1131         * conform/data/sys/time.h-data: Allow sys/select.h.
1132         * conform/data/sys/un.h-data: Fix typo.
1133         * time/sys/time.h: Don't include all of <time.h>, just struct timeval.
1134         * sysdeps/posix/clock_getres.c: Include <time.h> instead of
1135         <sys/time.h>.
1136         * sysdeps/unix/clock_nanosleep.c: Likewise.
1137         * sysdeps/unix/i386/clock_getcpuclockid.c: Likewise.
1138         * sysdeps/unix/i386/i586/clock_getres.c: Likewise.
1139         * sysdeps/unix/clock_gettime.c: Also include <time.h>.
1140         * sysdeps/unix/clock_settime.c: Likewise.
1141
1142         * sysdeps/generic/pselect.c: Include <stddef.h> for NULL.
1143         * login/getutent.c: Likewise.
1144         * login/getutid.c: Likewise.
1145         * login/getutline.c: Likewise.
1146
1147         * socket/sys/un.h: Define SUN_LEN only if __USE_MISC.
1148
1149         * sysdeps/unix/sysv/linux/bits/statvfs.h: Change type of f_fsid field
1150         to unsigned long.  Add __f_unused.  Define _STATVFSBUF_F_UNUSED.
1151         * sysdeps/unix/sysv/linux/internal_statvfs.c: Adjust initialization of
1152         f_fsid field after change in struct statvfs.
1153         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: New file.
1154         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: New file.
1155         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statvfs.h: New file.
1156
1157         * conform/data/sys/stat.h-data: Remove isfdtype.  Use
1158         optional-macro.
1159
1160         * conform/data/sys/socket.h-data: Fix typos.  Correct getsockopt,
1161         recvfrom, send, and socketpair prototypes.  Add allow lines.
1162         * socket/sys/socket.h: Include <sys/uio.h>.
1163         Don't use fancy __SOCKADDR_ARG definition unless __USE_GNU.
1164         Fix type of second parameter of listen.
1165         Don't declare isfdtype unless __USE_MISC.
1166         * sysdeps/generic/listen.c: Fix type of second parameter of listen.
1167         * sysdeps/mach/hurd/listen.c: Likewise.
1168         * sysdeps/generic/bits/socket.h (struct sockaddr_storage): Define
1169         ss_family and __ss_family.
1170         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
1171         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1172         (struct msghdr): Change type of msg_iovlen to int and type of
1173         msg_controllen to socklen_t.
1174         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: New file.
1175         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: New file.
1176         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/socket.h: New file.
1177         * inet/rcmd.c (rcmd_af): __ss_family is now ss_family.
1178         (rresvport_af): Likewise.
1179
1180         * conform/data/sys/shm.h-data: SHMLBA is not required to by a constant.
1181         * conform/conformtest.pl: Implement handling of symbol.
1182
1183         * signal/signal.h: Fix handling of __need_* symbols.
1184         * misc/sys/select.c: Define fd_set here.  Remove __fd_set.  Define
1185         fd_mask only if __USE_MISC.  Declare pselect for __USE_XOPEN2K.
1186         * include/sys/select.h: Use fd_set not __fd_set.
1187         * sysdeps/generic/bits/select.h: Likewise.
1188         * sysdeps/i386/bits/select.h: Likewise.
1189         * sysdeps/generic/bits/types.h: Don't define __fd_mask, __NFDBITS,
1190         __FDELT, __FDMASK, and __fd_set here.
1191         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
1192         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
1193         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1194         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
1195         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
1196         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
1197         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
1198         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
1199         * time/sys/time.h: Define struct timeval before including <time.h>
1200         and <sys/select.h>.
1201
1202         * conform/data/sys/time.h-data: fd_set is a typedef.
1203         * conform/data/sys/select.h-data: New file.
1204         * conform/data/sys/mman.h-data: Make typed mem stuff optional.
1205         * conform/conformtest.pl (@headers): Add sys/select.h.
1206         (type, optional-type): Unless testing a typedef instantiate object.
1207         Implement optional-function.
1208
1209         * math/test-misc.c: Include <float.h>.
1210
1211 2001-01-27  Andreas Jaeger  <aj@suse.de>
1212
1213         * misc/efgcvt_r.c: Include <float.h>.
1214
1215 2001-01-26  Ulrich Drepper  <drepper@redhat.com>
1216
1217         * conform/data/stdlib.h-data: Account for XPG6 changes.
1218         * stdlib/stdlib.h (__random): Change return value type to long.
1219         (posix_memalign): Cleanup parameter names.
1220         (setenv, unsetenv): Make available for __USE_XOPEN2K.
1221         Change return type of unsetenv to int.
1222         (qecvt, qgcvt, qfcvt): Declare only if __USE_MISC.
1223         * include/stdlib.h: Change return type of unsetenv to int.
1224         Change return type of random to long int.
1225         * sysdeps/generic/setenv.c (unsetenv): Change return type to int.
1226         Return -1 and set errno if parameter is invalid.
1227         * stdlib/random.c (__random): Change return value type to long.
1228
1229         * conform/data/stdio.h-data: Account for changes in XPG6.
1230
1231         * conform/data/spawn.h-data: Correct posix_spawnattr_setflags
1232         prototype.
1233
1234         * conform/conformtest.pl: Define $mustprepend{"signal.h"}.
1235         * conform/data/signal.h-data: Fix sigev_notify_function entry.
1236         Fix typo (SIGVALRM -> SIGVTALRM).
1237         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define sigev_notify_attr
1238         with real type.
1239         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
1240         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1241         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
1242         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1243         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Likewise.
1244
1245         * conform/conformtest.pl: Implement optional-element.  Define
1246         $mustprepend{"sched.h"}.
1247         * conform/data/sched.h-data: Make sporadic scheduler definitions
1248         optional.
1249
1250         * pwd/pwd.h: Don't define getpwent_r for XPG.
1251
1252         * io/sys/poll.h: Define nfds_t and use it in poll prototype.
1253         * sysdeps/generic/poll.c: Use nfds_t type in function definition.
1254         * sysdeps/mach/hurd/poll.c: Likewise.
1255         * sysdeps/unix/bsd/poll.c: Likewise.
1256         * sysdeps/unix/sysv/linux/poll.c: Likewise.
1257         * sysdeps/unix/sysv/aix/poll.c: Likewise.
1258         * sysdeps/generic/bits/poll.h: Define NPOLLFILE only if __USE_MISC.
1259         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1260         * sysdeps/unix/sysv/linux/m68k/bits/poll.h: Likewise.
1261         * sysdeps/unix/sysv/linux/mips/bits/poll.h: Likewise.
1262         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1263         * conform/data/poll.h-data: Fix typo in poll prototype.
1264
1265         * sysdeps/gnu/netinet/tcp.h: Define everything but TCP_ macros
1266         only if __USE_MISC.
1267         * conform/data/netinet/tcp.h-data: Reserved prefix TCP_.
1268
1269         * sysdeps/gnu/net/if.h: Cleanup namespace.  Define IF_NAMESIZE.
1270
1271         * inet/netinet/in.h: Make IPPROTO_ constants also macros.
1272
1273         * conform/conformtest.pl: Implement optional-type.
1274
1275         * resolv/netdb.h: Include <netinet/in.h> not <sys/socket.h>.  Include
1276         <rpc/netdb.h> only if __USE_MISC.  Include <stdint.h> instead of
1277         defining uint32_t here.  Define IPPORT_RESERVED.
1278         (struct hostent): Type of h_length element is int.
1279         (getnameinfo): Type of flags parameter is unsigned int.
1280         * inet/getnameinfo.c (getnameinfo): flags argument is unsigned.
1281         * conform/data/netdb.h-data: Add many missing definitions.
1282
1283         * conform/conformtest.pl: Implement optional-macro.
1284         * conform/data/math.h-data: Update for XPG6.
1285
1286         * math/math.h (HUGE): Define as FLT_MAX value but don't use
1287         FLT_MAX.  Don't include <float.h>.
1288         (MAXFLOAT): Likewise.
1289
1290         * math/math.h: Define MATH_ERRNO and MATH_ERREXCEPT.
1291
1292         * include/bits/xopen_lim.h: Don't define FOPEN_MAX here.
1293
1294         * conform/data/limits.h-data: Mark constants as optional wherever
1295         appropriate.
1296
1297         * posix/bits/posix2_lim.h: Set correct values for
1298         _POSIX2_COLL_WEIGHTS_MAX and _POSIX2_CHARCLASS_NAME_MAX.  Remove
1299         EQUIV_CLASS_MAX.
1300
1301         * posix/bits/posix1_lim.h: Define _POSIX_TZNAME_MAX as 6.
1302         Required by POSIX.
1303
1304         * intl/loadmsgcat.c: Include <locale.h.> for _LIBC.
1305
1306         * conform/data/netinet/in.h-data: Add reserved prefixes.
1307
1308         * conform/data/arpa/inet.h-data: Fix a few typos.
1309
1310 2001-01-26  Andreas Jaeger  <aj@suse.de>
1311
1312         * sysdeps/generic/strtol.c: Include <locale.h>
1313         * stdlib/strtod.c: Likewise
1314         * stdlib/strfmon.c: Likewise.
1315         * string/strcoll.c: Likewise.
1316         * string/strxfrm.c: Likewise.
1317         * wctype/wcfuncs_l.c: Likewise.
1318         * wctype/wctype_l.c: Likewise.
1319         * wctype/wctrans_l.c: Likewise.
1320
1321         * include/bits/locale.h: New file.
1322
1323 2001-01-26  Ulrich Drepper  <drepper@redhat.com>
1324
1325         * locale/langinfo.h: Correct logic in #ifs when defining YESSTR
1326         and NOSTR.
1327
1328         * locale/Makefile (headers): Add bits/locale.h.
1329         * locale/langinfo.h: Don't include <locale.h>.  Include <bits/locale.h>
1330         and use __LC_ constants instead of LC_.
1331         * locale/locale.h: Include <bits/locale.h> and define LC_ constants
1332         using __LC_ constants.
1333         * locale/bits/locale.h: New file.
1334         * locale/loadlocale.c: Include <locale.h>.
1335         * locale/nl_langinfo.h: Likewise.
1336
1337         * posix/glob.h: Cleanup namespace for non-_GNU_SOURCE case.
1338
1339         * io/sys/stat.h: Define S_IFSOCK for XPG6.
1340
1341         * conform/data/fcntl.h-data: posix_madvise is not expected here.
1342
1343         * conform/conformtest.pl: Fix handling of macro-str.
1344
1345         * conform/data/inttypes.h-data: Add missing definition and all of
1346         stdint.h-data.
1347
1348         * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Bump to 20.
1349
1350 2001-01-25  Ulrich Drepper  <drepper@redhat.com>
1351
1352         * conform/conformtest.pl (@headers): Add stdint.h.
1353         * conform/data/stdint.h-data: New file.
1354
1355         * conform/conformtest.pl: Recognize options --headers and
1356         --dialect.  Add dialect-specific CFLAGS.
1357
1358         * conform/conformtest.pl: Implement handling of recursive
1359         allow-header.
1360
1361         * conform/data/locale.h-data: Add new struct lconv members.
1362
1363         * posix/wordexp.h: Correct definition of wordexp_t.
1364         * posix/wordexp.c: Moved to ...
1365         * sysdeps/generic/wordexp.c: ...here.  New file.
1366         * sysdeps/unix/sysv/linux/alpha/wordexp.c: New file.
1367         * sysdeps/unix/sysv/linux/ia64/wordexp.c: New file.
1368         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: New file.
1369         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.2.2): Add
1370         wordexp.
1371         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
1372         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1373
1374         * math/tgmath.h: Pretty printing.
1375
1376         * math/Makefile (tests): Add test-tgmath.
1377         (CFLAGS-test-tgmath.c): New variable.
1378         * math/test-tgmath.c: New file.  Contributed by Jakub Jelinek.
1379
1380         * conform/conformtest.pl: Handle allow-header in secondary headers
1381         correctly.
1382
1383         * conform/data/fcntl.h-data: Mark symbols introduced in XPG6 with
1384         #ifdef.
1385
1386         * conform/data/netinet/in.h-data: Use correct comment character.
1387         * conform/data/sys/stat.h-data: Likewise.
1388
1389 2001-01-25  Jakub Jelinek  <jakub@redhat.com>
1390
1391         * math/tgmath.h (__TGMATH_BINARY_FIRST_REAL_ONLY,
1392         __TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
1393         __TGMATH_TERNARY_REAL_ONLY): Use proper arguments to
1394         __builtin_classify_type, add ##f suffixes where appropriate.
1395         (__TGMATH_UNARY_REAL_IMAG): Remove extraneous left parenthesis.
1396         (__TGMATH_BINARY_REAL_IMAG): Likewise, use proper arguments to
1397         __builtin_classify_type.
1398         (fma): Fix spelling of first argument.
1399
1400 2001-01-25  Ulrich Drepper  <drepper@redhat.com>
1401
1402         * conform/data/unistd.h-data: Mark functions removed in XPG6
1403         correctly.
1404
1405         * posix/unistd.h: Don't make functions removed in XPG6 available if
1406         __USE_XOPEN2K.
1407
1408         * conform/conformtest.pl: Implement optional-constant.
1409         * conform/data/unistd.h-data: Use optional-constant wherever
1410         appropriate.
1411
1412         * sysdeps/generic/bits/confname.h: Correct names of _SC_PBS
1413         constants and add _SC_STREAMS.
1414         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
1415
1416         * sysdeps/unix/sysv/linux/statvfs64.c: Rename to __statvfs64 and
1417         make old name weak alias.
1418         * sysdeps/generic/statvfs64.c: Likewise.
1419         * sysdeps/unix/sysv/linux/fstatvfs64.c: Rename to __fstatvfs64 and
1420         make old name weak alias.
1421         * sysdeps/generic/fstatvfs64.c: Likewise.
1422         * include/sys/statvfs.h: New file.
1423
1424         * sysdeps/generic/bits/confname.h: Define _PC_REC_INCR_XFER_SIZE,
1425         _PC_REC_MAX_XFER_SIZE, _PC_REC_MIN_XFER_SIZE, and
1426         _PC_REC_XFER_ALIGN.
1427         * sysdeps/posix/pathconf.c (__pathconf): Implement handling of
1428         _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
1429         _PC_REC_MIN_XFER_SIZE, and _PC_REC_XFER_ALIGN.
1430         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
1431
1432         * conform/conformtest.pl: Run Unix tests for XPG6.
1433         Implement handling of known namespace violations.
1434         Improve printing of results.
1435
1436         * posix/unistd.h (usleep): Correct return type.
1437         * sysdeps/unix/sysv/linux/usleep.c: Correct return type.
1438         * sysdeps/unix/bsd/usleep.c: Correct return type.
1439         * sysdeps/mach/usleep.c: Correct return type.
1440         * sysdeps/generic/usleep.c: Correct return type.
1441
1442         * posix/unistd.h (sync): Correct return type.
1443         * sysdeps/generic/sync.c: Likewise.
1444         * sysdeps/mach/hurd/sync.c: Likewise.
1445
1446         * sysdeps/generic/bits/confname.h (_SC_IOV_MAX): New definition.
1447
1448         * posix/unistd.h: Make seteuid and setegid available for XPG6.
1449
1450         * wcsmbs/wchar.h: Get FILE definition for XPG5.
1451
1452         * conform/data/ctype.h-data: Use correct comment form.
1453         * conform/data/errno.h-data: Likewise.
1454         * conform/data/math.h-data: Likewise.
1455         * conform/data/mqueue.h-data: Likewise.
1456         * conform/data/netdb.h-data: Likewise.
1457         * conform/data/pthread.h-data: Likewise.
1458
1459 2001-01-24  Ulrich Drepper  <drepper@redhat.com>
1460
1461         * conform/data/wordexp.h-data: Fix typo.
1462
1463         * conform/conformtest.pl: Handle allow-header correctly.
1464
1465         * conform/data/time.h-data: Use correct comment form.
1466
1467         * conform/conformtest.pl (checknamespace): Ignore #undef lines.
1468
1469         * configure.in: Comment out binutils version test.
1470
1471         * stdlib/strtod.c (str_to_mpn): Correct parsing of thousands
1472         separators.
1473         Reported by Lagardere Jean-Francois <LAGARDEREJ@thmulti.com>.
1474
1475         * stdlib/tst-strtod.c (locale_test): New function.
1476         (main): Call locale_test.
1477         * stdlib/Makefile (tst-strtod-ENV): New variable.
1478
1479 2001-01-24  Mark Kettenis  <kettenis@gnu.org>
1480
1481         * hurd/hurdsig.c (_hurdsig_getenv): Remove spurious innermost
1482         declaration of value such that we actually return the value of the
1483         environment variable.
1484
1485 2001-01-24  Andreas Jaeger  <aj@suse.de>
1486
1487         * sysdeps/unix/sysv/linux/init-first.c: Remove extra __sysctl
1488         prototype.
1489         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1490
1491         * include/sys/sysctl.h: New file.
1492
1493 2001-01-23  Andreas Jaeger  <aj@suse.de>
1494
1495         * stdlib/Makefile ($(objpfx)isomac.out): Also pass sysincludes to
1496         isomac.
1497
1498         * elf/dl-load.c (_dl_init_paths): Don't use strdupa in function
1499         arguments.  Reported by Jiri Kubicek <kubicek@bitsmart.com>,
1500         closes PR libc/2039.
1501
1502         * manual/install.texi (Tools for Compilation): Change required
1503         binutils version.
1504
1505 2001-01-22  Andreas Jaeger  <aj@suse.de>
1506
1507         * configure.in: Add test for new enough binutils version, move
1508         compiler/binutils test up.
1509
1510         * Versions.def: Add version GLIBC_2.2.2.
1511
1512 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
1513
1514         * iconvdata/TESTS: UTF-8 test data for IBM932 and IBM943 are now
1515         available.
1516         * iconvdata/testdata/IBM932: New file.
1517         * iconvdata/testdata/IBM932..UTF8: New file.
1518         * iconvdata/testdata/IBM943: New file.
1519         * iconvdata/testdata/IBM943..UTF8: New file.
1520         Contributed by Masahide Washizawa <washi@jp.ibm.com>.
1521
1522 2001-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1523
1524         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Correctly mask offset.
1525
1526 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
1527
1528         * malloc/malloc.c: Remove a few unnecessary initializers of global
1529         variables.
1530
1531 2000-12-09  H.J. Lu  <hjl@gnu.org>
1532
1533         * nss/Makefile (routines): Add digits_dots.
1534         * nss/Versions (libc): Add __nss_hostname_digits_dots to GLIBC_2.2.2.
1535         * nss/digits_dots.c (__nss_hostname_digits_dots): Turn template
1536         into a function.
1537         * nss/nsswitch.h (__nss_hostname_digits_dots): New internal NSS
1538         function.
1539         * nss/getXXbyYY.c (H_ERRNO_VAR_P): New definition.
1540         (TYPE_VAR_P): Likewise.
1541         (FLAGS_VAR): Likewise.
1542         (AF_VAR_P): Likewise.
1543         (INTERNAL (REENTRANT_NAME)): Call __nss_hostname_digits_dots ()
1544         instead of including digits_dots.c.
1545         * nss/getXXbyYY_r.c (H_ERRNO_VAR_P): New definition.
1546         (TYPE_VAR_P): Likewise.
1547         (FLAGS_VAR): Likewise.
1548         (AF_VAR_P): Likewise.
1549         (INTERNAL (REENTRANT_NAME)): Call __nss_hostname_digits_dots ()
1550         instead of including digits_dots.c.
1551
1552 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
1553
1554         * sysdeps/posix/getaddrinfo.c: Reduce .data size.
1555
1556 2001-01-21  Andreas Jaeger  <aj@suse.de>
1557
1558         * elf/constload2.c: Add prototype for init.
1559
1560 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
1561
1562         * stdlib/stdlib.h (drand48_data): Make available only for
1563         __USE_MISC.  Rename elements to protect namespace.  Change type
1564         and position of a and init element.
1565         * stdlib/drand48-iter.c: Don't handle unsigned short > 16 bit
1566         differently.  Adjust for drand48_data change.  Don't compute a here,
1567         it comes from drand48_data.
1568         * stdlib/lcong48_r.c: Don't handle unsigned short > 16 bit
1569         differently.  Adjust for drand48_data change.  Compute a here.
1570         * stdlib/srand48_r.c: Likewise.
1571         * stdlib/drand48.c: Adjust for drand48_data change.
1572         * stdlib/lrand48.c: Likewise.
1573         * stdlib/mrand48.c: Likewise.
1574         * stdlib/seek48.c: Likewise.
1575         * stdlib/drand48_r.c: Likewise.
1576         * stdlib/lrand48_r.c: Likewise.
1577         * stdlib/mrand48_r.c: Likewise.
1578         * stdlib/seed48_r.c: Likewise.  Don't handle unsigned short > 16 bit
1579         differently.
1580         * stdlib/erand48_r.c: Don't handle unsigned short > 16 bit differently.
1581         * stdlib/jrand48_r.c: Likewise.
1582
1583         * po/sv.po: Update from translation team.
1584
1585 2001-01-21  Andreas Jaeger  <aj@suse.de>
1586
1587         * stdio-common/vfprintf.c (vfprintf): Add casts.
1588
1589 2001-01-20  Ulrich Drepper  <drepper@redhat.com>
1590
1591         * iconvdata/run-iconv-test.sh: Reorgnize a bit to allow running only
1592         the ASCII test.
1593         * iconvdata/TESTS: Add entries for IBM932 and IBM943.
1594
1595         * iconvdata/Makefile (modules): Add IBM932 and IBM943.
1596         * iconvdata/gconv-modules: Add entries for IBM932 and IBM943.
1597         * iconvdata/ibm932.c: New file.
1598         * iconvdata/ibm932.h: New file.
1599         * iconvdata/ibm943.c: New file.
1600         * iconvdata/ibm943.h: New file.
1601         Patches by Masahide Washizawa <washi@jp.ibm.com>.
1602
1603         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix typo
1604         preventing optimization from being done.  Set the correct type bit
1605         in seen.  Don't define and use _dl_base_addr unless
1606         NEED_DL_BASE_ADDR is defined.
1607
1608         * io/ftw.c (ftw_dir): Add slash after directory name if there
1609         wasn't any.  Reported by loris <loris@iol.it>.
1610         * io/Makefile (tests): Add bug-ftw2.
1611         * io/bug-ftw2.c: New file.
1612
1613 2001-01-19  Ulrich Drepper  <drepper@redhat.com>
1614
1615         * stdlib/jrand48_r.c (__jrand48_r): Correct constructing of
1616         results.  Reported by Jeff Higham <jhigham@algorithmics.com>.
1617         * stdlib/tst-rand48.c: New file.
1618         * stdlib/Makefile (tests): Add tst-rand48.
1619
1620         * locale/newlocale.c (__newlocale): Fix test for setting all
1621         categories.
1622
1623 2001-01-19  Mark Kettenis  <kettenis@gnu.org>
1624
1625         * sysdeps/mach/hurd/chroot.c (chroot): Revert 1999-02-27 changes,
1626         but change looking up the initial directory port in a similar way
1627         as done by _hurd_change_directory_port_from_name.
1628         * hurd/fchroot.c (fchroot): Likewise.
1629
1630 2001-01-18  Ulrich Drepper  <drepper@redhat.com>
1631
1632         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If HAVE_AUX_XID is
1633         defined don't look whether the AT_*ID values were set.
1634         If HAVE_AUX_PAGESIZE is defined don't look whether the pagesize is set.
1635         (_dl_show_auxv): Rewrite to avoid switch statement.
1636         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1637         __ASSUME_AT_PAGESIZE for kernel >= 2.4.1.
1638         * sysdeps/unix/sysv/linux/ldsodefs.h: Define HAVE_AUX_XID.
1639         Define HAVE_AUX_PAGESIZE if __ASSUME_AT_PAGESIZE is defined.
1640
1641         * sysdeps/unix/sysv/linux/fxstat64.c: Add one __builtin_expect.
1642         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1643         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1644
1645         * elf/rtld.c (process_envvars): Call __strtoul_internal instead of
1646         strtoul.
1647         * elf/dl-minimal.c (strtol, __strtol_internal, strtoul): Removed.
1648         (__sigjmp_save): Set __mask_was_saved to zero since we don't save
1649         anything.
1650         * dlfcn/eval.c (__strtol_internal): Define here.
1651         (eval): Use __strtol_internal instead of strtol.
1652
1653         * elf/elf.h: Add a few more EF_MIPS_* constants.
1654
1655 2001-01-17  Ulrich Drepper  <drepper@redhat.com>
1656
1657         * manual/Makefile (chapters): Add debug.
1658         * manual/debug.texi: New file.
1659         * manual/examples/execinfo.c: New file.
1660         Patch by suckfish@ihug.co.nz.
1661
1662 2001-01-17  Andreas Schwab  <schwab@suse.de>
1663
1664         * sysdeps/m68k/bits/byteswap.h (__bswap_32): Add cast to avoid
1665         invalid asm.
1666
1667 2001-01-17  Andreas Jaeger  <aj@suse.de>
1668
1669         * nscd/connections.c (nscd_run): Use proper format specifier.
1670
1671 2001-01-16  Ulrich Drepper  <drepper@redhat.com>
1672
1673         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Move x86_cap_flags and
1674         x86_platforms data into new file after prepending _dl_.  Change
1675         users.
1676         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: New file.
1677         * sysdeps/unix/sysv/linux/i386/Dist: Add dl-procinfo.c.
1678         * sysdeps/unix/sysv/linux/i386/Makefile: Add rules to build
1679         dl-procinfo.c.
1680
1681         * setjmp/setjmp.h: Cleanup definition of setjmp macro.
1682
1683         * sysdeps/i386/elf/bsd-setjmp.S: Real implementation.
1684         * sysdeps/i386/elf/bsd-_setjmp.S: Removed.
1685         * sysdeps/i386/elf/setjmp.S (setjmp): Removed here.
1686         (_setjmp): Likewise.
1687         * sysdeps/i386/bsd-_setjmp.S: Real implementation.
1688         * sysdeps/i386/bsd-setjmp.S: Real implementation.
1689         * sysdeps/i386/bits/setjmp.h: Remove PUSH_SIGNAL_MASK definition.
1690         * sysdeps/i386/setjmp.S: Remove PIC support.  This is the non-ELF
1691         version.
1692
1693 2001-01-16  Andreas Jaeger  <aj@suse.de>
1694
1695         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h (SIGCONTEXT): Fix
1696         misapplied last patch.
1697
1698 2001-01-15  Ulrich Drepper  <drepper@redhat.com>
1699
1700         * stdlib/random.c (__initstate): Clean up a cast.
1701         (__setstate): Likewise.
1702
1703         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove select
1704         syscall handling.  The generic Linux version should work.
1705
1706 2001-01-15  Andreas Jaeger  <aj@suse.de>
1707
1708         * sysdeps/unix/sysv/linux/sys/sendfile.h: Fix typo.
1709
1710         * stdio-common/tstscanf.c (main): Add two testcases for '*' modifier.
1711
1712 2001-01-14  Jakub Jelinek  <jakub@redhat.com>
1713
1714         * nss/getent.c (print_aliases, aliases_keys, ethers_keys,
1715         netgroup_keys, print_rpc, rpc_keys, print_shadow, shadow_keys):
1716         New functions.
1717         (group_keys, hosts_keys, network_keys, passwd_keys, protocols_keys):
1718         If number is 0, list all.
1719         (services_keys): Likewise.  Lookup aliases as well.
1720         (databases): New table.
1721         (build_doc): Prepare argp doc text with list of supported databases.
1722         (main): Change to table driven processing.
1723
1724 2001-01-14  Thorsten Kukuk <kukuk@suse.de>
1725
1726         * sunrpc/xdr.c (xdr_long, xdr_u_long): Fix comments about these
1727         functions.
1728
1729 2001-01-03  Jakub Jelinek  <jakub@redhat.com>
1730
1731         * sunrpc/xdr.c (xdr_long, xdr_u_long): Return FALSE if trying to
1732         encode value which does not fit in the 32bit type.
1733
1734 2001-01-15  Hiroyuki Machida <machida@sm.sony.co.jp>
1735
1736         * sysdeps/unix/sysv/linux/mips/register-dump.h (REGISTER_DUMP):
1737         Change type of CTX to (struct sigcontext *).
1738         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h (GET_PC): Likewise.
1739         (GET_FRAME): Likewise.
1740         (GET_STACK): Likewise.
1741         (SIGCONTEXT): Likewise. Add 2nd arg _code.
1742         (SIGCONTEXT_EXTRA_ARGS): Add 2nd arg _code.
1743
1744 2001-01-13  Ulrich Drepper  <drepper@redhat.com>
1745
1746         * manual/texinfo.tex: Update from upstream version.
1747
1748 2001-01-13  Jakub Jelinek  <jakub@redhat.com>
1749
1750         * inet/ether_ntoh.c (lookup_function): Change arguments to match
1751         _nss_*_getntohost_r prototype.
1752         (ether_ntohost): Pass errno pointer to NSS function.
1753
1754 2001-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1755
1756         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MS_SYNC): Fix value.
1757         (MAP_LOCKED): New definition.
1758         (MAP_NORESERVE): New definition.
1759
1760 2001-01-12  Ulrich Drepper  <drepper@redhat.com>
1761
1762         * assert/assert.h: Use static_cast instead of C-style cast for C++.
1763         Patch by Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>.
1764
1765 2001-01-12  Ben Collins  <bcollins@debian.org>
1766
1767         * sysdeps/generic/segfault.c (install_handler): Use access, not
1768         __access.
1769
1770 2001-01-12  Andreas Jaeger  <aj@suse.de>
1771
1772         * posix/fnmatch_loop.c (FCT): Remove signed warnings.
1773         * posix/wordexp.c (do_parse_glob): Likewise.
1774         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
1775         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1776         * elf/dl-open.c (_dl_open): Likewise.
1777         * elf/dl-close.c (_dl_close): Likewise.
1778         * elf/dl-load.c (_dl_map_object): Likewise.
1779         * iconv/iconv_prog.c (process_fd): Likewise.
1780         * stdio-common/vfscanf.c (_IO_vfscanf): Likewise.
1781
1782         * locale/localeinfo.h (struct locale_data): Use __flexarr instead
1783         of a zero-length array.
1784
1785 2001-01-11  Jakub Jelinek  <jakub@redhat.com>
1786
1787         * stdlib/cxa_atexit.c (__cxa_atexit): Cast to (void *, int) func.
1788         * stdlib/cxa_finalize.c (__cxa_finalize): Add hidden second argument.
1789         * stdlib/cxa_on_exit.c: Remove.
1790         * stdlib/Makefile: Revert last patch.
1791         * stdlib/Versions: Likewise.
1792         * include/stdlib.h: Likewise.
1793         * stdlib/exit.h: Revert last patch.
1794         (struct exit_function): Add second argument to cxa fn.
1795         * stdlib/exit.c: Revert last patch.
1796         (exit): Add hidden second argument.
1797
1798 2001-01-11  H.J. Lu  <hjl@gnu.org>
1799
1800         * elf/dl-libc.c (do_dlopen): Move DL_STATIC_INIT to ...
1801         * elf/dl-open.c (_dl_open): Here.
1802         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_lock):
1803         Make it static.
1804         (_dl_static_init): Initialize the variables every time when possible.
1805         * sysdeps/unix/sysv/linux/ia64/ldsodefs.h (DL_STATIC_INIT):
1806         Undefine it first.
1807
1808 2001-01-11  Ulrich Drepper  <drepper@redhat.com>
1809
1810         * stdlib/Makefile (routines): Add cxa_on_exit.
1811         * stdlib/Versions [libc] (GLIBC_2.2.1): Add __cxa_on_exit.
1812         * stdlib/cxa_on_exit.c: New file.
1813         * include/stdlib.h: Add prototype for __cxa_on_exit.
1814         * stdlib/exit.c: Handle ef_cxa2.
1815         * stdlib/exit.h (enum): Add ef_cxa2.
1816         (struct exit_function): Add cxa2.
1817
1818         * Versions.def [ld]: Add GLIBC_2.2.1.
1819
1820 2001-01-10  H.J. Lu  <hjl@gnu.org>
1821
1822         * elf/dl-libc.c (do_dlopen): Call DL_STATIC_INIT for static binaries.
1823         * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep-dl-routines): Add
1824         dl-static.
1825         * sysdeps/unix/sysv/linux/ia64/Versions (ld): Add _dl_var_init.
1826         * sysdeps/generic/ldsodefs.h (DL_STATIC_INIT): Defined if not defined.
1827         * sysdeps/unix/sysv/linux/ia64/ldsodefs.h: New file.
1828         * sysdeps/unix/sysv/linux/ia64/dl-static.c: New file.
1829         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-static.c.
1830
1831 2001-01-11  Ulrich Drepper  <drepper@redhat.com>
1832
1833         * libio/stdio.h: Remove definition of off_t.
1834
1835 2001-01-11  Andreas Jaeger  <aj@suse.de>
1836
1837         * wcsmbs/tst-mbrtowc.c (utf8_test): New function by Markus Kuhn
1838         <mkuhn@acm.org>.
1839
1840 2001-01-10  Ulrich Drepper  <drepper@redhat.com>
1841
1842         * sunrpc/Makefile (distribute): Add errqueue.h.
1843
1844 2001-01-10  H.J. Lu  <hjl@gnu.org>
1845
1846         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Also preserve
1847         r9, r10 and r11 for language specific registers.
1848
1849 2001-01-10  Jakub Jelinek  <jakub@redhat.com>
1850
1851         * sunrpc/clnt_udp.c (clntudp_bufcreate): Set IP_RECVERR on the
1852         UDP socket.
1853         (clntudp_call): Handle MSG_ERRQUEUE.
1854         * sysdeps/generic/errqueue.h: New file.
1855         * sysdeps/unix/sysv/linux/errqueue.h: New file.
1856
1857 2001-01-10  H.J. Lu  <hjl@gnu.org>
1858
1859         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_getpagesize): Removed.
1860
1861 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
1862
1863         * CONFORMANCE: Update.
1864
1865 2001-01-09  Ulrich Drepper  <drepper@redhat.com>
1866
1867         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1868         Minimal cleanups.  Add assert to ensure memory handling is correct.
1869
1870         * manual/conf.texi (File Minimums): Fix _POSIX_PATH_MAX value.
1871         Reported by Ben Collins <bcollins@debian.org>.
1872
1873         * time/strftime.c (my_strftime): Mark previous GNU extensions
1874         which are now in C99 as such.
1875
1876 2001-01-08  Ulrich Drepper  <drepper@redhat.com>
1877
1878         * elf/rtld.c (process_envvars): Place output files for profiling
1879         in SUID binaries in /var/profile.
1880
1881         * elf/dl-load.c (_dl_map_object): Don't look in cache for
1882         preloading in SUID binaries.
1883
1884         * elf/dl-profile.c (_dl_start_profile): Open the output file with
1885         O_NOFOLLOW if possible.
1886
1887         * include/stdlib.h: Add __posix_openpt declaration.
1888         * stdlib/stdlib.h: Add posix_openpt declaration.
1889         * login/Versions: Add posix_openpt for GLIBC_2.2.1.
1890         * sysdeps/generic/getpt.c: Define posix_openpt.
1891         * sysdeps/unix/bsd/getpt.c: Likewise.
1892         * sysdeps/unix/sysv/linux/getpt.c: Likewise.
1893
1894         * time/Makefile (tests): Add tst-mktime.
1895         * time/tst-mktime.c: New file.
1896
1897         * posix/tst-dir.c (main): One more mkdir() test.
1898
1899         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
1900         Remove getpagesize syscall.  We assume that the pagesize is always
1901         determined from the auxiliary vector.
1902
1903         * intl/dcigettext.c: Fix a few warnings.
1904         Patch by Bruno Haible <haible@ilog.fr>.
1905
1906 2001-01-08  Andreas Jaeger  <aj@suse.de>
1907
1908         * io/test-lfs.c (do_test): Check lseek64 return for EINVAL.
1909         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1910
1911 2001-01-08  Ulrich Drepper  <drepper@redhat.com>
1912
1913         * sysdeps/generic/segfault.c (install_handler): Check output file
1914         name with access().
1915
1916         * resolv/res_query.c: Use simply getenv() for HOSTALIASES.
1917         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add HOSTALIASES.
1918
1919         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add missing comma.
1920
1921         * malloc/memusage.c (me): Use access() to determine whether we
1922         should write the output file or not.
1923
1924         * libio/bits/stdio.h (printf): Define macro to map printf call to
1925         fprintf which gcc can optimize.
1926         * stdio-common/printf.c: Undefine printf.
1927
1928 2001-01-07  Ulrich Drepper  <drepper@redhat.com>
1929
1930         * sysdeps/generic/bits/byteswap.h (__bswap_64): Partly revert last
1931         patch.  We must use unsigned int for l member of union.
1932
1933         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Don't call
1934         _dl_aux_init for shared libraries.
1935
1936         * sysdeps/unix/sysv/linux/glob64.c: Moved to ...
1937         * sysdeps/gnu/glob64.c: ...here.  New file.
1938
1939 2001-01-07  Ben Collins  <bcollins@debian.org>
1940
1941         * manual/examples/longopt.c: Make the "struct option" a little
1942         more like it should be, adding usage of required_argument,
1943         noargument and such, and also setting the options string right.
1944
1945         * manual/sysinfo.texi (Load Average): New section, documents
1946         getloadavg().
1947
1948 2001-01-06  Ulrich Drepper  <drepper@redhat.com>
1949
1950         * version.h (VERSION): Bump to 2.2.1.
1951
1952         * sysdeps/unix/sysv/linux/mips/Dist: Remove sys/acct.h.
1953         * sysdeps/alpha/Dist: Add alphaev6/stxncpy.S and alphaev6/stxcpy.S.
1954         * sysdeps/unix/sysv/aix/Dist: Add uitrunc.c, savef.S, and restf.S.
1955         * dlfcn/Makefile (distribute): Add errmsg1mod.c.
1956         * Makefile (distribute): Add include/libc-internal.h.
1957         * libio/Makefile (distribute): Avoid overwriting.
1958
1959         * iconvdata/ibm937.c (BODY to IBM937): Correct several mistakes in
1960         buffer and table handling.
1961
1962 2001-01-05  H.J. Lu  <hjl@gnu.org>
1963
1964         * elf/dl-support.c (non_dynamic_init): Move the auxiliary
1965         vector checking to ...
1966         (_dl_aux_init): Here. New function. Defined only if
1967         HAVE_AUX_VECTOR is defined.
1968
1969         * sysdeps/generic/libc-start.c (__libc_start_main): Call
1970         _dl_aux_init for static binaries if HAVE_AUX_VECTOR is defined.
1971
1972         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Call
1973         _dl_aux_init.
1974
1975         * sysdeps/unix/sysv/linux/ldsodefs.h (DL_FIND_AUXV): Removed.
1976         (HAVE_AUX_VECTOR): Defined.
1977         (_dl_aux_init): Declared.
1978
1979 2001-01-05  Ben Collins  <bcollins@debian.org>
1980
1981         * manual/string.texi (Finding Tokens in a String): Document XPG
1982         basename() and dirname(), as well as GNU basename().
1983
1984 2001-01-05  Jakub Jelinek  <jakub@redhat.com>
1985
1986         * Makeconfig (preprocess-version): Replace -traditional with
1987         -x assembler-with-cpp.
1988
1989 2001-01-05  Joseph S. Myers  <jsm28@cam.ac.uk>
1990
1991         * math/bits/cmathcalls.h: Don't define inline cimag, creal or conj
1992         for GCC 2.97 or later.
1993
1994 2001-01-05  Ben Collins  <bcollins@debian.org>
1995
1996         * manual/stdio.texi (getline): Clarify the return value in the
1997         case of EOF being reached before a newline.
1998
1999 2001-01-04  Jakub Jelinek  <jakub@redhat.com>
2000
2001         * sunrpc/pmap_clnt.c (__get_myaddress): Return TRUE if successful,
2002         FALSE otherwise.
2003         (pmap_set, pmap_unset): Check __get_myaddress return value.
2004
2005 2001-01-05  Mark Kettenis  <kettenis@gnu.org>
2006
2007         * sysdeps/generic/netinet/if_ether.h: Include <sys/types.h>.
2008         (struct ether_addr): Declare ether_addr_octet member as
2009         `u_int8_t'.  Add __attribute__ ((__packed__)).
2010
2011 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
2012
2013         * sysdeps/mach/hurd/readdir64.c: New file.
2014         * sysdeps/mach/hurd/readdir64_r.c: New file.
2015
2016 2001-01-07  Mark Kettenis  <kettenis@gnu.org>
2017
2018         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Add comment about
2019         `struct statfs' and `struct statvfs' being identical.
2020         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2021
2022 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
2023
2024         * sysdeps/mach/hurd/fstatfs64.c: New file.
2025         * sysdeps/mach/hurd/fstatvfs64.c: New file.
2026         * sysdeps/mach/hurd/statfs64.c: New file.
2027         * sysdeps/mach/hurd/statvfs64.c: New file.
2028         * sysdeps/mach/hurd/statfsconv.c: New file.
2029         * sysdeps/mach/hurd/Dist: Add statfsconv.c.
2030
2031 2001-01-06  Ulrich Drepper  <drepper@redhat.com>
2032
2033         * iconv/skeleton.c: Reset outbuf for next round of the loop.
2034         Reported by Owen Taylor <otaylor@redhat.com>.
2035         * iconv/Makefile (tests): Add tst-iconv3.
2036         * iconv/tst-iconv3.c: New file.
2037
2038         * iconvdata/ibm930.c: Fix handling of state.  Optimize a bit.
2039         * iconvdata/ibm933.c: Likewise.
2040         * iconvdata/ibm935.c: Likewise.
2041         * iconvdata/ibm937.c: Likewise.
2042         * iconvdata/ibm939.c: Likewise.
2043         * iconvdata/ibm930.h: Adjust single byte table for optimization.
2044         * iconvdata/ibm933.h: Likewise.
2045         * iconvdata/ibm935.h: Likewise.
2046         * iconvdata/ibm939.h: Likewise.
2047
2048         * iconvdata/testdata/IBM930: Add misssing SI.
2049         * iconvdata/testdata/IBM933: Likewise.
2050         * iconvdata/testdata/IBM935: Likewise.
2051         * iconvdata/testdata/IBM937: Likewise.
2052         * iconvdata/testdata/IBM939: Likewise.
2053
2054 2001-01-06  Andreas Jaeger  <aj@suse.de>
2055
2056         * configure.in: Check for old add-ons that shouldn't be used with
2057         current glibc anymore.
2058
2059 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
2060
2061         * sysdeps/mach/hurd/readdir_r.c (__readdir_r): Return error number
2062         instead of -1 on failure.  Don't forget to copy file name into
2063         *ENTRY if successful.  Set *RESULT to NULL upon reaching the end
2064         of the directory.
2065
2066 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
2067
2068         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Don't forget to
2069         copy st_atime member.
2070
2071 2001-01-05  Ulrich Drepper  <drepper@redhat.com>
2072
2073         * io/ftw.c (ftw_dir): Don't add a second slash at the beginning
2074         for searches from the root directory.
2075         Reported by loris <loris@iol.it> [PR libc/1991].
2076         * io/Makefile (tests): Add bug-ftw1.
2077         * io/bug-ftw1.c: New file.
2078
2079         * elf/dl-support.c (non_dynamic_init): Don't define DL_FIND_AUXV
2080         if it is not available.  Instead use it only if it is available.
2081         * sysdeps/unix/sysv/linux/ldsodefs.h: New file.
2082
2083         * iconv/gconv_simple.c (internal_ics4_loop): Correct test for
2084         overflowing output buffer.
2085         (internal_ucs4_loop_unaligned): Likewise.
2086         (ucs4_internal_loop): Likewise.
2087         (ucs4_internal_loop_unaligned): Likewise.
2088         (internal_ucs4le_loop): Likewise.
2089         (internal_ucs4le_loop_unaligned): Likewise.
2090         (ucs4le_internal_loop): Likewise.
2091         (ucs4le_internal_loop_unaligned): Likewise.
2092         Reported by Owen Taylor <otaylor@redhat.com>.
2093         * iconv/Makefile (tests): Add tst-iconv2.
2094         * iconv/tst-iconv2.c: New file.
2095
2096 2001-01-04  H.J. Lu  <hjl@gnu.org>
2097
2098         * elf/dl-support.c (DL_FIND_AUXV): New.  Defined if not defined.
2099         (_dl_clktck): Declared.
2100         (non_dynamic_init): Take 3 arguments.
2101         Set _dl_pagesize, _dl_platform and _dl_clktck from AUX.
2102
2103 2001-01-01  Bruno Haible  <haible@clisp.cons.org>
2104
2105         Finish implementation of plural form handling.
2106         * intl/dcigettext.c (known_translation_t): Rename 'domain' field to
2107         'domainname'.  Remove 'plindex' field. Add 'domain' and
2108         'translation_length' fields.
2109         (transcmp): Don't compare 'plindex' fields.
2110         (plural_lookup): New function.
2111         (DCIGETTEXT): Change cache handing in the plural case.  Don't call
2112         plural_eval before the translation and its catalog file have been
2113         found. Remove plindex from cache key.  Add 'translation_length' and
2114         'domain' to cache result.
2115         (_nl_find_msg): Remove index argument, return length of translation
2116         to the caller instead.  Weaken comparison of string lengths, to account
2117         for plural entries.  Call iconv() on the entire result string, not
2118         only on the portion needed so far.
2119         * intl/loadinfo.h (_nl_find_msg): Remove index argument, add lengthp
2120         argument.
2121         * intl/loadmsgcat.c (_nl_load_domain): Adapt to _nl_find_msg change.
2122
2123 2001-01-04  Ulrich Drepper  <drepper@redhat.com>
2124
2125         * intl/plural.y (yylex): Minimal improvement in number scanner.
2126
2127 2000-07-31  Bruno Haible  <haible@clisp.cons.org>
2128
2129         * intl/plural.y: Include config.h. Needed to define 'inline' away for
2130         C compilers that don't support it.
2131         (yylex): Don't use gcc specific case range syntax.
2132         * intl/loadmsgcat.c (INIT_GERMANIC_PLURAL): New macro, for old
2133         compilers.
2134
2135 2000-10-12  Bruno Haible  <haible@clisp.cons.org>
2136
2137         * intl/finddomain.c: Remove unneeded includes.
2138
2139 2000-10-12  Bruno Haible  <haible@clisp.cons.org>
2140
2141         * intl/localealias.c (memcpy): Return first argument, just like the
2142         real memcpy function does.
2143         * intl/bindtextdom.c (memcpy): Likewise.
2144         * intl/finddomain.c (memcpy): Likewise.
2145         * intl/l10nflist.c (memcpy): Likewise.
2146         * intl/textdomain.c (memcpy): Likewise.
2147         From Paul Eggert <eggert@twinsun.com>.
2148
2149 2001-01-03  Jakub Jelinek  <jakub@redhat.com>
2150
2151         * resolv/resolv.h (struct __res_state): Add nsinit field.
2152         * resolv/res_send.c (res_nsend): Use it instead of nscount.
2153         * resolv/res_init.c (__res_vinit): Initialize it.
2154         (res_nclose): Clear it instead of nscount.
2155
2156 2001-01-04  Ulrich Drepper  <drepper@redhat.com>
2157
2158         * malloc/mtrace.pl: Fix matching of addresses.
2159         Patch by Aharon Robbins <arnold@skeeve.com>.
2160
2161         * Versions.def (ld): Add GLIBC_2.2.
2162
2163         * catgets/gencat.c: Copyright 2001.
2164         * csu/version.c: Likewise.
2165         * debug/catchsegv.sh: Likewise.
2166         * debug/xtrace.sh: Likewise.
2167         * elf/ldconfig.c: Likewise.
2168         * elf/sprof.c: Likewise.
2169         * iconv/iconv_prog.c: Likewise.
2170         * locale/locale.c: Likewise.
2171         * locale/localedef.c: Likewise.
2172         * malloc/memusage.sh: Likewise.
2173         * malloc/mtrace.pl: Likewise.
2174         * nscd/nscd.c: Likewise.
2175         * posix/getconf.c: Likewise.
2176
2177 2001-01-04  Mark Kettenis  <kettenis@gnu.org>
2178
2179         * include/stdio.h: Only provide __getwc_unlocked prototype if
2180         USE_IN_LIBIO is defined.
2181
2182 2001-01-04  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2183
2184         * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Fix error code
2185         handling.
2186
2187 2001-01-03  Andreas Schwab  <schwab@suse.de>
2188
2189         * sysdeps/generic/strtoll.c: Remove unused __strtoq_internal alias.
2190         * sysdeps/generic/strtoull.c: Remove unused __strtouq_internal alias.
2191
2192         * sysdeps/wordsize-64/strtol.c: Add strtoq alias and fix strtoll alias.
2193         * sysdeps/wordsize-64/strtoul.c: Add strtouq alias and fix
2194         strtoull alias.
2195         * sysdeps/wordsize-64/wcstol.c: Add wcstoq alias and fix wcstoll alias.
2196         * sysdeps/wordsize-64/wcstoul.c: Add wcstouq alias and fix
2197         wcstoull alias.
2198
2199         * sysdeps/generic/strtoul.c: Make sure we find strtol.c in this
2200         directory.
2201         * sysdeps/generic/strtol_l.c: Likewise.
2202         * sysdeps/generic/strtoul_l.c: Likewise.
2203         * sysdeps/generic/wcstoul.c: Likewise, for wcstol.c.
2204
2205         * sysdeps/wordsize-64/strtol_l.c: Fix alias.
2206         * sysdeps/wordsize-64/strtoul_l.c: Likewise.
2207         * sysdeps/wordsize-64/wcstol_l.c: Fix alias.
2208         * sysdeps/wordsize-64/wcstoul_l.c: Likewise.
2209
2210 2001-01-04  Andreas Jaeger  <aj@suse.de>
2211
2212         * nss/nsswitch.c: Include files for missing prototypes, remove
2213         buggy declaration of prototypes.
2214
2215 2001-01-03  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2216
2217         * resolv/Versions: Fix bracing.
2218         * sysdeps/powerpc/soft-fp/Versions: Likewise.
2219         * sysdeps/sparc/sparc64/soft-fp/Versions: Likewise.
2220
2221 2001-01-02  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2222
2223         * sysdeps/powerpc/dl-machine.c (__process_machine_rela): Fix typo.
2224
2225 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
2226
2227         * manual/Makefile (TEXI2PDF): Change to texi2dvi --pdf.
2228         Suggested by Minko Markov <mmarkov@home.com>.
2229
2230 2001-01-02  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2231
2232         * sysdeps/powerpc/elf/start.S (__data_start): Make it global.
2233         * sysdeps/powerpc/dl-machine.c (dl_reloc_overflow): Print the name of
2234         the failing symbol.
2235         (__process_machine_rela): Pass symbol to dl_reloc_overflow().
2236
2237 2001-01-02  Ben Collins  <bcollins@debian.org>
2238
2239         * time/tzset.c (tzset_internal): Make sure we fall back to UTC
2240         if TZ is not set and TZDEFAULT is not present.
2241
2242 2001-01-01  Ben Collins  <bcollins@debian.org>
2243
2244         * string/strings.h: Make sure we declare our functions even if
2245         string.h is already included, based on whether or not __USE_BSD is
2246         defined.
2247
2248 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
2249
2250         * dlfcn/dlerror.c (dlerror): Handle call of dlerror() before any
2251         other dlopen() and dlsym().
2252         Based on a patch by Ben Collins <bcollins@debian.org>.
2253
2254 2001-01-02  Andreas Jaeger  <aj@suse.de>
2255
2256         * dlfcn/errmsg1.c (main): Call dlerror initially.
2257         Reported by Ben Collins <bcollins@debian.org>.
2258
2259 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
2260
2261         * intl/dcigettext.c (guess_category_value): Rewrite so that LANGUAGE
2262         value is ignored if the selected locale is the C locale.
2263         * intl/tst-gettext.c: Set locale for above change.
2264         * intl/tst-translit.c: Likewise.
2265
2266 2001-01-02  Andreas Jaeger  <aj@suse.de>
2267
2268         * libio/wgenops.c (_IO_wdoallocbuf): Use correct wide access macro.
2269         (_IO_switch_to_wget_mode): Likewise.
2270         (_IO_sputbackwc): Likewise.
2271         (_IO_sungetwc): Use wint_t for result.
2272
2273         * stdio-common/vfscanf.c (__vfscanf): Use WINT_T for done.
2274
2275         * sysdeps/generic/strtol.c (strtol): Make cnt size_t for correct
2276         signedness.
2277
2278         * sysdeps/generic/printf_fphex.c (putc): Cast _IO_putwc_unlocked
2279         to (int) to avoid warnings.
2280         * stdio-common/printf_fp.c (putc): Likewise.
2281         * stdio-common/printf_size.c (putc): Likewise.
2282
2283         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Make
2284         constant unsigned.
2285
2286 2001-01-01  Andreas Jaeger  <aj@suse.de>
2287
2288         * inet/rcmd.c (rcmd_af): Use socklen_t for len.
2289
2290 2000-12-31  Andreas Jaeger  <aj@suse.de>
2291
2292         * include/libc-internal.h: Add prototype for __libc_freeres.
2293
2294         * sysdeps/unix/sysv/linux/init-first.c: Include <libc-internals.h>
2295         for prototypes, remove redundant prototypes.
2296         * gmon/gmon.c: Likewise.
2297         * sysdeps/unix/i386/i586/clock_getres.c: Likewise.
2298         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
2299         * malloc/mtrace.c: Likewise.
2300
2301         * sysdeps/generic/enbl-secure.c: Include <libc-internals.h> for
2302         prototypes.
2303         * elf/soinit.c: Likewise.
2304         * sysdeps/generic/prof-freq.c: Likewise.
2305         * sysdeps/mach/hurd/profil.c: Likewise.
2306         * debug/noophooks.c: Likewise.
2307         * debug/pcprofile.c: Likewise.
2308         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
2309         * sysdeps/generic/get_clockfreq.c: Likewise.
2310         * malloc/set-freeres.c: Likewise.
2311
2312         * locale/localeinfo.h: Add internal prototypes.
2313
2314         * elf/rtld.c (dl_main): Fix prototype.
2315
2316         * iconvdata/tst-table-to.c (main): Use return instead of exit to
2317         avoid warning.
2318
2319         * nis/rpcsvc/yp_prot.h: Remove __P.
2320         * nis/rpcsvc/ypupd.h: Likewise.
2321         * nis/rpcsvc/yp.h: Likewise.
2322
2323         * sunrpc/rpc_main.c: Add noreturn attributes.
2324         * sunrpc/rpc_scan.h: Likewise.
2325
2326         * sunrpc/rpc_hout.c (storexdrfuncdecl): Make static.
2327
2328         * sunrpc/rpcinfo.c: Add noreturn attribute to brdcst.
2329
2330         * sunrpc/proto.h: Add noreturn attributes to error and crash.
2331
2332         * posix/bsd-getpgrp.c: Add prototype to avoid warning.
2333
2334         * sunrpc/svc_unix.c: Include <rpc/svc.h> for prototypes.
2335
2336         * sunrpc/create_xid.c: Include <rpc/svc.h> for prototypes.
2337
2338         * include/rpc/rpc_msg.h: Add prototypes for some functions.
2339         * include/rpc/auth.h: Likewise.
2340         * include/rpc/auth_des.h: Likewise.
2341         * include/rpc/clnt.h: Likewise.
2342         * include/rpc/rpc.h: Likewise.
2343         * include/rpc/svc.h: Likewise.
2344         * include/rpc/svc_auth.h: Likewise.
2345
2346         * include/rpc/des_crypt.h: New file.
2347
2348         * malloc/memusagestat.c (main): Use return instead of exit to
2349         avoid warning.
2350         * io/pwd.c (main): Likewise.
2351         * iconvdata/tst-table-from.c (main): Likewise.
2352         * ctype/test_ctype.c (main): Likewise.
2353         * setjmp/tst-setjmp.c (main): Likewise.
2354         * signal/tst-signal.c (main): Likewise.
2355         * stdlib/tst-strtol.c (main): Likewise.
2356         * stdlib/tst-strtod.c (main): Likewise.
2357         * stdlib/tst-strtoll.c (main): Likewise.
2358         * stdlib/tst-xpg-basename.c (main): Likewise.
2359         * dirent/tst-seekdir.c (main): Likewise.
2360         * grp/testgrp.c (main): Likewise.
2361         * inet/test_ifindex.c (main): Likewise.
2362         * io/test-utime.c (main): Likewise.
2363         * posix/test-vfork.c (main): Likewise.
2364         * posix/testfnm.c (main): Likewise.
2365         * stdio-common/temptest.c (main): Likewise.
2366         * stdio-common/test_rdwr.c (main): Likewise.
2367         * stdio-common/tst-fileno.c (main): Likewise.
2368         * stdio-common/tst-sscanf.c (main): Likewise.
2369         * stdio-common/tstscanf.c (main): Likewise.
2370         * string/bug-strncat1.c (main): Likewise.
2371         * string/bug-strpbrk1.c (main): Likewise.
2372         * string/bug-strspn1.c (main): Likewise.
2373         * string/test-ffs.c (main): Likewise.
2374         * string/tst-inlcall.c (main): Likewise.
2375         * string/tst-svc.c (main): Likewise.
2376         * timezone/test-tz.c (main): Likewise.
2377         * wctype/test_wcfuncs.c (main): Likewise.
2378         * wctype/test_wctype.c (main): Likewise.
2379
2380         * stdlib/tst-random.c: Add attribute noreturn to fail.
2381
2382 2000-12-28  Wolfram Gloger  <wg@malloc.de>
2383
2384         * malloc/malloc.c (MALLOC_COPY): Handle case if source and
2385         destination overlap.  Assume dest is always below source if
2386         overlapping.
2387
2388 2000-12-30  Ulrich Drepper  <drepper@redhat.com>
2389
2390         * elf/dl-close.c (_dl_close): We can ignore the NODELETE flag if the
2391         object was not yet initialized.
2392
2393 2000-12-28  H.J. Lu  <hjl@gnu.org>
2394
2395         * elf/dl-deps.c (_dl_map_object_deps): Make sure the DSO state
2396         is always consistent even if its dependency is failed.
2397
2398         * elf/dl-open.c (_dl_open): Increment the open count before
2399         calling _dl_close () in case of failure.
2400
2401         * elf/neededtest4.c: New file.
2402         * elf/neededobj5.c: New file.
2403         * elf/neededobj6.c: New file.
2404
2405         * elf/Makefile (distribute): Add neededobj5.c and neededobj6.c.
2406         (tests): Add neededtest4.
2407         (modules-names): Add neededobj5 and neededobj6.
2408         ($(objpfx)neededobj6.so): New target.
2409         ($(objpfx)neededtest4): New target.
2410         ($(objpfx)neededtest4.out): New target.
2411
2412 2000-12-28  Joseph S. Myers  <jsm28@cam.ac.uk>
2413
2414         * misc/sys/cdefs.h (__attribute_format_strfmon__): Define.
2415         * stdlib/monetary.h: Add strfmon format attributes.
2416
2417 2000-12-28  Roland McGrath  <roland@frob.com>
2418
2419         * sysdeps/mach/hurd/ioctl.c (do_ioctl): Avoid double-increment after
2420         __mempcpy does it for us.
2421
2422 2000-12-28  Andreas Jaeger  <aj@suse.de>
2423
2424         * sysdeps/generic/dl-environ.c: Add prototype for unsetenv.
2425
2426         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Add prototype for
2427         __new_setrlimit.
2428
2429         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Add prototype for
2430         __old_getrlimit64.
2431
2432         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Add prototype for
2433         __new_getrlimit.
2434
2435         * sysdeps/unix/sysv/linux/i386/chown.c: Add prototypes for
2436         __chown_is_lchown and __real_chown.
2437
2438         * sysdeps/generic/ldsodefs.h: Add noreturn attribute to
2439         _dl_reloc_bad_type.
2440
2441         * sunrpc/rpc_hout.c (print_funcdef): Add break statement to shut
2442         up GCC's warning about "deprecated use of label at end of compound
2443         statement."
2444         * sunrpc/rpc_cout.c (emit_inline): Likewise.
2445
2446         * gmon/bb_exit_func.c: Include <sys/gmon.h> for internal
2447         prototypes.
2448         Remove struct bb and __bb_head since those are declared by
2449         sys/gmon.h.
2450
2451 2000-12-22  Ben Collins  <bcollins@debian.org>
2452
2453         * manual/charset.texi: Fix typo in description of WCHAR_MAX.
2454
2455         * manual/argp.texi: Document argp_domain as part of struct argp.
2456
2457 2000-12-28  Andreas Jaeger  <aj@suse.de>
2458
2459         * catgets/Makefile (generated): Add sample.SJIS.cat.
2460
2461         * sunrpc/rpc_dtable.c: Include rpc/clnt.h for prototypes.
2462
2463         * elf/dl-minimal.c: Add prototypes.
2464
2465         * include/locale.h: Add internal prototypes.
2466         * include/sys/gmon.h: Likewise.
2467
2468         * dlfcn/errmsg1mod.c: Add prototype for foo to shut up GCC.
2469
2470 2000-12-27  Ben Collins  <bcollins@debian.org>
2471
2472         * elf/dl-open.c (_dl_open): Correctly set the new objname pointer
2473         when reallocating the error strings.
2474         Reported by Kalle Olavi Niemitalo <kon@iki.fi>
2475
2476 2000-12-27  Ulrich Drepper  <drepper@redhat.com>
2477
2478         * dlfcn/Makefile (tests): Add errmsg1.
2479         (modules-names): Add errmsg1mod.
2480         Add rules to run errmsg1.
2481         * dlfcn/errmsg1.c: New file.
2482         * dlfcn/errmsg1mod.c: New file.
2483
2484         * dlfcn/dlerror.c (dlerror): Always create output string which
2485         includes object file name.
2486
2487         * sysdeps/alpha/alphaev6/memcpy.S: Don't go through unrolled loop
2488         if we would go through it only once.
2489         Patch by Rick Gorton <rick.gorton@api-networks.com>.
2490
2491         * sysdeps/alpha/alphaev67/strncat.S: Fix handling of numeric parameter.
2492         Patch by Richard Henderson <rth@redhat.com>.
2493
2494 2000-12-27  Jakub Jelinek  <jakub@redhat.com>
2495
2496         * malloc/malloc.c (memmove): Add prototypes.
2497         (MALLOC_MEMMOVE): Define.
2498         (chunk_realloc): Use it instead of MALLOC_COPY if source and
2499         destination might overlap.
2500
2501 2000-12-27  Andreas Jaeger  <aj@suse.de>
2502
2503         * stdio-common/printf_fp.c (__printf_fp): Add prototype for nested
2504         function.
2505         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2506         * locale/programs/locale.c (show_locale_vars): Likewise.
2507         (show_info): Likewise.
2508         * locale/programs/ld-collate.c (collate_output): Likewise.
2509         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2510         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
2511         * stdlib/rpmatch.c (rpmatch): Likewise.
2512
2513         * setjmp/tst-setjmp.c: Make local functions static.
2514         * setjmp/jmpbug.c: Likewise.
2515         * signal/tst-signal.c: Likewise.
2516         * stdio-common/tfformat.c: Likewise.
2517         * string/tst-svc.c: Likewise.
2518         * time/clocktest.c: Likewise.
2519         * time/tst-getdate.c: Likewise.
2520         * dirent/list.c: Likewise.
2521         * dirent/opendir-tst1.c: Likewise.
2522         * posix/runtests.c: Likewise.
2523         * posix/tst-getaddrinfo.c: Likewise.
2524         * posix/tst-chmod.c: Likewise.
2525         * posix/wordexp-test.c: Likewise.
2526         * misc/tst-efgcvt.c: Likewise.
2527         * timezone/tst-timezone.c: Likewise.
2528         * rt/tst-clock.c: Likewise.
2529         * rt/tst-shm.c: Likewise.
2530         * rt/tst-aio2.c: Likewise.
2531         * rt/tst-aio3.c: Likewise.
2532         * rt/tst-aio4.c: Likewise.
2533         * rt/tst-aio5.c: Likewise.
2534
2535         * dlfcn/failtest.c: Add prototype for foo.
2536
2537         * dlfcn/glrefmain.c: Add prototype for do_test.
2538
2539         * dlfcn/tst-dladdr.c: Add prototype for do_test.
2540
2541         * string/test-ffs.c (main): Add prototype for nested function.
2542
2543         * sunrpc/des_soft.c: Include rpc/des_crypt.h for prototype.
2544
2545         * nss/XXX-lookup.c: Add prototype to shut up GCC.
2546
2547         * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): Fix
2548         setetherent prototype.
2549         Add internal interfaces.
2550
2551         * nis/nss_nis/nis-ethers.c (_nss_nis_setetherent): Likewise.
2552         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent): Likewise.
2553
2554         * resolv/res_data.c: Don't add (conflicting) prototypes for _LIBC.
2555
2556         * nis/nis_intern.h: Add prototype for __pmap_getnisport.
2557
2558         * nss/nss_files/files-ethers.c: Include netinet/ether.h to get
2559         prototypes, remove struct etherent since it's declared in ether.h.
2560         Fix ntohost declaration.
2561
2562         * elf/dl-profile.c (_dl_mcount): Add empty statement to shut up GCC.
2563
2564         * include/getopt.h: Add internal interfaces.
2565         * include/termios.h: Likewise.
2566         * include/resolv.h: Likewise.
2567         * include/netdb.h: Likewise.
2568         * include/grp.h: Likewise.
2569         * include/pwd.h: Likewise.
2570         * include/shadow.h: Likewise.
2571         * include/rpc/netdb.h: Likewise.
2572         * include/setjmp.h: Likewise.
2573
2574         * include/stdio.h: Add prototypes for compatibility functions.
2575         * include/grp.h: Likewise.
2576         * include/pwd.h: Likewise.
2577         * include/shadow.h: Likewise.
2578
2579         * include/fenv.h: Define internal interfaces.
2580
2581 2000-12-27  Ulrich Drepper  <drepper@redhat.com>
2582
2583         * sysdeps/generic/bits/byteswap.h (__bswap_64): Handle constant
2584         argument case separately.
2585         * sysdeps/i386/bits/byteswap.h (__bswap_64): Likewise.
2586
2587 2000-12-27  Andreas Jaeger  <aj@suse.de>
2588
2589         * include/sys/wait.h: Add some prototypes.
2590         * Rules (dummy.c): Create also prototype to shut up GCC.
2591
2592 2000-12-27  Andreas Jaeger  <aj@suse.de>
2593
2594         * sysdeps/mach/hurd/if_index.c (__protocol_available): Uncomment,
2595         it's not needed at the moment.
2596         * sysdeps/generic/if_index.c (__protocol_available): Likewise.
2597         * sysdeps/unix/sysv/linux/if_index.c (__protocol_available): Likewise.
2598
2599 2000-12-26  Andreas Jaeger  <aj@suse.de>
2600
2601         * libio/getc_u.c: Include stdio.h via system path to get internal
2602         prototypes.
2603         * libio/getwc_u.c: Likewise.
2604
2605         * stdlib/strfmon.c: Fix prototype of __printf_fp.
2606
2607         * stdio-common/vfprintf.c (process_arg): Move __printf_fphex and
2608         __printf_fp prototypes to ...
2609         * include/printf.h: ...here.
2610
2611         * include/stdio.h: Add some internal prototypes to shut up GCC.
2612         * include/stdlib.h: Likewise.
2613
2614         * sysdeps/posix/sigpause.c (__sigpause): Use ISO C prototype
2615         declaration.
2616
2617         * include/signal.h: Add prototypes for internal sigpause
2618         interfaces.
2619
2620 2000-12-26  Ulrich Drepper  <drepper@redhat.com>
2621
2622         * sysdeps/generic/bits/byteswap.h (__bswap_64): Make it usable for
2623         64bit platforms.  Reported by Dave Gilbert <gilbertd@treblig.org>.
2624
2625         * string/Makefile (tests): Add tst-bswap.
2626         * string/tst-bswap.c: New file.
2627
2628 2000-12-11  Bruno Haible  <haible@clisp.cons.org>
2629
2630         * Makefile ($(inst_includedir)/gnu/stubs.h): Sort in the C locale.
2631
2632 2000-12-26  Ulrich Drepper  <drepper@redhat.com>
2633
2634         * sunrpc/Makefile (rpcgen-cmd): Use single quotes in sed call.
2635         Patch by Ed Connell <Ed.Connell@sas.com>.
2636
2637 2000-12-24  Ulrich Drepper  <drepper@redhat.com>
2638
2639         * locale/iso-639.def: Correct one entry.  Add two missing entries.
2640
2641         * locale/iso-4217.def: Change entry for Eritrea.
2642         Reported by Daniel Yacob <yacob@geez.org>.
2643
2644 2000-12-23  Ben Collins  <bcollins@debian.org>
2645
2646         * manual/charset.texi (Extended Char Intro): Fix typo in ISO 6937
2647         description.
2648
2649         * manual/stdio.texi (Dynamic Output): Document the return value of
2650         asprintf.  Also make the asprintf/snprintf examples a little
2651         better (check for some error returns).
2652
2653 2000-12-22  Andreas Jaeger  <aj@suse.de>
2654
2655         * include/stdio.h: Add __ftrylockfile prototype.
2656
2657 2000-12-21  H.J. Lu  <hjl@gnu.org>
2658
2659         * sysdeps/ia64/fpu/math_ldbl.h (ieee_long_double_shape_type):
2660         Make sign_exponent element signed.
2661
2662         * sysdeps/ieee754/ldbl-96/math_ldbl.h (ieee_long_double_shape_type):
2663         Fix a typo.
2664
2665         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Remove dead branch.
2666
2667 2000-12-21  Andreas Jaeger  <aj@suse.de>
2668
2669         * nis/nss_nisplus/nisplus-ethers.c (struct etherent): Removed.
2670         * inet/ether_hton.c: Likewise
2671         * inet/ether_ntoh.c: Likewise.
2672
2673         * nis/nss_nis/nis-ethers.c (_nss_nis_getntohost_r): Fix
2674         declaration to match prototype.
2675
2676         * include/netinet/ether.h (struct etherent): Declare here so that
2677         all implementations use the same struct.
2678
2679         * nis/nss_nis/nis-ethers.c: Include netinet/ether.h to get
2680         prototypes.
2681         (struct ether): Removed.
2682         Use struct etherent instead of ether everywhere.
2683
2684         * include/rpc/auth.h (DECLARE_NSS_PROTOTYPES): New.
2685
2686         * include/rpc/auth_des.h (DECLARE_NSS_PROTOTYPES): New.
2687
2688         * sunrpc/publickey.c: Include auth_des.h for prototypes.
2689
2690 2000-12-20  Ulrich Drepper  <drepper@redhat.com>
2691
2692         * math/test-misc.c: Add more tests for nextafter functions.
2693
2694         * sysdeps/i386/fpu/s_nextafterl.c: Handle change from denormal to
2695         normal correctly.  Correct test for sign.
2696         Based on a patch by HJ Lu.
2697
2698 2000-12-19  Ulrich Drepper  <drepper@redhat.com>
2699
2700         * Makeconfig (preprocess-version): Add -traditional to gcc call.
2701         Cleanup sed calls.
2702
2703 2000-12-19  Andreas Jaeger  <aj@suse.de>
2704
2705         * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): New.
2706
2707         * nis/nis_intern.h: Add prototype for __do_niscall3.
2708
2709         * nis/nss_nis/nis-rpc.c (_nss_nis_setrpcent): Fix declaration to
2710         match prototype.
2711
2712         * include/netdb.h (DECLARE_NSS_PROTOTYPES): Reformat.
2713
2714         * include/rpc/netdb.h (DECLARE_NSS_PROTOTYPES): New.
2715
2716         * include/aliases.h (DECLARE_NSS_PROTOTYPES): New.
2717
2718 2000-12-18  Ulrich Drepper  <drepper@redhat.com>
2719
2720         * math/test-misc.c: Add more tests for nextafter.
2721         * sysdeps/i386/fpu/s_nextafterl.c: Handle decrement for x<0 correctly.
2722         * sysdeps/ieee754/ldbl-96/math_ldbl.h
2723         (ieee_long_double_shape_type): Make sign_exponent element signed.
2724
2725         * manual/message.texi: Add Estonian to plural overview list.
2726         Correct rule for Slavic languages.
2727         Patch by Stanislav Brabec <utx@penguin.cz>.
2728
2729         * nis/nss_nis/nis-netgrp.c: Remove unnecessary initializations.
2730
2731 2000-12-18  Andreas Jaeger  <aj@suse.de>
2732
2733         * test-skeleton.c: Use temp_name_list instead of name_list to
2734         avoid collision with name_list from inet/netgroup.h.
2735
2736         * nss/nss_files/files-network.c (NEED_H_ERRNO): Define.
2737
2738         * include/grp.h (DECLARE_NSS_PROTOTYPES): New.
2739         * include/pwd.h (DECLARE_NSS_PROTOTYPES): New.
2740         * include/netdb.h (DECLARE_NSS_PROTOTYPES): New.
2741         * include/shadow.h (DECLARE_NSS_PROTOTYPES): New.
2742
2743         * hesiod/nss_hesiod/hesiod-proto.c (_nss_hesiod_setprotoent): Fix
2744         declaration to match prototype.
2745         * hesiod/nss_hesiod/hesiod-pwd.c (_nss_hesiod_setpwent): Likewise.
2746         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_setgrent): Likewise.
2747         * hesiod/nss_hesiod/hesiod-service.c (_nss_hesiod_setservent):
2748         Likewise.
2749         * nis/nss_nis/nis-grp.c (_nss_nis_setgrent): Likewise.
2750         * nis/nss_nis/nis-pwd.c (_nss_nis_setpwent): Likewise.
2751         * nis/nss_nis/nis-proto.c (_nss_nis_setprotoent): Likewise.
2752         * nis/nss_nis/nis-service.c (_nss_nis_setservent): Likewise.
2753         (_nss_nis_getservbyport_r): Likewise.
2754         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent): Likewise.
2755         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent): Likewise.
2756         * nis/nss_nis/nis-network.c (_nss_nis_getnetent_r): Likewise.
2757         (_nss_nis_setnetent): Likewise
2758         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
2759         (_nss_nis_endnetgrent): Likewise.
2760         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_endnetgrent):
2761         Likewise.
2762         (_nss_nisplus_setnetgrent): Likewise.
2763         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Likewise.
2764         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_setpwent): Likewise.
2765         * nis/nss_nisplus/nisplus-grp.c (_nss_nisplus_setgrent): Likewise.
2766         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_setnetent):
2767         Likewise.
2768         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_sethostent):
2769         Likewise.
2770         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_setservent):
2771         Likewise.
2772         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_setprotoent):
2773         Likewise.
2774         * nis/nss_compat/compat-spwd.c (_nss_compat_setspent): Likewise.
2775         * nis/nss_compat/compat-pwd.c (_nss_compat_setpwent): Likewise.
2776         * nis/nss_compat/compat-grp.c (_nss_compat_setgrent): Likewise.
2777         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2778         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
2779         (_nss_dns_getnetbyaddr_r): Likewise.
2780
2781 2000-12-17  Andreas Jaeger  <aj@suse.de>
2782
2783         * sysdeps/generic/k_sinl.c (__kernel_sinl): Fix functions
2784         parameter.
2785
2786         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Make static and add
2787         unused attribute to shut up gcc warnings.
2788
2789         * sysdeps/generic/k_sinl.c: Include math_private for prototypes.
2790         * sysdeps/generic/k_tanl.c: Likewise.
2791         * sysdeps/generic/k_cosl.c: Likewise.
2792         * sysdeps/generic/e_j0l.c: Likewise.
2793         * sysdeps/generic/e_j1l.c: Likewise.
2794         * sysdeps/generic/e_jnl.c: Likewise.
2795         * sysdeps/generic/e_lgammal_r.c: Likewise.
2796
2797         * elf/vismain.c: Move prototypes for functions in vismod*.c to
2798         vismod.h.
2799         * elf/vismod.h: New file.
2800         * elf/Makefile (distribute): Add vismod.h.
2801         * elf/vismod1.c: Include vismod.h.
2802         * elf/vismod2.c: Likewise.
2803         * elf/vismod3.c: Likewise.
2804
2805         * elf/constload3.c: Add prototype declarations to shut up gcc.
2806         * elf/failobj.c: Likewise.
2807         * elf/nodelmod3.c: Likewise.
2808         * elf/filtmod1.c: Likewise.
2809         * elf/filtmod2.c: Likewise.
2810         * elf/reldepmod1.c: Likewise.
2811         * elf/reldepmod2.c: Likewise.
2812         * elf/reldepmod3.c: Likewise.
2813         * elf/reldepmod4.c: Likewise.
2814         * elf/unload2dep.c: Likewise.
2815         * elf/unload2mod.c: Likewise.
2816         * elf/ltglobmod1.c: Likewise.
2817         * elf/pathoptobj.c: Likewise.
2818         * elf/neededobj1.c: Likewise.
2819         * elf/neededobj2.c: Likewise.
2820         * elf/neededobj3.c: Likewise.
2821         * elf/neededobj4.c: Likewise.
2822         * elf/nextmod1.c: Likewise.
2823         * elf/nextmod2.c: Likewise.
2824
2825         * locale/programs/ld-collate.c (collate_finish): Don't use labels
2826         at end of compound statement.
2827         * locale/programs/locale.c (show_info): Likewise.
2828         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2829
2830 2000-12-16  Jakub Jelinek  <jakub@redhat.com>
2831
2832         * catgets/gencat.c (read_input_file): Avoid calling obstack_free
2833         with a pointer not returned by obstack_ functions.
2834
2835 2000-12-16  Ulrich Drepper  <drepper@redhat.com>
2836
2837         * sysdeps/unix/sysv/aix/bits/stat.h (struct stat): Align with AIX
2838         version.
2839         (struct stat64): Likewise.
2840         Reported by Michael Keezer <mkeezer@redhat.com>.
2841
2842         * timezone/asia: Update from tzdata2000h.
2843         * timezone/australasia: Likewise.
2844         * timezone/backward: Likewise.
2845         * timezone/europe: Likewise.
2846         * timezone/northamerica: Likewise.
2847         * timezone/southamerica: Likewise.
2848         * timezone/zone.tab: Likewise.
2849
2850 2000-12-14  Jakub Jelinek  <jakub@redhat.com>
2851
2852         * io/ftw.c (ftw_dir): If process_entry returned non-zero result
2853         and dir.stream is NULL, only free dir.content.
2854         * io/ftwtest.c (cb, main): Add --early-exit option to test it.
2855         * io/ftwtest-sh: Test with --early-exit.
2856
2857 2000-12-13  Jakub Jelinek  <jakub@redhat.com>
2858
2859         * misc/efgcvt.c (FCVT_MAXDIG): Define.
2860         (FCVT_BUFPTR): New variable.
2861         (fcvt): If fcvt_r returns -1 on the static short buffer,
2862         try to malloc a sufficiently large one and retry.
2863         (free_mem): New function.
2864         * misc/qefgcvt.c (FCVT_MAXDIG): Define.
2865         * misc/tst-efgcvt.c (fcvt_tests): Add new test.
2866
2867 2000-12-15  Ulrich Drepper  <drepper@redhat.com>
2868
2869         * misc/dirname.c (dirname): Fix search for second to last slash.
2870
2871 2000-12-13  Andreas Jaeger  <aj@suse.de>
2872
2873         * misc/tst-dirname.c (main): Fix typo in test to really use
2874         the examples from Unix98.
2875         Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
2876
2877 2000-12-09  H.J. Lu  <hjl@gnu.org>
2878
2879         * sysdeps/ia64/fpu/s_fabs.S: New file.
2880         * sysdeps/ia64/fpu/s_fabsf.S: New file.
2881         * sysdeps/ia64/fpu/s_fabsl.S: New file.
2882
2883 2000-12-15  Andreas Jaeger  <aj@suse.de>
2884
2885         * stdio-common/scanf9.c (main): Reformat and change to avoid
2886         warnings.
2887
2888         * stdio-common/tstdiomisc.c: Make local functions static.
2889         * stdio-common/tst-printf.c: Likewise.
2890
2891         * elf/constload2.c: Add prototype declarations to shut up gcc.
2892         * elf/dep1.c: Likewise.
2893         * elf/dep2.c: Likewise.
2894         * elf/dep3.c: Likewise.
2895         * elf/dep4.c: Likewise.
2896         * elf/ltglobmod2.c: Likewise.
2897
2898         * libio/fmemopen.c: Make local functions static.
2899
2900         * elf/Makefile (distribute): Added testobj.h.
2901
2902         * elf/testobj.h: New file.
2903
2904         * elf/testobj1.c: Include testobj.h and move prototype
2905         declarations to testobj.h.
2906         * elf/testobj2.c: Likewise.
2907         * elf/testobj3.c: Likewise.
2908         * elf/testobj4.c: Likewise.
2909         * elf/testobj5.c: Likewise.
2910         * elf/testobj6.c: Likewise.
2911         * elf/testobj1_1.c: Likewise.
2912         * elf/preloadtest.c: Likewise.
2913
2914 2000-12-15  Ben Collins  <bcollins@debian.org>
2915
2916         * misc/sys/cdefs.h: Fix thinko in checks for flexarr macros.
2917         Patch by Akim Demaille <akim@epita.fr> in Debian bug report.
2918
2919 2000-12-14  H.J. Lu  <hjl@gnu.org>
2920
2921         * sysdeps/ieee754/flt-32/s_sincosf.c (__sincosf): The exponent
2922         field in a float is 8 bits, not 11 bits.
2923
2924 2000-12-13  Jakub Jelinek  <jakub@redhat.com>
2925
2926         * math/test-misc.c (main): Adjust m for IEEE quad long double.
2927
2928 2000-12-13  Andreas Jaeger  <aj@suse.de>
2929
2930         * manual/message.texi (Using gettextized software): Fix typo.
2931
2932         * manual/charset.texi (Converting a Character): Fix mbstouwcs
2933         program to compile.
2934         Patch by Martin Buchholz <martin@xemacs.org>.
2935
2936         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Fix typo.
2937         Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
2938
2939 2000-12-11  Andreas Jaeger  <aj@suse.de>
2940
2941         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Declare
2942         kernel_sigset_t and use it.
2943         Patch by Hiroyuki Machida <machida@sm.sony.co.jp>.
2944
2945 2000-12-10  Richard Henderson  <rth@redhat.com>
2946
2947         * sysdeps/alpha/alphaev67/fpu/Implies: New file.
2948         * sysdeps/alpha/alphaev6/fpu/e_sqrtf.S: New file.
2949         * sysdeps/alpha/alphaev6/fpu/e_sqrt.S: New file.
2950
2951 2000-12-10  Jakub Jelinek  <jakub@redhat.com>
2952
2953         * sysdeps/alpha/htonl.S: Fix a typo.
2954
2955 2000-12-10  Jakub Jelinek  <jakub@redhat.com>
2956
2957         * sysdeps/alpha/alphaev6/stxcpy.S: Exchange t8 with t10.
2958
2959 2000-12-10  Andreas Jaeger  <aj@suse.de>
2960
2961         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fixed
2962         cast as suggested by Jakub Jelinek <jakub@redhat.com> and Ulrich
2963         Drepper <drepper@redhat.com>.
2964
2965 2000-12-09  Andreas Jaeger  <aj@suse.de>
2966
2967         * sysdeps/unix/sysv/linux/mips/sigaction.c: New file.
2968
2969         * sysdeps/unix/sysv/linux/mips/sys/acct.h: Removed, we can use the
2970         generic version.
2971         Patches by Hiroyuki Machida <machida@sm.sony.co.jp>.
2972
2973         * locale/programs/ld-collate.c (handle_ellipsis): Fix format
2974         string.
2975
2976         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fix
2977         format string.
2978
2979         * nscd/hstcache.c (addhstbyname): Add cast to avoid warning.
2980         * nscd/connections.c (handle_request): Likewise.
2981         * nscd/pwdcache.c (addpwbyname): Likewise.
2982         * nscd/grpcache.c (addgrbyname): Likewise.
2983
2984         * nscd/nscd_conf.c (nscd_parse_file): Remove extra argument.
2985
2986 2000-12-09  Ulrich Drepper  <drepper@redhat.com>
2987
2988         * string/stratcliff.c: Add tests for stpncpy, memcpy, and mempcpy.
2989
2990         * Makeconfig (default_cflags): Make -O2 the default for stable
2991         releases.
2992
2993 2000-12-08  H.J. Lu  <hjl@gnu.org>
2994
2995         * sysdeps/ia64/fpu/s_isinfl.S: Renamed to ...
2996         * sysdeps/ia64/fpu/s_isinf.S: This.
2997         Add a .pred.rel.mutex note to avoid false report.
2998
2999         * sysdeps/ia64/fpu/s_isnanl.S: Renamed to ...
3000         * sysdeps/ia64/fpu/s_isnan.S: This.
3001
3002         * sysdeps/ia64/fpu/s_fpclassify.S: New file.
3003         * sysdeps/ia64/fpu/s_fpclassifyf.S: New file.
3004         * sysdeps/ia64/fpu/s_fpclassifyl.S: New file.
3005         * sysdeps/ia64/fpu/s_isinff.S: New file.
3006         * sysdeps/ia64/fpu/s_isinfl.S: New file.
3007         * sysdeps/ia64/fpu/s_isnanf.S: New file.
3008         * sysdeps/ia64/fpu/s_isnanl.S: New file.
3009         * sysdeps/ia64/fpu/s_finite.S: New file.
3010         * sysdeps/ia64/fpu/s_finitef.S: New file.
3011         * sysdeps/ia64/fpu/s_finitel.S: New file.
3012         * sysdeps/ia64/fpu/s_signbit.S: New file.
3013         * sysdeps/ia64/fpu/s_signbitf.S: New file.
3014         * sysdeps/ia64/fpu/s_signbitl.S: New file.
3015         * sysdeps/ia64/fpu/s_copysign.S: New file.
3016         * sysdeps/ia64/fpu/s_copysignf.S: New file.
3017         * sysdeps/ia64/fpu/s_copysignl.S: New file.
3018
3019 2000-12-08  Ulrich Drepper  <drepper@redhat.com>
3020
3021         * math/libm-test.inc (main): Fix typos in messages.
3022
3023         * string/stratcliff.c: Add test for rawmemchr.
3024
3025 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
3026
3027         * elf/dl-open.c (_dl_open): If objname points right after errstring,
3028         allocate it together with errstring using alloca.
3029         * elf/dl-error.c (_dl_signal_error): If malloc failed, set objname
3030         to "", because it might point to local stack.
3031
3032 2000-12-05  H.J. Lu  <hjl@gnu.org>
3033
3034         * nss/Makefile (routines): Add getnssent and getnssent_r.
3035         * nss/nsswitch.h (__nss_setent): New internal NSS function.
3036         (__nss_endent): Likewise.
3037         (__nss_getent_r): Likewise.
3038         (__nss_getent): Likewise.
3039         * nss/getnssent_r.c: New file.
3040         * nss/getnssent.c: New file.
3041         * nss/getXXent.c (H_ERRNO_VAR): Updated.
3042         (GETFUNC_NAME): Updated to call __nss_getent ().
3043         * nss/getXXent_r.c (H_ERRNO_VAR_P): New.
3044         (STAYOPEN_TMPVAR): Updated.
3045         (STAYOPEN_VAR): Updated.
3046         (SETFUNC_NAME): Updated to call __nss_setent ().
3047         (ENDFUNC_NAME): Updated to call __nss_endent ().
3048         (INTERNAL (REENTRANT_GETNAME)): Updated to call __nss_getent_r ().
3049
3050 2000-12-08  Andreas Jaeger  <aj@suse.de>
3051
3052         * nscd/dbg_log.h (dbg_log): Correct attribute.
3053
3054 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
3055
3056         * elf/dl-load.c (fillin_rpath): Don't assume there is '\0' at
3057         cp + len.  Compute where from dirname.
3058         Reported by <jreiser@BitWagon.com>.
3059
3060 2000-12-08  Richard Henderson  <rth@twiddle.net>
3061
3062         * sysdeps/alpha/_mcount.S: Fix typo.
3063         * sysdeps/alpha/strncpy.S: Likewise.
3064
3065         * sysdeps/alpha/alphaev6/Implies: New file.
3066         * sysdeps/alpha/alphaev67/Implies: New file.
3067         * sysdeps/alpha/alphaev67/ffs.S: New file.
3068         * sysdeps/alpha/alphaev67/ffsll.S: New file.
3069         * sysdeps/alpha/alphaev67/rawmemchr.S: New file.
3070         * sysdeps/alpha/alphaev67/stpcpy.S: New file.
3071         * sysdeps/alpha/alphaev67/stpncpy.S: New file.
3072         * sysdeps/alpha/rawmemchr.S: New file.
3073         * sysdeps/alpha/strcat.S: Tail call to __stxcpy.
3074         * sysdeps/alpha/strcpy.S: Likewise.
3075
3076         From GMP 3.1.1:
3077         * sysdeps/alpha/alphaev6/addmul_1.s: New file.
3078
3079         From rick.gorton@alpha-processor.com:
3080         * sysdeps/alpha/alphaev6/memchr.S: New file.
3081         * sysdeps/alpha/alphaev6/memcpy.S: New file.
3082         * sysdeps/alpha/alphaev6/memset.S: New file.
3083         * sysdeps/alpha/alphaev6/stxcpy.S: New file.
3084         * sysdeps/alpha/alphaev6/stxncpy.S: New file.
3085         * sysdeps/alpha/alphaev67/strcat.S: New file.
3086         * sysdeps/alpha/alphaev67/strchr.S: New file.
3087         * sysdeps/alpha/alphaev67/strlen.S: New file.
3088         * sysdeps/alpha/alphaev67/strncat.S: New file.
3089         * sysdeps/alpha/htonl.S: Use a shorter sequence.
3090
3091 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
3092
3093         * inet/getnameinfo.c (getnameinfo): Fix NI_NOFQDN support.
3094         Reported by <pspencer@fields.utoronto.ca>.
3095
3096 2000-12-07  Jes Sorensen  <jes@linuxcare.com>
3097
3098         * sysdeps/ia64/elf/start.S (__data_start): Add __data_start variable.
3099         Pointed out by Hans Boehm.
3100
3101 2000-12-07  H.J. Lu  <hjl@gnu.org>
3102
3103         * elf/dl-version.c (match_symbol): Check map->l_name[0] for printing.
3104
3105 2000-12-07  Andreas Jaeger  <aj@suse.de>
3106
3107         * misc/error.c: Add format attributes for __error and __error_at_line.
3108
3109         * nscd/dbg_log.h: Add format attribute.
3110
3111 2000-12-08  Ulrich Drepper  <drepper@redhat.com>
3112
3113         * misc/sys/syslog.h: Add format attributes to syslog and vsyslog.
3114         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3115
3116 2000-12-07  Dan Pop  <Dan.Pop@cern.ch>
3117
3118         * sysdeps/ia64/strcpy.S: Fix a bug in a recovery code sequence.
3119
3120 2000-12-06  Ulrich Drepper  <drepper@redhat.com>
3121
3122         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
3123         (sysdep_routines): Add uitrunc.
3124         * sysdeps/unix/sysv/aix/uitrunc.c: New file.
3125         Patches by Michael Keezer <mkeezer@redhat.com>.
3126
3127 2000-12-06  Roland McGrath  <roland@frob.com>
3128
3129         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't clobber ARG as we copy in
3130         argument data, since it will be used to copy out too (for INOUT).
3131         Reported by Marcus Brinkmann <marcus@gnu.org>.
3132
3133         * sysdeps/mach/hurd/ioctl.c: Include <stdint.h>.
3134         (__ioctl): Use uintptr_t instead of unsigned long int.
3135
3136 2000-12-06  Jim Wilson  <wilson@redhat.com>
3137
3138         * stdlib/l64a.c (l64a): Truncate M to 32-bit value.
3139
3140 2000-12-06  Ulrich Drepper  <drepper@redhat.com>
3141
3142         * stdio-common/printf_fp.c (__printf_fp): Handle decimal point in
3143         x.5 rounding correctly.
3144
3145 2000-12-06  Mark Kettenis  <kettenis@gnu.org>
3146
3147         * stdio-common/perror.c (perror): Conditionalize code dealing with
3148         wide-oriented streams on USE_IN_LIBIO.
3149
3150 2000-12-06  Mark Kettenis  <kettenis@gnu.org>
3151
3152         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): Mark
3153         as internal_function.
3154
3155 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
3156
3157         * sysdeps/alpha/elf/start.S (__data_start): Define.
3158
3159 2000-12-05  H.J. Lu  <hjl@gnu.org>
3160
3161         * nss/getXXent_r.c (setup): Change the return type to int.
3162
3163 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
3164
3165         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
3166         (sysdep_routines): Add restf and savef.
3167         * sysdeps/unix/sysv/aix/restf.c: New file.
3168         * sysdeps/unix/sysv/aix/savef.c: New file.
3169         Patches by Michael Keezer <mkeezer@redhat.com>.
3170
3171         * sysdeps/unix/opendir.c (__opendir): Don't use o_directory_works
3172         if O_DIRECTORY is not defined.
3173         Patch by Michael Keezer <mkeezer@redhat.com>.
3174
3175         * include/libc-symbols.h (C_SYMBOL_DOT_NAME): Define.
3176         Patch by Michael Keezer <mkeezer@redhat.com>.
3177
3178         * locale/programs/linereader.c (get_toplvl_escape): Recognize more
3179         than 4 bytes in escape sequence.
3180         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
3181
3182 2000-12-05  Andreas Jaeger  <aj@suse.de>
3183
3184         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
3185         set mips2.
3186
3187         * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
3188
3189         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed.
3190
3191         * sysdeps/unix/mips/sysdep.h: Use SYS_ify.
3192         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3193
3194         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Mark as
3195         internal_function.
3196         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
3197         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): Likewise.
3198
3199         * sysdeps/generic/dl-cache.c: Remove declaration of
3200         _dl_sysdep_read_whole_file.
3201
3202         * elf/dl-load.c (_dl_map_object): Remove declaration of
3203         _dl_load_cache_lookup.
3204
3205         * sysdeps/generic/ldsodefs.h: Add declarations of
3206         _dl_load_cache_lookup, _dl_unload_cache,
3207         _dl_sysdep_read_whole_file, _dl_sysdep_start and
3208         _dl_sysdep_start_cleanup.
3209
3210         * elf/rtld.c: Remove prototypes that are defined in ldsodefs.h
3211         now.
3212
3213         * elf/dl-misc.c: Include <ldsodefs.h> to get prototypes.
3214         * sysdeps/generic/dl-environ.c: Likewise.
3215
3216         * stdio-common/printf_fp.c: Include <gmp.h> instead of
3217         <stdlib/gmp.h>.
3218         * math/atest-exp.c: Likewise.
3219         * math/atest-exp2.c: Likewise.
3220         * math/atest-sincos.c: Likewise.
3221         * stdio-common/_itoa.c: Likewise.
3222         * stdio-common/_itowa.c: Likewise.
3223
3224         * include/gmp.h: New file with internal prototypes.
3225
3226         * sysdeps/generic/longjmp.c: Move _longjmp_unwind declaration from
3227         here to...
3228         * include/setjmp.h: ...here.
3229
3230         * locale/Makefile (routines): Remove codeset_name since it's not
3231         needed anywhere.
3232
3233         * locale/codeset_name.c: Removed.
3234
3235 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
3236
3237         * sysdeps/unix/sysv/aix/sys/param.h: Define MAXHOSTNAMELEN here.
3238
3239 2000-12-05  Andreas Jaeger  <aj@suse.de>
3240
3241         * sysdeps/unix/sysv/linux/sys/param.h: Revert last patch.
3242
3243 2000-12-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3244
3245         * sysdeps/unix/sysv/linux/s390/mmap64.S: Use mmap if mmap2 isn't
3246         available.
3247
3248 2000-12-05  Andreas Jaeger  <aj@suse.de>
3249
3250         * nss/test-netdb.c: Mark local functions as static to avoid
3251         warnings.
3252         (main): Use return to silence warning.
3253
3254         * stdlib/test-canon.c (check_path): Mark as static to avoid warning.
3255
3256         * stdio-common/test-popen.c: Mark local functions as static to
3257         avoid warnings.
3258         (main): Use return to silence warning.
3259
3260         * stdlib/testsort.c (compare): Mark as static to avoid warning.
3261
3262         * assert/test-assert.c: Mark local functions as static to avoid
3263         warnings.
3264         * assert/test-assert-perr.c: Likewise.
3265
3266         * math/libm-test.inc (main): Use return to silence warnings.
3267
3268 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
3269
3270         * math/fenv.h: Fix typo in comment.
3271
3272         * math/test-misc.c (main): Add a few more over and underflow tests
3273         for scalb.
3274
3275         * sysdeps/i386/fpu/e_scalb.S: Handle NaN as first parameter correctly.
3276         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3277         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3278         * math/w_scalb.c: Don't use matherr except in SVID mode.
3279         * math/w_scalbf.c: Likewise.
3280         * math/w_scalbl.c: Likewise.
3281         * math/test-misc.c: Add test for NaN and scalbl.
3282         Reported by Fred J. Tydeman <tydeman@tybor.com>.
3283
3284 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
3285
3286         * configure.in: Define HAVE_ASM_GLOBAL_DOT_NAME for AIX.
3287         * config.h.in: Add HAVE_ASM_GLOBAL_DOT_NAME.
3288         * include/libc-symbols.h (strong_alias): Define special version
3289         for HAVE_ASM_GLOBAL_DOT_NAME.
3290         (weak_alias): Likewise.
3291         * sysdeps/powerpc/bsd-setjmp.S: Use strong_alias not .set.
3292         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==login]
3293         (sysdep_routines): Add setutxent, getutxent, endutxent, getutxid,
3294         getutxline, pututxline, and utmpxname.
3295         * sysdeps/unix/sysv/aix/fchdir.c: Define __fchdir.
3296         * sysdeps/unix/sysv/aix/lseek.c: Define __libc_lseek alias.
3297         * sysdeps/unix/sysv/aix/open.c: Define __libc_open alias.
3298         * sysdeps/unix/sysv/aix/pread.c: Define pread alias.
3299         * sysdeps/unix/sysv/aix/pread64.c: Define pread64 alias.
3300         * sysdeps/unix/sysv/aix/sysdep.h (JUMPTARGET): Use C_TEXT.
3301         * sysdeps/unix/sysv/aix/bits/types.h: Define __clockid_t and __timer_t.
3302         * sysdeps/unix/sysv/aix/bits/utmp.h: Cleanup.  Add comments.
3303         * sysdeps/unix/sysv/linux/sys/param.h (MAXHOSTNAMELEN): Define.
3304         Patches by Michael Keezer <mkeezer@redhat.com>.
3305
3306 2000-12-04  H.J. Lu  <hjl@gnu.org>
3307
3308         * configure.in: Change --with-oldest-abi=ABI to
3309         --enable-oldest-abi=ABI.
3310
3311 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
3312
3313         * stdio-common/perror.c (perror): If stderr is wide-oriented, use
3314         fwprintf instead of fprintf.
3315
3316 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
3317
3318         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD and
3319         DECIMAL_DIG definitions.
3320         * sysdeps/arm/fpu/bits/mathdef.h: Likewise
3321         * sysdeps/generic/bits/mathdef.h: Likewise
3322         * sysdeps/i386/fpu/bits/mathdef.h: Likewise
3323         * sysdeps/ia64/fpu/bits/mathdef.h: Likewise
3324         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise
3325         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise
3326         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise
3327         * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise
3328
3329 2000-12-03  Ulrich Drepper  <drepper@redhat.com>
3330
3331         * math/test-fenv.c (main): Use return instead of exit to avoid warning.
3332
3333         * math/atest-exp.c: Mark local functions as static to avoid warnings.
3334         * math/atest-exp2.c: Likewise.
3335         * math/atest-sincos.c: Likewise.
3336
3337         * sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value.
3338         Reported by Fred J. Tydeman <tydeman@tybor.com>.
3339
3340         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Hopefully fix
3341         the handling of denormalized numbers.
3342
3343         * math/test-misc.c (main): Test for fpclassify and pseudo denormal
3344         numbers on x86.
3345         * sysdeps/i386/fpu/fpclassifyl.c: New file.
3346
3347         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the
3348         pseudo denormal representation of LDBL_MIN.
3349
3350         * iconvdata/SJIS.irreversible: Remove unnecessary entries.
3351         * iconvdata/EUC-JP.irreversible: Remove unnecessary entries.
3352
3353         * iconvdata/sjis.c: Enable round-trip mapping of backslash and tilde.
3354         * iconvdata/jis0208.c: Likewise.
3355         * iconvdata/jis0212.c: Likewise.
3356         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
3357
3358         * math/test-misc.c (main): More tests for frexp and some for
3359         fpclassify and isnormal.
3360
3361         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct
3362         test for subnormal.
3363         Reported by Fred J. Tydeman <tydeman@tybor.com>.
3364
3365         * math/test-misc.c (main): Add tests for frexp.
3366         Reported by Fred J. Tydeman <tydeman@tybor.com>.
3367         * sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation.
3368
3369 2000-12-02  H.J. Lu  <hjl@gnu.org>
3370
3371         * locale/lc-time.c (_nl_init_era_entries): Pass L'\0' instead of
3372         '\0' to wcschr.
3373
3374 2000-12-02  Ulrich Drepper  <drepper@redhat.com>
3375
3376         * sysdeps/i386/fpu/s_frexp.S: Add missing fwait.
3377         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3378         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3379
3380         * sysdeps/generic/glob.c: Adjust types of several variables to
3381         avoid warnings.
3382
3383 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
3384
3385         * sysdeps/unix/sysv/linux/shm_open.c: Remove incorrect comment.
3386
3387 2000-11-30  Roland McGrath  <roland@frob.com>
3388
3389         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): New macro.
3390         (_HURD_HANDLE_IOCTLS, _HURD_HANDLE_IOCTL): Redefine using it, so as to
3391         allow multiple instances using the same function name in one file.
3392
3393 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
3394
3395         * configure.in: Correct test for pserver CVS access.
3396
3397 2000-11-28  H.J. Lu  <hjl@gnu.org>
3398
3399         * libio/libio.h: Remove extra "#if ... #endif".
3400
3401 2000-11-29  H.J. Lu  <hjl@gnu.org>
3402
3403         * stdio-common/vfscanf.c (ORIENT): Swap the COMPILE_WSCANF case.
3404
3405 2000-12-01  H.J. Lu  <hjl@gnu.org>
3406
3407         * nss/getXXbyYY_r.c: Fix verioned symbol handling.
3408         * nss/getXXent_r.c: Likewise.
3409         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
3410
3411 2000-11-30  H.J. Lu  <hjl@gnu.org>
3412
3413         * scripts/abi-versions.awk (oldest_abi): New variable.
3414         Handle the oldest ABI supported.
3415
3416         * Makerules ($(common-objpfx)abi-versions.h): Set oldest_abi
3417         for scripts/abi-versions.awk.
3418
3419         * configure.in: Add --with-oldest-abi=ABI.
3420         * configure: Rebuild.
3421
3422         * config.make.in (oldest-abi): New.
3423
3424         * config.h.in (GLIBC_OLDEST_ABI): New.
3425
3426         * csu/version.c (banner): Support GLIBC_OLDEST_ABI.
3427
3428 2000-11-30  Jakub Jelinek  <jakub@redhat.com>
3429
3430         * locale/setlocale.c (setname): Free for all categories, not just
3431         LC_ALL.
3432         (setlocale): Store a copy of string passed by user, not the string
3433         itself.
3434
3435 2000-11-30  Roland McGrath  <roland@frob.com>
3436
3437         * sysdeps/mach/hurd/defs.c (init_stdio): Put this on __libc_subinit
3438         rather than _hurd_fd_subinit, so it happens after it's safe to use
3439         libc facilities like malloc.
3440
3441 2000-11-28  Andreas Jaeger  <aj@suse.de>
3442
3443         * sysdeps/unix/sysv/linux/getdents.c: Add _syscall_getdents64
3444         declaration, adjust declaration of __syscall_getdents to match
3445         kernel.
3446
3447 2000-11-29  H.J. Lu  <hjl@gnu.org>
3448
3449         * sysdeps/generic/readelflib.c (check_ptr): Undefine it first.
3450
3451 2000-11-29  Andreas Jaeger  <aj@suse.de>
3452
3453         * sysdeps/unix/sysv/linux/hppa/brk.c (__brk): Remove unused variable.
3454
3455 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
3456
3457         * dlfcn/defaultmod1.c: Add prototypes to avoid warnings.
3458         * dlfcn/defaultmod2.c: Likewise.
3459         * dlfcn/dlopen.c: Likewise.
3460         * dlfcn/dlopenold.c: Likewise.
3461         * dlfcn/failtestmod.c: Likewise.
3462         * dlfcn/glreflib1.c: Likewise.
3463         * dlfcn/glreflib2.c: Likewise.
3464         * dlfcn/eval.c: Likewise.  Add attributes.
3465
3466         * ctype/ctype-extn.c: Define isblank and not __isblank.
3467
3468         * time/strftime.c: Add const where necessary to avoid warnings.
3469         * time/strptime.c (strptime_internal): Add casts to avoid warnings.
3470
3471 2000-11-22  Paul Eggert  <eggert@twinsun.com>
3472
3473         * time/strftime.c (my_strftime): Do not invoke mbrlen with a
3474         size of (size_t) -1; it's not portable.
3475
3476 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
3477
3478         * sysdeps/i386/fpu/libm-test-ulps: Adjust some values for the
3479         crappy i486 FPU.
3480         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
3481
3482 2000-11-14  Jes Sorensen  <jes@linuxcare.com>
3483
3484         * sysdeps/ia64/_mcount.S: Call __mcount instead of __mcount_internal.
3485
3486         * sysdeps/ia64/Makefile: Compile _mcount.S in subdir gmon as
3487         _mcount is required by profiled binaries.
3488
3489         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: Moved to...
3490         * sysdeps/ia64/machine-gmon.h: ...here.
3491
3492 2000-11-28  Masahide Washizawa  <washi@jp.ibm.com>
3493
3494         * iconvdata/Makefile (modules): Add IBM922, IBM1124, and IBM1129.
3495         (distribute): Add ibm922.c, ibm1124.c, ibm1129.c, ibm922.h, ibm1124.h,
3496         and ibm1129.h.
3497         * iconvdata/gconv-modules: Add entries for IBM922, IBM1124, and
3498         IBM1129.
3499         * iconvdata/ibm922.c: New file.
3500         * iconvdata/ibm922.h: New file.
3501         * iconvdata/ibm1124.c: New file.
3502         * iconvdata/ibm1124.h: New file.
3503         * iconvdata/ibm1129.c: New file.
3504         * iconvdata/ibm1129.h: New file.
3505         * iconvdata/testdata/IBM922: New file.
3506         * iconvdata/testdata/IBM922..UTF8: New file.
3507         * iconvdata/testdata/IBM1124: New file.
3508         * iconvdata/testdata/IBM1124..UTF8: New file.
3509         * iconvdata/testdata/IBM1129: New file.
3510         * iconvdata/testdata/IBM1129..UTF8: New file.
3511
3512 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
3513
3514         * catgets/gencat.c (normalize_line): Take extra parameter with escape
3515         character.  Change callers.
3516         (open_conversion): Determine mapping of 0x5c as wchar_t value.
3517         * catgets/Makefile: Add rules to build and run test-gencat.
3518         * catgets/sample.SJIS: New file.
3519         * catgets/test-gencat.c: New file.
3520         * catgets/test-gencat.sh: New file.
3521         Report and test case by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
3522
3523 2000-11-28  Andreas Jaeger  <aj@suse.de>
3524
3525         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Synch with generic
3526         Linux version.
3527
3528 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
3529
3530         * sysdeps/unix/sysv/linux/bits/socket.h: Fix last patch.
3531
3532 2000-11-28  Andreas Jaeger  <aj@suse.de>
3533
3534         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Use
3535         __flexarr.
3536         * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct cmsghdr):
3537         Likewise.
3538
3539 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
3540
3541         * misc/getusershell.c: Make strings in okshells array const.
3542         * misc/regexp.c: Add const to cast to avoid warnings.
3543         * sysdeps/unix/sysv/linux/llseek.c: Add prototype for __llseek.
3544         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add prototype for
3545         __setresuid.
3546         * sysdeps/unix/sysv/linux/i386/setresgid.c: Add prototype for
3547         setresgid.
3548         * misc/error.c: Add prototypes for __error and __error_at_line.
3549         * misc/mntent_r.c (__getmntent_r): Add break at end of switch
3550         statement to avoid warning.
3551         * test-skeleton.c: Mark timeout_handler with noreturn.
3552         * iconv/skeleton.c (get16u): Add const to cast.
3553         (get32u): Likewise.
3554         * iconvdata/gb18030.c: Likewise.
3555         * iconvdata/iso-2022-cn-ext.c: Likewise.
3556         * iconvdata/ansi_x3.110.c: Add cast to avoid warning.
3557         * iconvdata/big5.c: Likewise.
3558         * iconvdata/big5hkscs.c: Likewise.
3559         * iconvdata/iso_6937.c: Likewise.
3560         * iconvdata/iso_6937-2.c: Likewise.
3561         * iconvdata/t.61.c: Likewise.
3562         * iconvdata/iso646.c: Add prototypes for gconv_init and gconv_env.
3563         * iconvdata/unicode.c: Likewise.
3564         * iconvdata/utf-16.c: Likewise.
3565         * iconvdata/cns11643.h (ucs4_to_cns11643): Define needed as size_t.
3566         * iconv/gconv_trans.c (__gconv_translit_find): Avoid one warning
3567         with little code shuffling.
3568
3569         * sysdeps/powerpc/Makefile (CFLAGS-initfini.s): Add -O1 to avoid
3570         the problems introduced when the user selects -O3.
3571
3572         * iconv/gconv.h (__gconv_info): Define __data element using __flexarr.
3573         * misc/sys/cdefs.h: Define __flexarr.
3574         Proposed by Joseph S. Myers <jsm28@cam.ac.uk>.
3575
3576         * iconvdata/iso-2022-jp.c: Add prototypes to avoid warnings.
3577         * iconv/skeleton.c: Likewise.
3578         * iconvdata/iso8859-1.c (BODY to 8859-1): Add const to cast.
3579         * iconv/loop.c (get16): Add const to cast.
3580         (get32): Likewise.
3581
3582 2000-11-27  Andreas Jaeger  <aj@suse.de>
3583
3584         * login/programs/pt_chown.c (do_pt_chown): Mark function as static
3585         to avoid warning.
3586         * login/programs/utmpdump.c (print_entry): Likewise.
3587
3588 2000-11-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3589
3590         * sysdeps/mips/__longjmp.c (__longjmp): Restore SP and FP last and
3591         in a single asm as they may be used to access other stored
3592         registers.
3593         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
3594
3595 2000-11-27  Andreas Jaeger  <aj@suse.de>
3596
3597         * rt/tst-aio.c: Mark test functions as static to avoid warnings.
3598         * rt/tst-aio64.c: Likewise.
3599
3600 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
3601
3602         * catgets/Makefile (test1.cat): Set LC_ALL, LOCPATH, and GCONV_PATH
3603         for gencat run.
3604         (libc.cat): Likewise.
3605         * catgets/gencat.c: Implement handling of message catalogs encoded
3606         with stateful character sets.
3607         Based on a patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
3608
3609 2000-11-26  Ulrich Drepper  <drepper@redhat.com>
3610
3611         * sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
3612
3613         * inet/getnameinfo.c: Adjust casts to avoid warnings.
3614         * inet/rcmd.c: Likewise.
3615         * inet/ruserpass.c: Likewise.
3616         * inet/netinet/in.h (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK,
3617         IN6_IS_ADDR_MULTICAST, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
3618         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL,
3619         IN6_IS_ADDR_MC_NODELOCAL, IN6_IS_ADDR_MC_LINKLOCAL,
3620         IN6_IS_ADDR_MC_SITELOCAL, IN6_IS_ADDR_MC_ORGLOCAL,
3621         IN6_IS_ADDR_MC_GLOBAL): Preserve const in cast.
3622         * include/aliases.h: Add prototypes for internal __getalias* functions.
3623         * include/netdb.h: Add prototypes for __old_gethostent_r,
3624         __old_gethostbyaddr_r, __old_gethostbyname_r, __old_gethostbyname2_r,
3625         __old_getnetent_r, __old_getnetbyaddr_r, __old_getnetbyname_r,
3626         __old_getservent_r, __old_getservbyname_r, __old_getservbyport_r,
3627         __old_getprotoent_r, __old_getprotobyname_r, __old_getprotobynumber_r.
3628         * include/rpc/netdb.h: Add prototypes for __old_getrpcbyname_r,
3629         __old_getrpcbynumber_r, __old_getrpcent_r.
3630
3631         * include/rpc/netdb.h: Add __getrpcbyname_r, __getrpcbynumber_r,
3632         __getrpcent_r prototypes.
3633
3634 2000-11-25  Ulrich Drepper  <drepper@redhat.com>
3635
3636         * string/strcoll.c: Add casts to avoid warnings.
3637         * string/strnlen.c: Likewise.
3638         * string/strxfrm.c: Likewise.
3639         * sysdeps/generic/_strerror.c: Likewise.
3640         * sysdeps/generic/memrchr.c: Likewise.
3641         * sysdeps/generic/strcasestr.c: Likewise.
3642         * sysdeps/generic/strstr.c: Likewise.
3643
3644         * locale/weight.h (findidx): Add const to cast to avoid warning.
3645
3646         * elf/loadfail.c: Little cosmetic changes to avoid warnings.
3647         * elf/loadtest.c: Likewise.
3648         * elf/multiload.c: Likewise.
3649         * elf/next.c: Likewise.
3650         * elf/nodelete.c: Likewise.
3651         * elf/noload.c: Likewise.
3652         * elf/order.c: Likewise.
3653         * elf/origtest.c: Likewise.
3654         * elf/preloadtest.c: Likewise.
3655         * elf/restest1.c: Likewise.
3656
3657         * sysdeps/i386/i486/bits/string.h (__strncat_g) [i686]: Fourth
3658         parameter of asm must be in %ecx.
3659
3660         * string/tester.c: Mark test functions as static to avoid warnings.
3661
3662         * iconv/gconv_conf.c (read_conf_file): Make mod_counter static to
3663         preserve value over different gconv-modules files.
3664
3665 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
3666
3667         * locale/findlocale.c: Add casts to avoid warnings.
3668         * locale/localeinfo.h (LIMAGIC): Add cast to avoid warnings.
3669         * misc/efgcvt_r.c (fcvt_r): Use ssize_t instead of int and add cast
3670         to avoid warnings.
3671         * misc/tsearch.c (const_node): New type.
3672         (trecurse): Correct casts to avoid warnings.
3673         (__twalk): Likewise.
3674         * stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and
3675         LONG_BIT.
3676
3677         * debug/backtrace-tst.c (compare): Add casts to avoid warnings.
3678
3679         * test-skeleton.c: Mark local functions as static to avoid warnings.
3680
3681 2000-11-23  H.J. Lu  <hjl@gnu.org>
3682
3683         * rt/tst-aio6.c (do_test): Use pipe instead of STDIN_FILENO to
3684         support the background job.
3685         Fix a typo.
3686
3687 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
3688
3689         * iconv/gconv_conf.c (insert_module): Replace old entry if new one
3690         has same names but lower cost.
3691
3692 2000-11-23  Jakub Jelinek  <jakub@redhat.com>
3693
3694         * sysdeps/sparc/sparc32/dl-machine.h: Ifdef out handling for relocs
3695         which never occur during bootstrap.
3696         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3697
3698 2000-11-23  Andreas Jaeger  <aj@suse.de>
3699
3700         * nss/nss_files/files-hosts.c: Remove getipnodebyname.
3701
3702         * nss/Versions: Remove _nss_files_getipnodebyname_r.
3703
3704         * sysdeps/unix/sysv/linux/Versions: Fix typo in last patch.
3705
3706 2000-11-18  Martin Buchholz  <martin@xemacs.org>
3707
3708         * csu/gmon-start.c (__gmon_start__): Avoid over-clever trick `if
3709         (called++) return;'
3710
3711 2000-11-21  Alan Modra  <alan@linuxcare.com.au>
3712
3713         * sysdeps/generic/bsd-_setjmp.c (setjmp): Rename to _setjmp.
3714
3715         * csu/abi-note.S: Correct comment for operating system number.
3716
3717 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
3718
3719         * Versions.def: Add GLIBC_2.2.1 for glibc.
3720
3721 2000-11-22  Andreas Schwab  <schwab@suse.de>
3722
3723         * sysdeps/unix/sysv/linux/syscalls.list: Add pivot_root.
3724         * sysdeps/unix/sysv/linux/Versions: Add pivot_root at GLIBC_2.2.1.
3725
3726 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
3727
3728         * rt/aio_suspend.c (aio_suspend): Convert timeout value to
3729         absolute time for pthread_cond_timedwait call.
3730         Reported by Lawrence Chen <lchen@opentext.com> [libc/1930].
3731
3732         * rt/Makefile (tests): Add tst-aio6.
3733         * rt/tst-aio6.c: New file.
3734
3735 2000-11-23  Andreas Jaeger  <aj@suse.de>
3736
3737         * sysdeps/s390/bits/string.h (strncat): Fix one more typo.
3738
3739 2000-11-22  Andreas Jaeger  <aj@suse.de>
3740
3741         * sysdeps/s390/bits/string.h (strncat): Add missing quotation marks.
3742
3743 2000-11-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3744
3745         * sysdeps/s390/bits/string.h: Make strncat always add a \0.
3746
3747 2000-11-21  Andreas Schwab  <schwab@suse.de>
3748
3749         * sysdeps/alpha/setjmp.S: Remove __setjmp entry point.
3750         * sysdeps/arm/setjmp.S: Likewise.
3751         * sysdeps/arm/fpu/setjmp.S: Likewise.
3752         * sysdeps/i386/setjmp.S: Likewise.
3753         * sysdeps/i386/elf/setjmp.S: Likewise.
3754         * sysdeps/s390/setjmp.S: Likewise.
3755         * sysdeps/s390/elf/setjmp.S: Likewise.
3756         * sysdeps/sh/sh3/setjmp.S: Likewise.
3757         * sysdeps/sh/sh4/setjmp.S: Likewise.
3758         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
3759         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
3760         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
3761         * sysdeps/unix/sysv/linux/m68k/setjmp.c: Removed.
3762
3763 2000-11-21  Andreas Jaeger  <aj@suse.de>
3764
3765         * sysdeps/generic/__longjmp.c (__longjmp): Remove obsolete
3766         NORETURN, fix parameter list.
3767
3768         * string/bug-strncat1.c (main): Fix typo.
3769         Patch by Bernhard Kaindl <bernhard.kaindl@suse.de>.
3770
3771 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
3772
3773         * configure.in: Add --enable-all-warnings.
3774         * config.make.in (all-warnings): New variable.
3775         * Makeconfig (+gccwarn): Define with many more warnings if
3776         all-warnings is yes.
3777
3778 2000-11-20  Jakub Jelinek  <jakub@redhat.com>
3779
3780         * iconvdata/bug-iconv2.c (main): Use %zd in format string.
3781         * io/test-lfs.c (do_test): Cast statbuf.st_size to long long.
3782         * malloc/tst-valloc.c (main): Cast valloc return value to long.
3783         * malloc/tst-obstack.c (verbose_malloc): Use %zd in format string.
3784         * math/test-fpucw.c (main): Use %lx in format string, cast
3785         control words to long.
3786         * stdio-common/tst-fmemopen.c (main): Use %td in format strings.
3787         * stdlib/tst-strtol.c (tests): Avoid (bogus?) decimal constant is so
3788         large that it is unsigned warning.
3789
3790         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ssize_t): Changing
3791         it to long on sparc64.
3792
3793 2000-11-20  Andreas Jaeger  <aj@suse.de>
3794
3795         * nscd/nscd.h (termination_handler): Add noreturn attribute.
3796         (receiv_print_stats): Likewise.
3797
3798         * elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison.
3799
3800 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
3801
3802         * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore.
3803
3804         * csu/gmon-start.c: Always have prototype for __gmon_start.
3805         * csu/version.c: Add prototypes for __libc_print_version and
3806         __libc_main.
3807         * iconv/gconv.c: Include gconv_int.h and gconv.h.
3808         * iconv/gconv.h (struct __gconv_step): Remove const from __from_name
3809         and __to_name.
3810         * iconv/gconv_builtin.h: Add ASCII module definitions.
3811         * iconv/gconv_conf.c (__gconv_path_elem): Remove const.
3812         (add_module): Add cast to avoid warning.  Rework construction of
3813         strings for new module.
3814         * iconv/gconv_db.c (__gconv_alias_compare): Make s1 and s2 const.
3815         (derivation_compare): Likewise.
3816         * iconv/gconv_dl.c (do_release_shlib): Remove const from nodep.
3817         (__gconv_release_shlib): Cast do_release_shlib as parameter for twalk.
3818         * iconv/gconv_int.h (__gconv_path_elem): Remove const.
3819         (struct gconv_alias): Remove const from fromname and toname.
3820         * iconv/gconv_simple.c: Include gconv_builtin.h to get prototypes
3821         for loop functions.
3822         (internal_ucs4_loop): Use correct const-ness.
3823         (ucs4_internal_loop): Likewise.
3824         (internal_ucs4le_loop): Likewise.
3825         (ucs4le_internal_loop_single): Likewise.
3826         * iconv/gconv_trans.c (__gconv_transliterate): Make from_idx, from_tbl,
3827         to_idx, to_tbl, winbuf, winbufend const.  Change casts in
3828         assignments appropriately.
3829         (struct known_trans): Remove const from fname.
3830         (trans_compare): Make s1 and s2 const.
3831         * iconv/loop.c (LOOPFC): Make outend parameter const.  Add cast to
3832         avoid warning.
3833         * iconv/skeleton.c: Remove cast in calls of loop functions.
3834         * iconvdata/gconv-modules: Remove US-ASCII definitions.
3835         * iconvdata/iso646.c: Remove US_ASCII support.
3836         * include/set-hooks.h (DEFINE_HOOK): Also generate prototype.
3837         * include/unistd.h: Add __libc_check_standard_fds prototype.
3838         * string/bits/string2.h (__mempcpy_args): Add const to casts.
3839         * sysdeps/generic/initfini.c: Add prototypes for dummy, _init, and
3840         _fini.
3841         * sysdeps/generic/libc-start.c: Add prototype for __libc_start_main.
3842         * sysdeps/i386/i486/bits/string.h (strcmp): Add const to casts.
3843         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Add cast to avoid
3844         warning.
3845         * sysdeps/unix/sysv/linux/init-first.c: Add prototypes for
3846         __libc_init_first and _dl_start.
3847         * intl/dcigettext.c (transcmp): Make s1 and s2 const.
3848         (DCIGETTEXT): Make domaindata variable const.
3849         * intl/loadmsgcat.c (_nl_load_domain): Rearrange domain initialization
3850         to avoid warning.
3851
3852 2000-11-20  Hiroyuki Machida  <machida@sm.sony.co.jp>
3853
3854         * sysdeps/unix/sysv/linux/mips/clone.S: Fix comments.
3855
3856         * sysdeps/unix/sysv/linux/mips/kernel_stat.h (kernel_stat): Expand
3857         time_t to 'long int' not, 'unsigned int'.  Use 'long int' for
3858         __unused? members.
3859
3860         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOFOLLOW): Use same
3861         value defined in /usr/include/asm-mips/fcntl.h.
3862
3863 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
3864
3865         * stdio-common/Makefile (tests): Add test-vfprintf.
3866         (test-vfprintf-ENV): New variable.
3867         * stdio-common/test-vfprintf.c: New file.
3868
3869         * wcsmbs/mbrtowc.c (__mbrtowc): Do not only flush if input is '\0'.
3870
3871         * wcsmbs/Makefile (tests): Add tst-mbrtowc and tst-wcrtomb.
3872         (tst-mbrtowc-ENV): New variable.
3873         (tst-wcrtomb-ENV): New variable.
3874         * wcsmbs/tst-mbrtowc.c: New file.
3875         * wcsmbs/tst-wcrtomb.c: New file.
3876
3877 2000-11-16  Andreas Jaeger  <aj@suse.de>
3878
3879         * manual/install.texi (Tools for Compilation): Update
3880         documentation for GCC 2.95.2.
3881
3882 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
3883
3884         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only return -EAI_AGAIN
3885         if IPv4 and IPv6 requests timed out.
3886
3887 2000-11-18  Akim Demaille  <akim@epita.fr>
3888
3889         * malloc/obstack.h: Formatting changes.
3890         (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
3891         prevents type checking.
3892         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
3893         cast the value to (void *): assigning a `foo *' to a `void *'
3894         variable is valid.
3895         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
3896
3897 2000-11-17  Ulrich Drepper  <drepper@redhat.com>
3898
3899         * scripts/config.guess: Update from upstream maintainer.
3900         * scripts/config.sub: Likewise.
3901
3902 2000-11-16  Ulrich Drepper  <drepper@redhat.com>
3903
3904         * libio/freopen.c (freopen): Reset _mode after succesful reopening.
3905         * libio/freopen64.c (freopen64): Likewise.
3906         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
3907
3908         * libio/Makefile: Add rules to build and run test-freopen.
3909         * libio/test-freopen.c: New file.
3910         * libio/test-freopen.sh: New file.
3911
3912 2000-11-15  H.J. Lu  <hjl@gnu.org>
3913
3914         * sysdeps/generic/ldsodefs.h (DL_DT_INIT_ADDRESS): Defined if
3915         ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
3916         (DL_DT_FINI_ADDRESS): Likewise.
3917
3918         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): Set the
3919         return type to ElfW(Addr).
3920         (_dl_function_address): New prototype.
3921         (DL_FUNCTION_ADDRESS): Defined.
3922         (DL_DT_INIT_ADDRESS): Defined as DL_FUNCTION_ADDRESS.
3923         (DL_DT_FINI_ADDRESS): Likewise.
3924
3925         * sysdeps/ia64/Versions (GLIBC_2.2): Add _dl_function_address.
3926
3927         * sysdeps/ia64/dl-machine.h (_dl_start_address): Removed.
3928         (ELF_MACHINE_START_ADDRESS): Changed to DL_FUNCTION_ADDRESS.
3929
3930         * sysdeps/ia64/dl-symaddr.c (_dl_start_address): Renamed to ...
3931         (_dl_function_address): This.
3932
3933         * elf/dl-fini.c (_dl_fini): Use DL_DT_FINI_ADDRESS to get the
3934         function pointer for DT_FINI.
3935         * elf/dl-close.c (_dl_close): Likewise.
3936
3937         * elf/dl-init.c (_dl_init): Use DL_DT_INIT_ADDRESS to get the
3938         function pointer for DT_INIT.
3939
3940 2000-11-16  Jakub Jelinek  <jakub@redhat.com>
3941
3942         * sysdeps/generic/printf_fphex.c (__printf_fphex): Compute correctly
3943         end of wexpbuf buffer.
3944
3945 2000-11-16  Andreas Jaeger  <aj@suse.de>
3946
3947         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove duplicate
3948         definition of F_GETLK, F_SETLK, F_SETLKW.
3949
3950 2000-11-16  Andreas Jaeger  <aj@suse.de>
3951
3952         * sysdeps/generic/dl-cache.c (_DL_PLATFORMS_COUNT): Define to 0 if
3953         it's not defined.
3954
3955 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
3956
3957         * dlfcn/default.c (main): Add test for dladdr of main returning
3958         argv[0] in dli_fname field.
3959
3960 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
3961
3962         * Makeconfig (run-program-prefix): Move test-static test into the
3963         variable.
3964
3965         * sysdeps/alpha/dl-machine.h (RTLD_START): Update _dl_argv.
3966         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise,
3967         schedule instructions.
3968         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise,
3969         schedule instructions, fix a bug in copying auxiliary data.
3970
3971 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
3972
3973         * manual/startup.texi (Program Arguments): Fix type of main's envp
3974         parameter.
3975         Reported by Raúl Núñez de Arenas Coronado <dervishd@linuxfreak.com>.
3976
3977         * iconvdata/gconv-modules: Add CP950 alias.
3978
3979 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
3980
3981         * sysdeps/unix/sysv/linux/Makefile: Allow ports to override
3982         syscall-list.h goal.
3983         * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
3984
3985 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
3986
3987         * intl/Makefile: tst-gettext2.sh does not need a third parameter.
3988
3989         * intl/tst-gettext2.sh: Copy locale data.  Adjust LOCPATH.  Verify
3990         output of program.
3991
3992         * intl/tst-gettext2.c: Set C locale if setting other locale
3993         failed.  Use gettext() not _().
3994
3995         * locale/setlocale.c: Increment _nl_msg_cat_cntr whenever we
3996         successfully loaded a new locale.
3997
3998 2000-11-13  Andreas Jaeger  <aj@suse.de>
3999
4000         * configure.in: Require gcc 2.95 or newer.
4001
4002 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
4003
4004         * sysdeps/unix/sysv/linux/paths.h: Adjust for FHS.
4005         Patch by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
4006
4007 2000-11-11  Jim Meyering  <meyering@lucent.com>
4008
4009         * string/strndup.c (strndup): Cast return value to `char *'.
4010
4011 2000-11-15  Jim Meyering  <meyering@ascend.com>
4012
4013         * sysdeps/generic/memchr.c: Remove some useless parentheses.
4014         [HAVE_STDLIB_H || defined _LIBC]: Include <stdlib.h>.
4015         [HAVE_BP_SYM_H || defined _LIBC]: Guard inclusion of bp-sym.h.
4016         [! (HAVE_BP_SYM_H || defined _LIBC)] (BP_SYM): Define as no-op.
4017         Also #undef __memchr.
4018         Use `weak_alias' only if it's defined.
4019
4020 2000-11-10  H.J. Lu  <hjl@gnu.org>
4021
4022         * Makefile.in (install): Set LANGUAGE=C LC_ALL=C.
4023
4024 2000-11-15  Andreas Jaeger  <aj@suse.de>
4025
4026         * elf/chroot_canon.c: Include <stdint.h>.
4027
4028         * elf/cache.c (struct cache_entry): Use uint64_t for hwcap.
4029         (print_entry): Likewise.
4030         (add_to_cache): Likewise.
4031
4032         * elf/ldconfig.h (add_to_cache): Change prototype for hwcap change.
4033
4034         * elf/ldconfig.c (struct lib_entry): Use uint64_t for hwcap.
4035         (path_hwcap): Likewise.
4036         (search_dir): Likewise.
4037
4038         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Handle platform.
4039
4040         * elf/cache.c (add_to_cache): Handle 64 bit hwcap entry.
4041
4042         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
4043         (_dl_platform_string): New.
4044         (_DL_HWCAP_PLATFORM): New.
4045         (_dl_string_platform): New.
4046         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
4047
4048         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
4049         (_dl_string_platform): New.
4050         (_DL_HWCAP_PLATFORM): New.
4051         (_dl_platform_string): New.
4052
4053         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Added x86 platform
4054         recognition.
4055         (_DL_HWCAP_COUNT): New.
4056         (_dl_string_platform): New.
4057         (_DL_HWCAP_PLATFORM): New.
4058         (_dl_platform_string): New.
4059
4060 2000-11-14  Ulrich Drepper  <drepper@redhat.com>
4061
4062         * iconvdata/gconv-modules: Add CP936 as alias for GBK.
4063
4064 2000-11-14  Andreas Jaeger  <aj@suse.de>
4065
4066         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Fix access to _dl_hwcap.
4067
4068 2000-11-13  Roland McGrath  <roland@frob.com>
4069
4070         * hurd/get-host.c (_hurd_get_host_config): Fix last change.
4071
4072 2000-11-13  Marcus Brinkmann <marcus@gnu.org>
4073
4074         * hurd/get-host.c (_hurd_get_host_config): Fix possible buffer
4075         underrun and make sure the result is null terminated even if there
4076         is no trailing newline.
4077
4078 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
4079
4080         * sysdeps/alpha/fpu/libm-test-ulps: Update.
4081
4082 2000-11-10  H.J. Lu  <hjl@gnu.org>
4083
4084         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
4085
4086 2000-11-10  Andreas Jaeger  <aj@suse.de>
4087
4088         * elf/ldconfig.c (create_links): Fix alloca calculation.
4089         Patch by Ben Collins <bcollins@debian.org>.
4090
4091 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
4092
4093         * inet/getnameinfo.c (getnameinfo): Use correct destination
4094         parameter for if_indextoname.
4095         Patch by Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>.
4096
4097 2000-11-09  H.J. Lu  <hjl@gnu.org>
4098
4099         * sunrpc/Versions (GLIBC_2.1): Remove xdr_cryptkeyarg,
4100         xdr_cryptkeyarg2, xdr_cryptkeyres, xdr_des_block,
4101         xdr_key_netstarg, xdr_key_netstres, xdr_keybuf and
4102         xdr_keystatus.
4103
4104         * time/Versions (GLIBC_2.1): Move getitimer to...
4105         * sysdeps/unix/sysv/linux/alpha/Versions (GLIBC_2.1): ...here.
4106
4107 2000-11-03  Bruno Haible  <haible@clisp.cons.org>
4108
4109         * manual/install.texi: Recommend to set LANGUAGE=C LC_ALL=C during
4110         "make install", to work around a binary incompatibility between
4111         glibc 2.1 and glibc 2.2 gconv modules.
4112
4113 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
4114
4115         * intl/locale.alias: Add thai.
4116         Patch by Chanop Silpa-Anan <chanop@syseng.anu.edu.au>.
4117
4118 2000-11-07  Akim Demaille  <akim@epita.fr>
4119
4120         * malloc/obstack.c (obstack_grow, obstack_grow0): Rename the second
4121         argument `data' for consistency with the prototypes.
4122         Qualify it `const'.
4123         (obstack_copy, obstack_copy0): Rename the second argument as
4124         `address' for consistency.  Qualify it `const'.
4125         * malloc/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
4126         (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
4127         `const' their input argument (`data' or `address').
4128         Adjust the corresponding macros to include `const' in casts.
4129
4130 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
4131
4132         * sysdeps/posix/getaddrinfo.c: Clean-up: define family to hold
4133         target family.
4134
4135 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
4136
4137         * sysdeps/posix/getaddrinfo.c: Loosen protocol check to ease raw
4138         socket creation.
4139
4140 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
4141
4142         * sysdeps/posix/getaddrinfo.c: Ensure to fill ai_socktype and
4143         ai_protocol by internal table if service was not given.
4144
4145 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
4146
4147         * sysdeps/posix/getaddrinfo.c: Don't raise an error even if
4148         numerical port was specified with protocol without socktype.
4149
4150 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
4151
4152         * sysdeps/posix/getaddrinfo.c: Ensure to check if protocol is ok.
4153
4154 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
4155
4156         * inet/getnameinfo.c: getnameinfo() NI_xxx flag validation.
4157
4158 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
4159
4160         * sysdeps/posix/getaddrinfo.c: Ensure not to fill garbage value in
4161         sin6_scope_id field.
4162
4163 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
4164
4165         * inet/getnameinfo.c: Repair getnameinfo() sin6_socpe_id support.
4166
4167 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
4168
4169         * inet/getnameinfo.c: Repair NI_NOFQDN flag support.
4170
4171 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
4172
4173         * inet/getnameinfo.c: Wake-up sin6_scope_id support in
4174         getnameinfo(): check for whether sin6_socpe_id exist was wrong.
4175
4176 2000-11-09  Martin Schwidefsky  <mschwide@nc.boeblingen.de.ibm.com>
4177
4178         * sysdeps/unix/sysv/linux/s390/mmap.S: Use mmap2 if it is present.
4179         * sysdeps/unix/sysv/linux/s390/mmap64.S: New file.
4180
4181 2000-11-09  H.J. Lu  <hjl@gnu.org>
4182
4183         * io/Versions (GLIBC_2.1.1): Remove lockf64.
4184
4185
4186 See ChangeLog.11 for earlier changes.