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