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