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