Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-12-18  Ulrich Drepper  <drepper@redhat.com>
2
3         * math/test-misc.c: Add more tests for nextafter.
4         * sysdeps/i386/fpu/s_nextafterl.c: Handle decrement for x<0 correctly.
5         * sysdeps/ieee754/ldbl-96/math_ldbl.h
6         (ieee_long_double_shape_type): Make sign_exponent element signed.
7
8         * manual/message.texi: Add Estonian to plural overview list.
9         Correct rule for Slavic languages.
10         Patch by Stanislav Brabec <utx@penguin.cz>.
11
12         * nis/nss_nis/nis-netgrp.c: Remove unnecessary initializations.
13
14 2000-12-18  Andreas Jaeger  <aj@suse.de>
15
16         * test-skeleton.c: Use temp_name_list instead of temp_name_list to
17         avoid collision with name_list from inet/netgroup.h.
18
19         * nss/nss_files/files-network.c (NEED_H_ERRNO): Define.
20
21         * include/grp.h (DECLARE_NSS_PROTOTYPES): New.
22         * include/pwd.h (DECLARE_NSS_PROTOTYPES): New.
23         * include/netdb.h (DECLARE_NSS_PROTOTYPES): New.
24         * include/shadow.h (DECLARE_NSS_PROTOTYPES): New.
25
26         * hesiod/nss_hesiod/hesiod-proto.c (_nss_hesiod_setprotoent): Fix
27         declaration to match prototype.
28         * hesiod/nss_hesiod/hesiod-pwd.c (_nss_hesiod_setpwent): Likewise.
29         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_setgrent): Likewise.
30         * hesiod/nss_hesiod/hesiod-service.c (_nss_hesiod_setservent):
31         Likewise.
32         * nis/nss_nis/nis-grp.c (_nss_nis_setgrent): Likewise.
33         * nis/nss_nis/nis-pwd.c (_nss_nis_setpwent): Likewise.
34         * nis/nss_nis/nis-proto.c (_nss_nis_setprotoent): Likewise.
35         * nis/nss_nis/nis-service.c (_nss_nis_setservent): Likewise.
36         (_nss_nis_getservbyport_r): Likewise.
37         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent): Likewise.
38         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent): Likewise.
39         * nis/nss_nis/nis-network.c (_nss_nis_getnetent_r): Likewise.
40         (_nss_nis_setnetent): Likewise
41         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
42         (_nss_nis_endnetgrent): Likewise.
43         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_endnetgrent):
44         Likewise.
45         (_nss_nisplus_setnetgrent): Likewise.
46         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Likewise.
47         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_setpwent): Likewise.
48         * nis/nss_nisplus/nisplus-grp.c (_nss_nisplus_setgrent): Likewise.
49         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_setnetent):
50         Likewise.
51         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_sethostent):
52         Likewise.
53         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_setservent):
54         Likewise.
55         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_setprotoent):
56         Likewise.
57         * nis/nss_compat/compat-spwd.c (_nss_compat_setspent): Likewise.
58         * nis/nss_compat/compat-pwd.c (_nss_compat_setpwent): Likewise.
59         * nis/nss_compat/compat-grp.c (_nss_compat_setgrent): Likewise.
60         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
61         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
62         (_nss_dns_getnetbyaddr_r): Likewise.
63
64 2000-12-17  Andreas Jaeger  <aj@suse.de>
65
66         * sysdeps/generic/k_sinl.c (__kernel_sinl): Fix functions
67         parameter.
68
69         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Make static and add
70         unused attribute to shut up gcc warnings.
71
72         * sysdeps/generic/k_sinl.c: Include math_private for prototypes.
73         * sysdeps/generic/k_tanl.c: Likewise.
74         * sysdeps/generic/k_cosl.c: Likewise.
75         * sysdeps/generic/e_j0l.c: Likewise.
76         * sysdeps/generic/e_j1l.c: Likewise.
77         * sysdeps/generic/e_jnl.c: Likewise.
78         * sysdeps/generic/e_lgammal_r.c: Likewise.
79
80         * elf/vismain.c: Move prototypes for functions in vismod*.c to
81         vismod.h.
82         * elf/vismod.h: New file.
83         * elf/Makefile (distribute): Add vismod.h.
84         * elf/vismod1.c: Include vismod.h.
85         * elf/vismod2.c: Likewise.
86         * elf/vismod3.c: Likewise.
87
88         * elf/constload3.c: Add prototype declarations to shut up gcc.
89         * elf/failobj.c: Likewise.
90         * elf/nodelmod3.c: Likewise.
91         * elf/filtmod1.c: Likewise.
92         * elf/filtmod2.c: Likewise.
93         * elf/reldepmod1.c: Likewise.
94         * elf/reldepmod2.c: Likewise.
95         * elf/reldepmod3.c: Likewise.
96         * elf/reldepmod4.c: Likewise.
97         * elf/unload2dep.c: Likewise.
98         * elf/unload2mod.c: Likewise.
99         * elf/ltglobmod1.c: Likewise.
100         * elf/pathoptobj.c: Likewise.
101         * elf/neededobj1.c: Likewise.
102         * elf/neededobj2.c: Likewise.
103         * elf/neededobj3.c: Likewise.
104         * elf/neededobj4.c: Likewise.
105         * elf/nextmod1.c: Likewise.
106         * elf/nextmod2.c: Likewise.
107
108         * locale/programs/ld-collate.c (collate_finish): Don't use labels
109         at end of compound statement.
110         * locale/programs/locale.c (show_info): Likewise.
111         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
112
113 2000-12-16  Jakub Jelinek  <jakub@redhat.com>
114
115         * catgets/gencat.c (read_input_file): Avoid calling obstack_free
116         with a pointer not returned by obstack_ functions.
117
118 2000-12-16  Ulrich Drepper  <drepper@redhat.com>
119
120         * sysdeps/unix/sysv/aix/bits/stat.h (struct stat): Align with AIX
121         version.
122         (struct stat64): Likewise.
123         Reported by Michael Keezer <mkeezer@redhat.com>.
124
125         * timezone/asia: Update from tzdata2000h.
126         * timezone/australasia: Likewise.
127         * timezone/backward: Likewise.
128         * timezone/europe: Likewise.
129         * timezone/northamerica: Likewise.
130         * timezone/southamerica: Likewise.
131         * timezone/zone.tab: Likewise.
132
133 2000-12-14  Jakub Jelinek  <jakub@redhat.com>
134
135         * io/ftw.c (ftw_dir): If process_entry returned non-zero result
136         and dir.stream is NULL, only free dir.content.
137         * io/ftwtest.c (cb, main): Add --early-exit option to test it.
138         * io/ftwtest-sh: Test with --early-exit.
139
140 2000-12-13  Jakub Jelinek  <jakub@redhat.com>
141
142         * misc/efgcvt.c (FCVT_MAXDIG): Define.
143         (FCVT_BUFPTR): New variable.
144         (fcvt): If fcvt_r returns -1 on the static short buffer,
145         try to malloc a sufficiently large one and retry.
146         (free_mem): New function.
147         * misc/qefgcvt.c (FCVT_MAXDIG): Define.
148         * misc/tst-efgcvt.c (fcvt_tests): Add new test.
149
150 2000-12-15  Ulrich Drepper  <drepper@redhat.com>
151
152         * misc/dirname.c (dirname): Fix search for second to last slash.
153
154 2000-12-13  Andreas Jaeger  <aj@suse.de>
155
156         * misc/tst-dirname.c (main): Fix typo in test to really use
157         the examples from Unix98.
158         Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
159
160 2000-12-09  H.J. Lu  <hjl@gnu.org>
161
162         * sysdeps/ia64/fpu/s_fabs.S: New file.
163         * sysdeps/ia64/fpu/s_fabsf.S: New file.
164         * sysdeps/ia64/fpu/s_fabsl.S: New file.
165
166 2000-12-15  Andreas Jaeger  <aj@suse.de>
167
168         * stdio-common/scanf9.c (main): Reformat and change to avoid
169         warnings.
170
171         * stdio-common/tstdiomisc.c: Make local functions static.
172         * stdio-common/tst-printf.c: Likewise.
173
174         * elf/constload2.c: Add prototype declarations to shut up gcc.
175         * elf/dep1.c: Likewise.
176         * elf/dep2.c: Likewise.
177         * elf/dep3.c: Likewise.
178         * elf/dep4.c: Likewise.
179         * elf/ltglobmod2.c: Likewise.
180
181         * libio/fmemopen.c: Make local functions static.
182
183         * elf/Makefile (distribute): Added testobj.h.
184
185         * elf/testobj.h: New file.
186
187         * elf/testobj1.c: Include testobj.h and move prototype
188         declarations to testobj.h.
189         * elf/testobj2.c: Likewise.
190         * elf/testobj3.c: Likewise.
191         * elf/testobj4.c: Likewise.
192         * elf/testobj5.c: Likewise.
193         * elf/testobj6.c: Likewise.
194         * elf/testobj1_1.c: Likewise.
195         * elf/preloadtest.c: Likewise.
196
197 2000-12-15  Ben Collins  <bcollins@debian.org>
198
199         * misc/sys/cdefs.h: Fix thinko in checks for flexarr macros.
200         Patch by Akim Demaille <akim@epita.fr> in Debian bug report.
201
202 2000-12-14  H.J. Lu  <hjl@gnu.org>
203
204         * sysdeps/ieee754/flt-32/s_sincosf.c (__sincosf): The exponent
205         field in a float is 8 bits, not 11 bits.
206
207 2000-12-13  Jakub Jelinek  <jakub@redhat.com>
208
209         * math/test-misc.c (main): Adjust m for IEEE quad long double.
210
211 2000-12-13  Andreas Jaeger  <aj@suse.de>
212
213         * manual/message.texi (Using gettextized software): Fix typo.
214
215         * manual/charset.texi (Converting a Character): Fix mbstouwcs
216         program to compile.
217         Patch by Martin Buchholz <martin@xemacs.org>.
218
219         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Fix typo.
220         Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
221
222 2000-12-11  Andreas Jaeger  <aj@suse.de>
223
224         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Declare
225         kernel_sigset_t and use it.
226         Patch by Hiroyuki Machida <machida@sm.sony.co.jp>.
227
228 2000-12-10  Richard Henderson  <rth@redhat.com>
229
230         * sysdeps/alpha/alphaev67/fpu/Implies: New file.
231         * sysdeps/alpha/alphaev6/fpu/e_sqrtf.S: New file.
232         * sysdeps/alpha/alphaev6/fpu/e_sqrt.S: New file.
233
234 2000-12-10  Jakub Jelinek  <jakub@redhat.com>
235
236         * sysdeps/alpha/htonl.S: Fix a typo.
237
238 2000-12-10  Jakub Jelinek  <jakub@redhat.com>
239
240         * sysdeps/alpha/alphaev6/stxcpy.S: Exchange t8 with t10.
241
242 2000-12-10  Andreas Jaeger  <aj@suse.de>
243
244         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fixed
245         cast as suggested by Jakub Jelinek <jakub@redhat.com> and Ulrich
246         Drepper <drepper@redhat.com>.
247
248 2000-12-09  Andreas Jaeger  <aj@suse.de>
249
250         * sysdeps/unix/sysv/linux/mips/sigaction.c: New file.
251
252         * sysdeps/unix/sysv/linux/mips/sys/acct.h: Removed, we can use the
253         generic version.
254         Patches by Hiroyuki Machida <machida@sm.sony.co.jp>.
255
256         * locale/programs/ld-collate.c (handle_ellipsis): Fix format
257         string.
258
259         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fix
260         format string.
261
262         * nscd/hstcache.c (addhstbyname): Add cast to avoid warning.
263         * nscd/connections.c (handle_request): Likewise.
264         * nscd/pwdcache.c (addpwbyname): Likewise.
265         * nscd/grpcache.c (addgrbyname): Likewise.
266
267         * nscd/nscd_conf.c (nscd_parse_file): Remove extra argument.
268
269 2000-12-09  Ulrich Drepper  <drepper@redhat.com>
270
271         * string/stratcliff.c: Add tests for stpncpy, memcpy, and mempcpy.
272
273         * Makeconfig (default_cflags): Make -O2 the default for stable
274         releases.
275
276 2000-12-08  H.J. Lu  <hjl@gnu.org>
277
278         * sysdeps/ia64/fpu/s_isinfl.S: Renamed to ...
279         * sysdeps/ia64/fpu/s_isinf.S: This.
280         Add a .pred.rel.mutex note to avoid false report.
281
282         * sysdeps/ia64/fpu/s_isnanl.S: Renamed to ...
283         * sysdeps/ia64/fpu/s_isnan.S: This.
284
285         * sysdeps/ia64/fpu/s_fpclassify.S: New file.
286         * sysdeps/ia64/fpu/s_fpclassifyf.S: New file.
287         * sysdeps/ia64/fpu/s_fpclassifyl.S: New file.
288         * sysdeps/ia64/fpu/s_isinff.S: New file.
289         * sysdeps/ia64/fpu/s_isinfl.S: New file.
290         * sysdeps/ia64/fpu/s_isnanf.S: New file.
291         * sysdeps/ia64/fpu/s_isnanl.S: New file.
292         * sysdeps/ia64/fpu/s_finite.S: New file.
293         * sysdeps/ia64/fpu/s_finitef.S: New file.
294         * sysdeps/ia64/fpu/s_finitel.S: New file.
295         * sysdeps/ia64/fpu/s_signbit.S: New file.
296         * sysdeps/ia64/fpu/s_signbitf.S: New file.
297         * sysdeps/ia64/fpu/s_signbitl.S: New file.
298         * sysdeps/ia64/fpu/s_copysign.S: New file.
299         * sysdeps/ia64/fpu/s_copysignf.S: New file.
300         * sysdeps/ia64/fpu/s_copysignl.S: New file.
301
302 2000-12-08  Ulrich Drepper  <drepper@redhat.com>
303
304         * math/libm-test.inc (main): Fix typos in messages.
305
306         * string/stratcliff.c: Add test for rawmemchr.
307
308 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
309
310         * elf/dl-open.c (_dl_open): If objname points right after errstring,
311         allocate it together with errstring using alloca.
312         * elf/dl-error.c (_dl_signal_error): If malloc failed, set objname
313         to "", because it might point to local stack.
314
315 2000-12-05  H.J. Lu  <hjl@gnu.org>
316
317         * nss/Makefile (routines): Add getnssent and getnssent_r.
318         * nss/nsswitch.h (__nss_setent): New internal NSS function.
319         (__nss_endent): Likewise.
320         (__nss_getent_r): Likewise.
321         (__nss_getent): Likewise.
322         * nss/getnssent_r.c: New file.
323         * nss/getnssent.c: New file.
324         * nss/getXXent.c (H_ERRNO_VAR): Updated.
325         (GETFUNC_NAME): Updated to call __nss_getent ().
326         * nss/getXXent_r.c (H_ERRNO_VAR_P): New.
327         (STAYOPEN_TMPVAR): Updated.
328         (STAYOPEN_VAR): Updated.
329         (SETFUNC_NAME): Updated to call __nss_setent ().
330         (ENDFUNC_NAME): Updated to call __nss_endent ().
331         (INTERNAL (REENTRANT_GETNAME)): Updated to call __nss_getent_r ().
332
333 2000-12-08  Andreas Jaeger  <aj@suse.de>
334
335         * nscd/dbg_log.h (dbg_log): Correct attribute.
336
337 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
338
339         * elf/dl-load.c (fillin_rpath): Don't assume there is '\0' at
340         cp + len.  Compute where from dirname.
341         Reported by <jreiser@BitWagon.com>.
342
343 2000-12-08  Richard Henderson  <rth@twiddle.net>
344
345         * sysdeps/alpha/_mcount.S: Fix typo.
346         * sysdeps/alpha/strncpy.S: Likewise.
347
348         * sysdeps/alpha/alphaev6/Implies: New file.
349         * sysdeps/alpha/alphaev67/Implies: New file.
350         * sysdeps/alpha/alphaev67/ffs.S: New file.
351         * sysdeps/alpha/alphaev67/ffsll.S: New file.
352         * sysdeps/alpha/alphaev67/rawmemchr.S: New file.
353         * sysdeps/alpha/alphaev67/stpcpy.S: New file.
354         * sysdeps/alpha/alphaev67/stpncpy.S: New file.
355         * sysdeps/alpha/rawmemchr.S: New file.
356         * sysdeps/alpha/strcat.S: Tail call to __stxcpy.
357         * sysdeps/alpha/strcpy.S: Likewise.
358
359         From GMP 3.1.1:
360         * sysdeps/alpha/alphaev6/addmul_1.s: New file.
361
362         From rick.gorton@alpha-processor.com:
363         * sysdeps/alpha/alphaev6/memchr.S: New file.
364         * sysdeps/alpha/alphaev6/memcpy.S: New file.
365         * sysdeps/alpha/alphaev6/memset.S: New file.
366         * sysdeps/alpha/alphaev6/stxcpy.S: New file.
367         * sysdeps/alpha/alphaev6/stxncpy.S: New file.
368         * sysdeps/alpha/alphaev67/strcat.S: New file.
369         * sysdeps/alpha/alphaev67/strchr.S: New file.
370         * sysdeps/alpha/alphaev67/strlen.S: New file.
371         * sysdeps/alpha/alphaev67/strncat.S: New file.
372         * sysdeps/alpha/htonl.S: Use a shorter sequence.
373
374 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
375
376         * inet/getnameinfo.c (getnameinfo): Fix NI_NOFQDN support.
377         Reported by <pspencer@fields.utoronto.ca>.
378
379 2000-12-07  Jes Sorensen  <jes@linuxcare.com>
380
381         * sysdeps/ia64/elf/start.S (__data_start): Add __data_start variable.
382         Pointed out by Hans Boehm.
383
384 2000-12-07  H.J. Lu  <hjl@gnu.org>
385
386         * elf/dl-version.c (match_symbol): Check map->l_name[0] for printing.
387
388 2000-12-07  Andreas Jaeger  <aj@suse.de>
389
390         * misc/error.c: Add format attributes for __error and __error_at_line.
391
392         * nscd/dbg_log.h: Add format attribute.
393
394 2000-12-08  Ulrich Drepper  <drepper@redhat.com>
395
396         * misc/sys/syslog.h: Add format attributes to syslog and vsyslog.
397         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
398
399 2000-12-07  Dan Pop  <Dan.Pop@cern.ch>
400
401         * sysdeps/ia64/strcpy.S: Fix a bug in a recovery code sequence.
402
403 2000-12-06  Ulrich Drepper  <drepper@redhat.com>
404
405         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
406         (sysdep_routines): Add uitrunc.
407         * sysdeps/unix/sysv/aix/uitrunc.c: New file.
408         Patches by Michael Keezer <mkeezer@redhat.com>.
409
410 2000-12-06  Roland McGrath  <roland@frob.com>
411
412         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't clobber ARG as we copy in
413         argument data, since it will be used to copy out too (for INOUT).
414         Reported by Marcus Brinkmann <marcus@gnu.org>.
415
416         * sysdeps/mach/hurd/ioctl.c: Include <stdint.h>.
417         (__ioctl): Use uintptr_t instead of unsigned long int.
418
419 2000-12-06  Jim Wilson  <wilson@redhat.com>
420
421         * stdlib/l64a.c (l64a): Truncate M to 32-bit value.
422
423 2000-12-06  Ulrich Drepper  <drepper@redhat.com>
424
425         * stdio-common/printf_fp.c (__printf_fp): Handle decimal point in
426         x.5 rounding correctly.
427
428 2000-12-06  Mark Kettenis  <kettenis@gnu.org>
429
430         * stdio-common/perror.c (perror): Conditionalize code dealing with
431         wide-oriented streams on USE_IN_LIBIO.
432
433 2000-12-06  Mark Kettenis  <kettenis@gnu.org>
434
435         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): Mark
436         as internal_function.
437
438 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
439
440         * sysdeps/alpha/elf/start.S (__data_start): Define.
441
442 2000-12-05  H.J. Lu  <hjl@gnu.org>
443
444         * nss/getXXent_r.c (setup): Change the return type to int.
445
446 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
447
448         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
449         (sysdep_routines): Add restf and savef.
450         * sysdeps/unix/sysv/aix/restf.c: New file.
451         * sysdeps/unix/sysv/aix/savef.c: New file.
452         Patches by Michael Keezer <mkeezer@redhat.com>.
453
454         * sysdeps/unix/opendir.c (__opendir): Don't use o_directory_works
455         if O_DIRECTORY is not defined.
456         Patch by Michael Keezer <mkeezer@redhat.com>.
457
458         * include/libc-symbols.h (C_SYMBOL_DOT_NAME): Define.
459         Patch by Michael Keezer <mkeezer@redhat.com>.
460
461         * locale/programs/linereader.c (get_toplvl_escape): Recognize more
462         than 4 bytes in escape sequence.
463         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
464
465 2000-12-05  Andreas Jaeger  <aj@suse.de>
466
467         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
468         set mips2.
469
470         * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
471
472         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed.
473
474         * sysdeps/unix/mips/sysdep.h: Use SYS_ify.
475         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
476
477         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Mark as
478         internal_function.
479         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
480         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): Likewise.
481
482         * sysdeps/generic/dl-cache.c: Remove declaration of
483         _dl_sysdep_read_whole_file.
484
485         * elf/dl-load.c (_dl_map_object): Remove declaration of
486         _dl_load_cache_lookup.
487
488         * sysdeps/generic/ldsodefs.h: Add declarations of
489         _dl_load_cache_lookup, _dl_unload_cache,
490         _dl_sysdep_read_whole_file, _dl_sysdep_start and
491         _dl_sysdep_start_cleanup.
492
493         * elf/rtld.c: Remove prototypes that are defined in ldsodefs.h
494         now.
495
496         * elf/dl-misc.c: Include <ldsodefs.h> to get prototypes.
497         * sysdeps/generic/dl-environ.c: Likewise.
498
499         * stdio-common/printf_fp.c: Include <gmp.h> instead of
500         <stdlib/gmp.h>.
501         * math/atest-exp.c: Likewise.
502         * math/atest-exp2.c: Likewise.
503         * math/atest-sincos.c: Likewise.
504         * stdio-common/_itoa.c: Likewise.
505         * stdio-common/_itowa.c: Likewise.
506
507         * include/gmp.h: New file with internal prototypes.
508
509         * sysdeps/generic/longjmp.c: Move _longjmp_unwind declaration from
510         here to...
511         * include/setjmp.h: ...here.
512
513         * locale/Makefile (routines): Remove codeset_name since it's not
514         needed anywhere.
515
516         * locale/codeset_name.c: Removed.
517
518 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
519
520         * sysdeps/unix/sysv/aix/sys/param.h: Define MAXHOSTNAMELEN here.
521
522 2000-12-05  Andreas Jaeger  <aj@suse.de>
523
524         * sysdeps/unix/sysv/linux/sys/param.h: Revert last patch.
525
526 2000-12-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
527
528         * sysdeps/unix/sysv/linux/s390/mmap64.S: Use mmap if mmap2 isn't
529         available.
530
531 2000-12-05  Andreas Jaeger  <aj@suse.de>
532
533         * nss/test-netdb.c: Mark local functions as static to avoid
534         warnings.
535         (main): Use return to silence warning.
536
537         * stdlib/test-canon.c (check_path): Mark as static to avoid warning.
538
539         * stdio-common/test-popen.c: Mark local functions as static to
540         avoid warnings.
541         (main): Use return to silence warning.
542
543         * stdlib/testsort.c (compare): Mark as static to avoid warning.
544
545         * assert/test-assert.c: Mark local functions as static to avoid
546         warnings.
547         * assert/test-assert-perr.c: Likewise.
548
549         * math/libm-test.inc (main): Use return to silence warnings.
550
551 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
552
553         * math/fenv.h: Fix typo in comment.
554
555         * math/test-misc.c (main): Add a few more over and underflow tests
556         for scalb.
557
558         * sysdeps/i386/fpu/e_scalb.S: Handle NaN as first parameter correctly.
559         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
560         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
561         * math/w_scalb.c: Don't use matherr except in SVID mode.
562         * math/w_scalbf.c: Likewise.
563         * math/w_scalbl.c: Likewise.
564         * math/test-misc.c: Add test for NaN and scalbl.
565         Reported by Fred J. Tydeman <tydeman@tybor.com>.
566
567 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
568
569         * configure.in: Define HAVE_ASM_GLOBAL_DOT_NAME for AIX.
570         * config.h.in: Add HAVE_ASM_GLOBAL_DOT_NAME.
571         * include/libc-symbols.h (strong_alias): Define special version
572         for HAVE_ASM_GLOBAL_DOT_NAME.
573         (weak_alias): Likewise.
574         * sysdeps/powerpc/bsd-setjmp.S: Use strong_alias not .set.
575         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==login]
576         (sysdep_routines): Add setutxent, getutxent, endutxent, getutxid,
577         getutxline, pututxline, and utmpxname.
578         * sysdeps/unix/sysv/aix/fchdir.c: Define __fchdir.
579         * sysdeps/unix/sysv/aix/lseek.c: Define __libc_lseek alias.
580         * sysdeps/unix/sysv/aix/open.c: Define __libc_open alias.
581         * sysdeps/unix/sysv/aix/pread.c: Define pread alias.
582         * sysdeps/unix/sysv/aix/pread64.c: Define pread64 alias.
583         * sysdeps/unix/sysv/aix/sysdep.h (JUMPTARGET): Use C_TEXT.
584         * sysdeps/unix/sysv/aix/bits/types.h: Define __clockid_t and __timer_t.
585         * sysdeps/unix/sysv/aix/bits/utmp.h: Cleanup.  Add comments.
586         * sysdeps/unix/sysv/linux/sys/param.h (MAXHOSTNAMELEN): Define.
587         Patches by Michael Keezer <mkeezer@redhat.com>.
588
589 2000-12-04  H.J. Lu  <hjl@gnu.org>
590
591         * configure.in: Change --with-oldest-abi=ABI to
592         --enable-oldest-abi=ABI.
593
594 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
595
596         * stdio-common/perror.c (perror): If stderr is wide-oriented, use
597         fwprintf instead of fprintf.
598
599 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
600
601         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD and
602         DECIMAL_DIG definitions.
603         * sysdeps/arm/fpu/bits/mathdef.h: Likewise
604         * sysdeps/generic/bits/mathdef.h: Likewise
605         * sysdeps/i386/fpu/bits/mathdef.h: Likewise
606         * sysdeps/ia64/fpu/bits/mathdef.h: Likewise
607         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise
608         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise
609         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise
610         * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise
611
612 2000-12-03  Ulrich Drepper  <drepper@redhat.com>
613
614         * math/test-fenv.c (main): Use return instead of exit to avoid warning.
615
616         * math/atest-exp.c: Mark local functions as static to avoid warnings.
617         * math/atest-exp2.c: Likewise.
618         * math/atest-sincos.c: Likewise.
619
620         * sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value.
621         Reported by Fred J. Tydeman <tydeman@tybor.com>.
622
623         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Hopefully fix
624         the handling of denormalized numbers.
625
626         * math/test-misc.c (main): Test for fpclassify and pseudo denormal
627         numbers on x86.
628         * sysdeps/i386/fpu/fpclassifyl.c: New file.
629
630         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the
631         pseudo denormal representation of LDBL_MIN.
632
633         * iconvdata/SJIS.irreversible: Remove unnecessary entries.
634         * iconvdata/EUC-JP.irreversible: Remove unnecessary entries.
635
636         * iconvdata/sjis.c: Enable round-trip mapping of backslash and tilde.
637         * iconvdata/jis0208.c: Likewise.
638         * iconvdata/jis0212.c: Likewise.
639         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
640
641         * math/test-misc.c (main): More tests for frexp and some for
642         fpclassify and isnormal.
643
644         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct
645         test for subnormal.
646         Reported by Fred J. Tydeman <tydeman@tybor.com>.
647
648         * math/test-misc.c (main): Add tests for frexp.
649         Reported by Fred J. Tydeman <tydeman@tybor.com>.
650         * sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation.
651
652 2000-12-02  H.J. Lu  <hjl@gnu.org>
653
654         * locale/lc-time.c (_nl_init_era_entries): Pass L'\0' instead of
655         '\0' to wcschr.
656
657 2000-12-02  Ulrich Drepper  <drepper@redhat.com>
658
659         * sysdeps/i386/fpu/s_frexp.S: Add missing fwait.
660         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
661         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
662
663         * sysdeps/generic/glob.c: Adjust types of several variables to
664         avoid warnings.
665
666 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
667
668         * sysdeps/unix/sysv/linux/shm_open.c: Remove incorrect comment.
669
670 2000-11-30  Roland McGrath  <roland@frob.com>
671
672         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): New macro.
673         (_HURD_HANDLE_IOCTLS, _HURD_HANDLE_IOCTL): Redefine using it, so as to
674         allow multiple instances using the same function name in one file.
675
676 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
677
678         * configure.in: Correct test for pserver CVS access.
679
680 2000-11-28  H.J. Lu  <hjl@gnu.org>
681
682         * libio/libio.h: Remove extra "#if ... #endif".
683
684 2000-11-29  H.J. Lu  <hjl@gnu.org>
685
686         * stdio-common/vfscanf.c (ORIENT): Swap the COMPILE_WSCANF case.
687
688 2000-12-01  H.J. Lu  <hjl@gnu.org>
689
690         * nss/getXXbyYY_r.c: Fix verioned symbol handling.
691         * nss/getXXent_r.c: Likewise.
692         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
693
694 2000-11-30  H.J. Lu  <hjl@gnu.org>
695
696         * scripts/abi-versions.awk (oldest_abi): New variable.
697         Handle the oldest ABI supported.
698
699         * Makerules ($(common-objpfx)abi-versions.h): Set oldest_abi
700         for scripts/abi-versions.awk.
701
702         * configure.in: Add --with-oldest-abi=ABI.
703         * configure: Rebuild.
704
705         * config.make.in (oldest-abi): New.
706
707         * config.h.in (GLIBC_OLDEST_ABI): New.
708
709         * csu/version.c (banner): Support GLIBC_OLDEST_ABI.
710
711 2000-11-30  Jakub Jelinek  <jakub@redhat.com>
712
713         * locale/setlocale.c (setname): Free for all categories, not just
714         LC_ALL.
715         (setlocale): Store a copy of string passed by user, not the string
716         itself.
717
718 2000-11-30  Roland McGrath  <roland@frob.com>
719
720         * sysdeps/mach/hurd/defs.c (init_stdio): Put this on __libc_subinit
721         rather than _hurd_fd_subinit, so it happens after it's safe to use
722         libc facilities like malloc.
723
724 2000-11-28  Andreas Jaeger  <aj@suse.de>
725
726         * sysdeps/unix/sysv/linux/getdents.c: Add _syscall_getdents64
727         declaration, adjust declaration of __syscall_getdents to match
728         kernel.
729
730 2000-11-29  H.J. Lu  <hjl@gnu.org>
731
732         * sysdeps/generic/readelflib.c (check_ptr): Undefine it first.
733
734 2000-11-29  Andreas Jaeger  <aj@suse.de>
735
736         * sysdeps/unix/sysv/linux/hppa/brk.c (__brk): Remove unused variable.
737
738 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
739
740         * dlfcn/defaultmod1.c: Add prototypes to avoid warnings.
741         * dlfcn/defaultmod2.c: Likewise.
742         * dlfcn/dlopen.c: Likewise.
743         * dlfcn/dlopenold.c: Likewise.
744         * dlfcn/failtestmod.c: Likewise.
745         * dlfcn/glreflib1.c: Likewise.
746         * dlfcn/glreflib2.c: Likewise.
747         * dlfcn/eval.c: Likewise.  Add attributes.
748
749         * ctype/ctype-extn.c: Define isblank and not __isblank.
750
751         * time/strftime.c: Add const where necessary to avoid warnings.
752         * time/strptime.c (strptime_internal): Add casts to avoid warnings.
753
754 2000-11-22  Paul Eggert  <eggert@twinsun.com>
755
756         * time/strftime.c (my_strftime): Do not invoke mbrlen with a
757         size of (size_t) -1; it's not portable.
758
759 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
760
761         * sysdeps/i386/fpu/libm-test-ulps: Adjust some values for the
762         crappy i486 FPU.
763         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
764
765 2000-11-14  Jes Sorensen  <jes@linuxcare.com>
766
767         * sysdeps/ia64/_mcount.S: Call __mcount instead of __mcount_internal.
768
769         * sysdeps/ia64/Makefile: Compile _mcount.S in subdir gmon as
770         _mcount is required by profiled binaries.
771
772         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: Moved to...
773         * sysdeps/ia64/machine-gmon.h: ...here.
774
775 2000-11-28  Masahide Washizawa  <washi@jp.ibm.com>
776
777         * iconvdata/Makefile (modules): Add IBM922, IBM1124, and IBM1129.
778         (distribute): Add ibm922.c, ibm1124.c, ibm1129.c, ibm922.h, ibm1124.h,
779         and ibm1129.h.
780         * iconvdata/gconv-modules: Add entries for IBM922, IBM1124, and
781         IBM1129.
782         * iconvdata/ibm922.c: New file.
783         * iconvdata/ibm922.h: New file.
784         * iconvdata/ibm1124.c: New file.
785         * iconvdata/ibm1124.h: New file.
786         * iconvdata/ibm1129.c: New file.
787         * iconvdata/ibm1129.h: New file.
788         * iconvdata/testdata/IBM922: New file.
789         * iconvdata/testdata/IBM922..UTF8: New file.
790         * iconvdata/testdata/IBM1124: New file.
791         * iconvdata/testdata/IBM1124..UTF8: New file.
792         * iconvdata/testdata/IBM1129: New file.
793         * iconvdata/testdata/IBM1129..UTF8: New file.
794
795 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
796
797         * catgets/gencat.c (normalize_line): Take extra parameter with escape
798         character.  Change callers.
799         (open_conversion): Determine mapping of 0x5c as wchar_t value.
800         * catgets/Makefile: Add rules to build and run test-gencat.
801         * catgets/sample.SJIS: New file.
802         * catgets/test-gencat.c: New file.
803         * catgets/test-gencat.sh: New file.
804         Report and test case by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
805
806 2000-11-28  Andreas Jaeger  <aj@suse.de>
807
808         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Synch with generic
809         Linux version.
810
811 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
812
813         * sysdeps/unix/sysv/linux/bits/socket.h: Fix last patch.
814
815 2000-11-28  Andreas Jaeger  <aj@suse.de>
816
817         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Use
818         __flexarr.
819         * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct cmsghdr):
820         Likewise.
821
822 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
823
824         * misc/getusershell.c: Make strings in okshells array const.
825         * misc/regexp.c: Add const to cast to avoid warnings.
826         * sysdeps/unix/sysv/linux/llseek.c: Add prototype for __llseek.
827         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add prototype for
828         __setresuid.
829         * sysdeps/unix/sysv/linux/i386/setresgid.c: Add prototype for
830         setresgid.
831         * misc/error.c: Add prototypes for __error and __error_at_line.
832         * misc/mntent_r.c (__getmntent_r): Add break at end of switch
833         statement to avoid warning.
834         * test-skeleton.c: Mark timeout_handler with noreturn.
835         * iconv/skeleton.c (get16u): Add const to cast.
836         (get32u): Likewise.
837         * iconvdata/gb18030.c: Likewise.
838         * iconvdata/iso-2022-cn-ext.c: Likewise.
839         * iconvdata/ansi_x3.110.c: Add cast to avoid warning.
840         * iconvdata/big5.c: Likewise.
841         * iconvdata/big5hkscs.c: Likewise.
842         * iconvdata/iso_6937.c: Likewise.
843         * iconvdata/iso_6937-2.c: Likewise.
844         * iconvdata/t.61.c: Likewise.
845         * iconvdata/iso646.c: Add prototypes for gconv_init and gconv_env.
846         * iconvdata/unicode.c: Likewise.
847         * iconvdata/utf-16.c: Likewise.
848         * iconvdata/cns11643.h (ucs4_to_cns11643): Define needed as size_t.
849         * iconv/gconv_trans.c (__gconv_translit_find): Avoid one warning
850         with little code shuffling.
851
852         * sysdeps/powerpc/Makefile (CFLAGS-initfini.s): Add -O1 to avoid
853         the problems introduced when the user selects -O3.
854
855         * iconv/gconv.h (__gconv_info): Define __data element using __flexarr.
856         * misc/sys/cdefs.h: Define __flexarr.
857         Proposed by Joseph S. Myers <jsm28@cam.ac.uk>.
858
859         * iconvdata/iso-2022-jp.c: Add prototypes to avoid warnings.
860         * iconv/skeleton.c: Likewise.
861         * iconvdata/iso8859-1.c (BODY to 8859-1): Add const to cast.
862         * iconv/loop.c (get16): Add const to cast.
863         (get32): Likewise.
864
865 2000-11-27  Andreas Jaeger  <aj@suse.de>
866
867         * login/programs/pt_chown.c (do_pt_chown): Mark function as static
868         to avoid warning.
869         * login/programs/utmpdump.c (print_entry): Likewise.
870
871 2000-11-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
872
873         * sysdeps/mips/__longjmp.c (__longjmp): Restore SP and FP last and
874         in a single asm as they may be used to access other stored
875         registers.
876         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
877
878 2000-11-27  Andreas Jaeger  <aj@suse.de>
879
880         * rt/tst-aio.c: Mark test functions as static to avoid warnings.
881         * rt/tst-aio64.c: Likewise.
882
883 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
884
885         * catgets/Makefile (test1.cat): Set LC_ALL, LOCPATH, and GCONV_PATH
886         for gencat run.
887         (libc.cat): Likewise.
888         * catgets/gencat.c: Implement handling of message catalogs encoded
889         with stateful character sets.
890         Based on a patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
891
892 2000-11-26  Ulrich Drepper  <drepper@redhat.com>
893
894         * sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
895
896         * inet/getnameinfo.c: Adjust casts to avoid warnings.
897         * inet/rcmd.c: Likewise.
898         * inet/ruserpass.c: Likewise.
899         * inet/netinet/in.h (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK,
900         IN6_IS_ADDR_MULTICAST, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
901         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL,
902         IN6_IS_ADDR_MC_NODELOCAL, IN6_IS_ADDR_MC_LINKLOCAL,
903         IN6_IS_ADDR_MC_SITELOCAL, IN6_IS_ADDR_MC_ORGLOCAL,
904         IN6_IS_ADDR_MC_GLOBAL): Preserve const in cast.
905         * include/aliases.h: Add prototypes for internal __getalias* functions.
906         * include/netdb.h: Add prototypes for __old_gethostent_r,
907         __old_gethostbyaddr_r, __old_gethostbyname_r, __old_gethostbyname2_r,
908         __old_getnetent_r, __old_getnetbyaddr_r, __old_getnetbyname_r,
909         __old_getservent_r, __old_getservbyname_r, __old_getservbyport_r,
910         __old_getprotoent_r, __old_getprotobyname_r, __old_getprotobynumber_r.
911         * include/rpc/netdb.h: Add prototypes for __old_getrpcbyname_r,
912         __old_getrpcbynumber_r, __old_getrpcent_r.
913
914         * include/rpc/netdb.h: Add __getrpcbyname_r, __getrpcbynumber_r,
915         __getrpcent_r prototypes.
916
917 2000-11-25  Ulrich Drepper  <drepper@redhat.com>
918
919         * string/strcoll.c: Add casts to avoid warnings.
920         * string/strnlen.c: Likewise.
921         * string/strxfrm.c: Likewise.
922         * sysdeps/generic/_strerror.c: Likewise.
923         * sysdeps/generic/memrchr.c: Likewise.
924         * sysdeps/generic/strcasestr.c: Likewise.
925         * sysdeps/generic/strstr.c: Likewise.
926
927         * locale/weight.h (findidx): Add const to cast to avoid warning.
928
929         * elf/loadfail.c: Little cosmetic changes to avoid warnings.
930         * elf/loadtest.c: Likewise.
931         * elf/multiload.c: Likewise.
932         * elf/next.c: Likewise.
933         * elf/nodelete.c: Likewise.
934         * elf/noload.c: Likewise.
935         * elf/order.c: Likewise.
936         * elf/origtest.c: Likewise.
937         * elf/preloadtest.c: Likewise.
938         * elf/restest1.c: Likewise.
939
940         * sysdeps/i386/i486/bits/string.h (__strncat_g) [i686]: Fourth
941         parameter of asm must be in %ecx.
942
943         * string/tester.c: Mark test functions as static to avoid warnings.
944
945         * iconv/gconv_conf.c (read_conf_file): Make mod_counter static to
946         preserve value over different gconv-modules files.
947
948 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
949
950         * locale/findlocale.c: Add casts to avoid warnings.
951         * locale/localeinfo.h (LIMAGIC): Add cast to avoid warnings.
952         * misc/efgcvt_r.c (fcvt_r): Use ssize_t instead of int and add cast
953         to avoid warnings.
954         * misc/tsearch.c (const_node): New type.
955         (trecurse): Correct casts to avoid warnings.
956         (__twalk): Likewise.
957         * stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and
958         LONG_BIT.
959
960         * debug/backtrace-tst.c (compare): Add casts to avoid warnings.
961
962         * test-skeleton.c: Mark local functions as static to avoid warnings.
963
964 2000-11-23  H.J. Lu  <hjl@gnu.org>
965
966         * rt/tst-aio6.c (do_test): Use pipe instead of STDIN_FILENO to
967         support the background job.
968         Fix a typo.
969
970 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
971
972         * iconv/gconv_conf.c (insert_module): Replace old entry if new one
973         has same names but lower cost.
974
975 2000-11-23  Jakub Jelinek  <jakub@redhat.com>
976
977         * sysdeps/sparc/sparc32/dl-machine.h: Ifdef out handling for relocs
978         which never occur during bootstrap.
979         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
980
981 2000-11-23  Andreas Jaeger  <aj@suse.de>
982
983         * nss/nss_files/files-hosts.c: Remove getipnodebyname.
984
985         * nss/Versions: Remove _nss_files_getipnodebyname_r.
986
987         * sysdeps/unix/sysv/linux/Versions: Fix typo in last patch.
988
989 2000-11-18  Martin Buchholz  <martin@xemacs.org>
990
991         * csu/gmon-start.c (__gmon_start__): Avoid over-clever trick `if
992         (called++) return;'
993
994 2000-11-21  Alan Modra  <alan@linuxcare.com.au>
995
996         * sysdeps/generic/bsd-_setjmp.c (setjmp): Rename to _setjmp.
997
998         * csu/abi-note.S: Correct comment for operating system number.
999
1000 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
1001
1002         * Versions.def: Add GLIBC_2.2.1 for glibc.
1003
1004 2000-11-22  Andreas Schwab  <schwab@suse.de>
1005
1006         * sysdeps/unix/sysv/linux/syscalls.list: Add pivot_root.
1007         * sysdeps/unix/sysv/linux/Versions: Add pivot_root at GLIBC_2.2.1.
1008
1009 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
1010
1011         * rt/aio_suspend.c (aio_suspend): Convert timeout value to
1012         absolute time for pthread_cond_timedwait call.
1013         Reported by Lawrence Chen <lchen@opentext.com> [libc/1930].
1014
1015         * rt/Makefile (tests): Add tst-aio6.
1016         * rt/tst-aio6.c: New file.
1017
1018 2000-11-23  Andreas Jaeger  <aj@suse.de>
1019
1020         * sysdeps/s390/bits/string.h (strncat): Fix one more typo.
1021
1022 2000-11-22  Andreas Jaeger  <aj@suse.de>
1023
1024         * sysdeps/s390/bits/string.h (strncat): Add missing quotation marks.
1025
1026 2000-11-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1027
1028         * sysdeps/s390/bits/string.h: Make strncat always add a \0.
1029
1030 2000-11-21  Andreas Schwab  <schwab@suse.de>
1031
1032         * sysdeps/alpha/setjmp.S: Remove __setjmp entry point.
1033         * sysdeps/arm/setjmp.S: Likewise.
1034         * sysdeps/arm/fpu/setjmp.S: Likewise.
1035         * sysdeps/i386/setjmp.S: Likewise.
1036         * sysdeps/i386/elf/setjmp.S: Likewise.
1037         * sysdeps/s390/setjmp.S: Likewise.
1038         * sysdeps/s390/elf/setjmp.S: Likewise.
1039         * sysdeps/sh/sh3/setjmp.S: Likewise.
1040         * sysdeps/sh/sh4/setjmp.S: Likewise.
1041         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
1042         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
1043         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
1044         * sysdeps/unix/sysv/linux/m68k/setjmp.c: Removed.
1045
1046 2000-11-21  Andreas Jaeger  <aj@suse.de>
1047
1048         * sysdeps/generic/__longjmp.c (__longjmp): Remove obsolete
1049         NORETURN, fix parameter list.
1050
1051         * string/bug-strncat1.c (main): Fix typo.
1052         Patch by Bernhard Kaindl <bernhard.kaindl@suse.de>.
1053
1054 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
1055
1056         * configure.in: Add --enable-all-warnings.
1057         * config.make.in (all-warnings): New variable.
1058         * Makeconfig (+gccwarn): Define with many more warnings if
1059         all-warnings is yes.
1060
1061 2000-11-20  Jakub Jelinek  <jakub@redhat.com>
1062
1063         * iconvdata/bug-iconv2.c (main): Use %zd in format string.
1064         * io/test-lfs.c (do_test): Cast statbuf.st_size to long long.
1065         * malloc/tst-valloc.c (main): Cast valloc return value to long.
1066         * malloc/tst-obstack.c (verbose_malloc): Use %zd in format string.
1067         * math/test-fpucw.c (main): Use %lx in format string, cast
1068         control words to long.
1069         * stdio-common/tst-fmemopen.c (main): Use %td in format strings.
1070         * stdlib/tst-strtol.c (tests): Avoid (bogus?) decimal constant is so
1071         large that it is unsigned warning.
1072
1073         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ssize_t): Changing
1074         it to long on sparc64.
1075
1076 2000-11-20  Andreas Jaeger  <aj@suse.de>
1077
1078         * nscd/nscd.h (termination_handler): Add noreturn attribute.
1079         (receiv_print_stats): Likewise.
1080
1081         * elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison.
1082
1083 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
1084
1085         * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore.
1086
1087         * csu/gmon-start.c: Always have prototype for __gmon_start.
1088         * csu/version.c: Add prototypes for __libc_print_version and
1089         __libc_main.
1090         * iconv/gconv.c: Include gconv_int.h and gconv.h.
1091         * iconv/gconv.h (struct __gconv_step): Remove const from __from_name
1092         and __to_name.
1093         * iconv/gconv_builtin.h: Add ASCII module definitions.
1094         * iconv/gconv_conf.c (__gconv_path_elem): Remove const.
1095         (add_module): Add cast to avoid warning.  Rework construction of
1096         strings for new module.
1097         * iconv/gconv_db.c (__gconv_alias_compare): Make s1 and s2 const.
1098         (derivation_compare): Likewise.
1099         * iconv/gconv_dl.c (do_release_shlib): Remove const from nodep.
1100         (__gconv_release_shlib): Cast do_release_shlib as parameter for twalk.
1101         * iconv/gconv_int.h (__gconv_path_elem): Remove const.
1102         (struct gconv_alias): Remove const from fromname and toname.
1103         * iconv/gconv_simple.c: Include gconv_builtin.h to get prototypes
1104         for loop functions.
1105         (internal_ucs4_loop): Use correct const-ness.
1106         (ucs4_internal_loop): Likewise.
1107         (internal_ucs4le_loop): Likewise.
1108         (ucs4le_internal_loop_single): Likewise.
1109         * iconv/gconv_trans.c (__gconv_transliterate): Make from_idx, from_tbl,
1110         to_idx, to_tbl, winbuf, winbufend const.  Change casts in
1111         assignments appropriately.
1112         (struct known_trans): Remove const from fname.
1113         (trans_compare): Make s1 and s2 const.
1114         * iconv/loop.c (LOOPFC): Make outend parameter const.  Add cast to
1115         avoid warning.
1116         * iconv/skeleton.c: Remove cast in calls of loop functions.
1117         * iconvdata/gconv-modules: Remove US-ASCII definitions.
1118         * iconvdata/iso646.c: Remove US_ASCII support.
1119         * include/set-hooks.h (DEFINE_HOOK): Also generate prototype.
1120         * include/unistd.h: Add __libc_check_standard_fds prototype.
1121         * string/bits/string2.h (__mempcpy_args): Add const to casts.
1122         * sysdeps/generic/initfini.c: Add prototypes for dummy, _init, and
1123         _fini.
1124         * sysdeps/generic/libc-start.c: Add prototype for __libc_start_main.
1125         * sysdeps/i386/i486/bits/string.h (strcmp): Add const to casts.
1126         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Add cast to avoid
1127         warning.
1128         * sysdeps/unix/sysv/linux/init-first.c: Add prototypes for
1129         __libc_init_first and _dl_start.
1130         * intl/dcigettext.c (transcmp): Make s1 and s2 const.
1131         (DCIGETTEXT): Make domaindata variable const.
1132         * intl/loadmsgcat.c (_nl_load_domain): Rearrange domain initialization
1133         to avoid warning.
1134
1135 2000-11-20  Hiroyuki Machida  <machida@sm.sony.co.jp>
1136
1137         * sysdeps/unix/sysv/linux/mips/clone.S: Fix comments.
1138
1139         * sysdeps/unix/sysv/linux/mips/kernel_stat.h (kernel_stat): Expand
1140         time_t to 'long int' not, 'unsigned int'.  Use 'long int' for
1141         __unused? members.
1142
1143         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOFOLLOW): Use same
1144         value defined in /usr/include/asm-mips/fcntl.h.
1145
1146 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
1147
1148         * stdio-common/Makefile (tests): Add test-vfprintf.
1149         (test-vfprintf-ENV): New variable.
1150         * stdio-common/test-vfprintf.c: New file.
1151
1152         * wcsmbs/mbrtowc.c (__mbrtowc): Do not only flush if input is '\0'.
1153
1154         * wcsmbs/Makefile (tests): Add tst-mbrtowc and tst-wcrtomb.
1155         (tst-mbrtowc-ENV): New variable.
1156         (tst-wcrtomb-ENV): New variable.
1157         * wcsmbs/tst-mbrtowc.c: New file.
1158         * wcsmbs/tst-wcrtomb.c: New file.
1159
1160 2000-11-16  Andreas Jaeger  <aj@suse.de>
1161
1162         * manual/install.texi (Tools for Compilation): Update
1163         documentation for GCC 2.95.2.
1164
1165 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
1166
1167         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only return -EAI_AGAIN
1168         if IPv4 and IPv6 requests timed out.
1169
1170 2000-11-18  Akim Demaille  <akim@epita.fr>
1171
1172         * malloc/obstack.h: Formatting changes.
1173         (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1174         prevents type checking.
1175         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1176         cast the value to (void *): assigning a `foo *' to a `void *'
1177         variable is valid.
1178         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1179
1180 2000-11-17  Ulrich Drepper  <drepper@redhat.com>
1181
1182         * scripts/config.guess: Update from upstream maintainer.
1183         * scripts/config.sub: Likewise.
1184
1185 2000-11-16  Ulrich Drepper  <drepper@redhat.com>
1186
1187         * libio/freopen.c (freopen): Reset _mode after succesful reopening.
1188         * libio/freopen64.c (freopen64): Likewise.
1189         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
1190
1191         * libio/Makefile: Add rules to build and run test-freopen.
1192         * libio/test-freopen.c: New file.
1193         * libio/test-freopen.sh: New file.
1194
1195 2000-11-15  H.J. Lu  <hjl@gnu.org>
1196
1197         * sysdeps/generic/ldsodefs.h (DL_DT_INIT_ADDRESS): Defined if
1198         ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
1199         (DL_DT_FINI_ADDRESS): Likewise.
1200
1201         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): Set the
1202         return type to ElfW(Addr).
1203         (_dl_function_address): New prototype.
1204         (DL_FUNCTION_ADDRESS): Defined.
1205         (DL_DT_INIT_ADDRESS): Defined as DL_FUNCTION_ADDRESS.
1206         (DL_DT_FINI_ADDRESS): Likewise.
1207
1208         * sysdeps/ia64/Versions (GLIBC_2.2): Add _dl_function_address.
1209
1210         * sysdeps/ia64/dl-machine.h (_dl_start_address): Removed.
1211         (ELF_MACHINE_START_ADDRESS): Changed to DL_FUNCTION_ADDRESS.
1212
1213         * sysdeps/ia64/dl-symaddr.c (_dl_start_address): Renamed to ...
1214         (_dl_function_address): This.
1215
1216         * elf/dl-fini.c (_dl_fini): Use DL_DT_FINI_ADDRESS to get the
1217         function pointer for DT_FINI.
1218         * elf/dl-close.c (_dl_close): Likewise.
1219
1220         * elf/dl-init.c (_dl_init): Use DL_DT_INIT_ADDRESS to get the
1221         function pointer for DT_INIT.
1222
1223 2000-11-16  Jakub Jelinek  <jakub@redhat.com>
1224
1225         * sysdeps/generic/printf_fphex.c (__printf_fphex): Compute correctly
1226         end of wexpbuf buffer.
1227
1228 2000-11-16  Andreas Jaeger  <aj@suse.de>
1229
1230         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove duplicate
1231         definition of F_GETLK, F_SETLK, F_SETLKW.
1232
1233 2000-11-16  Andreas Jaeger  <aj@suse.de>
1234
1235         * sysdeps/generic/dl-cache.c (_DL_PLATFORMS_COUNT): Define to 0 if
1236         it's not defined.
1237
1238 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
1239
1240         * dlfcn/default.c (main): Add test for dladdr of main returning
1241         argv[0] in dli_fname field.
1242
1243 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
1244
1245         * Makeconfig (run-program-prefix): Move test-static test into the
1246         variable.
1247
1248         * sysdeps/alpha/dl-machine.h (RTLD_START): Update _dl_argv.
1249         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise,
1250         schedule instructions.
1251         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise,
1252         schedule instructions, fix a bug in copying auxiliary data.
1253
1254 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
1255
1256         * manual/startup.texi (Program Arguments): Fix type of main's envp
1257         parameter.
1258         Reported by Raúl Núñez de Arenas Coronado <dervishd@linuxfreak.com>.
1259
1260         * iconvdata/gconv-modules: Add CP950 alias.
1261
1262 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
1263
1264         * sysdeps/unix/sysv/linux/Makefile: Allow ports to override
1265         syscall-list.h goal.
1266         * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
1267
1268 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
1269
1270         * intl/Makefile: tst-gettext2.sh does not need a third parameter.
1271
1272         * intl/tst-gettext2.sh: Copy locale data.  Adjust LOCPATH.  Verify
1273         output of program.
1274
1275         * intl/tst-gettext2.c: Set C locale if setting other locale
1276         failed.  Use gettext() not _().
1277
1278         * locale/setlocale.c: Increment _nl_msg_cat_cntr whenever we
1279         successfully loaded a new locale.
1280
1281 2000-11-13  Andreas Jaeger  <aj@suse.de>
1282
1283         * configure.in: Require gcc 2.95 or newer.
1284
1285 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
1286
1287         * sysdeps/unix/sysv/linux/paths.h: Adjust for FHS.
1288         Patch by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
1289
1290 2000-11-11  Jim Meyering  <meyering@lucent.com>
1291
1292         * string/strndup.c (strndup): Cast return value to `char *'.
1293
1294 2000-11-15  Jim Meyering  <meyering@ascend.com>
1295
1296         * sysdeps/generic/memchr.c: Remove some useless parentheses.
1297         [HAVE_STDLIB_H || defined _LIBC]: Include <stdlib.h>.
1298         [HAVE_BP_SYM_H || defined _LIBC]: Guard inclusion of bp-sym.h.
1299         [! (HAVE_BP_SYM_H || defined _LIBC)] (BP_SYM): Define as no-op.
1300         Also #undef __memchr.
1301         Use `weak_alias' only if it's defined.
1302
1303 2000-11-10  H.J. Lu  <hjl@gnu.org>
1304
1305         * Makefile.in (install): Set LANGUAGE=C LC_ALL=C.
1306
1307 2000-11-15  Andreas Jaeger  <aj@suse.de>
1308
1309         * elf/chroot_canon.c: Include <stdint.h>.
1310
1311         * elf/cache.c (struct cache_entry): Use uint64_t for hwcap.
1312         (print_entry): Likewise.
1313         (add_to_cache): Likewise.
1314
1315         * elf/ldconfig.h (add_to_cache): Change prototype for hwcap change.
1316
1317         * elf/ldconfig.c (struct lib_entry): Use uint64_t for hwcap.
1318         (path_hwcap): Likewise.
1319         (search_dir): Likewise.
1320
1321         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Handle platform.
1322
1323         * elf/cache.c (add_to_cache): Handle 64 bit hwcap entry.
1324
1325         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
1326         (_dl_platform_string): New.
1327         (_DL_HWCAP_PLATFORM): New.
1328         (_dl_string_platform): New.
1329         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
1330
1331         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
1332         (_dl_string_platform): New.
1333         (_DL_HWCAP_PLATFORM): New.
1334         (_dl_platform_string): New.
1335
1336         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Added x86 platform
1337         recognition.
1338         (_DL_HWCAP_COUNT): New.
1339         (_dl_string_platform): New.
1340         (_DL_HWCAP_PLATFORM): New.
1341         (_dl_platform_string): New.
1342
1343 2000-11-14  Ulrich Drepper  <drepper@redhat.com>
1344
1345         * iconvdata/gconv-modules: Add CP936 as alias for GBK.
1346
1347 2000-11-14  Andreas Jaeger  <aj@suse.de>
1348
1349         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Fix access to _dl_hwcap.
1350
1351 2000-11-13  Roland McGrath  <roland@frob.com>
1352
1353         * hurd/get-host.c (_hurd_get_host_config): Fix last change.
1354
1355 2000-11-13  Marcus Brinkmann <marcus@gnu.org>
1356
1357         * hurd/get-host.c (_hurd_get_host_config): Fix possible buffer
1358         underrun and make sure the result is null terminated even if there
1359         is no trailing newline.
1360
1361 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
1362
1363         * sysdeps/alpha/fpu/libm-test-ulps: Update.
1364
1365 2000-11-10  H.J. Lu  <hjl@gnu.org>
1366
1367         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
1368
1369 2000-11-10  Andreas Jaeger  <aj@suse.de>
1370
1371         * elf/ldconfig.c (create_links): Fix alloca calculation.
1372         Patch by Ben Collins <bcollins@debian.org>.
1373
1374 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
1375
1376         * inet/getnameinfo.c (getnameinfo): Use correct destination
1377         parameter for if_indextoname.
1378         Patch by Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>.
1379
1380 2000-11-09  H.J. Lu  <hjl@gnu.org>
1381
1382         * sunrpc/Versions (GLIBC_2.1): Remove xdr_cryptkeyarg,
1383         xdr_cryptkeyarg2, xdr_cryptkeyres, xdr_des_block,
1384         xdr_key_netstarg, xdr_key_netstres, xdr_keybuf and
1385         xdr_keystatus.
1386
1387         * time/Versions (GLIBC_2.1): Move getitimer to...
1388         * sysdeps/unix/sysv/linux/alpha/Versions (GLIBC_2.1): ...here.
1389
1390 2000-11-03  Bruno Haible  <haible@clisp.cons.org>
1391
1392         * manual/install.texi: Recommend to set LANGUAGE=C LC_ALL=C during
1393         "make install", to work around a binary incompatibility between
1394         glibc 2.1 and glibc 2.2 gconv modules.
1395
1396 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
1397
1398         * intl/locale.alias: Add thai.
1399         Patch by Chanop Silpa-Anan <chanop@syseng.anu.edu.au>.
1400
1401 2000-11-07  Akim Demaille  <akim@epita.fr>
1402
1403         * malloc/obstack.c (obstack_grow, obstack_grow0): Rename the second
1404         argument `data' for consistency with the prototypes.
1405         Qualify it `const'.
1406         (obstack_copy, obstack_copy0): Rename the second argument as
1407         `address' for consistency.  Qualify it `const'.
1408         * malloc/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1409         (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1410         `const' their input argument (`data' or `address').
1411         Adjust the corresponding macros to include `const' in casts.
1412
1413 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
1414
1415         * sysdeps/posix/getaddrinfo.c: Clean-up: define family to hold
1416         target family.
1417
1418 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
1419
1420         * sysdeps/posix/getaddrinfo.c: Loosen protocol check to ease raw
1421         socket creation.
1422
1423 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
1424
1425         * sysdeps/posix/getaddrinfo.c: Ensure to fill ai_socktype and
1426         ai_protocol by internal table if service was not given.
1427
1428 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
1429
1430         * sysdeps/posix/getaddrinfo.c: Don't raise an error even if
1431         numerical port was specified with protocol without socktype.
1432
1433 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
1434
1435         * sysdeps/posix/getaddrinfo.c: Ensure to check if protocol is ok.
1436
1437 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
1438
1439         * inet/getnameinfo.c: getnameinfo() NI_xxx flag validation.
1440
1441 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
1442
1443         * sysdeps/posix/getaddrinfo.c: Ensure not to fill garbage value in
1444         sin6_scope_id field.
1445
1446 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
1447
1448         * inet/getnameinfo.c: Repair getnameinfo() sin6_socpe_id support.
1449
1450 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
1451
1452         * inet/getnameinfo.c: Repair NI_NOFQDN flag support.
1453
1454 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
1455
1456         * inet/getnameinfo.c: Wake-up sin6_scope_id support in
1457         getnameinfo(): check for whether sin6_socpe_id exist was wrong.
1458
1459 2000-11-09  Martin Schwidefsky  <mschwide@nc.boeblingen.de.ibm.com>
1460
1461         * sysdeps/unix/sysv/linux/s390/mmap.S: Use mmap2 if it is present.
1462         * sysdeps/unix/sysv/linux/s390/mmap64.S: New file.
1463
1464 2000-11-09  H.J. Lu  <hjl@gnu.org>
1465
1466         * io/Versions (GLIBC_2.1.1): Remove lockf64.
1467
1468
1469 See ChangeLog.11 for earlier changes.