Update.
[glibc.git] / ChangeLog
blob7851b1b87c77d1fa0909a649d35a78216f586d8f
1 2001-11-15  Jeff Law  <law@redhat.com>
3         * posix/regex.c (uintptr_t): Do not provide a definition if the
4         system provided one.
6 2001-11-13  Roland McGrath  <roland@frob.com>
8         * stdio-common/tmpfile.c: Moved to ...
9         * sysdeps/generic/tmpfile.c: ... here.
10         * sysdeps/mach/hurd/tmpfile.c: New file.
12         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
13         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
14         (fopenport): Define as weak alias.
16         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
17         * libio/libioP.h: ... to here.
19 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
21         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
22         program header twice.  Construct list with the needed information.
24 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
26         * po/ca.po: Update from translation team.
28         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
29         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
30         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
31         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
33 2001-11-10  Andreas Jaeger  <aj@suse.de>
35         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
36         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
37         Contributed by Stephen L Moshier <moshier@mediaone.net>.
39 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
41         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
42         correctly.
43         * elf/dl-load.c (is_dst): New function.
44         (_dl_dst_count): Use is_dst to check for DST variable.
45         (_dl_dst_substitute): Likewise.
47 2001-11-09  Roland McGrath  <roland@frob.com>
49         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
50         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
51         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
52         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
53         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
54         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
55         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
56         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
57         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
58         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
59         * sysdeps/mach/hurd/powerpc/Dist: New file.
61         * hurd/privports.c (__get_privileged_ports):
62         Only contact the proc server if necessary for this call.
63         Suggested by Neal H Walfield <neal@cs.uml.edu>.
64         Check error return for mach_port_mod_refs.
66 2001-11-09  Andreas Schwab  <schwab@suse.de>
68         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
70 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
72         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
73         object is always the last in the list.
74         (_dl_map_object_from_fd): Delete code to remove from object list
75         when DF_1_NOOPEN is seen.  This is done in lose.
77 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
79         * elf/dl-object.c (_dl_new_object): Various small optimizations.
81 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
83         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
84         HWCAP_CHECK macro code.
86         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
87         Now returns MAP_FAILED on error.
88         * elf/rtld.c: Adjust caller.
89         * sysdeps/generic/dl-cache.c: Likewise.
90         * sysdeps/generic/ldsodefs.h: Adjust description.
92         * elf/dl-version.c (match_symbol): Optimize error handling for size.
93         (_dl_check_map_versions): Likewise.
95 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
97         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
98         _dl_signal_error directly, always use lose.  Set fd to -1 after
99         file is closed.
100         (lose): Don't call close if fd == -1.
102 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
104         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
105          Also fix typo @code {mbsinit} to @code{mbsinit}.
107 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
109         * elf/dl-profile.c: Replace state variable with simple flag named
110         running.  Remove commented-out code.
112         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
113         (_dl_init_paths): Likewise.
114         (_dl_map_object_from_fd): Likewise.
115         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
117 2001-11-06  Roland McGrath  <roland@frob.com>
119         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
120         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
122         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
123         sysdeps/powerpc/elf/sysdep.h.
124         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
126 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
128         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
129         speed.
130         (process_envvars): Some more optimizations.
131         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
133         * elf/elf.h: Add dynamic tag definitions for prelinking.
135         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
136         Rewrite code to remove environment varables for SUID binaries.
137         Small optimization in LD_PROFILE handling.
138         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
139         changes.
140         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
142         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
144         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
145         strings.  Change type of second parameter.
146         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
147         for last change.
149         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
151 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
153         * manual/string.texi: Fix typos.
154         * manual/examples/argp-ex2.c: Likewise.
156 2001-11-05  Roland McGrath  <roland@frob.com>
158         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
159         the more-specific unix/sysv/linux/powerpc file and breaks everything.
160         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
161         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
162         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
163         here, put under [__ELF__].
165 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
167         * manual/charset.texi: Extensive editing work.
168         * manual/nss.texi: Likewise.
169         Changes by Dennis Grace <dgrace@us.ibm.com>.
171 2001-11-04  Roland McGrath  <roland@frob.com>
173         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
174         parameter to dir_mkfile.
176 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
178         * string/bits/string2.h (__strndup): If n is smaller than len, set
179         len to n + 1.
180         * string/tester.c (test_strndup): New function.
181         (main): Call it.
183 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
185         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
187         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
188         * scripts/cpp: New file.
190         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
191         for rtld_search_dirs content.  Minor optimizations.
193 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
195         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
196         avoiding unnecessary duplication.
198 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
200         * elf/dl-load.c (_dl_map_object): If library was found using
201         LD_LIBRARY_PATH, don't try RUNPATH list.
203 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
205         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
206         Correct second argument of register_dump call.
207         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
208         Likewise.
210 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
212         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
213         modules.
214         * iconvdata/TESTS: Likewise.
215         * iconvdata/gconv-modules: Likewise.
216         * iconvdata/ibm1132.c: New file.
217         * iconvdata/ibm1132.h: New file.
218         * iconvdata/ibm1133.c: New file.
219         * iconvdata/ibm1133.h: New file.
220         * iconvdata/ibm1162.c: New file.
221         * iconvdata/ibm1162.h: New file.
222         * iconvdata/testdata/IBM1132: New file.
223         * iconvdata/testdata/IBM1132..UTF8: New file.
224         * iconvdata/testdata/IBM1133: New file.
225         * iconvdata/testdata/IBM1133..UTF8: New file.
226         * iconvdata/testdata/IBM1162: New file.
227         * iconvdata/testdata/IBM1162..UTF8: New file.
228         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
230         * string/string.h: Fix typo in comment.
231         * wcsmbs/wchar.h: Likewise.
233 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
235         * manual/getopt.texi (getopt_long, getopt_long_only): Include
236         const in type of longopts parameter.
238 2001-10-29  Andreas Jaeger  <aj@suse.de>
240         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
242 2001-10-29  Kevin Ryde  <user42@zip.com.au>
244         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
245         output, clarify `#' behaviour on 0.
246         (Floating-Point Conversions): Clarify that %g only uses %e when
247         the exponent would be greater than 1.
249 2001-10-28  Roland McGrath  <roland@frob.com>
251         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
252         * sysdeps/mach/powerpc/machine-sp.h: New file.
253         * sysdeps/mach/powerpc/sysdep.h: New file.
254         * sysdeps/mach/powerpc/thread_state.h: New file.
256         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
257         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
258         expect to need the same thing on every platform.
260         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
261         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
263         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
264         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
265         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
266         Move all these assembly-related definitions to ...
267         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
269         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
270         by Peter Bruin <pjbruin@dds.nl>.
272         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
273         packing results for a `poll' call.
275 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
277         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
278         correctly.
279         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
280         bracket expression.
282         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
283         nrules value.
284         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
286 2001-10-24  H.J. Lu  <hjl@gnu.org>
288         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
289         Use __BEGIN_DECLS/__END_DECLS around prototypes.
290         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
292 2001-10-21  Jim Meyering  <meyering@lucent.com>
294         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
295         this code would end up calling gettext even in packages built
296         with --disable-nls.
297         * posix/getopt.c (_): Likewise.
298         * posix/regex.c (_): Likewise.
300 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
302         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
303         lookup not ip6.int.
304         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
305         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
307 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
309         * misc/sys/cdefs.h (__attribute_used__): Define.
310         * elf/rtld.c (_dl_start): Add __attribute_used__.
311         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
313 2001-10-25  Andreas Schwab  <schwab@suse.de>
315         * stdlib/a64l.c: Expect least significant digit first.
316         * stdlib/l64a.c: Produce least significant digit first.
317         * stdlib/Makefile (tests): Add test-a64l.
318         * stdlib/test-a64l.c: New file.
319         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
321 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
323         * po/sk.po: Update from translation team.
325 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
327         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
329 2001-10-18  Andreas Schwab  <schwab@suse.de>
331         * math/libm-test.inc (print_ulps): Print ulp values rounded to
332         next whole number.
333         (print_function_ulps): Likewise.
334         (print_complex_function_ulps): Likewise.
335         (print_max_error): Likewise.
336         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
338 2001-10-16  Andreas Schwab  <schwab@suse.de>
340         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
341         implementation.
343         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
344         BSD_SETJMP or BSD__SETJMP is defined, resp.
345         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
346         a tail call to __sigsetjmp that would require extending the
347         caller's frame.
348         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
349         * sysdeps/m68k/bsd-setjmp.S: Deleted.
350         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
351         Reported by Jes Sorensen <jes@trained-monkey.org>.
353 2001-10-16  Andreas Jaeger  <aj@suse.de>
355         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
356         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
357         close PR libc/2589.
359 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
361         * po/ca.po: New file.  Contributed by the translation team.
363 2001-10-15  Ralf Baechle  <ralf@gnu.org>
365         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
366         a varargs prototype.  Remove dependency from kernel header files.
368         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
369         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
371 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
373         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
374         to generate hexadecimal identifier.
375         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
377 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
379         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
381 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
383         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
384         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
385         Contributed by Stephen L Moshier <moshier@mediaone.net>.
387         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
388         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
389         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
390         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
391         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
392         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
394         * timezone/africa: Update from tzdata2001d.
395         * timezone/asia: Likewise.
396         * timezone/australasia: Likewise.
397         * timezone/backward: Likewise.
398         * timezone/europe: Likewise.
399         * timezone/leapseconds: Likewise.
400         * timezone/northamerica: Likewise.
401         * timezone/southamerica: Likewise.
402         * timezone/zone.tab: Likewise.
404 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
406         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
407         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
409 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
411         * elf/elf.h (PT_TLS): New definition.
413 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
415         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
416         bits/errno.h
418 2001-10-07  Roland McGrath  <roland@frob.com>
420         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
422 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
424         * elf/elf.h: Add more ELFOSABI_* constants.
426 2001-10-04  Ben Collins  <bcollins@debian.org>
428         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
429         decleration of __need_wchar_t.
431 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
433         * string/bits/string2.h (__strsep_g): Add prototype.
434         (__strsep): Use it.
435         * string/Versions (__strsep): Remove.
436         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
438 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
440         * manua/llio.texi: Clarify file references added by mmap.
441         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
443 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
445         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
446         Add sc_loadrs and sc_rbs_bas to match current kernel.
448 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
450         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
452         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
454 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
456         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
457         object has been bumped because of relocation dependency, avoid
458         duplicates in l_scope.
459         (show_scope): Fix typos.
460         * elf/Makefile: Add rules to build and run reldep6.
461         * elf/reldep6.c: New file.
462         * elf/reldep6mod0.c: New file.
463         * elf/reldep6mod1.c: New file.
464         * elf/reldep6mod2.c: New file.
465         * elf/reldep6mod3.c: New file.
466         * elf/reldep6mod4.c: New file.
468 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
470         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
471         sparc64_fixup_plt.
472         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
473         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
474         for non-lazy binding. Fix .plt[32768+] handling.
475         (elf_machine_plt_value): Don't add addend.
476         (elf_machine_rela): Call sparc64_fixup_plt instead of
477         elf_machine_fixup_plt.
478         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
479         dynamic linker at 0xfffff800XXXXXXXX.
481         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
483 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
485         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
487 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
489         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
490         declare __cmsg_data field if its size would be bigger than 0.
491         (CMSG_DATA): Adjust accordingly.
492         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
493         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
494         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
495         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
496         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
497         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
498         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
500 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
502         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
503         * iconvdata/testdata/IBM1160: New file.
504         * iconvdata/testdata/IBM1160..UTF8: New file.
505         * iconvdata/testdata/IBM1161: New file.
506         * iconvdata/testdata/IBM1161..UTF8: New file.
507         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
509 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
511         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
512         UL_SETFSIZE computations better.
514         * rt/Makefile: Remove use of filter for librt again.
516         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
517         UL_SETFSIZE computations better.
519         * string/Versions: Export __strsep for GLIBC_2.2.5.
520         * string/bits/string2.h: Define all __STRING_INLINE functions if
521         _FORCE_INLINES is defined.
522         Use int instead of char of parameter types.
523         (__strsep): Don't use __strsep_g.  Don't define it.
524         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
525         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
526         __strcpy_small.
527         (__stpcpy_a_small): Renamed from __stpcpy_small.
528         (__strcspn_c1): Don't define if _FORCE_INLINES.
529         (__strspn_c1): Likewise.
531 2001-09-22  Ben Collins  <bcollins@debian.org>
533         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
534         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
535         * sysdeps/ia64/bits/sigaction.h: Likewise.
536         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
538 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
540         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
542 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
544         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
546 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
548         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
550 2001-09-20  H.J. Lu  <hjl@gnu.org>
552         * include/dlfcn.h (__RTLD_SPROF): New definiton.
553         * elf/dl-open.c (dl_open_worker): Return immediately after loading
554         for __RTLD_SPROF.
555         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
556         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
558 2001-09-20  H.J. Lu  <hjl@gnu.org>
560         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
561         don't add 1.
563 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
565         * nss/getent.c: Accept -s parameter to overwrite rules in
566         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
568         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
569         with as many ".0" as necessary to form a complete address
570         inet_network understands.
572         * nss/getent.c: Various cleanups.  Use simpler and fewer function
573         calls.
575 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
577         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
578         _JMPBUF_UNWINDS.
579         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
581 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
583         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
584         IBM1161.
585         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
586         * iconvdata/ibm1160.c: New file.
587         * iconvdata/ibm1160.h: New file.
588         * iconvdata/ibm1161.c: New file.
589         * iconvdata/ibm1161.h: New file.
590         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
592 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
594         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
595         difference between base address and first PT_LOAD's virtual address,
596         not the base address.
598 2001-09-11  Tom Rix  <trix@redhat.com>
600         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
601         ifdef for __getopt_clean_environment.
602         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
604 2001-09-22  Andreas Jaeger  <aj@suse.de>
606         * elf/reldep4.c (main): Add proper prototype to fix warning.
608         * elf/reldep5.c (main): Remove unused variable.
610         * math/math_private.h: Add prototypes.
612 2001-09-21  Andreas Jaeger  <aj@suse.de>
614         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
615         * sysdeps/x86_64/Dist: New file.
616         * sysdeps/x86_64/soft-fp/Dist: New file.
618         * sysdeps/gnu/Dist: Remove eval.c.
620 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
622         * malloc/memusage.c (realloc): Don't count already allocated
623         memory in the sums.
624         (me): Always use dlsym() to find the real implementations.
626         * malloc/memusage.sh: Make -n option actually do something.
628 2001-09-20  Andreas Jaeger  <aj@suse.de>
630         * elf/elf.h (R_390_NUM): Correct value.
632         * Versions.def: Add missing versions 2.2.3 for libthread_db and
633         libpthread.
635         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
636         for x86-64, install x86-64 into */lib64.
638         * shlib-versions: Add x86-64.
640         * elf/elf.h: Add x86-64 relocations.
642 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
644         * po/fr.po: Update from translation team.
646 2001-09-19  Andreas Jaeger  <aj@suse.de>
648         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
649         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
650         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
651         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
652         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
653         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
654         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
655         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
656         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
657         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
658         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
659         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
660         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
661         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
662         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
663         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
664         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
665         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
666         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
667         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
668         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
669         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
670         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
671         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
672         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
673         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
674         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
675         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
676         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
677         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
678         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
679         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
680         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
681         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
682         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
683         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
684         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
685         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
686         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
687         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
688         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
689         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
690         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
691         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
692         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
693         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
694         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
695         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
696         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
697         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
698         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
699         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
700         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
701         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
702         * sysdeps/unix/x86_64/sysdep.S: New file.
703         * sysdeps/unix/x86_64/sysdep.h: New file.
704         * sysdeps/x86_64/Implies: New file.
705         * sysdeps/x86_64/Makefile: New file.
706         * sysdeps/x86_64/Versions: New file.
707         * sysdeps/x86_64/__longjmp.S: New file.
708         * sysdeps/x86_64/abort-instr.h: New file.
709         * sysdeps/x86_64/atomicity.h: New file.
710         * sysdeps/x86_64/bits/endian.h: New file.
711         * sysdeps/x86_64/bits/setjmp.h: New file.
712         * sysdeps/x86_64/bits/string.h: New file.
713         * sysdeps/x86_64/bp-asm.h: New file.
714         * sysdeps/x86_64/bsd-_setjmp.S: New file.
715         * sysdeps/x86_64/bsd-setjmp.S: New file.
716         * sysdeps/x86_64/dl-machine.h: New file.
717         * sysdeps/x86_64/elf/initfini.c: New file.
718         * sysdeps/x86_64/elf/start.S: New file.
719         * sysdeps/x86_64/ffs.c: New file.
720         * sysdeps/x86_64/ffsll.c: New file.
721         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
722         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
723         * sysdeps/x86_64/fpu/e_acosl.c: New file.
724         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
725         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
726         * sysdeps/x86_64/fpu/e_expl.c: New file.
727         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
728         * sysdeps/x86_64/fpu/e_log10l.S: New file.
729         * sysdeps/x86_64/fpu/e_log2l.S: New file.
730         * sysdeps/x86_64/fpu/e_logl.S: New file.
731         * sysdeps/x86_64/fpu/e_powl.S: New file.
732         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
733         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
734         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
735         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
736         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
737         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
738         * sysdeps/x86_64/fpu/fegetenv.c: New file.
739         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
740         * sysdeps/x86_64/fpu/fegetround.c: New file.
741         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
742         * sysdeps/x86_64/fpu/fesetenv.c: New file.
743         * sysdeps/x86_64/fpu/fesetround.c: New file.
744         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
745         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
746         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
747         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
748         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
749         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
750         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
751         * sysdeps/x86_64/fpu/s_atanl.c: New file.
752         * sysdeps/x86_64/fpu/s_cosl.S: New file.
753         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
754         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
755         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
756         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
757         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
758         * sysdeps/x86_64/fpu/s_logbl.c: New file.
759         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
760         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
761         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
762         * sysdeps/x86_64/fpu/s_rintl.c: New file.
763         * sysdeps/x86_64/fpu/s_significandl.c: New file.
764         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
765         * sysdeps/x86_64/fpu/s_sinl.S: New file.
766         * sysdeps/x86_64/fpu/s_tanl.S: New file.
767         * sysdeps/x86_64/gmp-mparam.h: New file.
768         * sysdeps/x86_64/hp-timing.c: New file.
769         * sysdeps/x86_64/hp-timing.h: New file.
770         * sysdeps/x86_64/htonl.S: New file.
771         * sysdeps/x86_64/memusage.h: New file.
772         * sysdeps/x86_64/setjmp.S: New file.
773         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
774         * sysdeps/x86_64/stackinfo.h: New file.
775         * sysdeps/x86_64/sysdep.h: New file.
776         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
778         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
779         L Moshier.
781 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
783         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
784         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
786 2001-09-18  Andreas Schwab  <schwab@suse.de>
788         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
789         list, now that l_scope is a pointer.
791         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
792         scope list.
794 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
796         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
797         (elf_machine_rela_relative): Add a missing declaration.
799 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
801         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New.
802         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New.
803         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
804         ldd-rewrite scripts.
806 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
808         * elf/ldd.bash.in: Update copyright message.
810 2001-09-17  H.J. Lu  <hjl@gnu.org>
812         * hurd/hurdmalloc.c (bcopy): Removed.
813         (realloc): Replace bcopy with memcpy.
814         * hurd/path-lookup.c (file_name_path_scan): Likewise.
815         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
816         * sunrpc/rpcinfo.c (pmapdump): Likewise.
818         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
819         (gethostbyaddr): Likewise.
820         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
822 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
824         * sysdeps/gnu/eval.c: Removed.
826 2001-09-18  Andreas Jaeger  <aj@suse.de>
828         * sysdeps/i386/fpu/s_logbl.S: Move to ...
829         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
831         * sysdeps/i386/fpu/s_rintl.S: Move to ...
832         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
834         * sysdeps/i386/fpu/s_significandl.S: Move to ...
835         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
837 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
839         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
840         nrules value.
842 2001-09-14  H.J. Lu  <hjl@gnu.org>
844         * sysdeps/mips/fpu/libm-test-ulps: Updated.
846 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
848         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
849         Patch by Florian La Roche <laroche@redhat.com>.
851         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
853         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
854         ETHER_CRC_LEN.
856 2001-09-14  Andreas Schwab  <schwab@suse.de>
858         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
859         Sumner <bls@sgi.com>.
860         * posix/execlp.c: Likewise.
862 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
864         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
865         is already found earlier in the search scope.
867 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
869         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
870         filter.
872 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
874         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
876 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
878         * config.h.in: Enforce optimization to be used.
879         * Makeconfig (preprocess-versions): Define ASSEMBLER.
880         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
881         * posix/Makefile (annexc-CFLAGS): Define to -O.
882         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
884 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
886         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
887         Patch by Stephan Kulow.
889 2001-09-08  Ben Collins  <bcollins@debian.org>
891         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
892         usage of RESOLVE() (r_type, not reloc->r_type).
894 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
896         * elf/dl-object.c: Avoid allocating extra memory block for name.
897         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
898         allocated separately.
899         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
901 2001-09-08  H.J. Lu  <hjl@gnu.org>
903         * po/zh_TW.po: Fix a typo.
905 2001-09-07  Tom Rix  <trix@redhat.com>
907         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
909 2001-08-26  Tom Rix  <trix@redhat.com>
911         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
912         command line options.
913         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
914         * sysdeps/unix/sysv/aix/start.c: Removed.
915         * sysdeps/unix/sysv/aix/start-libc.c: New file.
916         * sysdeps/unix/sysv/aix/init-first.c: New file.
917         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
919 2001-09-08  Ben Collins  <bcollins@debian.org>
921         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
922         * sysdeps/generic/dl-machine.h: Likewise.
923         * sysdeps/hppa/dl-fptr.c: Likewise.
924         * sysdeps/ia64/dl-fptr.c: Likewise.
925         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
926         * sysdeps/mips/dl-machine.h: Likewise.
927         * sysdeps/mips/mips64/dl-machine.h: Likewise.
928         * sysdeps/powerpc/dl-machine.c: Likewise.
930 2001-09-07  Ben Collins  <bcollins@debian.org>
932         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
934         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
936 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
938         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
939         dependencies if necessary.
941         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
942         loaded directly) determine length if l_initfini list by iterating
943         over its elements.  Minor optimizations.
944         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
945         for dependency objects.
946         If object was already loaded check whether any of the dependencies
947         is already on the relocation dependency list.  If yes, remove the
948         latter.  Minor optimizations.
949         * elf/dl-lookup.c (add_dependency): Add check for self reference of
950         maps here.  Search l_initfini list only if the object was loaded
951         directly and not only as a dependency.
952         (_dl_lookup_symbol): Add relocation dependency also if object
953         is not in global scope.  Remove test for self-reference here.
954         (_dl_lookup_versioned_symbol): Likewise.
955         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
956         element of first name record.
957         * elf/loadtest.c: Add some more test to recognize early if an object
958         wasn't unloaded.
959         * elf/Makefile: Add rules to build and run reldep5.
960         * elf/reldep5.c: New file.
961         * elf/reldepmod5.c: New file.
962         * elf/reldepmod6.c: New file.
964         * elf/reldep2.c: Fix typo.
966 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
968         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
969         elements.  Change l_scope to be a pointer only.
970         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
971         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
972         here add searchlist of newly open file to the dependency's scope.
973         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
974         only searchlist from its scope.  Free own scope array if necessary.
975         * elf/Makefile (tests): Add dblload and dblunload now.
977 2001-09-06  Andreas Jaeger  <aj@suse.de>
979         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
980         Stephen L Moshier.
982 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
984         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
985         they both fail.
986         * elf/dblload.c: New file.
987         * elf/dblloadmod1.c: New file.
988         * elf/dblloadmod2.c: New file.
989         * elf/dblloadmod3.c: New file.
990         * elf/dblunload.c: New file.
992 2001-09-04  Richard Henderson  <rth@redhat.com>
994         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
995         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
997 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
999         Correct very misleading message for error in failed runtime relocation.
1000         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
1001         place of the error.
1002         (_dl_signal_cerror): Likewise.
1003         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1004         * elf/dl-close.c: Likewise.
1005         * elf/dl-deps.c: Likewise.
1006         * elf/dl-load.c: Likewise.
1007         * elf/dl-lookup.c: Likewise.
1008         * elf/dl-open.c: Likewise.
1009         * elf/dl-reloc.c: Likewise.
1010         * elf/dl-sym.c: Likewise.
1011         * elf/dl-version.c: Likewise.
1012         * sysdeps/generic/dl-sysdep.c: Likewise.
1014 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1016         * iconv/strtab.c (strtabinit): Initialize null Strent.
1017         (newstring): Move len == 0 handling...
1018         (strtabadd): ...here.
1019         If len == 1, return null Strent.
1020         When inserting a suffix of an existing string, check if
1021         it is not equal to some suffix already recorded.
1022         Copy left and right members over if adding longer string.
1024 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1026         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
1028         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
1029         (__syscall_gethostname): Add prototype.
1031 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
1033         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
1035 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
1037         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
1039 2001-08-27  Roland McGrath  <roland@frob.com>
1041         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
1042         short, copy that much into NAME anyway before returning error.
1044 2001-09-01  Richard Henderson  <rth@redhat.com>
1046         * sysdeps/alpha/elf/Dist: Remove file.
1047         * sysdeps/alpha/elf/Makefile: Remove file.
1048         * sysdeps/alpha/elf/crtbegin.S: Remove file.
1049         * sysdeps/alpha/elf/crtend.S: Remove file.
1050         * sysdeps/alpha/elf/initfini.c: New file.
1052 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
1054         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
1055         * iconv/tst-iconv3.c: Likewise.
1057 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
1059         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
1061 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
1063         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
1064         export it.
1065         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
1066         * iconv/iconv_prog.c (insert_cache): New function.
1067         (print_known_names): If cache is used call insert_cache to use the
1068         information from the cache [PR libc/2509].
1070 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
1072         * time/strptime.c (strptime_internal): Recognize 'l' format and
1073         handle it like 'I' for symmetry with strftime.
1075 2001-08-31  Richard Henderson  <rth@redhat.com>
1077         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
1078         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
1079         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
1080         (print_statistics): Make scalar unsigned long long.
1081         * sysdeps/alpha/hp-timing.h: New file.
1083 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
1085         * stdio-common/perror.c (perror): Save errno early, pass it
1086         down to perror_internal.
1087         (perror_internal): Add errnum argument.
1089 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
1091         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
1092         Don't add old memory content for R_ALPHA_REFQUAD.
1094 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1096         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
1097         memory correctly.
1099         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
1100         instead of open, __close instead of close, __getpagesize instead
1101         of getpagesize.
1103         * string/argz-stringify.c (__argz_stringify): Use __strnlen
1104         instead of strnlen.
1105         * include/string.h (strndupa): Redefine here to use __strnlen
1106         instead of strnlen.
1107         * string/strndup.c (__strndup): Use __strnlen not strnlen.
1109         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
1110         connected).
1112 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1114         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
1115         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
1116         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1117         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
1118         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
1119         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
1120         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
1122 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1124         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
1126 2001-08-30  Andreas Jaeger  <aj@suse.de>
1128         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
1129         contributed Stephen L Moshier.
1131 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1133         * sunrpc/etc.rpc (sgi_fam): Add.
1135 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1137         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
1139 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
1141         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
1142         first is from a previous call.
1143         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
1145 2001-08-29  Andreas Schwab  <schwab@suse.de>
1147         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
1149 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1151         * config.make.in (INSTALL_SCRIPT): Define.
1152         * Makeconfig (INSTALL_SCRIPT): Define.
1153         * Makerules (do-install-script): New macro to install scripts using
1154         INSTALL_SCRIPT.
1155         (install-bin-script): New rule to install scripts with
1156         do-install-script.
1157         (install-bin-script-nosubdir): New rule.
1158         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
1159         (distinfo-vars): Add $(install-bin-script).
1160         * Rules (others): Likewise.
1161         * Makefile (glibcbug): Install with install-bin-script.
1162         * debug/Makefile (xtrace): Likewise.
1163         (catchsegv): Likewise.
1164         * elf/Makefile (ldd): Likewise.
1165         * malloc/Makefile (mtrace): Likewise.
1166         * timezone/Makefile (tzselect): Likewise.
1168 2001-08-29  H.J. Lu  <hjl@gnu.org>
1170         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
1171         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
1172         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
1174 2001-08-29  Andreas Schwab  <schwab@suse.de>
1176         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
1178 2001-08-28  H.J. Lu  <hjl@gnu.org>
1180         * Makeconfig (combreloc-LDFLAGS): New variable.
1181         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
1182         * config.make.in (have-z-combreloc): New variable.
1183         * configure.in: Substitute libc_cv_z_combreloc.
1185 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
1187         * po/sv.po: Update from translation team.
1188         * po/fr.po: Likewise.
1189         * po/da.po: Likewise.
1191 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1193         * Makerules: Fix a typo: MD% -> MD5.
1195 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
1197         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
1198         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
1200 2001-08-28  Andreas Jaeger  <aj@suse.de>
1202         * manual/libc-texinfo.sh: Add entry about free manuals.
1204         * manual/contrib.texi (Contributors): Fix cross reference.
1206         * manual/libc.texinfo (Copying): Include freemanuals.
1208         * manual/Makefile (appendices): Add freemanuals.
1210         * manual/freemanuals.texi: New file.
1211         Patch by Brian Youmans <3diff@gnu.org>.
1213         * manual/libm-err-tab.pl: Pretty print more platforms, print a
1214         smaller table.
1216         * manual/math.texi (Errors in Math Functions): Fix grammar, start
1217         table on separate page.
1218         Patch by Brian Youmans <3diff@gnu.org>.
1220 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
1222         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
1223         the connection went down after we first used it try to connect
1224         again and resend the message before printing to the console.
1225         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
1227 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
1229         * string/tst-strlen.c (main): Test strnlen (, -1) too.
1230         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
1231         bit set.
1233 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
1235         * iconv/strtab.c (searchstring): Use correct length for comparison.
1236         (strtabadd): Account total size correct if new string has old string as
1237         substring.
1239 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
1241         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
1243 2001-08-27  Andreas Jaeger  <aj@suse.de>
1245         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
1247         * math/libm-test.inc (j0_test): Add extra tests.
1248         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
1249         not x, in Hankel approximation.
1250         Patches by Stephen L Moshier.
1252 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1254         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
1255         link_map.
1257         * configure.in: Fix test for .rela.dyn section.
1259         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
1261 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
1263         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
1264         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
1265         Pass type_class to _dl_lookup_*.
1266         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
1267         Pass around just type_class instead of noexec, noplt pair.
1268         (_dl_lookup_versioned_symbol): Likewise.
1269         (_dl_lookup_symbol_skip): Pass around just type_class instead of
1270         noexec, noplt pair.
1271         (_dl_lookup_versioned_symbol_skip): Likewise.
1272         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
1273         * elf/do-lookup.h (do_lookup): Likewise.
1274         * include/link.h (struct link_map): Replace noexec and noplt fields
1275         in l_lookup_cache with type_class field.
1276         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
1277         ELF_RTYPE_CLASS_COPY): Define.
1278         Adjust prototypes for _dl_lookup_symbol and
1279         _dl_lookup_versioned_symbol.
1280         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
1281         elf_machine_lookup_noexec_p): Remove.
1282         (elf_machine_type_class): Define.
1283         * sysdeps/arm/dl-machine.h: Likewise.
1284         * sysdeps/hppa/dl-machine.h: Likewise.
1285         * sysdeps/cris/dl-machine.h: Likewise.
1286         * sysdeps/i386/dl-machine.h: Likewise.
1287         * sysdeps/ia64/dl-machine.h: Likewise.
1288         * sysdeps/m68k/dl-machine.h: Likewise.
1289         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1290         * sysdeps/mips/dl-machine.h: Likewise.
1291         * sysdeps/powerpc/dl-machine.h: Likewise.
1292         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1293         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1294         * sysdeps/sh/dl-machine.h: Likewise.
1295         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1296         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1298 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1300         * manual/message.texi (Advanced gettext functions): Change
1301         description of plural forms for Slovak.
1302         Reported by Marcel Telka <marcel@telka.sk>.
1304         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
1305         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
1307 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
1309         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
1310         typo.  Patch by Florian La Roche <laroche@redhat.com>.
1312 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1314         * include/link.h (struct link_map): Add l_lookup_cache element.
1315         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
1316         (RESOLVE_MAP): Likewise.
1317         (_dl_relocate_object): Remove cache initialization.
1318         * elf/dl-lookup.c: Rip out cache handling code.
1319         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
1320         declarations.
1322         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
1323         remove some __builtin_expect.
1324         (_dl_lookup_versioned_symbol): Likewise.
1326         * config.h.in: Add HAVE_Z_COMBRELOC.
1327         * configure.in: Add test for -z combreloc.
1329         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
1330         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
1331         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
1332         case to almost no code.
1334 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
1336         * po/tr.po: Update from translation team.
1338 2001-08-24  Andreas Jaeger  <aj@suse.de>
1340         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
1341         make clean works.
1343 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1345         * elf/rtld.c (print_statistics): Printf % after percent values.
1346         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
1348         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
1349         don't have to compute the hash value and initialize current_value.
1350         Move reference_name variable to where it is needed.
1351         (_dl_lookup_versioned_symbol): Likewise.
1353 2001-08-24  Roland McGrath  <roland@frob.com>
1355         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
1356         Just test that strerror returns non-null for a few errno codes.
1358 2001-08-23  Roland McGrath  <roland@frob.com>
1360         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
1361         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
1363         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
1365         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
1366         __mach_reply_port.
1368 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1370         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
1371         returns NULL.
1373         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
1374         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
1375         doesn't do it.
1376         * elf/rtld.c: Include <sys/param.h>.
1377         * elf/dl-reloc.c: Likewise.
1379 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1381         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
1382         empty to prevent junk from being generated.
1383         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
1385 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
1387         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
1388         records.  Rename endrel to relative, initialize it to r, and use it
1389         in elf_machine_rel_relative calls.  Point r after relative relocs.
1391 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1393         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
1394         of R_386_NONE.
1396 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
1398         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
1399         necessary.  Undefine newly defined macros at the end.
1400         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
1401         Rename from elf_machine_rel_relative.
1402         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
1403         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
1404         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
1405         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
1406         Likewise.
1407         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
1408         Likewise.
1409         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
1410         Fix argument types.
1411         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
1412         Fix argument types.
1413         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
1414         Likewise.  Fix argument types.
1415         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
1416         Likewise.  Fix argument types.
1417         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
1418         Fix argument types.
1419         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
1420         ElfW(Rel) in argument.
1421         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
1422         function.
1424 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
1426         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
1428 2001-08-24  Andreas Jaeger  <aj@suse.de>
1430         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
1431         Stephen L Moshier <moshier@mediaone.net>.
1433 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1435         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
1436         first if RELCOUNT is set.
1438         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
1439         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
1440         elf_machine_rel_relative.
1441         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
1442         Minor optimizations.
1443         * sysdeps/arm/dl-machine.h: Likewise.
1444         * sysdeps/cris/dl-machine.h: Likewise.
1445         * sysdeps/hppa/dl-machine.h: Likewise.
1446         * sysdeps/i386/dl-machine.h: Likewise.
1447         * sysdeps/ia64/dl-machine.h: Likewise.
1448         * sysdeps/m68k/dl-machine.h: Likewise.
1449         * sysdeps/mips/dl-machine.h: Likewise.
1450         * sysdeps/powerpc/dl-machine.h: Likewise.
1451         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1452         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1453         * sysdeps/sh/dl-machine.h: Likewise.
1454         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1455         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1457 2001-08-23  Roland McGrath  <roland@frob.com>
1459         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
1461         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
1462         sysdeps/mach version.  Implement counting ("recursive") mutexes
1463         on top of cthreads mutexes.
1464         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
1466         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
1467         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
1468         (__libc_cleanup_region_start, __libc_cleanup_region_end,
1469         __libc_clean_end): Define these to call the cleanup function after
1470         normal exit when they're supposed to.
1472         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
1473         Take new first arg DOIT, a boolean saying whether to really install
1474         any cleanup handler.
1475         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
1476         (__libc_cleanup_end): Likewise.
1477         * sysdeps/generic/bits/libc-lock.h: Same changes.
1478         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
1479         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
1480         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
1481         Likewise.
1482         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
1483         * sysdeps/generic/bits/stdio-lock.h
1484         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
1486 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1488         * elf/ldconfig.c (search_dir): Remove stale symlinks.
1490 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1492         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
1493         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
1494         lookups in cache.
1495         (_dl_lookup_versioned_symbol): Likewise.
1496         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
1497         relocation lookup.
1498         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
1499         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
1500         (lookup_cache, lookup_cache_versioned): Add declarations.
1502 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
1504         * stdlib/tst-random.c (main): Swap parameters in fail call.
1505         Patch by Pete Bevin <pete@petebevin.com>.
1507 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1509         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
1511 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
1513         * malloc/obstack.c: Indent preprocessor directives.
1514         Patch by Jim Meyering <meyering@ascend.com>.
1516         * po/ja.po: Update from translation team.
1518 2001-08-23  Roland McGrath  <roland@frob.com>
1520         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
1522         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
1523         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
1525 2001-08-22  Roland McGrath  <roland@frob.com>
1527         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
1528         __libc_lock_define_recursive.
1529         * elf/dl-open.c: Don't declare it here any more.
1530         * elf/dl-close.c: Likewise.
1531         * elf/dl-lookup.c: Likewise.
1532         * elf/dl-iteratephdr.c: Likewise.
1533         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
1534         __libc_lock_unlock_recursive.
1535         * elf/dl-close.c (_dl_close): Likewise
1536         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
1537         * elf/dl-open.c (_dl_open): Likewise
1539         * sysdeps/generic/bits/libc-lock.h
1540         (__libc_lock_define_recursive): New macro.
1541         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
1542         (_IO_lock_lock): Use __libc_lock_lock_recursive.
1543         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
1545         * conform/conformtest.pl (checknamespace): Sort the output list.
1547         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
1548         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
1549         definitions conditional on [__USE_XOPEN].
1551         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
1552         these unconditionally, not only use [__USE_BSD], so as to match
1553         the sysdeps/unix/sysv/linux files.
1555 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1557         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
1558         avoid warnings.
1560         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
1561         DL_LOOKUP_ADDRESS.
1563 2001-08-22  Roland McGrath  <roland@frob.com>
1565         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
1566         conditionalization of sa_handler/sa_sigaction member types to
1567         match the sysdeps/unix/sysv/linux file.
1569 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1571         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
1572         symbol sizes a bit better.
1574         * sysdeps/ia64/strncpy.S: Complete rewrite.
1575         Contributed by Jakub Jelinek <jakub@redhat.com>.
1577         * string/stratcliff.c (main): Add strncpy test.
1579 2001-08-22  Roland McGrath  <roland@frob.com>
1581         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
1582         and don't declare unsetenv or _environ directly.
1583         (unsetenv): Return int, not void.  Use __environ instead of _environ.
1585 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
1587         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
1588         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
1589         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
1590         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
1591         test for cmsg struct size.
1593 2001-04-23  Paul Eggert  <eggert@twinsun.com>
1595         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
1596         Rename __argc to ___argc in prototypes to avoid compatibility
1597         problems with systems that reserve the identifier "__argc".
1598         Similarly for __argv.
1600 2001-08-21  Roland McGrath  <roland@frob.com>
1602         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
1604         * mach/Makefile (tests): Removed.
1605         * mach/hello.c: File removed.
1607 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1609         * po/sv.po: Update from translation team.
1611         * stdio-common/vfscanf.c: Fix handling of %l[].
1612         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
1614         * libio/Makefile (tests): Add tst-sscanf.
1615         * libio/tst-sscanf.c: New file.
1617         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
1618         * malloc/mtrace.c (tr_where): dli_sname always points to a
1619         non-empty string if != NULL.
1620         Reported by Tim Janik <timj@gtk.org>.
1622 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
1624         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
1625         buf.  Free resources on failure.
1626         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
1627         (makefd_xprt): Likewise.
1628         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
1629         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
1630         * sunrpc/auth_unix.c (authunix_create): Likewise.
1632 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
1634         * string/strnlen.c: Remove.
1635         * sysdeps/generic/strnlen.c: New.
1636         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
1638 2001-08-21  Roland McGrath  <roland@frob.com>
1640         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
1641         as a macro, not an extern inline function.
1643         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
1644         * Versions.def (libc): Add GLIBC_2.2.5 set.
1645         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
1646         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
1648 2001-08-20  Roland McGrath  <roland@frob.com>
1650         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
1651         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
1653 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1655         * string/bits/string2.h: Remove strnlen optimization here.
1656         * sysdeps/i386/i486/bits/string.h: Add it here.
1658 2001-08-21  Wolfram Gloger  <wg@malloc.de>
1660         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
1662 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1664         * po/gl.po: Update from translation team.
1666 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1668         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
1669         * misc/err.c (convert_and_print): Likewise.
1671         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
1672         function calls.
1674 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1676         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
1677         change of the gregset_t type.
1678         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1680 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1682         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
1684 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1686         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
1688         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
1690 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
1692         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
1693         before calling the cthreads initialization code.
1695 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1697         * argp/argp-help.c: Fix two problems introduced in last change.
1699         * include/dirent.h: Include <dirstream.h> first.
1701 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
1703         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
1705         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
1706         * sunrpc/xdr_rec.c: Likewise.
1707         * sunrpc/xdr_mem.c: Likewise.
1708         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
1709         * sunrpc/rpc_cmsg.c: Likewise.
1710         * sunrpc/getrpcport.c (getrpcport): Likewise.
1711         * sunrpc/clnt_simp.c (callrpc): Likewise.
1712         * sunrpc/clnt_gen.c (clnt_create): Likewise.
1713         * string/envz.c: Likewise.
1715         * po/ko.po: Update from translation team.
1717         * argp/argp-help.c: Handle wide oriented stderr stream.
1719 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
1721         * sysdeps/generic/strtol.c: Little optimizations.  Add some
1722         __builtin_expect.
1724         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
1726         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
1727         * wcsmbs/wcwidth.c (wcwdith): Likewise.
1728         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
1730         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
1732         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
1734         * time/time.h (struct timespec): Use __time_t for tv_sec element.
1736         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
1737         wchar_t for function declarations and defintions.
1739         * misc/sys/select.h: Define __need_time_t before including <time.h>.
1740         Define suseconds_t if it hasn't happened yet.
1742         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
1744         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
1746         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
1747         <stddef.h>.
1749         * conform/data/stddef.h-data: Remove wint_t.
1751         * conform/conformtest.pl: Change namespace test to take #undef
1752         lines into account.
1754         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
1756         * conform/data/sys/socket.h-data: Add sockatmark.
1758 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1760         * io/fts.c: Update from recent BSD source.
1762 2001-08-17  Roland McGrath  <roland@frob.com>
1764         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
1765         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
1766         Likewise.
1768 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1770         * locale/duplocale.c (__duplocale): Also initialize the special
1771         __ctype_* elements.
1773         * conform/data/netdb.h-data: Adjust gai_strerror return type.
1775 2001-08-17  Andreas Jaeger  <aj@suse.de>
1777         * misc/getpass.c: Include wchar.h for prototypes.
1778         * malloc/obstack.c: Likewise.
1780 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1782         * sunrpc/svc_simple.c (universal): Use __write instead of write.
1784         * wcsmbs/wcscoll.c: Also define __wcscoll.
1785         * include/wchar.h: Declare __wcscoll.
1787         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
1788         * libio/vwprintf.c: Likewise.
1789         * libio/wprintf.c: Likewise.
1791         * iconv/gconv_cache.c: Use __munmap instead of munmap.
1793 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
1795         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1796         instead of mbrtowc.
1797         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1798         wcslen, and __wcscoll instead of wcscoll.
1800         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
1802         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
1803         __getuid instead of getuid.
1805         * stdio-common/perror.c (perror): Use __close instead of close.
1806         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1807         * libio/freopen.c (freopen): Likewise.
1808         * libio/freopen64.c (freopen64): Likewise.
1810         * libio/tst-ungetwc2.c (main): Define str const.
1812         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
1813         * libio/fwprintf.c: Also define __fwprintf.
1814         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
1815         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
1816         * assert/assert-perr.c: Likewise.
1817         * assert/assert.c: Likewise.
1818         * gmon/gmon.c: Likewise.
1819         * inet/rcmd.c: Likewise.
1820         * malloc/obstack.c: Likewise.
1821         * misc/err.c: Likewise.
1822         * misc/error.c: Likewise.
1823         * misc/getpass.c: Likewise.
1824         * posix/getopt.c: Likewise.
1825         * resolv/res_hconf.c: Likewise.
1826         * stdio-common/perror.c: Likewise.
1827         * stdio-common/psignal.c: Likewise.
1828         * stdlib/fmtmsg.c: Likewise.
1829         * sunrpc/auth_unix.c: Likewise.
1830         * sunrpc/clnt_perr.c: Likewise.
1831         * sunrpc/clnt_tcp.c: Likewise.
1832         * sunrpc/clnt_udp.c: Likewise.
1833         * sunrpc/clnt_unix.c: Likewise.
1834         * sunrpc/svc_simple.c: Likewise.
1835         * sunrpc/svc_tcp.c: Likewise.
1836         * sunrpc/svc_udp.c: Likewise.
1837         * sunrpc/svc_unix.c: Likewise.
1838         * sunrpc/xdr.c: Likewise.
1839         * sunrpc/xdr_array.c: Likewise.
1840         * sunrpc/xdr_rec.c: Likewise.
1841         * sunrpc/xdr_ref.c: Likewise.
1842         * sysdeps/generic/wordexp.c: Likewise.
1844         * po/it.po: Update from translation team.
1846         * misc/err.c: Handle wide oriented stderr stream.
1848 2001-08-14  Tom Rix  <trix@redhat.com>
1850         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
1851         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
1853 2001-08-13  Tom Rix  <trix@redhat.com>
1855         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
1856         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
1857         and __intptr_t.
1859 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1861         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
1862         Store the access registers to the ucontext structure.
1863         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
1864         Likewise.
1866         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
1867         Load the access registers from the ucontext structure.
1868         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
1869         Likewise.
1871         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
1872         offsets to the new ucontext layout.
1873         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
1875         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
1876         of the ucontext structure.
1877         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1879 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
1881         * misc/error.c (error): Handle wide oriented stderr stream correctly.
1882         (error_at_line): Likewise.
1884         * stdio-common/perror.c (perror): Implement according to standard.
1885         The stream orientation must not be changed if the stream was not
1886         oriented before the call.
1887         * stdio-common/Makefile (tests): Add tst-perror.
1888         * stdio-common/tst-perror.c: New file.
1891 See ChangeLog.12 for earlier changes.