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