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