1 2001-11-12 Ulrich Drepper <drepper@redhat.com>
3 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
4 program header twice. Construct list with the needed information.
6 2001-11-10 Ulrich Drepper <drepper@redhat.com>
8 * po/ca.po: Update from translation team.
10 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
12 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
13 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
15 2001-11-10 Andreas Jaeger <aj@suse.de>
17 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
18 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
19 Contributed by Stephen L Moshier <moshier@mediaone.net>.
21 2001-11-09 Ulrich Drepper <drepper@redhat.com>
23 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
25 * elf/dl-load.c (is_dst): New function.
26 (_dl_dst_count): Use is_dst to check for DST variable.
27 (_dl_dst_substitute): Likewise.
29 2001-11-09 Roland McGrath <roland@frob.com>
31 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
32 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
33 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
34 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
35 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
36 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
37 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
38 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
39 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
40 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
41 * sysdeps/mach/hurd/powerpc/Dist: New file.
43 * hurd/privports.c (__get_privileged_ports):
44 Only contact the proc server if necessary for this call.
45 Suggested by Neal H Walfield <neal@cs.uml.edu>.
46 Check error return for mach_port_mod_refs.
48 2001-11-09 Andreas Schwab <schwab@suse.de>
50 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
52 2001-11-09 Ulrich Drepper <drepper@redhat.com>
54 * elf/dl-load.c (lose): Remove some unnecessary code. The new
55 object is always the last in the list.
56 (_dl_map_object_from_fd): Delete code to remove from object list
57 when DF_1_NOOPEN is seen. This is done in lose.
59 2001-11-08 Ulrich Drepper <drepper@redhat.com>
61 * elf/dl-object.c (_dl_new_object): Various small optimizations.
63 2001-11-07 Ulrich Drepper <drepper@redhat.com>
65 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
66 HWCAP_CHECK macro code.
68 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
69 Now returns MAP_FAILED on error.
70 * elf/rtld.c: Adjust caller.
71 * sysdeps/generic/dl-cache.c: Likewise.
72 * sysdeps/generic/ldsodefs.h: Adjust description.
74 * elf/dl-version.c (match_symbol): Optimize error handling for size.
75 (_dl_check_map_versions): Likewise.
77 2001-11-06 Ulrich Drepper <drepper@redhat.com>
79 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
80 _dl_signal_error directly, always use lose. Set fd to -1 after
82 (lose): Don't call close if fd == -1.
84 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
86 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
87 Also fix typo @code {mbsinit} to @code{mbsinit}.
89 2001-11-06 Ulrich Drepper <drepper@redhat.com>
91 * elf/dl-profile.c: Replace state variable with simple flag named
92 running. Remove commented-out code.
94 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
95 (_dl_init_paths): Likewise.
96 (_dl_map_object_from_fd): Likewise.
97 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
99 2001-11-06 Roland McGrath <roland@frob.com>
101 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
102 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
104 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
105 sysdeps/powerpc/elf/sysdep.h.
106 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
108 2001-11-05 Ulrich Drepper <drepper@redhat.com>
110 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
112 (process_envvars): Some more optimizations.
113 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
115 * elf/elf.h: Add dynamic tag definitions for prelinking.
117 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
118 Rewrite code to remove environment varables for SUID binaries.
119 Small optimization in LD_PROFILE handling.
120 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
122 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
124 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
126 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
127 strings. Change type of second parameter.
128 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
131 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
133 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
135 * manual/string.texi: Fix typos.
136 * manual/examples/argp-ex2.c: Likewise.
138 2001-11-05 Roland McGrath <roland@frob.com>
140 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
141 the more-specific unix/sysv/linux/powerpc file and breaks everything.
142 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
143 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
144 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
145 here, put under [__ELF__].
147 2001-11-05 Ulrich Drepper <drepper@redhat.com>
149 * manual/charset.texi: Extensive editing work.
150 * manual/nss.texi: Likewise.
151 Changes by Dennis Grace <dgrace@us.ibm.com>.
153 2001-11-04 Roland McGrath <roland@frob.com>
155 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
156 parameter to dir_mkfile.
158 2001-11-02 Jakub Jelinek <jakub@redhat.com>
160 * string/bits/string2.h (__strndup): If n is smaller than len, set
162 * string/tester.c (test_strndup): New function.
165 2001-11-01 Ulrich Drepper <drepper@redhat.com>
167 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
169 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
170 * scripts/cpp: New file.
172 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
173 for rtld_search_dirs content. Minor optimizations.
175 2001-10-31 Ulrich Drepper <drepper@redhat.com>
177 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
178 avoiding unnecessary duplication.
180 2001-10-31 Jakub Jelinek <jakub@redhat.com>
182 * elf/dl-load.c (_dl_map_object): If library was found using
183 LD_LIBRARY_PATH, don't try RUNPATH list.
185 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
187 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
188 Correct second argument of register_dump call.
189 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
192 2001-10-31 Ulrich Drepper <drepper@redhat.com>
194 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
196 * iconvdata/TESTS: Likewise.
197 * iconvdata/gconv-modules: Likewise.
198 * iconvdata/ibm1132.c: New file.
199 * iconvdata/ibm1132.h: New file.
200 * iconvdata/ibm1133.c: New file.
201 * iconvdata/ibm1133.h: New file.
202 * iconvdata/ibm1162.c: New file.
203 * iconvdata/ibm1162.h: New file.
204 * iconvdata/testdata/IBM1132: New file.
205 * iconvdata/testdata/IBM1132..UTF8: New file.
206 * iconvdata/testdata/IBM1133: New file.
207 * iconvdata/testdata/IBM1133..UTF8: New file.
208 * iconvdata/testdata/IBM1162: New file.
209 * iconvdata/testdata/IBM1162..UTF8: New file.
210 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
212 * string/string.h: Fix typo in comment.
213 * wcsmbs/wchar.h: Likewise.
215 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
217 * manual/getopt.texi (getopt_long, getopt_long_only): Include
218 const in type of longopts parameter.
220 2001-10-29 Andreas Jaeger <aj@suse.de>
222 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
224 2001-10-29 Kevin Ryde <user42@zip.com.au>
226 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
227 output, clarify `#' behaviour on 0.
228 (Floating-Point Conversions): Clarify that %g only uses %e when
229 the exponent would be greater than 1.
231 2001-10-28 Roland McGrath <roland@frob.com>
233 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
234 * sysdeps/mach/powerpc/machine-sp.h: New file.
235 * sysdeps/mach/powerpc/sysdep.h: New file.
236 * sysdeps/mach/powerpc/thread_state.h: New file.
238 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
239 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
240 expect to need the same thing on every platform.
242 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
243 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
245 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
246 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
247 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
248 Move all these assembly-related definitions to ...
249 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
251 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
252 by Peter Bruin <pjbruin@dds.nl>.
254 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
255 packing results for a `poll' call.
257 2001-10-26 Ulrich Drepper <drepper@redhat.com>
259 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
261 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
264 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
266 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
268 2001-10-24 H.J. Lu <hjl@gnu.org>
270 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
271 Use __BEGIN_DECLS/__END_DECLS around prototypes.
272 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
274 2001-10-21 Jim Meyering <meyering@lucent.com>
276 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
277 this code would end up calling gettext even in packages built
279 * posix/getopt.c (_): Likewise.
280 * posix/regex.c (_): Likewise.
282 2001-10-26 Ulrich Drepper <drepper@redhat.com>
284 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
286 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
287 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
289 2001-10-19 Jakub Jelinek <jakub@redhat.com>
291 * misc/sys/cdefs.h (__attribute_used__): Define.
292 * elf/rtld.c (_dl_start): Add __attribute_used__.
293 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
295 2001-10-25 Andreas Schwab <schwab@suse.de>
297 * stdlib/a64l.c: Expect least significant digit first.
298 * stdlib/l64a.c: Produce least significant digit first.
299 * stdlib/Makefile (tests): Add test-a64l.
300 * stdlib/test-a64l.c: New file.
301 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
303 2001-10-21 Ulrich Drepper <drepper@redhat.com>
305 * po/sk.po: Update from translation team.
307 2001-10-18 Ulrich Drepper <drepper@redhat.com>
309 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
311 2001-10-18 Andreas Schwab <schwab@suse.de>
313 * math/libm-test.inc (print_ulps): Print ulp values rounded to
315 (print_function_ulps): Likewise.
316 (print_complex_function_ulps): Likewise.
317 (print_max_error): Likewise.
318 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
320 2001-10-16 Andreas Schwab <schwab@suse.de>
322 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
325 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
326 BSD_SETJMP or BSD__SETJMP is defined, resp.
327 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
328 a tail call to __sigsetjmp that would require extending the
330 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
331 * sysdeps/m68k/bsd-setjmp.S: Deleted.
332 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
333 Reported by Jes Sorensen <jes@trained-monkey.org>.
335 2001-10-16 Andreas Jaeger <aj@suse.de>
337 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
338 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
341 2001-10-15 Ulrich Drepper <drepper@redhat.com>
343 * po/ca.po: New file. Contributed by the translation team.
345 2001-10-15 Ralf Baechle <ralf@gnu.org>
347 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
348 a varargs prototype. Remove dependency from kernel header files.
350 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
351 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
353 2001-10-14 Ulrich Drepper <drepper@redhat.com>
355 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
356 to generate hexadecimal identifier.
357 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
359 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
361 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
363 2001-10-14 Ulrich Drepper <drepper@redhat.com>
365 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
366 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
367 Contributed by Stephen L Moshier <moshier@mediaone.net>.
369 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
370 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
371 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
372 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
373 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
374 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
376 * timezone/africa: Update from tzdata2001d.
377 * timezone/asia: Likewise.
378 * timezone/australasia: Likewise.
379 * timezone/backward: Likewise.
380 * timezone/europe: Likewise.
381 * timezone/leapseconds: Likewise.
382 * timezone/northamerica: Likewise.
383 * timezone/southamerica: Likewise.
384 * timezone/zone.tab: Likewise.
386 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
388 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
389 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
391 2001-10-12 Ulrich Drepper <drepper@redhat.com>
393 * elf/elf.h (PT_TLS): New definition.
395 2001-10-10 Jeff Bailey <jbailey@nisa.net>
397 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
400 2001-10-07 Roland McGrath <roland@frob.com>
402 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
404 2001-10-10 Ulrich Drepper <drepper@redhat.com>
406 * elf/elf.h: Add more ELFOSABI_* constants.
408 2001-10-04 Ben Collins <bcollins@debian.org>
410 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
411 decleration of __need_wchar_t.
413 2001-10-03 Jakub Jelinek <jakub@redhat.com>
415 * string/bits/string2.h (__strsep_g): Add prototype.
417 * string/Versions (__strsep): Remove.
418 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
420 2001-10-07 Ulrich Drepper <drepper@redhat.com>
422 * manua/llio.texi: Clarify file references added by mmap.
423 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
425 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
427 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
428 Add sc_loadrs and sc_rbs_bas to match current kernel.
430 2001-09-27 Jakub Jelinek <jakub@redhat.com>
432 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
434 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
436 2001-09-27 Jakub Jelinek <jakub@redhat.com>
438 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
439 object has been bumped because of relocation dependency, avoid
440 duplicates in l_scope.
441 (show_scope): Fix typos.
442 * elf/Makefile: Add rules to build and run reldep6.
443 * elf/reldep6.c: New file.
444 * elf/reldep6mod0.c: New file.
445 * elf/reldep6mod1.c: New file.
446 * elf/reldep6mod2.c: New file.
447 * elf/reldep6mod3.c: New file.
448 * elf/reldep6mod4.c: New file.
450 2001-09-26 Jakub Jelinek <jakub@redhat.com>
452 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
454 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
455 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
456 for non-lazy binding. Fix .plt[32768+] handling.
457 (elf_machine_plt_value): Don't add addend.
458 (elf_machine_rela): Call sparc64_fixup_plt instead of
459 elf_machine_fixup_plt.
460 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
461 dynamic linker at 0xfffff800XXXXXXXX.
463 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
465 2001-09-28 Ulrich Drepper <drepper@redhat.com>
467 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
469 2001-09-25 Jakub Jelinek <jakub@redhat.com>
471 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
472 declare __cmsg_data field if its size would be bigger than 0.
473 (CMSG_DATA): Adjust accordingly.
474 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
475 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
476 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
477 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
478 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
479 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
480 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
482 2001-09-25 Ulrich Drepper <drepper@redhat.com>
484 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
485 * iconvdata/testdata/IBM1160: New file.
486 * iconvdata/testdata/IBM1160..UTF8: New file.
487 * iconvdata/testdata/IBM1161: New file.
488 * iconvdata/testdata/IBM1161..UTF8: New file.
489 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
491 2001-09-24 Ulrich Drepper <drepper@redhat.com>
493 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
494 UL_SETFSIZE computations better.
496 * rt/Makefile: Remove use of filter for librt again.
498 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
499 UL_SETFSIZE computations better.
501 * string/Versions: Export __strsep for GLIBC_2.2.5.
502 * string/bits/string2.h: Define all __STRING_INLINE functions if
503 _FORCE_INLINES is defined.
504 Use int instead of char of parameter types.
505 (__strsep): Don't use __strsep_g. Don't define it.
506 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
507 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
509 (__stpcpy_a_small): Renamed from __stpcpy_small.
510 (__strcspn_c1): Don't define if _FORCE_INLINES.
511 (__strspn_c1): Likewise.
513 2001-09-22 Ben Collins <bcollins@debian.org>
515 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
516 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
517 * sysdeps/ia64/bits/sigaction.h: Likewise.
518 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
520 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
522 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
524 2001-09-24 Jakub Jelinek <jakub@redhat.com>
526 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
528 2001-09-24 Ulrich Drepper <drepper@redhat.com>
530 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
532 2001-09-20 H.J. Lu <hjl@gnu.org>
534 * include/dlfcn.h (__RTLD_SPROF): New definiton.
535 * elf/dl-open.c (dl_open_worker): Return immediately after loading
537 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
538 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
540 2001-09-20 H.J. Lu <hjl@gnu.org>
542 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
545 2001-09-22 Ulrich Drepper <drepper@redhat.com>
547 * nss/getent.c: Accept -s parameter to overwrite rules in
548 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
550 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
551 with as many ".0" as necessary to form a complete address
552 inet_network understands.
554 * nss/getent.c: Various cleanups. Use simpler and fewer function
557 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
559 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
561 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
563 2001-09-22 Ulrich Drepper <drepper@redhat.com>
565 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
567 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
568 * iconvdata/ibm1160.c: New file.
569 * iconvdata/ibm1160.h: New file.
570 * iconvdata/ibm1161.c: New file.
571 * iconvdata/ibm1161.h: New file.
572 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
574 2001-09-19 Jakub Jelinek <jakub@redhat.com>
576 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
577 difference between base address and first PT_LOAD's virtual address,
578 not the base address.
580 2001-09-11 Tom Rix <trix@redhat.com>
582 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
583 ifdef for __getopt_clean_environment.
584 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
586 2001-09-22 Andreas Jaeger <aj@suse.de>
588 * elf/reldep4.c (main): Add proper prototype to fix warning.
590 * elf/reldep5.c (main): Remove unused variable.
592 * math/math_private.h: Add prototypes.
594 2001-09-21 Andreas Jaeger <aj@suse.de>
596 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
597 * sysdeps/x86_64/Dist: New file.
598 * sysdeps/x86_64/soft-fp/Dist: New file.
600 * sysdeps/gnu/Dist: Remove eval.c.
602 2001-09-20 Ulrich Drepper <drepper@redhat.com>
604 * malloc/memusage.c (realloc): Don't count already allocated
606 (me): Always use dlsym() to find the real implementations.
608 * malloc/memusage.sh: Make -n option actually do something.
610 2001-09-20 Andreas Jaeger <aj@suse.de>
612 * elf/elf.h (R_390_NUM): Correct value.
614 * Versions.def: Add missing versions 2.2.3 for libthread_db and
617 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
618 for x86-64, install x86-64 into */lib64.
620 * shlib-versions: Add x86-64.
622 * elf/elf.h: Add x86-64 relocations.
624 2001-09-19 Ulrich Drepper <drepper@redhat.com>
626 * po/fr.po: Update from translation team.
628 2001-09-19 Andreas Jaeger <aj@suse.de>
630 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
631 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
632 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
633 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
634 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
635 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
636 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
637 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
638 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
639 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
640 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
641 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
642 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
643 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
644 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
645 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
646 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
647 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
648 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
649 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
650 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
651 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
652 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
653 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
654 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
655 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
656 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
657 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
658 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
659 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
660 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
661 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
662 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
663 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
664 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
665 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
666 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
667 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
668 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
669 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
670 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
671 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
672 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
673 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
674 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
675 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
676 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
677 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
678 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
679 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
680 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
681 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
682 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
683 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
684 * sysdeps/unix/x86_64/sysdep.S: New file.
685 * sysdeps/unix/x86_64/sysdep.h: New file.
686 * sysdeps/x86_64/Implies: New file.
687 * sysdeps/x86_64/Makefile: New file.
688 * sysdeps/x86_64/Versions: New file.
689 * sysdeps/x86_64/__longjmp.S: New file.
690 * sysdeps/x86_64/abort-instr.h: New file.
691 * sysdeps/x86_64/atomicity.h: New file.
692 * sysdeps/x86_64/bits/endian.h: New file.
693 * sysdeps/x86_64/bits/setjmp.h: New file.
694 * sysdeps/x86_64/bits/string.h: New file.
695 * sysdeps/x86_64/bp-asm.h: New file.
696 * sysdeps/x86_64/bsd-_setjmp.S: New file.
697 * sysdeps/x86_64/bsd-setjmp.S: New file.
698 * sysdeps/x86_64/dl-machine.h: New file.
699 * sysdeps/x86_64/elf/initfini.c: New file.
700 * sysdeps/x86_64/elf/start.S: New file.
701 * sysdeps/x86_64/ffs.c: New file.
702 * sysdeps/x86_64/ffsll.c: New file.
703 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
704 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
705 * sysdeps/x86_64/fpu/e_acosl.c: New file.
706 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
707 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
708 * sysdeps/x86_64/fpu/e_expl.c: New file.
709 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
710 * sysdeps/x86_64/fpu/e_log10l.S: New file.
711 * sysdeps/x86_64/fpu/e_log2l.S: New file.
712 * sysdeps/x86_64/fpu/e_logl.S: New file.
713 * sysdeps/x86_64/fpu/e_powl.S: New file.
714 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
715 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
716 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
717 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
718 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
719 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
720 * sysdeps/x86_64/fpu/fegetenv.c: New file.
721 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
722 * sysdeps/x86_64/fpu/fegetround.c: New file.
723 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
724 * sysdeps/x86_64/fpu/fesetenv.c: New file.
725 * sysdeps/x86_64/fpu/fesetround.c: New file.
726 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
727 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
728 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
729 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
730 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
731 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
732 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
733 * sysdeps/x86_64/fpu/s_atanl.c: New file.
734 * sysdeps/x86_64/fpu/s_cosl.S: New file.
735 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
736 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
737 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
738 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
739 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
740 * sysdeps/x86_64/fpu/s_logbl.c: New file.
741 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
742 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
743 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
744 * sysdeps/x86_64/fpu/s_rintl.c: New file.
745 * sysdeps/x86_64/fpu/s_significandl.c: New file.
746 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
747 * sysdeps/x86_64/fpu/s_sinl.S: New file.
748 * sysdeps/x86_64/fpu/s_tanl.S: New file.
749 * sysdeps/x86_64/gmp-mparam.h: New file.
750 * sysdeps/x86_64/hp-timing.c: New file.
751 * sysdeps/x86_64/hp-timing.h: New file.
752 * sysdeps/x86_64/htonl.S: New file.
753 * sysdeps/x86_64/memusage.h: New file.
754 * sysdeps/x86_64/setjmp.S: New file.
755 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
756 * sysdeps/x86_64/stackinfo.h: New file.
757 * sysdeps/x86_64/sysdep.h: New file.
758 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
760 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
763 2001-09-18 Ulrich Drepper <drepper@redhat.com>
765 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
766 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
768 2001-09-18 Andreas Schwab <schwab@suse.de>
770 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
771 list, now that l_scope is a pointer.
773 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
776 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
778 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
779 (elf_machine_rela_relative): Add a missing declaration.
781 2001-09-18 Jakub Jelinek <jakub@redhat.com>
783 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New.
784 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New.
785 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
788 2001-09-18 Ulrich Drepper <drepper@redhat.com>
790 * elf/ldd.bash.in: Update copyright message.
792 2001-09-17 H.J. Lu <hjl@gnu.org>
794 * hurd/hurdmalloc.c (bcopy): Removed.
795 (realloc): Replace bcopy with memcpy.
796 * hurd/path-lookup.c (file_name_path_scan): Likewise.
797 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
798 * sunrpc/rpcinfo.c (pmapdump): Likewise.
800 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
801 (gethostbyaddr): Likewise.
802 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
804 2001-09-18 Ulrich Drepper <drepper@redhat.com>
806 * sysdeps/gnu/eval.c: Removed.
808 2001-09-18 Andreas Jaeger <aj@suse.de>
810 * sysdeps/i386/fpu/s_logbl.S: Move to ...
811 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
813 * sysdeps/i386/fpu/s_rintl.S: Move to ...
814 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
816 * sysdeps/i386/fpu/s_significandl.S: Move to ...
817 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
819 2001-09-16 Ulrich Drepper <drepper@redhat.com>
821 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
824 2001-09-14 H.J. Lu <hjl@gnu.org>
826 * sysdeps/mips/fpu/libm-test-ulps: Updated.
828 2001-09-14 Ulrich Drepper <drepper@redhat.com>
830 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
831 Patch by Florian La Roche <laroche@redhat.com>.
833 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
835 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
838 2001-09-14 Andreas Schwab <schwab@suse.de>
840 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
841 Sumner <bls@sgi.com>.
842 * posix/execlp.c: Likewise.
844 2001-09-13 Jakub Jelinek <jakub@redhat.com>
846 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
847 is already found earlier in the search scope.
849 2001-09-12 Jakub Jelinek <jakub@redhat.com>
851 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
854 2001-09-13 Ulrich Drepper <drepper@redhat.com>
856 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
858 2001-09-12 Ulrich Drepper <drepper@redhat.com>
860 * config.h.in: Enforce optimization to be used.
861 * Makeconfig (preprocess-versions): Define ASSEMBLER.
862 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
863 * posix/Makefile (annexc-CFLAGS): Define to -O.
864 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
866 2001-09-11 Ulrich Drepper <drepper@redhat.com>
868 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
869 Patch by Stephan Kulow.
871 2001-09-08 Ben Collins <bcollins@debian.org>
873 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
874 usage of RESOLVE() (r_type, not reloc->r_type).
876 2001-09-08 Ulrich Drepper <drepper@redhat.com>
878 * elf/dl-object.c: Avoid allocating extra memory block for name.
879 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
880 allocated separately.
881 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
883 2001-09-08 H.J. Lu <hjl@gnu.org>
885 * po/zh_TW.po: Fix a typo.
887 2001-09-07 Tom Rix <trix@redhat.com>
889 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
891 2001-08-26 Tom Rix <trix@redhat.com>
893 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
894 command line options.
895 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
896 * sysdeps/unix/sysv/aix/start.c: Removed.
897 * sysdeps/unix/sysv/aix/start-libc.c: New file.
898 * sysdeps/unix/sysv/aix/init-first.c: New file.
899 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
901 2001-09-08 Ben Collins <bcollins@debian.org>
903 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
904 * sysdeps/generic/dl-machine.h: Likewise.
905 * sysdeps/hppa/dl-fptr.c: Likewise.
906 * sysdeps/ia64/dl-fptr.c: Likewise.
907 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
908 * sysdeps/mips/dl-machine.h: Likewise.
909 * sysdeps/mips/mips64/dl-machine.h: Likewise.
910 * sysdeps/powerpc/dl-machine.c: Likewise.
912 2001-09-07 Ben Collins <bcollins@debian.org>
914 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
916 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
918 2001-09-08 Ulrich Drepper <drepper@redhat.com>
920 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
921 dependencies if necessary.
923 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
924 loaded directly) determine length if l_initfini list by iterating
925 over its elements. Minor optimizations.
926 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
927 for dependency objects.
928 If object was already loaded check whether any of the dependencies
929 is already on the relocation dependency list. If yes, remove the
930 latter. Minor optimizations.
931 * elf/dl-lookup.c (add_dependency): Add check for self reference of
932 maps here. Search l_initfini list only if the object was loaded
933 directly and not only as a dependency.
934 (_dl_lookup_symbol): Add relocation dependency also if object
935 is not in global scope. Remove test for self-reference here.
936 (_dl_lookup_versioned_symbol): Likewise.
937 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
938 element of first name record.
939 * elf/loadtest.c: Add some more test to recognize early if an object
941 * elf/Makefile: Add rules to build and run reldep5.
942 * elf/reldep5.c: New file.
943 * elf/reldepmod5.c: New file.
944 * elf/reldepmod6.c: New file.
946 * elf/reldep2.c: Fix typo.
948 2001-09-07 Ulrich Drepper <drepper@redhat.com>
950 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
951 elements. Change l_scope to be a pointer only.
952 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
953 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
954 here add searchlist of newly open file to the dependency's scope.
955 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
956 only searchlist from its scope. Free own scope array if necessary.
957 * elf/Makefile (tests): Add dblload and dblunload now.
959 2001-09-06 Andreas Jaeger <aj@suse.de>
961 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
964 2001-09-05 Ulrich Drepper <drepper@redhat.com>
966 * elf/Makefile: Add rules to build new tests. Don't run them yet since
968 * elf/dblload.c: New file.
969 * elf/dblloadmod1.c: New file.
970 * elf/dblloadmod2.c: New file.
971 * elf/dblloadmod3.c: New file.
972 * elf/dblunload.c: New file.
974 2001-09-04 Richard Henderson <rth@redhat.com>
976 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
977 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
979 2001-09-04 Ulrich Drepper <drepper@redhat.com>
981 Correct very misleading message for error in failed runtime relocation.
982 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
984 (_dl_signal_cerror): Likewise.
985 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
986 * elf/dl-close.c: Likewise.
987 * elf/dl-deps.c: Likewise.
988 * elf/dl-load.c: Likewise.
989 * elf/dl-lookup.c: Likewise.
990 * elf/dl-open.c: Likewise.
991 * elf/dl-reloc.c: Likewise.
992 * elf/dl-sym.c: Likewise.
993 * elf/dl-version.c: Likewise.
994 * sysdeps/generic/dl-sysdep.c: Likewise.
996 2001-09-04 Jakub Jelinek <jakub@redhat.com>
998 * iconv/strtab.c (strtabinit): Initialize null Strent.
999 (newstring): Move len == 0 handling...
1000 (strtabadd): ...here.
1001 If len == 1, return null Strent.
1002 When inserting a suffix of an existing string, check if
1003 it is not equal to some suffix already recorded.
1004 Copy left and right members over if adding longer string.
1006 2001-09-04 Jakub Jelinek <jakub@redhat.com>
1008 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
1010 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
1011 (__syscall_gethostname): Add prototype.
1013 2001-09-04 Ulrich Drepper <drepper@redhat.com>
1015 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
1017 2001-09-02 Ulrich Drepper <drepper@redhat.com>
1019 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
1021 2001-08-27 Roland McGrath <roland@frob.com>
1023 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
1024 short, copy that much into NAME anyway before returning error.
1026 2001-09-01 Richard Henderson <rth@redhat.com>
1028 * sysdeps/alpha/elf/Dist: Remove file.
1029 * sysdeps/alpha/elf/Makefile: Remove file.
1030 * sysdeps/alpha/elf/crtbegin.S: Remove file.
1031 * sysdeps/alpha/elf/crtend.S: Remove file.
1032 * sysdeps/alpha/elf/initfini.c: New file.
1034 2001-09-01 Mark Kettenis <kettenis@gnu.org>
1036 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
1037 * iconv/tst-iconv3.c: Likewise.
1039 2001-09-01 Jakub Jelinek <jakub@redhat.com>
1041 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
1043 2001-09-01 Ulrich Drepper <drepper@redhat.com>
1045 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
1047 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
1048 * iconv/iconv_prog.c (insert_cache): New function.
1049 (print_known_names): If cache is used call insert_cache to use the
1050 information from the cache [PR libc/2509].
1052 2001-08-31 Ulrich Drepper <drepper@redhat.com>
1054 * time/strptime.c (strptime_internal): Recognize 'l' format and
1055 handle it like 'I' for symmetry with strftime.
1057 2001-08-31 Richard Henderson <rth@redhat.com>
1059 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
1060 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
1061 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
1062 (print_statistics): Make scalar unsigned long long.
1063 * sysdeps/alpha/hp-timing.h: New file.
1065 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1067 * stdio-common/perror.c (perror): Save errno early, pass it
1068 down to perror_internal.
1069 (perror_internal): Add errnum argument.
1071 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1073 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
1074 Don't add old memory content for R_ALPHA_REFQUAD.
1076 2001-08-30 Ulrich Drepper <drepper@redhat.com>
1078 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
1081 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
1082 instead of open, __close instead of close, __getpagesize instead
1085 * string/argz-stringify.c (__argz_stringify): Use __strnlen
1087 * include/string.h (strndupa): Redefine here to use __strnlen
1089 * string/strndup.c (__strndup): Use __strnlen not strnlen.
1091 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
1094 2001-08-30 Jakub Jelinek <jakub@redhat.com>
1096 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
1097 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
1098 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1099 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
1100 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
1101 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
1102 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
1104 2001-08-30 Ulrich Drepper <drepper@redhat.com>
1106 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
1108 2001-08-30 Andreas Jaeger <aj@suse.de>
1110 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
1111 contributed Stephen L Moshier.
1113 2001-08-30 Jakub Jelinek <jakub@redhat.com>
1115 * sunrpc/etc.rpc (sgi_fam): Add.
1117 2001-08-30 Ulrich Drepper <drepper@redhat.com>
1119 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
1121 2001-08-29 Ulrich Drepper <drepper@redhat.com>
1123 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
1124 first is from a previous call.
1125 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
1127 2001-08-29 Andreas Schwab <schwab@suse.de>
1129 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
1131 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1133 * config.make.in (INSTALL_SCRIPT): Define.
1134 * Makeconfig (INSTALL_SCRIPT): Define.
1135 * Makerules (do-install-script): New macro to install scripts using
1137 (install-bin-script): New rule to install scripts with
1139 (install-bin-script-nosubdir): New rule.
1140 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
1141 (distinfo-vars): Add $(install-bin-script).
1142 * Rules (others): Likewise.
1143 * Makefile (glibcbug): Install with install-bin-script.
1144 * debug/Makefile (xtrace): Likewise.
1145 (catchsegv): Likewise.
1146 * elf/Makefile (ldd): Likewise.
1147 * malloc/Makefile (mtrace): Likewise.
1148 * timezone/Makefile (tzselect): Likewise.
1150 2001-08-29 H.J. Lu <hjl@gnu.org>
1152 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
1153 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
1154 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
1156 2001-08-29 Andreas Schwab <schwab@suse.de>
1158 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
1160 2001-08-28 H.J. Lu <hjl@gnu.org>
1162 * Makeconfig (combreloc-LDFLAGS): New variable.
1163 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
1164 * config.make.in (have-z-combreloc): New variable.
1165 * configure.in: Substitute libc_cv_z_combreloc.
1167 2001-08-29 Ulrich Drepper <drepper@redhat.com>
1169 * po/sv.po: Update from translation team.
1170 * po/fr.po: Likewise.
1171 * po/da.po: Likewise.
1173 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1175 * Makerules: Fix a typo: MD% -> MD5.
1177 2001-08-28 Ulrich Drepper <drepper@redhat.com>
1179 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
1180 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
1182 2001-08-28 Andreas Jaeger <aj@suse.de>
1184 * manual/libc-texinfo.sh: Add entry about free manuals.
1186 * manual/contrib.texi (Contributors): Fix cross reference.
1188 * manual/libc.texinfo (Copying): Include freemanuals.
1190 * manual/Makefile (appendices): Add freemanuals.
1192 * manual/freemanuals.texi: New file.
1193 Patch by Brian Youmans <3diff@gnu.org>.
1195 * manual/libm-err-tab.pl: Pretty print more platforms, print a
1198 * manual/math.texi (Errors in Math Functions): Fix grammar, start
1199 table on separate page.
1200 Patch by Brian Youmans <3diff@gnu.org>.
1202 2001-08-27 Ulrich Drepper <drepper@redhat.com>
1204 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
1205 the connection went down after we first used it try to connect
1206 again and resend the message before printing to the console.
1207 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
1209 2001-08-27 Jakub Jelinek <jakub@redhat.com>
1211 * string/tst-strlen.c (main): Test strnlen (, -1) too.
1212 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
1215 2001-08-27 Ulrich Drepper <drepper@redhat.com>
1217 * iconv/strtab.c (searchstring): Use correct length for comparison.
1218 (strtabadd): Account total size correct if new string has old string as
1221 2001-08-27 Jakub Jelinek <jakub@redhat.com>
1223 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
1225 2001-08-27 Andreas Jaeger <aj@suse.de>
1227 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
1229 * math/libm-test.inc (j0_test): Add extra tests.
1230 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
1231 not x, in Hankel approximation.
1232 Patches by Stephen L Moshier.
1234 2001-08-26 Ulrich Drepper <drepper@redhat.com>
1236 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
1239 * configure.in: Fix test for .rela.dyn section.
1241 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
1243 2001-08-26 Jakub Jelinek <jakub@redhat.com>
1245 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
1246 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
1247 Pass type_class to _dl_lookup_*.
1248 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
1249 Pass around just type_class instead of noexec, noplt pair.
1250 (_dl_lookup_versioned_symbol): Likewise.
1251 (_dl_lookup_symbol_skip): Pass around just type_class instead of
1253 (_dl_lookup_versioned_symbol_skip): Likewise.
1254 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
1255 * elf/do-lookup.h (do_lookup): Likewise.
1256 * include/link.h (struct link_map): Replace noexec and noplt fields
1257 in l_lookup_cache with type_class field.
1258 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
1259 ELF_RTYPE_CLASS_COPY): Define.
1260 Adjust prototypes for _dl_lookup_symbol and
1261 _dl_lookup_versioned_symbol.
1262 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
1263 elf_machine_lookup_noexec_p): Remove.
1264 (elf_machine_type_class): Define.
1265 * sysdeps/arm/dl-machine.h: Likewise.
1266 * sysdeps/hppa/dl-machine.h: Likewise.
1267 * sysdeps/cris/dl-machine.h: Likewise.
1268 * sysdeps/i386/dl-machine.h: Likewise.
1269 * sysdeps/ia64/dl-machine.h: Likewise.
1270 * sysdeps/m68k/dl-machine.h: Likewise.
1271 * sysdeps/mips/mips64/dl-machine.h: Likewise.
1272 * sysdeps/mips/dl-machine.h: Likewise.
1273 * sysdeps/powerpc/dl-machine.h: Likewise.
1274 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1275 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1276 * sysdeps/sh/dl-machine.h: Likewise.
1277 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1278 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1280 2001-08-26 Ulrich Drepper <drepper@redhat.com>
1282 * manual/message.texi (Advanced gettext functions): Change
1283 description of plural forms for Slovak.
1284 Reported by Marcel Telka <marcel@telka.sk>.
1286 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
1287 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
1289 2001-08-26 Jakub Jelinek <jakub@redhat.com>
1291 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
1292 typo. Patch by Florian La Roche <laroche@redhat.com>.
1294 2001-08-26 Ulrich Drepper <drepper@redhat.com>
1296 * include/link.h (struct link_map): Add l_lookup_cache element.
1297 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
1298 (RESOLVE_MAP): Likewise.
1299 (_dl_relocate_object): Remove cache initialization.
1300 * elf/dl-lookup.c: Rip out cache handling code.
1301 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
1304 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
1305 remove some __builtin_expect.
1306 (_dl_lookup_versioned_symbol): Likewise.
1308 * config.h.in: Add HAVE_Z_COMBRELOC.
1309 * configure.in: Add test for -z combreloc.
1311 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
1312 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
1313 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
1314 case to almost no code.
1316 2001-08-25 Ulrich Drepper <drepper@redhat.com>
1318 * po/tr.po: Update from translation team.
1320 2001-08-24 Andreas Jaeger <aj@suse.de>
1322 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
1325 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1327 * elf/rtld.c (print_statistics): Printf % after percent values.
1328 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
1330 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
1331 don't have to compute the hash value and initialize current_value.
1332 Move reference_name variable to where it is needed.
1333 (_dl_lookup_versioned_symbol): Likewise.
1335 2001-08-24 Roland McGrath <roland@frob.com>
1337 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
1338 Just test that strerror returns non-null for a few errno codes.
1340 2001-08-23 Roland McGrath <roland@frob.com>
1342 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
1343 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
1345 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
1347 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
1350 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1352 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
1355 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
1356 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
1358 * elf/rtld.c: Include <sys/param.h>.
1359 * elf/dl-reloc.c: Likewise.
1361 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1363 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
1364 empty to prevent junk from being generated.
1365 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
1367 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1369 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
1370 records. Rename endrel to relative, initialize it to r, and use it
1371 in elf_machine_rel_relative calls. Point r after relative relocs.
1373 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1375 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
1378 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1380 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
1381 necessary. Undefine newly defined macros at the end.
1382 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
1383 Rename from elf_machine_rel_relative.
1384 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
1385 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
1386 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
1387 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
1389 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
1391 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
1393 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
1395 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
1396 Likewise. Fix argument types.
1397 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
1398 Likewise. Fix argument types.
1399 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
1401 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
1402 ElfW(Rel) in argument.
1403 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
1406 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1408 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
1410 2001-08-24 Andreas Jaeger <aj@suse.de>
1412 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
1413 Stephen L Moshier <moshier@mediaone.net>.
1415 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1417 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
1418 first if RELCOUNT is set.
1420 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
1421 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
1422 elf_machine_rel_relative.
1423 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
1424 Minor optimizations.
1425 * sysdeps/arm/dl-machine.h: Likewise.
1426 * sysdeps/cris/dl-machine.h: Likewise.
1427 * sysdeps/hppa/dl-machine.h: Likewise.
1428 * sysdeps/i386/dl-machine.h: Likewise.
1429 * sysdeps/ia64/dl-machine.h: Likewise.
1430 * sysdeps/m68k/dl-machine.h: Likewise.
1431 * sysdeps/mips/dl-machine.h: Likewise.
1432 * sysdeps/powerpc/dl-machine.h: Likewise.
1433 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1434 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1435 * sysdeps/sh/dl-machine.h: Likewise.
1436 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1437 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1439 2001-08-23 Roland McGrath <roland@frob.com>
1441 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
1443 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
1444 sysdeps/mach version. Implement counting ("recursive") mutexes
1445 on top of cthreads mutexes.
1446 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
1448 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
1449 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
1450 (__libc_cleanup_region_start, __libc_cleanup_region_end,
1451 __libc_clean_end): Define these to call the cleanup function after
1452 normal exit when they're supposed to.
1454 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
1455 Take new first arg DOIT, a boolean saying whether to really install
1456 any cleanup handler.
1457 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
1458 (__libc_cleanup_end): Likewise.
1459 * sysdeps/generic/bits/libc-lock.h: Same changes.
1460 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
1461 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
1462 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
1464 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
1465 * sysdeps/generic/bits/stdio-lock.h
1466 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
1468 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1470 * elf/ldconfig.c (search_dir): Remove stale symlinks.
1472 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1474 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
1475 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
1477 (_dl_lookup_versioned_symbol): Likewise.
1478 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
1480 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
1481 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
1482 (lookup_cache, lookup_cache_versioned): Add declarations.
1484 2001-08-23 Ulrich Drepper <drepper@redhat.com>
1486 * stdlib/tst-random.c (main): Swap parameters in fail call.
1487 Patch by Pete Bevin <pete@petebevin.com>.
1489 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1491 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
1493 2001-08-23 Ulrich Drepper <drepper@redhat.com>
1495 * malloc/obstack.c: Indent preprocessor directives.
1496 Patch by Jim Meyering <meyering@ascend.com>.
1498 * po/ja.po: Update from translation team.
1500 2001-08-23 Roland McGrath <roland@frob.com>
1502 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
1504 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
1505 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
1507 2001-08-22 Roland McGrath <roland@frob.com>
1509 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
1510 __libc_lock_define_recursive.
1511 * elf/dl-open.c: Don't declare it here any more.
1512 * elf/dl-close.c: Likewise.
1513 * elf/dl-lookup.c: Likewise.
1514 * elf/dl-iteratephdr.c: Likewise.
1515 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
1516 __libc_lock_unlock_recursive.
1517 * elf/dl-close.c (_dl_close): Likewise
1518 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
1519 * elf/dl-open.c (_dl_open): Likewise
1521 * sysdeps/generic/bits/libc-lock.h
1522 (__libc_lock_define_recursive): New macro.
1523 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
1524 (_IO_lock_lock): Use __libc_lock_lock_recursive.
1525 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
1527 * conform/conformtest.pl (checknamespace): Sort the output list.
1529 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
1530 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
1531 definitions conditional on [__USE_XOPEN].
1533 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
1534 these unconditionally, not only use [__USE_BSD], so as to match
1535 the sysdeps/unix/sysv/linux files.
1537 2001-08-22 Ulrich Drepper <drepper@redhat.com>
1539 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
1542 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
1545 2001-08-22 Roland McGrath <roland@frob.com>
1547 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
1548 conditionalization of sa_handler/sa_sigaction member types to
1549 match the sysdeps/unix/sysv/linux file.
1551 2001-08-22 Ulrich Drepper <drepper@redhat.com>
1553 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
1554 symbol sizes a bit better.
1556 * sysdeps/ia64/strncpy.S: Complete rewrite.
1557 Contributed by Jakub Jelinek <jakub@redhat.com>.
1559 * string/stratcliff.c (main): Add strncpy test.
1561 2001-08-22 Roland McGrath <roland@frob.com>
1563 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
1564 and don't declare unsetenv or _environ directly.
1565 (unsetenv): Return int, not void. Use __environ instead of _environ.
1567 2001-08-01 Mark Kettenis <kettenis@gnu.org>
1569 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
1570 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
1571 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
1572 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
1573 test for cmsg struct size.
1575 2001-04-23 Paul Eggert <eggert@twinsun.com>
1577 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
1578 Rename __argc to ___argc in prototypes to avoid compatibility
1579 problems with systems that reserve the identifier "__argc".
1580 Similarly for __argv.
1582 2001-08-21 Roland McGrath <roland@frob.com>
1584 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
1586 * mach/Makefile (tests): Removed.
1587 * mach/hello.c: File removed.
1589 2001-08-22 Ulrich Drepper <drepper@redhat.com>
1591 * po/sv.po: Update from translation team.
1593 * stdio-common/vfscanf.c: Fix handling of %l[].
1594 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
1596 * libio/Makefile (tests): Add tst-sscanf.
1597 * libio/tst-sscanf.c: New file.
1599 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
1600 * malloc/mtrace.c (tr_where): dli_sname always points to a
1601 non-empty string if != NULL.
1602 Reported by Tim Janik <timj@gtk.org>.
1604 2001-08-22 Jakub Jelinek <jakub@redhat.com>
1606 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
1607 buf. Free resources on failure.
1608 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
1609 (makefd_xprt): Likewise.
1610 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
1611 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
1612 * sunrpc/auth_unix.c (authunix_create): Likewise.
1614 2001-08-21 Jakub Jelinek <jakub@redhat.com>
1616 * string/strnlen.c: Remove.
1617 * sysdeps/generic/strnlen.c: New.
1618 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
1620 2001-08-21 Roland McGrath <roland@frob.com>
1622 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
1623 as a macro, not an extern inline function.
1625 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
1626 * Versions.def (libc): Add GLIBC_2.2.5 set.
1627 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
1628 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
1630 2001-08-20 Roland McGrath <roland@frob.com>
1632 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
1633 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
1635 2001-08-21 Ulrich Drepper <drepper@redhat.com>
1637 * string/bits/string2.h: Remove strnlen optimization here.
1638 * sysdeps/i386/i486/bits/string.h: Add it here.
1640 2001-08-21 Wolfram Gloger <wg@malloc.de>
1642 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
1644 2001-08-21 Ulrich Drepper <drepper@redhat.com>
1646 * po/gl.po: Update from translation team.
1648 2001-08-20 Ulrich Drepper <drepper@redhat.com>
1650 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
1651 * misc/err.c (convert_and_print): Likewise.
1653 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
1656 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1658 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
1659 change of the gregset_t type.
1660 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1662 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
1664 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
1666 2001-08-20 Ulrich Drepper <drepper@redhat.com>
1668 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
1670 * string/strnlen.c: Fix the implementation. We cannot use memchr.
1672 2001-08-18 Mark Kettenis <kettenis@gnu.org>
1674 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
1675 before calling the cthreads initialization code.
1677 2001-08-20 Ulrich Drepper <drepper@redhat.com>
1679 * argp/argp-help.c: Fix two problems introduced in last change.
1681 * include/dirent.h: Include <dirstream.h> first.
1683 2001-08-19 Ulrich Drepper <drepper@redhat.com>
1685 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
1687 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
1688 * sunrpc/xdr_rec.c: Likewise.
1689 * sunrpc/xdr_mem.c: Likewise.
1690 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
1691 * sunrpc/rpc_cmsg.c: Likewise.
1692 * sunrpc/getrpcport.c (getrpcport): Likewise.
1693 * sunrpc/clnt_simp.c (callrpc): Likewise.
1694 * sunrpc/clnt_gen.c (clnt_create): Likewise.
1695 * string/envz.c: Likewise.
1697 * po/ko.po: Update from translation team.
1699 * argp/argp-help.c: Handle wide oriented stderr stream.
1701 2001-08-18 Ulrich Drepper <drepper@redhat.com>
1703 * sysdeps/generic/strtol.c: Little optimizations. Add some
1706 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
1708 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
1709 * wcsmbs/wcwidth.c (wcwdith): Likewise.
1710 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
1712 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
1714 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
1716 * time/time.h (struct timespec): Use __time_t for tv_sec element.
1718 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
1719 wchar_t for function declarations and defintions.
1721 * misc/sys/select.h: Define __need_time_t before including <time.h>.
1722 Define suseconds_t if it hasn't happened yet.
1724 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
1726 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
1728 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
1731 * conform/data/stddef.h-data: Remove wint_t.
1733 * conform/conformtest.pl: Change namespace test to take #undef
1736 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
1738 * conform/data/sys/socket.h-data: Add sockatmark.
1740 2001-08-17 Ulrich Drepper <drepper@redhat.com>
1742 * io/fts.c: Update from recent BSD source.
1744 2001-08-17 Roland McGrath <roland@frob.com>
1746 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
1747 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
1750 2001-08-17 Ulrich Drepper <drepper@redhat.com>
1752 * locale/duplocale.c (__duplocale): Also initialize the special
1755 * conform/data/netdb.h-data: Adjust gai_strerror return type.
1757 2001-08-17 Andreas Jaeger <aj@suse.de>
1759 * misc/getpass.c: Include wchar.h for prototypes.
1760 * malloc/obstack.c: Likewise.
1762 2001-08-17 Ulrich Drepper <drepper@redhat.com>
1764 * sunrpc/svc_simple.c (universal): Use __write instead of write.
1766 * wcsmbs/wcscoll.c: Also define __wcscoll.
1767 * include/wchar.h: Declare __wcscoll.
1769 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
1770 * libio/vwprintf.c: Likewise.
1771 * libio/wprintf.c: Likewise.
1773 * iconv/gconv_cache.c: Use __munmap instead of munmap.
1775 2001-08-16 Ulrich Drepper <drepper@redhat.com>
1777 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1779 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1780 wcslen, and __wcscoll instead of wcscoll.
1782 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
1784 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
1785 __getuid instead of getuid.
1787 * stdio-common/perror.c (perror): Use __close instead of close.
1788 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1789 * libio/freopen.c (freopen): Likewise.
1790 * libio/freopen64.c (freopen64): Likewise.
1792 * libio/tst-ungetwc2.c (main): Define str const.
1794 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
1795 * libio/fwprintf.c: Also define __fwprintf.
1796 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
1797 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
1798 * assert/assert-perr.c: Likewise.
1799 * assert/assert.c: Likewise.
1800 * gmon/gmon.c: Likewise.
1801 * inet/rcmd.c: Likewise.
1802 * malloc/obstack.c: Likewise.
1803 * misc/err.c: Likewise.
1804 * misc/error.c: Likewise.
1805 * misc/getpass.c: Likewise.
1806 * posix/getopt.c: Likewise.
1807 * resolv/res_hconf.c: Likewise.
1808 * stdio-common/perror.c: Likewise.
1809 * stdio-common/psignal.c: Likewise.
1810 * stdlib/fmtmsg.c: Likewise.
1811 * sunrpc/auth_unix.c: Likewise.
1812 * sunrpc/clnt_perr.c: Likewise.
1813 * sunrpc/clnt_tcp.c: Likewise.
1814 * sunrpc/clnt_udp.c: Likewise.
1815 * sunrpc/clnt_unix.c: Likewise.
1816 * sunrpc/svc_simple.c: Likewise.
1817 * sunrpc/svc_tcp.c: Likewise.
1818 * sunrpc/svc_udp.c: Likewise.
1819 * sunrpc/svc_unix.c: Likewise.
1820 * sunrpc/xdr.c: Likewise.
1821 * sunrpc/xdr_array.c: Likewise.
1822 * sunrpc/xdr_rec.c: Likewise.
1823 * sunrpc/xdr_ref.c: Likewise.
1824 * sysdeps/generic/wordexp.c: Likewise.
1826 * po/it.po: Update from translation team.
1828 * misc/err.c: Handle wide oriented stderr stream.
1830 2001-08-14 Tom Rix <trix@redhat.com>
1832 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
1833 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
1835 2001-08-13 Tom Rix <trix@redhat.com>
1837 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
1838 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
1841 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
1843 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
1844 Store the access registers to the ucontext structure.
1845 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
1848 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
1849 Load the access registers from the ucontext structure.
1850 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
1853 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
1854 offsets to the new ucontext layout.
1855 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
1857 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
1858 of the ucontext structure.
1859 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1861 2001-08-15 Ulrich Drepper <drepper@redhat.com>
1863 * misc/error.c (error): Handle wide oriented stderr stream correctly.
1864 (error_at_line): Likewise.
1866 * stdio-common/perror.c (perror): Implement according to standard.
1867 The stream orientation must not be changed if the stream was not
1868 oriented before the call.
1869 * stdio-common/Makefile (tests): Add tst-perror.
1870 * stdio-common/tst-perror.c: New file.
1873 See ChangeLog.12 for earlier changes.