Update.
[glibc.git] / ChangeLog
blob239cc91ff6a3e956c0fa1a56298b267a5dfc7fd9
1 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
2             H.J. Lu  <hjl@gnu.org>
4         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
5         if gcc supports this flag.
6         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
7         (gcc3): Allow glibc to be compiled with gcc 3.x.
8         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
9         * config.make.in (static-libgcc, unwind-find-fde): Add.
10         * Makerules (build-shlib-helper, build-module-helper): Use it.
11         * scripts/versions.awk: Make sure GLIBC_ versions come first.
12         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
13         necessary.
14         (_fini): Call __deregister_frame_info_bases if
15         __register_frame_info_bases was used to register.
16         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
17         for GLIBC_2.0.
18         (__register_frame_info_bases, __register_frame_info_table_bases,
19         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GLIBC_2.2.5.
20         * elf/Makefile (routines): Add unwind-dw2-fde.
21         (shared-only-routines): Add unwind-dw2-fde.
22         * sysdeps/alpha/gccframe.h: New file.
23         * sysdeps/arm/gccframe.h: New file.
24         * sysdeps/generic/framestate.c: New file.
25         * sysdeps/generic/dwarf2.h: New file.
26         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
27         * sysdeps/generic/unwind-dw2-fde.c: New file.
28         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
29         * sysdeps/generic/unwind-dw2-fde.h: New file.
30         * sysdeps/generic/unwind-dw2.c: New file.
31         * sysdeps/generic/unwind-pe.h: New file.
32         * sysdeps/generic/unwind.h: New file.
33         * sysdeps/hppa/gccframe.h: New file.
34         * sysdeps/i386/gccframe.h: New file.
35         * sysdeps/m68k/gccframe.h: New file.
36         * sysdeps/mips/gccframe.h: New file.
37         * sysdeps/powerpc/gccframe.h: New file.
38         * sysdeps/s390/gccframe.h: New file.
39         * sysdeps/sh/gccframe.h: New file.
40         * sysdeps/sparc/gccframe.h: New file.
41         * sysdeps/vax/gccframe.h: New file.
42         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
43         Set on all architectures except ia64.
44         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
45         for i386.
46         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
47         __deregister_frame_info): Move to elf/Versions.
48         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
49         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
50         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
51         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
52         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
53         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
54         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
55         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
56         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
57         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
58         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
59         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
60         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
61         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
62         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
63         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
64         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
65         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
67 2001-11-15  Jeff Law  <law@redhat.com>
69         * posix/regex.c (uintptr_t): Do not provide a definition if the
70         system provided one.
72 2001-11-13  Roland McGrath  <roland@frob.com>
74         * stdio-common/tmpfile.c: Moved to ...
75         * sysdeps/generic/tmpfile.c: ... here.
76         * sysdeps/mach/hurd/tmpfile.c: New file.
78         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
79         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
80         (fopenport): Define as weak alias.
82         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
83         * libio/libioP.h: ... to here.
85 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
87         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
88         program header twice.  Construct list with the needed information.
90 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
92         * po/ca.po: Update from translation team.
94         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
95         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
96         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
97         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
99 2001-11-10  Andreas Jaeger  <aj@suse.de>
101         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
102         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
103         Contributed by Stephen L Moshier <moshier@mediaone.net>.
105 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
107         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
108         correctly.
109         * elf/dl-load.c (is_dst): New function.
110         (_dl_dst_count): Use is_dst to check for DST variable.
111         (_dl_dst_substitute): Likewise.
113 2001-11-09  Roland McGrath  <roland@frob.com>
115         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
116         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
117         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
118         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
119         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
120         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
121         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
122         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
123         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
124         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
125         * sysdeps/mach/hurd/powerpc/Dist: New file.
127         * hurd/privports.c (__get_privileged_ports):
128         Only contact the proc server if necessary for this call.
129         Suggested by Neal H Walfield <neal@cs.uml.edu>.
130         Check error return for mach_port_mod_refs.
132 2001-11-09  Andreas Schwab  <schwab@suse.de>
134         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
136 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
138         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
139         object is always the last in the list.
140         (_dl_map_object_from_fd): Delete code to remove from object list
141         when DF_1_NOOPEN is seen.  This is done in lose.
143 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
145         * elf/dl-object.c (_dl_new_object): Various small optimizations.
147 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
149         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
150         HWCAP_CHECK macro code.
152         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
153         Now returns MAP_FAILED on error.
154         * elf/rtld.c: Adjust caller.
155         * sysdeps/generic/dl-cache.c: Likewise.
156         * sysdeps/generic/ldsodefs.h: Adjust description.
158         * elf/dl-version.c (match_symbol): Optimize error handling for size.
159         (_dl_check_map_versions): Likewise.
161 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
163         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
164         _dl_signal_error directly, always use lose.  Set fd to -1 after
165         file is closed.
166         (lose): Don't call close if fd == -1.
168 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
170         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
171          Also fix typo @code {mbsinit} to @code{mbsinit}.
173 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
175         * elf/dl-profile.c: Replace state variable with simple flag named
176         running.  Remove commented-out code.
178         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
179         (_dl_init_paths): Likewise.
180         (_dl_map_object_from_fd): Likewise.
181         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
183 2001-11-06  Roland McGrath  <roland@frob.com>
185         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
186         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
188         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
189         sysdeps/powerpc/elf/sysdep.h.
190         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
192 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
194         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
195         speed.
196         (process_envvars): Some more optimizations.
197         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
199         * elf/elf.h: Add dynamic tag definitions for prelinking.
201         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
202         Rewrite code to remove environment varables for SUID binaries.
203         Small optimization in LD_PROFILE handling.
204         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
205         changes.
206         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
208         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
210         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
211         strings.  Change type of second parameter.
212         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
213         for last change.
215         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
217 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
219         * manual/string.texi: Fix typos.
220         * manual/examples/argp-ex2.c: Likewise.
222 2001-11-05  Roland McGrath  <roland@frob.com>
224         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
225         the more-specific unix/sysv/linux/powerpc file and breaks everything.
226         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
227         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
228         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
229         here, put under [__ELF__].
231 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
233         * manual/charset.texi: Extensive editing work.
234         * manual/nss.texi: Likewise.
235         Changes by Dennis Grace <dgrace@us.ibm.com>.
237 2001-11-04  Roland McGrath  <roland@frob.com>
239         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
240         parameter to dir_mkfile.
242 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
244         * string/bits/string2.h (__strndup): If n is smaller than len, set
245         len to n + 1.
246         * string/tester.c (test_strndup): New function.
247         (main): Call it.
249 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
251         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
253         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
254         * scripts/cpp: New file.
256         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
257         for rtld_search_dirs content.  Minor optimizations.
259 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
261         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
262         avoiding unnecessary duplication.
264 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
266         * elf/dl-load.c (_dl_map_object): If library was found using
267         LD_LIBRARY_PATH, don't try RUNPATH list.
269 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
271         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
272         Correct second argument of register_dump call.
273         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
274         Likewise.
276 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
278         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
279         modules.
280         * iconvdata/TESTS: Likewise.
281         * iconvdata/gconv-modules: Likewise.
282         * iconvdata/ibm1132.c: New file.
283         * iconvdata/ibm1132.h: New file.
284         * iconvdata/ibm1133.c: New file.
285         * iconvdata/ibm1133.h: New file.
286         * iconvdata/ibm1162.c: New file.
287         * iconvdata/ibm1162.h: New file.
288         * iconvdata/testdata/IBM1132: New file.
289         * iconvdata/testdata/IBM1132..UTF8: New file.
290         * iconvdata/testdata/IBM1133: New file.
291         * iconvdata/testdata/IBM1133..UTF8: New file.
292         * iconvdata/testdata/IBM1162: New file.
293         * iconvdata/testdata/IBM1162..UTF8: New file.
294         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
296         * string/string.h: Fix typo in comment.
297         * wcsmbs/wchar.h: Likewise.
299 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
301         * manual/getopt.texi (getopt_long, getopt_long_only): Include
302         const in type of longopts parameter.
304 2001-10-29  Andreas Jaeger  <aj@suse.de>
306         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
308 2001-10-29  Kevin Ryde  <user42@zip.com.au>
310         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
311         output, clarify `#' behaviour on 0.
312         (Floating-Point Conversions): Clarify that %g only uses %e when
313         the exponent would be greater than 1.
315 2001-10-28  Roland McGrath  <roland@frob.com>
317         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
318         * sysdeps/mach/powerpc/machine-sp.h: New file.
319         * sysdeps/mach/powerpc/sysdep.h: New file.
320         * sysdeps/mach/powerpc/thread_state.h: New file.
322         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
323         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
324         expect to need the same thing on every platform.
326         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
327         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
329         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
330         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
331         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
332         Move all these assembly-related definitions to ...
333         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
335         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
336         by Peter Bruin <pjbruin@dds.nl>.
338         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
339         packing results for a `poll' call.
341 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
343         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
344         correctly.
345         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
346         bracket expression.
348         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
349         nrules value.
350         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
352 2001-10-24  H.J. Lu  <hjl@gnu.org>
354         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
355         Use __BEGIN_DECLS/__END_DECLS around prototypes.
356         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
358 2001-10-21  Jim Meyering  <meyering@lucent.com>
360         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
361         this code would end up calling gettext even in packages built
362         with --disable-nls.
363         * posix/getopt.c (_): Likewise.
364         * posix/regex.c (_): Likewise.
366 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
368         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
369         lookup not ip6.int.
370         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
371         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
373 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
375         * misc/sys/cdefs.h (__attribute_used__): Define.
376         * elf/rtld.c (_dl_start): Add __attribute_used__.
377         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
379 2001-10-25  Andreas Schwab  <schwab@suse.de>
381         * stdlib/a64l.c: Expect least significant digit first.
382         * stdlib/l64a.c: Produce least significant digit first.
383         * stdlib/Makefile (tests): Add test-a64l.
384         * stdlib/test-a64l.c: New file.
385         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
387 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
389         * po/sk.po: Update from translation team.
391 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
393         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
395 2001-10-18  Andreas Schwab  <schwab@suse.de>
397         * math/libm-test.inc (print_ulps): Print ulp values rounded to
398         next whole number.
399         (print_function_ulps): Likewise.
400         (print_complex_function_ulps): Likewise.
401         (print_max_error): Likewise.
402         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
404 2001-10-16  Andreas Schwab  <schwab@suse.de>
406         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
407         implementation.
409         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
410         BSD_SETJMP or BSD__SETJMP is defined, resp.
411         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
412         a tail call to __sigsetjmp that would require extending the
413         caller's frame.
414         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
415         * sysdeps/m68k/bsd-setjmp.S: Deleted.
416         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
417         Reported by Jes Sorensen <jes@trained-monkey.org>.
419 2001-10-16  Andreas Jaeger  <aj@suse.de>
421         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
422         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
423         close PR libc/2589.
425 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
427         * po/ca.po: New file.  Contributed by the translation team.
429 2001-10-15  Ralf Baechle  <ralf@gnu.org>
431         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
432         a varargs prototype.  Remove dependency from kernel header files.
434         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
435         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
437 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
439         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
440         to generate hexadecimal identifier.
441         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
443 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
445         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
447 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
449         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
450         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
451         Contributed by Stephen L Moshier <moshier@mediaone.net>.
453         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
454         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
455         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
456         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
457         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
458         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
460         * timezone/africa: Update from tzdata2001d.
461         * timezone/asia: Likewise.
462         * timezone/australasia: Likewise.
463         * timezone/backward: Likewise.
464         * timezone/europe: Likewise.
465         * timezone/leapseconds: Likewise.
466         * timezone/northamerica: Likewise.
467         * timezone/southamerica: Likewise.
468         * timezone/zone.tab: Likewise.
470 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
472         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
473         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
475 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
477         * elf/elf.h (PT_TLS): New definition.
479 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
481         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
482         bits/errno.h
484 2001-10-07  Roland McGrath  <roland@frob.com>
486         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
488 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
490         * elf/elf.h: Add more ELFOSABI_* constants.
492 2001-10-04  Ben Collins  <bcollins@debian.org>
494         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
495         decleration of __need_wchar_t.
497 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
499         * string/bits/string2.h (__strsep_g): Add prototype.
500         (__strsep): Use it.
501         * string/Versions (__strsep): Remove.
502         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
504 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
506         * manua/llio.texi: Clarify file references added by mmap.
507         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
509 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
511         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
512         Add sc_loadrs and sc_rbs_bas to match current kernel.
514 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
516         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
518         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
520 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
522         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
523         object has been bumped because of relocation dependency, avoid
524         duplicates in l_scope.
525         (show_scope): Fix typos.
526         * elf/Makefile: Add rules to build and run reldep6.
527         * elf/reldep6.c: New file.
528         * elf/reldep6mod0.c: New file.
529         * elf/reldep6mod1.c: New file.
530         * elf/reldep6mod2.c: New file.
531         * elf/reldep6mod3.c: New file.
532         * elf/reldep6mod4.c: New file.
534 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
536         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
537         sparc64_fixup_plt.
538         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
539         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
540         for non-lazy binding. Fix .plt[32768+] handling.
541         (elf_machine_plt_value): Don't add addend.
542         (elf_machine_rela): Call sparc64_fixup_plt instead of
543         elf_machine_fixup_plt.
544         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
545         dynamic linker at 0xfffff800XXXXXXXX.
547         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
549 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
551         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
553 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
555         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
556         declare __cmsg_data field if its size would be bigger than 0.
557         (CMSG_DATA): Adjust accordingly.
558         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
559         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
560         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
561         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
562         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
563         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
564         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
566 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
568         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
569         * iconvdata/testdata/IBM1160: New file.
570         * iconvdata/testdata/IBM1160..UTF8: New file.
571         * iconvdata/testdata/IBM1161: New file.
572         * iconvdata/testdata/IBM1161..UTF8: New file.
573         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
575 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
577         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
578         UL_SETFSIZE computations better.
580         * rt/Makefile: Remove use of filter for librt again.
582         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
583         UL_SETFSIZE computations better.
585         * string/Versions: Export __strsep for GLIBC_2.2.5.
586         * string/bits/string2.h: Define all __STRING_INLINE functions if
587         _FORCE_INLINES is defined.
588         Use int instead of char of parameter types.
589         (__strsep): Don't use __strsep_g.  Don't define it.
590         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
591         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
592         __strcpy_small.
593         (__stpcpy_a_small): Renamed from __stpcpy_small.
594         (__strcspn_c1): Don't define if _FORCE_INLINES.
595         (__strspn_c1): Likewise.
597 2001-09-22  Ben Collins  <bcollins@debian.org>
599         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
600         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
601         * sysdeps/ia64/bits/sigaction.h: Likewise.
602         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
604 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
606         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
608 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
610         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
612 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
614         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
616 2001-09-20  H.J. Lu  <hjl@gnu.org>
618         * include/dlfcn.h (__RTLD_SPROF): New definiton.
619         * elf/dl-open.c (dl_open_worker): Return immediately after loading
620         for __RTLD_SPROF.
621         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
622         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
624 2001-09-20  H.J. Lu  <hjl@gnu.org>
626         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
627         don't add 1.
629 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
631         * nss/getent.c: Accept -s parameter to overwrite rules in
632         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
634         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
635         with as many ".0" as necessary to form a complete address
636         inet_network understands.
638         * nss/getent.c: Various cleanups.  Use simpler and fewer function
639         calls.
641 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
643         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
644         _JMPBUF_UNWINDS.
645         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
647 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
649         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
650         IBM1161.
651         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
652         * iconvdata/ibm1160.c: New file.
653         * iconvdata/ibm1160.h: New file.
654         * iconvdata/ibm1161.c: New file.
655         * iconvdata/ibm1161.h: New file.
656         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
658 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
660         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
661         difference between base address and first PT_LOAD's virtual address,
662         not the base address.
664 2001-09-11  Tom Rix  <trix@redhat.com>
666         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
667         ifdef for __getopt_clean_environment.
668         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
670 2001-09-22  Andreas Jaeger  <aj@suse.de>
672         * elf/reldep4.c (main): Add proper prototype to fix warning.
674         * elf/reldep5.c (main): Remove unused variable.
676         * math/math_private.h: Add prototypes.
678 2001-09-21  Andreas Jaeger  <aj@suse.de>
680         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
681         * sysdeps/x86_64/Dist: New file.
682         * sysdeps/x86_64/soft-fp/Dist: New file.
684         * sysdeps/gnu/Dist: Remove eval.c.
686 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
688         * malloc/memusage.c (realloc): Don't count already allocated
689         memory in the sums.
690         (me): Always use dlsym() to find the real implementations.
692         * malloc/memusage.sh: Make -n option actually do something.
694 2001-09-20  Andreas Jaeger  <aj@suse.de>
696         * elf/elf.h (R_390_NUM): Correct value.
698         * Versions.def: Add missing versions 2.2.3 for libthread_db and
699         libpthread.
701         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
702         for x86-64, install x86-64 into */lib64.
704         * shlib-versions: Add x86-64.
706         * elf/elf.h: Add x86-64 relocations.
708 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
710         * po/fr.po: Update from translation team.
712 2001-09-19  Andreas Jaeger  <aj@suse.de>
714         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
715         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
716         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
717         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
718         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
719         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
720         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
721         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
722         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
723         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
724         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
725         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
726         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
727         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
728         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
729         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
730         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
731         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
732         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
733         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
734         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
735         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
736         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
737         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
738         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
739         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
740         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
741         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
742         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
743         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
744         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
745         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
746         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
747         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
748         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
749         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
750         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
751         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
752         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
753         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
754         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
755         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
756         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
757         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
758         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
759         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
760         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
761         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
762         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
763         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
764         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
765         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
766         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
767         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
768         * sysdeps/unix/x86_64/sysdep.S: New file.
769         * sysdeps/unix/x86_64/sysdep.h: New file.
770         * sysdeps/x86_64/Implies: New file.
771         * sysdeps/x86_64/Makefile: New file.
772         * sysdeps/x86_64/Versions: New file.
773         * sysdeps/x86_64/__longjmp.S: New file.
774         * sysdeps/x86_64/abort-instr.h: New file.
775         * sysdeps/x86_64/atomicity.h: New file.
776         * sysdeps/x86_64/bits/endian.h: New file.
777         * sysdeps/x86_64/bits/setjmp.h: New file.
778         * sysdeps/x86_64/bits/string.h: New file.
779         * sysdeps/x86_64/bp-asm.h: New file.
780         * sysdeps/x86_64/bsd-_setjmp.S: New file.
781         * sysdeps/x86_64/bsd-setjmp.S: New file.
782         * sysdeps/x86_64/dl-machine.h: New file.
783         * sysdeps/x86_64/elf/initfini.c: New file.
784         * sysdeps/x86_64/elf/start.S: New file.
785         * sysdeps/x86_64/ffs.c: New file.
786         * sysdeps/x86_64/ffsll.c: New file.
787         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
788         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
789         * sysdeps/x86_64/fpu/e_acosl.c: New file.
790         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
791         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
792         * sysdeps/x86_64/fpu/e_expl.c: New file.
793         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
794         * sysdeps/x86_64/fpu/e_log10l.S: New file.
795         * sysdeps/x86_64/fpu/e_log2l.S: New file.
796         * sysdeps/x86_64/fpu/e_logl.S: New file.
797         * sysdeps/x86_64/fpu/e_powl.S: New file.
798         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
799         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
800         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
801         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
802         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
803         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
804         * sysdeps/x86_64/fpu/fegetenv.c: New file.
805         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
806         * sysdeps/x86_64/fpu/fegetround.c: New file.
807         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
808         * sysdeps/x86_64/fpu/fesetenv.c: New file.
809         * sysdeps/x86_64/fpu/fesetround.c: New file.
810         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
811         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
812         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
813         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
814         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
815         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
816         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
817         * sysdeps/x86_64/fpu/s_atanl.c: New file.
818         * sysdeps/x86_64/fpu/s_cosl.S: New file.
819         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
820         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
821         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
822         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
823         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
824         * sysdeps/x86_64/fpu/s_logbl.c: New file.
825         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
826         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
827         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
828         * sysdeps/x86_64/fpu/s_rintl.c: New file.
829         * sysdeps/x86_64/fpu/s_significandl.c: New file.
830         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
831         * sysdeps/x86_64/fpu/s_sinl.S: New file.
832         * sysdeps/x86_64/fpu/s_tanl.S: New file.
833         * sysdeps/x86_64/gmp-mparam.h: New file.
834         * sysdeps/x86_64/hp-timing.c: New file.
835         * sysdeps/x86_64/hp-timing.h: New file.
836         * sysdeps/x86_64/htonl.S: New file.
837         * sysdeps/x86_64/memusage.h: New file.
838         * sysdeps/x86_64/setjmp.S: New file.
839         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
840         * sysdeps/x86_64/stackinfo.h: New file.
841         * sysdeps/x86_64/sysdep.h: New file.
842         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
844         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
845         L Moshier.
847 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
849         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
850         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
852 2001-09-18  Andreas Schwab  <schwab@suse.de>
854         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
855         list, now that l_scope is a pointer.
857         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
858         scope list.
860 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
862         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
863         (elf_machine_rela_relative): Add a missing declaration.
865 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
867         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
868         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
869         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
870         ldd-rewrite scripts.
872 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
874         * elf/ldd.bash.in: Update copyright message.
876 2001-09-17  H.J. Lu  <hjl@gnu.org>
878         * hurd/hurdmalloc.c (bcopy): Removed.
879         (realloc): Replace bcopy with memcpy.
880         * hurd/path-lookup.c (file_name_path_scan): Likewise.
881         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
882         * sunrpc/rpcinfo.c (pmapdump): Likewise.
884         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
885         (gethostbyaddr): Likewise.
886         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
888 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
890         * sysdeps/gnu/eval.c: Removed.
892 2001-09-18  Andreas Jaeger  <aj@suse.de>
894         * sysdeps/i386/fpu/s_logbl.S: Move to ...
895         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
897         * sysdeps/i386/fpu/s_rintl.S: Move to ...
898         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
900         * sysdeps/i386/fpu/s_significandl.S: Move to ...
901         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
903 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
905         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
906         nrules value.
908 2001-09-14  H.J. Lu  <hjl@gnu.org>
910         * sysdeps/mips/fpu/libm-test-ulps: Updated.
912 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
914         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
915         Patch by Florian La Roche <laroche@redhat.com>.
917         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
919         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
920         ETHER_CRC_LEN.
922 2001-09-14  Andreas Schwab  <schwab@suse.de>
924         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
925         Sumner <bls@sgi.com>.
926         * posix/execlp.c: Likewise.
928 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
930         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
931         is already found earlier in the search scope.
933 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
935         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
936         filter.
938 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
940         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
942 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
944         * config.h.in: Enforce optimization to be used.
945         * Makeconfig (preprocess-versions): Define ASSEMBLER.
946         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
947         * posix/Makefile (annexc-CFLAGS): Define to -O.
948         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
950 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
952         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
953         Patch by Stephan Kulow.
955 2001-09-08  Ben Collins  <bcollins@debian.org>
957         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
958         usage of RESOLVE() (r_type, not reloc->r_type).
960 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
962         * elf/dl-object.c: Avoid allocating extra memory block for name.
963         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
964         allocated separately.
965         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
967 2001-09-08  H.J. Lu  <hjl@gnu.org>
969         * po/zh_TW.po: Fix a typo.
971 2001-09-07  Tom Rix  <trix@redhat.com>
973         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
975 2001-08-26  Tom Rix  <trix@redhat.com>
977         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
978         command line options.
979         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
980         * sysdeps/unix/sysv/aix/start.c: Removed.
981         * sysdeps/unix/sysv/aix/start-libc.c: New file.
982         * sysdeps/unix/sysv/aix/init-first.c: New file.
983         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
985 2001-09-08  Ben Collins  <bcollins@debian.org>
987         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
988         * sysdeps/generic/dl-machine.h: Likewise.
989         * sysdeps/hppa/dl-fptr.c: Likewise.
990         * sysdeps/ia64/dl-fptr.c: Likewise.
991         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
992         * sysdeps/mips/dl-machine.h: Likewise.
993         * sysdeps/mips/mips64/dl-machine.h: Likewise.
994         * sysdeps/powerpc/dl-machine.c: Likewise.
996 2001-09-07  Ben Collins  <bcollins@debian.org>
998         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
1000         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
1002 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
1004         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
1005         dependencies if necessary.
1007         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
1008         loaded directly) determine length if l_initfini list by iterating
1009         over its elements.  Minor optimizations.
1010         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
1011         for dependency objects.
1012         If object was already loaded check whether any of the dependencies
1013         is already on the relocation dependency list.  If yes, remove the
1014         latter.  Minor optimizations.
1015         * elf/dl-lookup.c (add_dependency): Add check for self reference of
1016         maps here.  Search l_initfini list only if the object was loaded
1017         directly and not only as a dependency.
1018         (_dl_lookup_symbol): Add relocation dependency also if object
1019         is not in global scope.  Remove test for self-reference here.
1020         (_dl_lookup_versioned_symbol): Likewise.
1021         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
1022         element of first name record.
1023         * elf/loadtest.c: Add some more test to recognize early if an object
1024         wasn't unloaded.
1025         * elf/Makefile: Add rules to build and run reldep5.
1026         * elf/reldep5.c: New file.
1027         * elf/reldepmod5.c: New file.
1028         * elf/reldepmod6.c: New file.
1030         * elf/reldep2.c: Fix typo.
1032 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
1034         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
1035         elements.  Change l_scope to be a pointer only.
1036         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
1037         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
1038         here add searchlist of newly open file to the dependency's scope.
1039         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
1040         only searchlist from its scope.  Free own scope array if necessary.
1041         * elf/Makefile (tests): Add dblload and dblunload now.
1043 2001-09-06  Andreas Jaeger  <aj@suse.de>
1045         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
1046         Stephen L Moshier.
1048 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
1050         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
1051         they both fail.
1052         * elf/dblload.c: New file.
1053         * elf/dblloadmod1.c: New file.
1054         * elf/dblloadmod2.c: New file.
1055         * elf/dblloadmod3.c: New file.
1056         * elf/dblunload.c: New file.
1058 2001-09-04  Richard Henderson  <rth@redhat.com>
1060         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
1061         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
1063 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
1065         Correct very misleading message for error in failed runtime relocation.
1066         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
1067         place of the error.
1068         (_dl_signal_cerror): Likewise.
1069         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1070         * elf/dl-close.c: Likewise.
1071         * elf/dl-deps.c: Likewise.
1072         * elf/dl-load.c: Likewise.
1073         * elf/dl-lookup.c: Likewise.
1074         * elf/dl-open.c: Likewise.
1075         * elf/dl-reloc.c: Likewise.
1076         * elf/dl-sym.c: Likewise.
1077         * elf/dl-version.c: Likewise.
1078         * sysdeps/generic/dl-sysdep.c: Likewise.
1080 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1082         * iconv/strtab.c (strtabinit): Initialize null Strent.
1083         (newstring): Move len == 0 handling...
1084         (strtabadd): ...here.
1085         If len == 1, return null Strent.
1086         When inserting a suffix of an existing string, check if
1087         it is not equal to some suffix already recorded.
1088         Copy left and right members over if adding longer string.
1090 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1092         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
1094         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
1095         (__syscall_gethostname): Add prototype.
1097 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
1099         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
1101 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
1103         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
1105 2001-08-27  Roland McGrath  <roland@frob.com>
1107         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
1108         short, copy that much into NAME anyway before returning error.
1110 2001-09-01  Richard Henderson  <rth@redhat.com>
1112         * sysdeps/alpha/elf/Dist: Remove file.
1113         * sysdeps/alpha/elf/Makefile: Remove file.
1114         * sysdeps/alpha/elf/crtbegin.S: Remove file.
1115         * sysdeps/alpha/elf/crtend.S: Remove file.
1116         * sysdeps/alpha/elf/initfini.c: New file.
1118 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
1120         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
1121         * iconv/tst-iconv3.c: Likewise.
1123 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
1125         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
1127 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
1129         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
1130         export it.
1131         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
1132         * iconv/iconv_prog.c (insert_cache): New function.
1133         (print_known_names): If cache is used call insert_cache to use the
1134         information from the cache [PR libc/2509].
1136 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
1138         * time/strptime.c (strptime_internal): Recognize 'l' format and
1139         handle it like 'I' for symmetry with strftime.
1141 2001-08-31  Richard Henderson  <rth@redhat.com>
1143         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
1144         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
1145         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
1146         (print_statistics): Make scalar unsigned long long.
1147         * sysdeps/alpha/hp-timing.h: New file.
1149 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
1151         * stdio-common/perror.c (perror): Save errno early, pass it
1152         down to perror_internal.
1153         (perror_internal): Add errnum argument.
1155 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
1157         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
1158         Don't add old memory content for R_ALPHA_REFQUAD.
1160 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1162         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
1163         memory correctly.
1165         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
1166         instead of open, __close instead of close, __getpagesize instead
1167         of getpagesize.
1169         * string/argz-stringify.c (__argz_stringify): Use __strnlen
1170         instead of strnlen.
1171         * include/string.h (strndupa): Redefine here to use __strnlen
1172         instead of strnlen.
1173         * string/strndup.c (__strndup): Use __strnlen not strnlen.
1175         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
1176         connected).
1178 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1180         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
1181         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
1182         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1183         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
1184         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
1185         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
1186         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
1188 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1190         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
1192 2001-08-30  Andreas Jaeger  <aj@suse.de>
1194         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
1195         contributed Stephen L Moshier.
1197 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1199         * sunrpc/etc.rpc (sgi_fam): Add.
1201 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1203         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
1205 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
1207         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
1208         first is from a previous call.
1209         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
1211 2001-08-29  Andreas Schwab  <schwab@suse.de>
1213         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
1215 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1217         * config.make.in (INSTALL_SCRIPT): Define.
1218         * Makeconfig (INSTALL_SCRIPT): Define.
1219         * Makerules (do-install-script): New macro to install scripts using
1220         INSTALL_SCRIPT.
1221         (install-bin-script): New rule to install scripts with
1222         do-install-script.
1223         (install-bin-script-nosubdir): New rule.
1224         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
1225         (distinfo-vars): Add $(install-bin-script).
1226         * Rules (others): Likewise.
1227         * Makefile (glibcbug): Install with install-bin-script.
1228         * debug/Makefile (xtrace): Likewise.
1229         (catchsegv): Likewise.
1230         * elf/Makefile (ldd): Likewise.
1231         * malloc/Makefile (mtrace): Likewise.
1232         * timezone/Makefile (tzselect): Likewise.
1234 2001-08-29  H.J. Lu  <hjl@gnu.org>
1236         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
1237         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
1238         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
1240 2001-08-29  Andreas Schwab  <schwab@suse.de>
1242         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
1244 2001-08-28  H.J. Lu  <hjl@gnu.org>
1246         * Makeconfig (combreloc-LDFLAGS): New variable.
1247         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
1248         * config.make.in (have-z-combreloc): New variable.
1249         * configure.in: Substitute libc_cv_z_combreloc.
1251 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
1253         * po/sv.po: Update from translation team.
1254         * po/fr.po: Likewise.
1255         * po/da.po: Likewise.
1257 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1259         * Makerules: Fix a typo: MD% -> MD5.
1261 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
1263         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
1264         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
1266 2001-08-28  Andreas Jaeger  <aj@suse.de>
1268         * manual/libc-texinfo.sh: Add entry about free manuals.
1270         * manual/contrib.texi (Contributors): Fix cross reference.
1272         * manual/libc.texinfo (Copying): Include freemanuals.
1274         * manual/Makefile (appendices): Add freemanuals.
1276         * manual/freemanuals.texi: New file.
1277         Patch by Brian Youmans <3diff@gnu.org>.
1279         * manual/libm-err-tab.pl: Pretty print more platforms, print a
1280         smaller table.
1282         * manual/math.texi (Errors in Math Functions): Fix grammar, start
1283         table on separate page.
1284         Patch by Brian Youmans <3diff@gnu.org>.
1286 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
1288         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
1289         the connection went down after we first used it try to connect
1290         again and resend the message before printing to the console.
1291         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
1293 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
1295         * string/tst-strlen.c (main): Test strnlen (, -1) too.
1296         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
1297         bit set.
1299 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
1301         * iconv/strtab.c (searchstring): Use correct length for comparison.
1302         (strtabadd): Account total size correct if new string has old string as
1303         substring.
1305 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
1307         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
1309 2001-08-27  Andreas Jaeger  <aj@suse.de>
1311         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
1313         * math/libm-test.inc (j0_test): Add extra tests.
1314         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
1315         not x, in Hankel approximation.
1316         Patches by Stephen L Moshier.
1318 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1320         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
1321         link_map.
1323         * configure.in: Fix test for .rela.dyn section.
1325         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
1327 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
1329         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
1330         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
1331         Pass type_class to _dl_lookup_*.
1332         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
1333         Pass around just type_class instead of noexec, noplt pair.
1334         (_dl_lookup_versioned_symbol): Likewise.
1335         (_dl_lookup_symbol_skip): Pass around just type_class instead of
1336         noexec, noplt pair.
1337         (_dl_lookup_versioned_symbol_skip): Likewise.
1338         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
1339         * elf/do-lookup.h (do_lookup): Likewise.
1340         * include/link.h (struct link_map): Replace noexec and noplt fields
1341         in l_lookup_cache with type_class field.
1342         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
1343         ELF_RTYPE_CLASS_COPY): Define.
1344         Adjust prototypes for _dl_lookup_symbol and
1345         _dl_lookup_versioned_symbol.
1346         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
1347         elf_machine_lookup_noexec_p): Remove.
1348         (elf_machine_type_class): Define.
1349         * sysdeps/arm/dl-machine.h: Likewise.
1350         * sysdeps/hppa/dl-machine.h: Likewise.
1351         * sysdeps/cris/dl-machine.h: Likewise.
1352         * sysdeps/i386/dl-machine.h: Likewise.
1353         * sysdeps/ia64/dl-machine.h: Likewise.
1354         * sysdeps/m68k/dl-machine.h: Likewise.
1355         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1356         * sysdeps/mips/dl-machine.h: Likewise.
1357         * sysdeps/powerpc/dl-machine.h: Likewise.
1358         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1359         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1360         * sysdeps/sh/dl-machine.h: Likewise.
1361         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1362         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1364 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1366         * manual/message.texi (Advanced gettext functions): Change
1367         description of plural forms for Slovak.
1368         Reported by Marcel Telka <marcel@telka.sk>.
1370         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
1371         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
1373 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
1375         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
1376         typo.  Patch by Florian La Roche <laroche@redhat.com>.
1378 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1380         * include/link.h (struct link_map): Add l_lookup_cache element.
1381         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
1382         (RESOLVE_MAP): Likewise.
1383         (_dl_relocate_object): Remove cache initialization.
1384         * elf/dl-lookup.c: Rip out cache handling code.
1385         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
1386         declarations.
1388         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
1389         remove some __builtin_expect.
1390         (_dl_lookup_versioned_symbol): Likewise.
1392         * config.h.in: Add HAVE_Z_COMBRELOC.
1393         * configure.in: Add test for -z combreloc.
1395         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
1396         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
1397         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
1398         case to almost no code.
1400 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
1402         * po/tr.po: Update from translation team.
1404 2001-08-24  Andreas Jaeger  <aj@suse.de>
1406         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
1407         make clean works.
1409 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1411         * elf/rtld.c (print_statistics): Printf % after percent values.
1412         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
1414         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
1415         don't have to compute the hash value and initialize current_value.
1416         Move reference_name variable to where it is needed.
1417         (_dl_lookup_versioned_symbol): Likewise.
1419 2001-08-24  Roland McGrath  <roland@frob.com>
1421         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
1422         Just test that strerror returns non-null for a few errno codes.
1424 2001-08-23  Roland McGrath  <roland@frob.com>
1426         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
1427         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
1429         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
1431         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
1432         __mach_reply_port.
1434 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1436         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
1437         returns NULL.
1439         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
1440         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
1441         doesn't do it.
1442         * elf/rtld.c: Include <sys/param.h>.
1443         * elf/dl-reloc.c: Likewise.
1445 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1447         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
1448         empty to prevent junk from being generated.
1449         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
1451 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
1453         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
1454         records.  Rename endrel to relative, initialize it to r, and use it
1455         in elf_machine_rel_relative calls.  Point r after relative relocs.
1457 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1459         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
1460         of R_386_NONE.
1462 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
1464         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
1465         necessary.  Undefine newly defined macros at the end.
1466         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
1467         Rename from elf_machine_rel_relative.
1468         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
1469         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
1470         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
1471         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
1472         Likewise.
1473         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
1474         Likewise.
1475         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
1476         Fix argument types.
1477         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
1478         Fix argument types.
1479         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
1480         Likewise.  Fix argument types.
1481         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
1482         Likewise.  Fix argument types.
1483         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
1484         Fix argument types.
1485         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
1486         ElfW(Rel) in argument.
1487         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
1488         function.
1490 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
1492         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
1494 2001-08-24  Andreas Jaeger  <aj@suse.de>
1496         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
1497         Stephen L Moshier <moshier@mediaone.net>.
1499 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1501         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
1502         first if RELCOUNT is set.
1504         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
1505         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
1506         elf_machine_rel_relative.
1507         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
1508         Minor optimizations.
1509         * sysdeps/arm/dl-machine.h: Likewise.
1510         * sysdeps/cris/dl-machine.h: Likewise.
1511         * sysdeps/hppa/dl-machine.h: Likewise.
1512         * sysdeps/i386/dl-machine.h: Likewise.
1513         * sysdeps/ia64/dl-machine.h: Likewise.
1514         * sysdeps/m68k/dl-machine.h: Likewise.
1515         * sysdeps/mips/dl-machine.h: Likewise.
1516         * sysdeps/powerpc/dl-machine.h: Likewise.
1517         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1518         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1519         * sysdeps/sh/dl-machine.h: Likewise.
1520         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1521         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1523 2001-08-23  Roland McGrath  <roland@frob.com>
1525         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
1527         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
1528         sysdeps/mach version.  Implement counting ("recursive") mutexes
1529         on top of cthreads mutexes.
1530         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
1532         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
1533         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
1534         (__libc_cleanup_region_start, __libc_cleanup_region_end,
1535         __libc_clean_end): Define these to call the cleanup function after
1536         normal exit when they're supposed to.
1538         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
1539         Take new first arg DOIT, a boolean saying whether to really install
1540         any cleanup handler.
1541         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
1542         (__libc_cleanup_end): Likewise.
1543         * sysdeps/generic/bits/libc-lock.h: Same changes.
1544         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
1545         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
1546         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
1547         Likewise.
1548         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
1549         * sysdeps/generic/bits/stdio-lock.h
1550         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
1552 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1554         * elf/ldconfig.c (search_dir): Remove stale symlinks.
1556 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1558         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
1559         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
1560         lookups in cache.
1561         (_dl_lookup_versioned_symbol): Likewise.
1562         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
1563         relocation lookup.
1564         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
1565         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
1566         (lookup_cache, lookup_cache_versioned): Add declarations.
1568 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
1570         * stdlib/tst-random.c (main): Swap parameters in fail call.
1571         Patch by Pete Bevin <pete@petebevin.com>.
1573 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1575         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
1577 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
1579         * malloc/obstack.c: Indent preprocessor directives.
1580         Patch by Jim Meyering <meyering@ascend.com>.
1582         * po/ja.po: Update from translation team.
1584 2001-08-23  Roland McGrath  <roland@frob.com>
1586         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
1588         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
1589         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
1591 2001-08-22  Roland McGrath  <roland@frob.com>
1593         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
1594         __libc_lock_define_recursive.
1595         * elf/dl-open.c: Don't declare it here any more.
1596         * elf/dl-close.c: Likewise.
1597         * elf/dl-lookup.c: Likewise.
1598         * elf/dl-iteratephdr.c: Likewise.
1599         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
1600         __libc_lock_unlock_recursive.
1601         * elf/dl-close.c (_dl_close): Likewise
1602         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
1603         * elf/dl-open.c (_dl_open): Likewise
1605         * sysdeps/generic/bits/libc-lock.h
1606         (__libc_lock_define_recursive): New macro.
1607         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
1608         (_IO_lock_lock): Use __libc_lock_lock_recursive.
1609         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
1611         * conform/conformtest.pl (checknamespace): Sort the output list.
1613         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
1614         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
1615         definitions conditional on [__USE_XOPEN].
1617         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
1618         these unconditionally, not only use [__USE_BSD], so as to match
1619         the sysdeps/unix/sysv/linux files.
1621 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1623         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
1624         avoid warnings.
1626         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
1627         DL_LOOKUP_ADDRESS.
1629 2001-08-22  Roland McGrath  <roland@frob.com>
1631         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
1632         conditionalization of sa_handler/sa_sigaction member types to
1633         match the sysdeps/unix/sysv/linux file.
1635 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1637         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
1638         symbol sizes a bit better.
1640         * sysdeps/ia64/strncpy.S: Complete rewrite.
1641         Contributed by Jakub Jelinek <jakub@redhat.com>.
1643         * string/stratcliff.c (main): Add strncpy test.
1645 2001-08-22  Roland McGrath  <roland@frob.com>
1647         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
1648         and don't declare unsetenv or _environ directly.
1649         (unsetenv): Return int, not void.  Use __environ instead of _environ.
1651 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
1653         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
1654         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
1655         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
1656         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
1657         test for cmsg struct size.
1659 2001-04-23  Paul Eggert  <eggert@twinsun.com>
1661         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
1662         Rename __argc to ___argc in prototypes to avoid compatibility
1663         problems with systems that reserve the identifier "__argc".
1664         Similarly for __argv.
1666 2001-08-21  Roland McGrath  <roland@frob.com>
1668         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
1670         * mach/Makefile (tests): Removed.
1671         * mach/hello.c: File removed.
1673 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1675         * po/sv.po: Update from translation team.
1677         * stdio-common/vfscanf.c: Fix handling of %l[].
1678         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
1680         * libio/Makefile (tests): Add tst-sscanf.
1681         * libio/tst-sscanf.c: New file.
1683         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
1684         * malloc/mtrace.c (tr_where): dli_sname always points to a
1685         non-empty string if != NULL.
1686         Reported by Tim Janik <timj@gtk.org>.
1688 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
1690         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
1691         buf.  Free resources on failure.
1692         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
1693         (makefd_xprt): Likewise.
1694         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
1695         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
1696         * sunrpc/auth_unix.c (authunix_create): Likewise.
1698 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
1700         * string/strnlen.c: Remove.
1701         * sysdeps/generic/strnlen.c: New file.
1702         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
1704 2001-08-21  Roland McGrath  <roland@frob.com>
1706         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
1707         as a macro, not an extern inline function.
1709         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
1710         * Versions.def (libc): Add GLIBC_2.2.5 set.
1711         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
1712         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
1714 2001-08-20  Roland McGrath  <roland@frob.com>
1716         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
1717         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
1719 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1721         * string/bits/string2.h: Remove strnlen optimization here.
1722         * sysdeps/i386/i486/bits/string.h: Add it here.
1724 2001-08-21  Wolfram Gloger  <wg@malloc.de>
1726         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
1728 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1730         * po/gl.po: Update from translation team.
1732 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1734         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
1735         * misc/err.c (convert_and_print): Likewise.
1737         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
1738         function calls.
1740 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1742         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
1743         change of the gregset_t type.
1744         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1746 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1748         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
1750 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1752         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
1754         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
1756 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
1758         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
1759         before calling the cthreads initialization code.
1761 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1763         * argp/argp-help.c: Fix two problems introduced in last change.
1765         * include/dirent.h: Include <dirstream.h> first.
1767 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
1769         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
1771         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
1772         * sunrpc/xdr_rec.c: Likewise.
1773         * sunrpc/xdr_mem.c: Likewise.
1774         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
1775         * sunrpc/rpc_cmsg.c: Likewise.
1776         * sunrpc/getrpcport.c (getrpcport): Likewise.
1777         * sunrpc/clnt_simp.c (callrpc): Likewise.
1778         * sunrpc/clnt_gen.c (clnt_create): Likewise.
1779         * string/envz.c: Likewise.
1781         * po/ko.po: Update from translation team.
1783         * argp/argp-help.c: Handle wide oriented stderr stream.
1785 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
1787         * sysdeps/generic/strtol.c: Little optimizations.  Add some
1788         __builtin_expect.
1790         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
1792         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
1793         * wcsmbs/wcwidth.c (wcwdith): Likewise.
1794         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
1796         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
1798         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
1800         * time/time.h (struct timespec): Use __time_t for tv_sec element.
1802         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
1803         wchar_t for function declarations and defintions.
1805         * misc/sys/select.h: Define __need_time_t before including <time.h>.
1806         Define suseconds_t if it hasn't happened yet.
1808         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
1810         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
1812         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
1813         <stddef.h>.
1815         * conform/data/stddef.h-data: Remove wint_t.
1817         * conform/conformtest.pl: Change namespace test to take #undef
1818         lines into account.
1820         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
1822         * conform/data/sys/socket.h-data: Add sockatmark.
1824 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1826         * io/fts.c: Update from recent BSD source.
1828 2001-08-17  Roland McGrath  <roland@frob.com>
1830         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
1831         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
1832         Likewise.
1834 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1836         * locale/duplocale.c (__duplocale): Also initialize the special
1837         __ctype_* elements.
1839         * conform/data/netdb.h-data: Adjust gai_strerror return type.
1841 2001-08-17  Andreas Jaeger  <aj@suse.de>
1843         * misc/getpass.c: Include wchar.h for prototypes.
1844         * malloc/obstack.c: Likewise.
1846 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1848         * sunrpc/svc_simple.c (universal): Use __write instead of write.
1850         * wcsmbs/wcscoll.c: Also define __wcscoll.
1851         * include/wchar.h: Declare __wcscoll.
1853         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
1854         * libio/vwprintf.c: Likewise.
1855         * libio/wprintf.c: Likewise.
1857         * iconv/gconv_cache.c: Use __munmap instead of munmap.
1859 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
1861         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1862         instead of mbrtowc.
1863         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1864         wcslen, and __wcscoll instead of wcscoll.
1866         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
1868         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
1869         __getuid instead of getuid.
1871         * stdio-common/perror.c (perror): Use __close instead of close.
1872         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1873         * libio/freopen.c (freopen): Likewise.
1874         * libio/freopen64.c (freopen64): Likewise.
1876         * libio/tst-ungetwc2.c (main): Define str const.
1878         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
1879         * libio/fwprintf.c: Also define __fwprintf.
1880         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
1881         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
1882         * assert/assert-perr.c: Likewise.
1883         * assert/assert.c: Likewise.
1884         * gmon/gmon.c: Likewise.
1885         * inet/rcmd.c: Likewise.
1886         * malloc/obstack.c: Likewise.
1887         * misc/err.c: Likewise.
1888         * misc/error.c: Likewise.
1889         * misc/getpass.c: Likewise.
1890         * posix/getopt.c: Likewise.
1891         * resolv/res_hconf.c: Likewise.
1892         * stdio-common/perror.c: Likewise.
1893         * stdio-common/psignal.c: Likewise.
1894         * stdlib/fmtmsg.c: Likewise.
1895         * sunrpc/auth_unix.c: Likewise.
1896         * sunrpc/clnt_perr.c: Likewise.
1897         * sunrpc/clnt_tcp.c: Likewise.
1898         * sunrpc/clnt_udp.c: Likewise.
1899         * sunrpc/clnt_unix.c: Likewise.
1900         * sunrpc/svc_simple.c: Likewise.
1901         * sunrpc/svc_tcp.c: Likewise.
1902         * sunrpc/svc_udp.c: Likewise.
1903         * sunrpc/svc_unix.c: Likewise.
1904         * sunrpc/xdr.c: Likewise.
1905         * sunrpc/xdr_array.c: Likewise.
1906         * sunrpc/xdr_rec.c: Likewise.
1907         * sunrpc/xdr_ref.c: Likewise.
1908         * sysdeps/generic/wordexp.c: Likewise.
1910         * po/it.po: Update from translation team.
1912         * misc/err.c: Handle wide oriented stderr stream.
1914 2001-08-14  Tom Rix  <trix@redhat.com>
1916         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
1917         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
1919 2001-08-13  Tom Rix  <trix@redhat.com>
1921         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
1922         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
1923         and __intptr_t.
1925 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1927         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
1928         Store the access registers to the ucontext structure.
1929         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
1930         Likewise.
1932         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
1933         Load the access registers from the ucontext structure.
1934         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
1935         Likewise.
1937         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
1938         offsets to the new ucontext layout.
1939         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
1941         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
1942         of the ucontext structure.
1943         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1945 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
1947         * misc/error.c (error): Handle wide oriented stderr stream correctly.
1948         (error_at_line): Likewise.
1950         * stdio-common/perror.c (perror): Implement according to standard.
1951         The stream orientation must not be changed if the stream was not
1952         oriented before the call.
1953         * stdio-common/Makefile (tests): Add tst-perror.
1954         * stdio-common/tst-perror.c: New file.
1957 See ChangeLog.12 for earlier changes.