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