Update.
[glibc.git] / ChangeLog
blob916b8156cf3302147e36a50f42ebc9e95f0d942e
1 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
3         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
4         _dl_signal_error directly, always use lose.  Set fd to -1 after
5         file is closed.
6         (lose): Don't call close if fd == -1.
8 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
10         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11          Also fix typo @code {mbsinit} to @code{mbsinit}.
13 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
15         * elf/dl-profile.c: Replace state variable with simple flag named
16         running.  Remove commented-out code.
18         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
19         (_dl_init_paths): Likewise.
20         (_dl_map_object_from_fd): Likewise.
21         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
23 2001-11-06  Roland McGrath  <roland@frob.com>
25         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
26         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
28         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
29         sysdeps/powerpc/elf/sysdep.h.
30         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
32 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
34         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
35         speed.
36         (process_envvars): Some more optimizations.
37         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
39         * elf/elf.h: Add dynamic tag definitions for prelinking.
41         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
42         Rewrite code to remove environment varables for SUID binaries.
43         Small optimization in LD_PROFILE handling.
44         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
45         changes.
46         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
48         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
50         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
51         strings.  Change type of second parameter.
52         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
53         for last change.
55         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
57 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
59         * manual/string.texi: Fix typos.
60         * manual/examples/argp-ex2.c: Likewise.
62 2001-11-05  Roland McGrath  <roland@frob.com>
64         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
65         the more-specific unix/sysv/linux/powerpc file and breaks everything.
66         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
67         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
68         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
69         here, put under [__ELF__].
71 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
73         * manual/charset.texi: Extensive editing work.
74         * manual/nss.texi: Likewise.
75         Changes by Dennis Grace <dgrace@us.ibm.com>.
77 2001-11-04  Roland McGrath  <roland@frob.com>
79         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
80         parameter to dir_mkfile.
82 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
84         * string/bits/string2.h (__strndup): If n is smaller than len, set
85         len to n + 1.
86         * string/tester.c (test_strndup): New function.
87         (main): Call it.
89 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
91         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
93         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
94         * scripts/cpp: New file.
96         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
97         for rtld_search_dirs content.  Minor optimizations.
99 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
101         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
102         avoiding unnecessary duplication.
104 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
106         * elf/dl-load.c (_dl_map_object): If library was found using
107         LD_LIBRARY_PATH, don't try RUNPATH list.
109 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
111         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
112         Correct second argument of register_dump call.
113         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
114         Likewise.
116 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
118         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
119         modules.
120         * iconvdata/TESTS: Likewise.
121         * iconvdata/gconv-modules: Likewise.
122         * iconvdata/ibm1132.c: New file.
123         * iconvdata/ibm1132.h: New file.
124         * iconvdata/ibm1133.c: New file.
125         * iconvdata/ibm1133.h: New file.
126         * iconvdata/ibm1162.c: New file.
127         * iconvdata/ibm1162.h: New file.
128         * iconvdata/testdata/IBM1132: New file.
129         * iconvdata/testdata/IBM1132..UTF8: New file.
130         * iconvdata/testdata/IBM1133: New file.
131         * iconvdata/testdata/IBM1133..UTF8: New file.
132         * iconvdata/testdata/IBM1162: New file.
133         * iconvdata/testdata/IBM1162..UTF8: New file.
134         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
136         * string/string.h: Fix typo in comment.
137         * wcsmbs/wchar.h: Likewise.
139 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
141         * manual/getopt.texi (getopt_long, getopt_long_only): Include
142         const in type of longopts parameter.
144 2001-10-29  Andreas Jaeger  <aj@suse.de>
146         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
148 2001-10-29  Kevin Ryde  <user42@zip.com.au>
150         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
151         output, clarify `#' behaviour on 0.
152         (Floating-Point Conversions): Clarify that %g only uses %e when
153         the exponent would be greater than 1.
155 2001-10-28  Roland McGrath  <roland@frob.com>
157         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
158         * sysdeps/mach/powerpc/machine-sp.h: New file.
159         * sysdeps/mach/powerpc/sysdep.h: New file.
160         * sysdeps/mach/powerpc/thread_state.h: New file.
162         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
163         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
164         expect to need the same thing on every platform.
166         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
167         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
169         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
170         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
171         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
172         Move all these assembly-related definitions to ...
173         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
175         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
176         by Peter Bruin <pjbruin@dds.nl>.
178         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
179         packing results for a `poll' call.
181 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
183         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
184         correctly.
185         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
186         bracket expression.
188         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
189         nrules value.
190         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
192 2001-10-24  H.J. Lu  <hjl@gnu.org>
194         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
195         Use __BEGIN_DECLS/__END_DECLS around prototypes.
196         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
198 2001-10-21  Jim Meyering  <meyering@lucent.com>
200         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
201         this code would end up calling gettext even in packages built
202         with --disable-nls.
203         * posix/getopt.c (_): Likewise.
204         * posix/regex.c (_): Likewise.
206 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
208         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
209         lookup not ip6.int.
210         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
211         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
213 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
215         * misc/sys/cdefs.h (__attribute_used__): Define.
216         * elf/rtld.c (_dl_start): Add __attribute_used__.
217         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
219 2001-10-25  Andreas Schwab  <schwab@suse.de>
221         * stdlib/a64l.c: Expect least significant digit first.
222         * stdlib/l64a.c: Produce least significant digit first.
223         * stdlib/Makefile (tests): Add test-a64l.
224         * stdlib/test-a64l.c: New file.
225         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
227 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
229         * po/sk.po: Update from translation team.
231 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
233         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
235 2001-10-18  Andreas Schwab  <schwab@suse.de>
237         * math/libm-test.inc (print_ulps): Print ulp values rounded to
238         next whole number.
239         (print_function_ulps): Likewise.
240         (print_complex_function_ulps): Likewise.
241         (print_max_error): Likewise.
242         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
244 2001-10-16  Andreas Schwab  <schwab@suse.de>
246         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
247         implementation.
249         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
250         BSD_SETJMP or BSD__SETJMP is defined, resp.
251         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
252         a tail call to __sigsetjmp that would require extending the
253         caller's frame.
254         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
255         * sysdeps/m68k/bsd-setjmp.S: Deleted.
256         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
257         Reported by Jes Sorensen <jes@trained-monkey.org>.
259 2001-10-16  Andreas Jaeger  <aj@suse.de>
261         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
262         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
263         close PR libc/2589.
265 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
267         * po/ca.po: New file.  Contributed by the translation team.
269 2001-10-15  Ralf Baechle  <ralf@gnu.org>
271         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
272         a varargs prototype.  Remove dependency from kernel header files.
274         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
275         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
277 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
279         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
280         to generate hexadecimal identifier.
281         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
283 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
285         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
287 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
289         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
290         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
291         Contributed by Stephen L Moshier <moshier@mediaone.net>.
293         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
294         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
295         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
296         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
297         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
298         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
300         * timezone/africa: Update from tzdata2001d.
301         * timezone/asia: Likewise.
302         * timezone/australasia: Likewise.
303         * timezone/backward: Likewise.
304         * timezone/europe: Likewise.
305         * timezone/leapseconds: Likewise.
306         * timezone/northamerica: Likewise.
307         * timezone/southamerica: Likewise.
308         * timezone/zone.tab: Likewise.
310 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
312         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
313         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
315 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
317         * elf/elf.h (PT_TLS): New definition.
319 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
321         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
322         bits/errno.h
324 2001-10-07  Roland McGrath  <roland@frob.com>
326         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
328 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
330         * elf/elf.h: Add more ELFOSABI_* constants.
332 2001-10-04  Ben Collins  <bcollins@debian.org>
334         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
335         decleration of __need_wchar_t.
337 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
339         * string/bits/string2.h (__strsep_g): Add prototype.
340         (__strsep): Use it.
341         * string/Versions (__strsep): Remove.
342         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
344 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
346         * manua/llio.texi: Clarify file references added by mmap.
347         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
349 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
351         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
352         Add sc_loadrs and sc_rbs_bas to match current kernel.
354 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
356         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
358         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
360 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
362         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
363         object has been bumped because of relocation dependency, avoid
364         duplicates in l_scope.
365         (show_scope): Fix typos.
366         * elf/Makefile: Add rules to build and run reldep6.
367         * elf/reldep6.c: New file.
368         * elf/reldep6mod0.c: New file.
369         * elf/reldep6mod1.c: New file.
370         * elf/reldep6mod2.c: New file.
371         * elf/reldep6mod3.c: New file.
372         * elf/reldep6mod4.c: New file.
374 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
376         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
377         sparc64_fixup_plt.
378         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
379         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
380         for non-lazy binding. Fix .plt[32768+] handling.
381         (elf_machine_plt_value): Don't add addend.
382         (elf_machine_rela): Call sparc64_fixup_plt instead of
383         elf_machine_fixup_plt.
384         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
385         dynamic linker at 0xfffff800XXXXXXXX.
387         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
389 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
391         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
393 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
395         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
396         declare __cmsg_data field if its size would be bigger than 0.
397         (CMSG_DATA): Adjust accordingly.
398         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
399         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
400         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
401         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
402         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
403         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
404         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
406 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
408         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
409         * iconvdata/testdata/IBM1160: New file.
410         * iconvdata/testdata/IBM1160..UTF8: New file.
411         * iconvdata/testdata/IBM1161: New file.
412         * iconvdata/testdata/IBM1161..UTF8: New file.
413         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
415 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
417         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
418         UL_SETFSIZE computations better.
420         * rt/Makefile: Remove use of filter for librt again.
422         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
423         UL_SETFSIZE computations better.
425         * string/Versions: Export __strsep for GLIBC_2.2.5.
426         * string/bits/string2.h: Define all __STRING_INLINE functions if
427         _FORCE_INLINES is defined.
428         Use int instead of char of parameter types.
429         (__strsep): Don't use __strsep_g.  Don't define it.
430         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
431         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
432         __strcpy_small.
433         (__stpcpy_a_small): Renamed from __stpcpy_small.
434         (__strcspn_c1): Don't define if _FORCE_INLINES.
435         (__strspn_c1): Likewise.
437 2001-09-22  Ben Collins  <bcollins@debian.org>
439         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
440         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
441         * sysdeps/ia64/bits/sigaction.h: Likewise.
442         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
444 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
446         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
448 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
450         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
452 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
454         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
456 2001-09-20  H.J. Lu  <hjl@gnu.org>
458         * include/dlfcn.h (__RTLD_SPROF): New definiton.
459         * elf/dl-open.c (dl_open_worker): Return immediately after loading
460         for __RTLD_SPROF.
461         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
462         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
464 2001-09-20  H.J. Lu  <hjl@gnu.org>
466         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
467         don't add 1.
469 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
471         * nss/getent.c: Accept -s parameter to overwrite rules in
472         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
474         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
475         with as many ".0" as necessary to form a complete address
476         inet_network understands.
478         * nss/getent.c: Various cleanups.  Use simpler and fewer function
479         calls.
481 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
483         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
484         _JMPBUF_UNWINDS.
485         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
487 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
489         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
490         IBM1161.
491         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
492         * iconvdata/ibm1160.c: New file.
493         * iconvdata/ibm1160.h: New file.
494         * iconvdata/ibm1161.c: New file.
495         * iconvdata/ibm1161.h: New file.
496         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
498 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
500         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
501         difference between base address and first PT_LOAD's virtual address,
502         not the base address.
504 2001-09-11  Tom Rix  <trix@redhat.com>
506         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
507         ifdef for __getopt_clean_environment.
508         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
510 2001-09-22  Andreas Jaeger  <aj@suse.de>
512         * elf/reldep4.c (main): Add proper prototype to fix warning.
514         * elf/reldep5.c (main): Remove unused variable.
516         * math/math_private.h: Add prototypes.
518 2001-09-21  Andreas Jaeger  <aj@suse.de>
520         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
521         * sysdeps/x86_64/Dist: New file.
522         * sysdeps/x86_64/soft-fp/Dist: New file.
524         * sysdeps/gnu/Dist: Remove eval.c.
526 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
528         * malloc/memusage.c (realloc): Don't count already allocated
529         memory in the sums.
530         (me): Always use dlsym() to find the real implementations.
532         * malloc/memusage.sh: Make -n option actually do something.
534 2001-09-20  Andreas Jaeger  <aj@suse.de>
536         * elf/elf.h (R_390_NUM): Correct value.
538         * Versions.def: Add missing versions 2.2.3 for libthread_db and
539         libpthread.
541         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
542         for x86-64, install x86-64 into */lib64.
544         * shlib-versions: Add x86-64.
546         * elf/elf.h: Add x86-64 relocations.
548 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
550         * po/fr.po: Update from translation team.
552 2001-09-19  Andreas Jaeger  <aj@suse.de>
554         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
555         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
556         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
557         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
558         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
559         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
560         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
561         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
562         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
563         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
564         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
565         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
566         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
567         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
568         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
569         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
570         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
571         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
572         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
573         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
574         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
575         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
576         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
577         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
578         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
579         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
580         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
581         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
582         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
583         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
584         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
585         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
586         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
587         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
588         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
589         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
590         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
591         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
592         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
593         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
594         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
595         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
596         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
597         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
598         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
599         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
600         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
601         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
602         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
603         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
604         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
605         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
606         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
607         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
608         * sysdeps/unix/x86_64/sysdep.S: New file.
609         * sysdeps/unix/x86_64/sysdep.h: New file.
610         * sysdeps/x86_64/Implies: New file.
611         * sysdeps/x86_64/Makefile: New file.
612         * sysdeps/x86_64/Versions: New file.
613         * sysdeps/x86_64/__longjmp.S: New file.
614         * sysdeps/x86_64/abort-instr.h: New file.
615         * sysdeps/x86_64/atomicity.h: New file.
616         * sysdeps/x86_64/bits/endian.h: New file.
617         * sysdeps/x86_64/bits/setjmp.h: New file.
618         * sysdeps/x86_64/bits/string.h: New file.
619         * sysdeps/x86_64/bp-asm.h: New file.
620         * sysdeps/x86_64/bsd-_setjmp.S: New file.
621         * sysdeps/x86_64/bsd-setjmp.S: New file.
622         * sysdeps/x86_64/dl-machine.h: New file.
623         * sysdeps/x86_64/elf/initfini.c: New file.
624         * sysdeps/x86_64/elf/start.S: New file.
625         * sysdeps/x86_64/ffs.c: New file.
626         * sysdeps/x86_64/ffsll.c: New file.
627         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
628         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
629         * sysdeps/x86_64/fpu/e_acosl.c: New file.
630         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
631         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
632         * sysdeps/x86_64/fpu/e_expl.c: New file.
633         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
634         * sysdeps/x86_64/fpu/e_log10l.S: New file.
635         * sysdeps/x86_64/fpu/e_log2l.S: New file.
636         * sysdeps/x86_64/fpu/e_logl.S: New file.
637         * sysdeps/x86_64/fpu/e_powl.S: New file.
638         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
639         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
640         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
641         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
642         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
643         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
644         * sysdeps/x86_64/fpu/fegetenv.c: New file.
645         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
646         * sysdeps/x86_64/fpu/fegetround.c: New file.
647         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
648         * sysdeps/x86_64/fpu/fesetenv.c: New file.
649         * sysdeps/x86_64/fpu/fesetround.c: New file.
650         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
651         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
652         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
653         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
654         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
655         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
656         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
657         * sysdeps/x86_64/fpu/s_atanl.c: New file.
658         * sysdeps/x86_64/fpu/s_cosl.S: New file.
659         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
660         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
661         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
662         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
663         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
664         * sysdeps/x86_64/fpu/s_logbl.c: New file.
665         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
666         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
667         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
668         * sysdeps/x86_64/fpu/s_rintl.c: New file.
669         * sysdeps/x86_64/fpu/s_significandl.c: New file.
670         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
671         * sysdeps/x86_64/fpu/s_sinl.S: New file.
672         * sysdeps/x86_64/fpu/s_tanl.S: New file.
673         * sysdeps/x86_64/gmp-mparam.h: New file.
674         * sysdeps/x86_64/hp-timing.c: New file.
675         * sysdeps/x86_64/hp-timing.h: New file.
676         * sysdeps/x86_64/htonl.S: New file.
677         * sysdeps/x86_64/memusage.h: New file.
678         * sysdeps/x86_64/setjmp.S: New file.
679         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
680         * sysdeps/x86_64/stackinfo.h: New file.
681         * sysdeps/x86_64/sysdep.h: New file.
682         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
684         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
685         L Moshier.
687 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
689         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
690         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
692 2001-09-18  Andreas Schwab  <schwab@suse.de>
694         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
695         list, now that l_scope is a pointer.
697         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
698         scope list.
700 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
702         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
703         (elf_machine_rela_relative): Add a missing declaration.
705 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
707         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New.
708         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New.
709         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
710         ldd-rewrite scripts.
712 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
714         * elf/ldd.bash.in: Update copyright message.
716 2001-09-17  H.J. Lu  <hjl@gnu.org>
718         * hurd/hurdmalloc.c (bcopy): Removed.
719         (realloc): Replace bcopy with memcpy.
720         * hurd/path-lookup.c (file_name_path_scan): Likewise.
721         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
722         * sunrpc/rpcinfo.c (pmapdump): Likewise.
724         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
725         (gethostbyaddr): Likewise.
726         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
728 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
730         * sysdeps/gnu/eval.c: Removed.
732 2001-09-18  Andreas Jaeger  <aj@suse.de>
734         * sysdeps/i386/fpu/s_logbl.S: Move to ...
735         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
737         * sysdeps/i386/fpu/s_rintl.S: Move to ...
738         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
740         * sysdeps/i386/fpu/s_significandl.S: Move to ...
741         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
743 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
745         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
746         nrules value.
748 2001-09-14  H.J. Lu  <hjl@gnu.org>
750         * sysdeps/mips/fpu/libm-test-ulps: Updated.
752 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
754         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
755         Patch by Florian La Roche <laroche@redhat.com>.
757         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
759         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
760         ETHER_CRC_LEN.
762 2001-09-14  Andreas Schwab  <schwab@suse.de>
764         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
765         Sumner <bls@sgi.com>.
766         * posix/execlp.c: Likewise.
768 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
770         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
771         is already found earlier in the search scope.
773 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
775         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
776         filter.
778 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
780         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
782 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
784         * config.h.in: Enforce optimization to be used.
785         * Makeconfig (preprocess-versions): Define ASSEMBLER.
786         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
787         * posix/Makefile (annexc-CFLAGS): Define to -O.
788         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
790 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
792         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
793         Patch by Stephan Kulow.
795 2001-09-08  Ben Collins  <bcollins@debian.org>
797         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
798         usage of RESOLVE() (r_type, not reloc->r_type).
800 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
802         * elf/dl-object.c: Avoid allocating extra memory block for name.
803         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
804         allocated separately.
805         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
807 2001-09-08  H.J. Lu  <hjl@gnu.org>
809         * po/zh_TW.po: Fix a typo.
811 2001-09-07  Tom Rix  <trix@redhat.com>
813         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
815 2001-08-26  Tom Rix  <trix@redhat.com>
817         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
818         command line options.
819         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
820         * sysdeps/unix/sysv/aix/start.c: Removed.
821         * sysdeps/unix/sysv/aix/start-libc.c: New file.
822         * sysdeps/unix/sysv/aix/init-first.c: New file.
823         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
825 2001-09-08  Ben Collins  <bcollins@debian.org>
827         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
828         * sysdeps/generic/dl-machine.h: Likewise.
829         * sysdeps/hppa/dl-fptr.c: Likewise.
830         * sysdeps/ia64/dl-fptr.c: Likewise.
831         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
832         * sysdeps/mips/dl-machine.h: Likewise.
833         * sysdeps/mips/mips64/dl-machine.h: Likewise.
834         * sysdeps/powerpc/dl-machine.c: Likewise.
836 2001-09-07  Ben Collins  <bcollins@debian.org>
838         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
840         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
842 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
844         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
845         dependencies if necessary.
847         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
848         loaded directly) determine length if l_initfini list by iterating
849         over its elements.  Minor optimizations.
850         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
851         for dependency objects.
852         If object was already loaded check whether any of the dependencies
853         is already on the relocation dependency list.  If yes, remove the
854         latter.  Minor optimizations.
855         * elf/dl-lookup.c (add_dependency): Add check for self reference of
856         maps here.  Search l_initfini list only if the object was loaded
857         directly and not only as a dependency.
858         (_dl_lookup_symbol): Add relocation dependency also if object
859         is not in global scope.  Remove test for self-reference here.
860         (_dl_lookup_versioned_symbol): Likewise.
861         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
862         element of first name record.
863         * elf/loadtest.c: Add some more test to recognize early if an object
864         wasn't unloaded.
865         * elf/Makefile: Add rules to build and run reldep5.
866         * elf/reldep5.c: New file.
867         * elf/reldepmod5.c: New file.
868         * elf/reldepmod6.c: New file.
870         * elf/reldep2.c: Fix typo.
872 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
874         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
875         elements.  Change l_scope to be a pointer only.
876         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
877         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
878         here add searchlist of newly open file to the dependency's scope.
879         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
880         only searchlist from its scope.  Free own scope array if necessary.
881         * elf/Makefile (tests): Add dblload and dblunload now.
883 2001-09-06  Andreas Jaeger  <aj@suse.de>
885         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
886         Stephen L Moshier.
888 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
890         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
891         they both fail.
892         * elf/dblload.c: New file.
893         * elf/dblloadmod1.c: New file.
894         * elf/dblloadmod2.c: New file.
895         * elf/dblloadmod3.c: New file.
896         * elf/dblunload.c: New file.
898 2001-09-04  Richard Henderson  <rth@redhat.com>
900         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
901         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
903 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
905         Correct very misleading message for error in failed runtime relocation.
906         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
907         place of the error.
908         (_dl_signal_cerror): Likewise.
909         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
910         * elf/dl-close.c: Likewise.
911         * elf/dl-deps.c: Likewise.
912         * elf/dl-load.c: Likewise.
913         * elf/dl-lookup.c: Likewise.
914         * elf/dl-open.c: Likewise.
915         * elf/dl-reloc.c: Likewise.
916         * elf/dl-sym.c: Likewise.
917         * elf/dl-version.c: Likewise.
918         * sysdeps/generic/dl-sysdep.c: Likewise.
920 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
922         * iconv/strtab.c (strtabinit): Initialize null Strent.
923         (newstring): Move len == 0 handling...
924         (strtabadd): ...here.
925         If len == 1, return null Strent.
926         When inserting a suffix of an existing string, check if
927         it is not equal to some suffix already recorded.
928         Copy left and right members over if adding longer string.
930 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
932         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
934         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
935         (__syscall_gethostname): Add prototype.
937 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
939         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
941 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
943         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
945 2001-08-27  Roland McGrath  <roland@frob.com>
947         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
948         short, copy that much into NAME anyway before returning error.
950 2001-09-01  Richard Henderson  <rth@redhat.com>
952         * sysdeps/alpha/elf/Dist: Remove file.
953         * sysdeps/alpha/elf/Makefile: Remove file.
954         * sysdeps/alpha/elf/crtbegin.S: Remove file.
955         * sysdeps/alpha/elf/crtend.S: Remove file.
956         * sysdeps/alpha/elf/initfini.c: New file.
958 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
960         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
961         * iconv/tst-iconv3.c: Likewise.
963 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
965         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
967 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
969         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
970         export it.
971         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
972         * iconv/iconv_prog.c (insert_cache): New function.
973         (print_known_names): If cache is used call insert_cache to use the
974         information from the cache [PR libc/2509].
976 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
978         * time/strptime.c (strptime_internal): Recognize 'l' format and
979         handle it like 'I' for symmetry with strftime.
981 2001-08-31  Richard Henderson  <rth@redhat.com>
983         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
984         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
985         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
986         (print_statistics): Make scalar unsigned long long.
987         * sysdeps/alpha/hp-timing.h: New file.
989 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
991         * stdio-common/perror.c (perror): Save errno early, pass it
992         down to perror_internal.
993         (perror_internal): Add errnum argument.
995 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
997         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
998         Don't add old memory content for R_ALPHA_REFQUAD.
1000 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1002         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
1003         memory correctly.
1005         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
1006         instead of open, __close instead of close, __getpagesize instead
1007         of getpagesize.
1009         * string/argz-stringify.c (__argz_stringify): Use __strnlen
1010         instead of strnlen.
1011         * include/string.h (strndupa): Redefine here to use __strnlen
1012         instead of strnlen.
1013         * string/strndup.c (__strndup): Use __strnlen not strnlen.
1015         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
1016         connected).
1018 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1020         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
1021         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
1022         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1023         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
1024         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
1025         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
1026         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
1028 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1030         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
1032 2001-08-30  Andreas Jaeger  <aj@suse.de>
1034         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
1035         contributed Stephen L Moshier.
1037 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1039         * sunrpc/etc.rpc (sgi_fam): Add.
1041 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1043         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
1045 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
1047         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
1048         first is from a previous call.
1049         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
1051 2001-08-29  Andreas Schwab  <schwab@suse.de>
1053         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
1055 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1057         * config.make.in (INSTALL_SCRIPT): Define.
1058         * Makeconfig (INSTALL_SCRIPT): Define.
1059         * Makerules (do-install-script): New macro to install scripts using
1060         INSTALL_SCRIPT.
1061         (install-bin-script): New rule to install scripts with
1062         do-install-script.
1063         (install-bin-script-nosubdir): New rule.
1064         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
1065         (distinfo-vars): Add $(install-bin-script).
1066         * Rules (others): Likewise.
1067         * Makefile (glibcbug): Install with install-bin-script.
1068         * debug/Makefile (xtrace): Likewise.
1069         (catchsegv): Likewise.
1070         * elf/Makefile (ldd): Likewise.
1071         * malloc/Makefile (mtrace): Likewise.
1072         * timezone/Makefile (tzselect): Likewise.
1074 2001-08-29  H.J. Lu  <hjl@gnu.org>
1076         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
1077         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
1078         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
1080 2001-08-29  Andreas Schwab  <schwab@suse.de>
1082         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
1084 2001-08-28  H.J. Lu  <hjl@gnu.org>
1086         * Makeconfig (combreloc-LDFLAGS): New variable.
1087         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
1088         * config.make.in (have-z-combreloc): New variable.
1089         * configure.in: Substitute libc_cv_z_combreloc.
1091 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
1093         * po/sv.po: Update from translation team.
1094         * po/fr.po: Likewise.
1095         * po/da.po: Likewise.
1097 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1099         * Makerules: Fix a typo: MD% -> MD5.
1101 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
1103         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
1104         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
1106 2001-08-28  Andreas Jaeger  <aj@suse.de>
1108         * manual/libc-texinfo.sh: Add entry about free manuals.
1110         * manual/contrib.texi (Contributors): Fix cross reference.
1112         * manual/libc.texinfo (Copying): Include freemanuals.
1114         * manual/Makefile (appendices): Add freemanuals.
1116         * manual/freemanuals.texi: New file.
1117         Patch by Brian Youmans <3diff@gnu.org>.
1119         * manual/libm-err-tab.pl: Pretty print more platforms, print a
1120         smaller table.
1122         * manual/math.texi (Errors in Math Functions): Fix grammar, start
1123         table on separate page.
1124         Patch by Brian Youmans <3diff@gnu.org>.
1126 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
1128         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
1129         the connection went down after we first used it try to connect
1130         again and resend the message before printing to the console.
1131         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
1133 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
1135         * string/tst-strlen.c (main): Test strnlen (, -1) too.
1136         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
1137         bit set.
1139 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
1141         * iconv/strtab.c (searchstring): Use correct length for comparison.
1142         (strtabadd): Account total size correct if new string has old string as
1143         substring.
1145 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
1147         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
1149 2001-08-27  Andreas Jaeger  <aj@suse.de>
1151         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
1153         * math/libm-test.inc (j0_test): Add extra tests.
1154         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
1155         not x, in Hankel approximation.
1156         Patches by Stephen L Moshier.
1158 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1160         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
1161         link_map.
1163         * configure.in: Fix test for .rela.dyn section.
1165         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
1167 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
1169         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
1170         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
1171         Pass type_class to _dl_lookup_*.
1172         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
1173         Pass around just type_class instead of noexec, noplt pair.
1174         (_dl_lookup_versioned_symbol): Likewise.
1175         (_dl_lookup_symbol_skip): Pass around just type_class instead of
1176         noexec, noplt pair.
1177         (_dl_lookup_versioned_symbol_skip): Likewise.
1178         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
1179         * elf/do-lookup.h (do_lookup): Likewise.
1180         * include/link.h (struct link_map): Replace noexec and noplt fields
1181         in l_lookup_cache with type_class field.
1182         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
1183         ELF_RTYPE_CLASS_COPY): Define.
1184         Adjust prototypes for _dl_lookup_symbol and
1185         _dl_lookup_versioned_symbol.
1186         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
1187         elf_machine_lookup_noexec_p): Remove.
1188         (elf_machine_type_class): Define.
1189         * sysdeps/arm/dl-machine.h: Likewise.
1190         * sysdeps/hppa/dl-machine.h: Likewise.
1191         * sysdeps/cris/dl-machine.h: Likewise.
1192         * sysdeps/i386/dl-machine.h: Likewise.
1193         * sysdeps/ia64/dl-machine.h: Likewise.
1194         * sysdeps/m68k/dl-machine.h: Likewise.
1195         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1196         * sysdeps/mips/dl-machine.h: Likewise.
1197         * sysdeps/powerpc/dl-machine.h: Likewise.
1198         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1199         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1200         * sysdeps/sh/dl-machine.h: Likewise.
1201         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1202         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1204 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1206         * manual/message.texi (Advanced gettext functions): Change
1207         description of plural forms for Slovak.
1208         Reported by Marcel Telka <marcel@telka.sk>.
1210         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
1211         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
1213 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
1215         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
1216         typo.  Patch by Florian La Roche <laroche@redhat.com>.
1218 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1220         * include/link.h (struct link_map): Add l_lookup_cache element.
1221         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
1222         (RESOLVE_MAP): Likewise.
1223         (_dl_relocate_object): Remove cache initialization.
1224         * elf/dl-lookup.c: Rip out cache handling code.
1225         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
1226         declarations.
1228         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
1229         remove some __builtin_expect.
1230         (_dl_lookup_versioned_symbol): Likewise.
1232         * config.h.in: Add HAVE_Z_COMBRELOC.
1233         * configure.in: Add test for -z combreloc.
1235         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
1236         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
1237         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
1238         case to almost no code.
1240 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
1242         * po/tr.po: Update from translation team.
1244 2001-08-24  Andreas Jaeger  <aj@suse.de>
1246         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
1247         make clean works.
1249 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1251         * elf/rtld.c (print_statistics): Printf % after percent values.
1252         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
1254         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
1255         don't have to compute the hash value and initialize current_value.
1256         Move reference_name variable to where it is needed.
1257         (_dl_lookup_versioned_symbol): Likewise.
1259 2001-08-24  Roland McGrath  <roland@frob.com>
1261         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
1262         Just test that strerror returns non-null for a few errno codes.
1264 2001-08-23  Roland McGrath  <roland@frob.com>
1266         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
1267         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
1269         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
1271         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
1272         __mach_reply_port.
1274 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1276         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
1277         returns NULL.
1279         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
1280         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
1281         doesn't do it.
1282         * elf/rtld.c: Include <sys/param.h>.
1283         * elf/dl-reloc.c: Likewise.
1285 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1287         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
1288         empty to prevent junk from being generated.
1289         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
1291 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
1293         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
1294         records.  Rename endrel to relative, initialize it to r, and use it
1295         in elf_machine_rel_relative calls.  Point r after relative relocs.
1297 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1299         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
1300         of R_386_NONE.
1302 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
1304         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
1305         necessary.  Undefine newly defined macros at the end.
1306         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
1307         Rename from elf_machine_rel_relative.
1308         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
1309         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
1310         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
1311         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
1312         Likewise.
1313         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
1314         Likewise.
1315         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
1316         Fix argument types.
1317         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
1318         Fix argument types.
1319         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
1320         Likewise.  Fix argument types.
1321         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
1322         Likewise.  Fix argument types.
1323         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
1324         Fix argument types.
1325         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
1326         ElfW(Rel) in argument.
1327         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
1328         function.
1330 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
1332         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
1334 2001-08-24  Andreas Jaeger  <aj@suse.de>
1336         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
1337         Stephen L Moshier <moshier@mediaone.net>.
1339 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1341         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
1342         first if RELCOUNT is set.
1344         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
1345         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
1346         elf_machine_rel_relative.
1347         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
1348         Minor optimizations.
1349         * sysdeps/arm/dl-machine.h: Likewise.
1350         * sysdeps/cris/dl-machine.h: Likewise.
1351         * sysdeps/hppa/dl-machine.h: Likewise.
1352         * sysdeps/i386/dl-machine.h: Likewise.
1353         * sysdeps/ia64/dl-machine.h: Likewise.
1354         * sysdeps/m68k/dl-machine.h: Likewise.
1355         * sysdeps/mips/dl-machine.h: Likewise.
1356         * sysdeps/powerpc/dl-machine.h: Likewise.
1357         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1358         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1359         * sysdeps/sh/dl-machine.h: Likewise.
1360         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1361         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1363 2001-08-23  Roland McGrath  <roland@frob.com>
1365         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
1367         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
1368         sysdeps/mach version.  Implement counting ("recursive") mutexes
1369         on top of cthreads mutexes.
1370         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
1372         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
1373         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
1374         (__libc_cleanup_region_start, __libc_cleanup_region_end,
1375         __libc_clean_end): Define these to call the cleanup function after
1376         normal exit when they're supposed to.
1378         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
1379         Take new first arg DOIT, a boolean saying whether to really install
1380         any cleanup handler.
1381         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
1382         (__libc_cleanup_end): Likewise.
1383         * sysdeps/generic/bits/libc-lock.h: Same changes.
1384         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
1385         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
1386         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
1387         Likewise.
1388         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
1389         * sysdeps/generic/bits/stdio-lock.h
1390         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
1392 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1394         * elf/ldconfig.c (search_dir): Remove stale symlinks.
1396 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1398         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
1399         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
1400         lookups in cache.
1401         (_dl_lookup_versioned_symbol): Likewise.
1402         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
1403         relocation lookup.
1404         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
1405         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
1406         (lookup_cache, lookup_cache_versioned): Add declarations.
1408 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
1410         * stdlib/tst-random.c (main): Swap parameters in fail call.
1411         Patch by Pete Bevin <pete@petebevin.com>.
1413 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1415         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
1417 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
1419         * malloc/obstack.c: Indent preprocessor directives.
1420         Patch by Jim Meyering <meyering@ascend.com>.
1422         * po/ja.po: Update from translation team.
1424 2001-08-23  Roland McGrath  <roland@frob.com>
1426         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
1428         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
1429         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
1431 2001-08-22  Roland McGrath  <roland@frob.com>
1433         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
1434         __libc_lock_define_recursive.
1435         * elf/dl-open.c: Don't declare it here any more.
1436         * elf/dl-close.c: Likewise.
1437         * elf/dl-lookup.c: Likewise.
1438         * elf/dl-iteratephdr.c: Likewise.
1439         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
1440         __libc_lock_unlock_recursive.
1441         * elf/dl-close.c (_dl_close): Likewise
1442         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
1443         * elf/dl-open.c (_dl_open): Likewise
1445         * sysdeps/generic/bits/libc-lock.h
1446         (__libc_lock_define_recursive): New macro.
1447         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
1448         (_IO_lock_lock): Use __libc_lock_lock_recursive.
1449         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
1451         * conform/conformtest.pl (checknamespace): Sort the output list.
1453         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
1454         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
1455         definitions conditional on [__USE_XOPEN].
1457         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
1458         these unconditionally, not only use [__USE_BSD], so as to match
1459         the sysdeps/unix/sysv/linux files.
1461 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1463         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
1464         avoid warnings.
1466         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
1467         DL_LOOKUP_ADDRESS.
1469 2001-08-22  Roland McGrath  <roland@frob.com>
1471         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
1472         conditionalization of sa_handler/sa_sigaction member types to
1473         match the sysdeps/unix/sysv/linux file.
1475 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1477         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
1478         symbol sizes a bit better.
1480         * sysdeps/ia64/strncpy.S: Complete rewrite.
1481         Contributed by Jakub Jelinek <jakub@redhat.com>.
1483         * string/stratcliff.c (main): Add strncpy test.
1485 2001-08-22  Roland McGrath  <roland@frob.com>
1487         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
1488         and don't declare unsetenv or _environ directly.
1489         (unsetenv): Return int, not void.  Use __environ instead of _environ.
1491 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
1493         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
1494         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
1495         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
1496         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
1497         test for cmsg struct size.
1499 2001-04-23  Paul Eggert  <eggert@twinsun.com>
1501         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
1502         Rename __argc to ___argc in prototypes to avoid compatibility
1503         problems with systems that reserve the identifier "__argc".
1504         Similarly for __argv.
1506 2001-08-21  Roland McGrath  <roland@frob.com>
1508         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
1510         * mach/Makefile (tests): Removed.
1511         * mach/hello.c: File removed.
1513 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1515         * po/sv.po: Update from translation team.
1517         * stdio-common/vfscanf.c: Fix handling of %l[].
1518         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
1520         * libio/Makefile (tests): Add tst-sscanf.
1521         * libio/tst-sscanf.c: New file.
1523         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
1524         * malloc/mtrace.c (tr_where): dli_sname always points to a
1525         non-empty string if != NULL.
1526         Reported by Tim Janik <timj@gtk.org>.
1528 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
1530         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
1531         buf.  Free resources on failure.
1532         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
1533         (makefd_xprt): Likewise.
1534         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
1535         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
1536         * sunrpc/auth_unix.c (authunix_create): Likewise.
1538 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
1540         * string/strnlen.c: Remove.
1541         * sysdeps/generic/strnlen.c: New.
1542         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
1544 2001-08-21  Roland McGrath  <roland@frob.com>
1546         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
1547         as a macro, not an extern inline function.
1549         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
1550         * Versions.def (libc): Add GLIBC_2.2.5 set.
1551         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
1552         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
1554 2001-08-20  Roland McGrath  <roland@frob.com>
1556         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
1557         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
1559 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1561         * string/bits/string2.h: Remove strnlen optimization here.
1562         * sysdeps/i386/i486/bits/string.h: Add it here.
1564 2001-08-21  Wolfram Gloger  <wg@malloc.de>
1566         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
1568 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1570         * po/gl.po: Update from translation team.
1572 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1574         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
1575         * misc/err.c (convert_and_print): Likewise.
1577         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
1578         function calls.
1580 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1582         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
1583         change of the gregset_t type.
1584         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1586 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1588         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
1590 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1592         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
1594         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
1596 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
1598         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
1599         before calling the cthreads initialization code.
1601 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1603         * argp/argp-help.c: Fix two problems introduced in last change.
1605         * include/dirent.h: Include <dirstream.h> first.
1607 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
1609         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
1611         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
1612         * sunrpc/xdr_rec.c: Likewise.
1613         * sunrpc/xdr_mem.c: Likewise.
1614         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
1615         * sunrpc/rpc_cmsg.c: Likewise.
1616         * sunrpc/getrpcport.c (getrpcport): Likewise.
1617         * sunrpc/clnt_simp.c (callrpc): Likewise.
1618         * sunrpc/clnt_gen.c (clnt_create): Likewise.
1619         * string/envz.c: Likewise.
1621         * po/ko.po: Update from translation team.
1623         * argp/argp-help.c: Handle wide oriented stderr stream.
1625 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
1627         * sysdeps/generic/strtol.c: Little optimizations.  Add some
1628         __builtin_expect.
1630         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
1632         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
1633         * wcsmbs/wcwidth.c (wcwdith): Likewise.
1634         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
1636         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
1638         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
1640         * time/time.h (struct timespec): Use __time_t for tv_sec element.
1642         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
1643         wchar_t for function declarations and defintions.
1645         * misc/sys/select.h: Define __need_time_t before including <time.h>.
1646         Define suseconds_t if it hasn't happened yet.
1648         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
1650         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
1652         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
1653         <stddef.h>.
1655         * conform/data/stddef.h-data: Remove wint_t.
1657         * conform/conformtest.pl: Change namespace test to take #undef
1658         lines into account.
1660         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
1662         * conform/data/sys/socket.h-data: Add sockatmark.
1664 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1666         * io/fts.c: Update from recent BSD source.
1668 2001-08-17  Roland McGrath  <roland@frob.com>
1670         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
1671         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
1672         Likewise.
1674 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1676         * locale/duplocale.c (__duplocale): Also initialize the special
1677         __ctype_* elements.
1679         * conform/data/netdb.h-data: Adjust gai_strerror return type.
1681 2001-08-17  Andreas Jaeger  <aj@suse.de>
1683         * misc/getpass.c: Include wchar.h for prototypes.
1684         * malloc/obstack.c: Likewise.
1686 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1688         * sunrpc/svc_simple.c (universal): Use __write instead of write.
1690         * wcsmbs/wcscoll.c: Also define __wcscoll.
1691         * include/wchar.h: Declare __wcscoll.
1693         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
1694         * libio/vwprintf.c: Likewise.
1695         * libio/wprintf.c: Likewise.
1697         * iconv/gconv_cache.c: Use __munmap instead of munmap.
1699 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
1701         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1702         instead of mbrtowc.
1703         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1704         wcslen, and __wcscoll instead of wcscoll.
1706         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
1708         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
1709         __getuid instead of getuid.
1711         * stdio-common/perror.c (perror): Use __close instead of close.
1712         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1713         * libio/freopen.c (freopen): Likewise.
1714         * libio/freopen64.c (freopen64): Likewise.
1716         * libio/tst-ungetwc2.c (main): Define str const.
1718         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
1719         * libio/fwprintf.c: Also define __fwprintf.
1720         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
1721         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
1722         * assert/assert-perr.c: Likewise.
1723         * assert/assert.c: Likewise.
1724         * gmon/gmon.c: Likewise.
1725         * inet/rcmd.c: Likewise.
1726         * malloc/obstack.c: Likewise.
1727         * misc/err.c: Likewise.
1728         * misc/error.c: Likewise.
1729         * misc/getpass.c: Likewise.
1730         * posix/getopt.c: Likewise.
1731         * resolv/res_hconf.c: Likewise.
1732         * stdio-common/perror.c: Likewise.
1733         * stdio-common/psignal.c: Likewise.
1734         * stdlib/fmtmsg.c: Likewise.
1735         * sunrpc/auth_unix.c: Likewise.
1736         * sunrpc/clnt_perr.c: Likewise.
1737         * sunrpc/clnt_tcp.c: Likewise.
1738         * sunrpc/clnt_udp.c: Likewise.
1739         * sunrpc/clnt_unix.c: Likewise.
1740         * sunrpc/svc_simple.c: Likewise.
1741         * sunrpc/svc_tcp.c: Likewise.
1742         * sunrpc/svc_udp.c: Likewise.
1743         * sunrpc/svc_unix.c: Likewise.
1744         * sunrpc/xdr.c: Likewise.
1745         * sunrpc/xdr_array.c: Likewise.
1746         * sunrpc/xdr_rec.c: Likewise.
1747         * sunrpc/xdr_ref.c: Likewise.
1748         * sysdeps/generic/wordexp.c: Likewise.
1750         * po/it.po: Update from translation team.
1752         * misc/err.c: Handle wide oriented stderr stream.
1754 2001-08-14  Tom Rix  <trix@redhat.com>
1756         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
1757         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
1759 2001-08-13  Tom Rix  <trix@redhat.com>
1761         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
1762         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
1763         and __intptr_t.
1765 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1767         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
1768         Store the access registers to the ucontext structure.
1769         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
1770         Likewise.
1772         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
1773         Load the access registers from the ucontext structure.
1774         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
1775         Likewise.
1777         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
1778         offsets to the new ucontext layout.
1779         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
1781         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
1782         of the ucontext structure.
1783         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1785 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
1787         * misc/error.c (error): Handle wide oriented stderr stream correctly.
1788         (error_at_line): Likewise.
1790         * stdio-common/perror.c (perror): Implement according to standard.
1791         The stream orientation must not be changed if the stream was not
1792         oriented before the call.
1793         * stdio-common/Makefile (tests): Add tst-perror.
1794         * stdio-common/tst-perror.c: New file.
1797 See ChangeLog.12 for earlier changes.