1 2002-01-17 Andreas Jaeger <aj@suse.de>
3 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
6 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
7 PowerPC, sync with 2.2 branch.
9 2002-01-16 Ulrich Drepper <drepper@redhat.com>
11 * posix/getconf.c: Update copyright year.
12 * nss/getent.c: Likewise.
13 * nscd/nscd_nischeck.c: Likewise.
14 * iconv/iconvconfig.c: Likewise.
15 * iconv/iconv_prog.c: Likewise.
16 * elf/ldconfig.c: Likewise.
17 * catgets/gencat.c: Likewise.
18 * csu/version.c: Likewise.
19 * elf/ldd.bash.in: Likewise.
20 * elf/sprof.c (print_version): Likewise.
21 * locale/programs/locale.c: Likewise.
22 * locale/programs/localedef.c: Likewise.
23 * nscd/nscd.c (print_version): Likewise.
24 * debug/xtrace.sh: Likewise.
25 * malloc/memusage.sh: Likewise.
26 * malloc/mtrace.pl: Likewise.
28 2002-01-16 Andreas Schwab <schwab@suse.de>
30 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
31 reliably remove "-ia64" from rtld name.
33 2002-01-16 Ulrich Drepper <drepper@redhat.com>
35 * iconvdata/gb18030.c: Bug fixes and support for more characters.
36 Patch by Yu Shao <yshao@redhat.com>.
38 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
40 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
41 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
42 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
44 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
46 * sysdeps/s390/fpu/libm-test-ulps: Update.
48 2002-01-11 Ulrich Drepper <drepper@redhat.com>
50 * elf/elf.h: Update x86 relocations.
52 2002-01-10 Ulrich Drepper <drepper@redhat.com>
54 * locale/programs/charmap.c (new_width): Check whether byte
55 sequences for both ends of range have the same length.
57 2002-01-09 Jakub Jelinek <jakub@redhat.com>
59 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
61 2002-01-09 Jakub Jelinek <jakub@redhat.com>
63 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
65 (__full_ieee754_sqrt): Add __attribute_used__.
67 2002-01-10 Ulrich Drepper <drepper@redhat.com>
69 * sysdeps/generic/group_member.c (__group_member): Also check
70 groups[0] [PR libc/2781].
72 2002-01-08 Ulrich Drepper <drepper@redhat.com>
74 * Makefile (distribute): Add scripts/cpp.
75 * elf/Makefile (distribute): Add reldep6mod[01234].c,
76 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
77 unwind-dw2-fde.h, and dwarf2.h.
78 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
79 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
80 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
81 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
83 2002-01-07 Roland McGrath <roland@frob.com>
85 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
86 volatile on type of ARGC so the compiler doesn't get clever.
88 2002-01-07 Andreas Jaeger <aj@suse.de>
90 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
91 * sysdeps/i386/bits/byteswap.h: Likewise.
92 * sysdeps/ia64/bits/byteswap.h: Likewise.
93 * sysdeps/m68k/bits/byteswap.h: Likewise.
94 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
95 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
97 2002-01-02 Bruno Haible <bruno@clisp.org>
99 * intl/plural.y: Fix %expect count.
101 2002-01-03 Jakub Jelinek <jakub@redhat.com>
103 * elf/Makefile (routines, shared-only-routines): Add
104 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
105 * elf/elf.h (PT_GNU_EH_FRAME): Define.
106 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
107 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
108 Optimize if .eh_frame section contains no FDEs.
109 (__register_frame, __deregister_frame_info_bases,
110 __deregister_frame): Likewise.
111 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
112 DW_CFA_restore handling.
114 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
116 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
118 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
119 for x < 0.25 and restore original range reduction method.
120 (__ieee754_lgammal_r): Make sure signgam is set before returning.
122 2002-01-07 Ulrich Drepper <drepper@redhat.com>
124 * libio/fileops.c (_IO_file_underflow_mmap): New function.
125 (_IO_file_close_mmap): New function.
126 (_IO_file_jumps_mmap): New variable.
127 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
128 trying to convert rest of byte buffer.
129 (_IO_wfile_underflow_mmap): New function.
130 (_IO_wfile_jumps_mmap): New variable.
131 * libio/iofopen.c (__fopen_maybe_mmap): New function.
132 (__fopen_internal): New function. Split out from _IO_new_fopen.
133 (_IO_new_fopen): Call __fopen_internal.
134 * libio/iofopen64.c: Just call __fopen_internal.
135 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
137 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
138 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
141 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
142 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
144 * stdio-common/Makefile (tests): Add tst-rndseek.
145 * stdio-common/tst-rndseek.c: New file.
147 2002-01-05 Roland McGrath <roland@frob.com>
149 * config.h.in (HAVE_MIG_RETCODE): New #undef.
150 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
151 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
152 * sysdeps/mach/hurd/configure: Regenerated.
154 2002-01-03 Ulrich Drepper <drepper@redhat.com>
156 * elf/elf.h: Add more TLS definitions.
158 2002-01-02 Ulrich Drepper <drepper@redhat.com>
160 * include/features.h (__GLIBC_MINOR__): Bump to 3.
162 2002-01-02 Roland McGrath <roland@frob.com>
164 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
165 __sigisemptyset. Don't use MASK uninitialized.
167 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
168 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
169 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
170 __sigdelset, __sigaddset, __sigorset.
172 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
173 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
175 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
178 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
179 for old CMU and new OSF Mach interface flavors.
180 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
181 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
183 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
185 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
186 Pass extra arguments to task_create for OSF variant.
187 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
189 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
190 conditional on [HAVE_AUX_VECTOR].
192 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
193 mach_msg_timeout_t as type of final argument.
195 * hurd/privports.c (__get_privileged_ports):
196 Change host_priv_t to mach_port_t in argument type.
197 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
200 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
201 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
202 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
203 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
204 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
205 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
207 2002-01-01 Roland McGrath <roland@frob.com>
209 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
211 2002-01-01 Ulrich Drepper <drepper@redhat.com>
213 * include/stdlib.h: Define inlines for the _l variants of the strto*
216 2002-01-01 Roland McGrath <roland@frob.com>
218 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
220 * mach/Machrules (MIG): Set CPP as well as CC.
222 2001-12-31 Ulrich Drepper <drepper@redhat.com>
224 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
225 locale to parse /proc/loadavg [PR libc/2760].
227 2001-12-31 Jakub Jelinek <jakub@redhat.com>
229 * elf/dl-conflict.c: Include sys/param.h.
230 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
231 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
233 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
234 literals to avoid warnings.
236 2001-12-31 Andreas Jaeger <aj@suse.de>
238 * configure.in: Don't check for gsed since we do not use it anywhere.
240 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
242 * io/fts.c: Update from BSD to fix memory leaks.
244 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
246 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
247 * elf/chroot_canon.c: Likewise.
248 * elf/dl-object.c: Likewise.
249 * iconv/iconv_charmap.c: Likewise.
250 * iconv/iconv_prog.c: Likewise.
251 * libio/iogetdelim.c: Likewise.
252 * locale/lc-time.c: Likewise.
253 * stdlib/canonicalize.c: Likewise.
254 * sunrpc/svc.c: Likewise.
255 * sysdeps/generic/glob.c: Likewise.
257 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
259 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
260 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
261 remove high order bit from the program counter.
262 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
264 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
266 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
267 unnecessary code and add missing reloc types.
268 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
269 case for reloc type R_390_NONE.
271 2001-12-28 Andreas Jaeger <aj@suse.de>
273 * io/bug-ftw3.c: Include string.h for prototypes.
275 * crypt/md5test.c (main): Remove unused variable.
277 * dlfcn/modstatic.c: Add prototype to avoid warning.
279 2001-12-26 Roland McGrath <roland@frob.com>
281 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
282 check only (SS->pending & MASK) for the signal to return.
283 From Jeroen Dekkers <jeroen@dekkers.cx>.
285 2001-12-22 Roland McGrath <roland@frob.com>
287 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
288 Use preprocessor #if conditionals instead of `if' to avoid
289 warnings about divide by zero in dead code.
291 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
292 _hurd_port_init, and __hurd_self_sigstate.
294 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
296 2001-12-21 Andreas Jaeger <aj@suse.de>
298 * elf/dblloadmod1.c: Add prototype to avoid warning.
299 * elf/dblloadmod2.c: Likewise.
300 * elf/dblloadmod3.c: Likewise.
301 * elf/reldepmod5.c: Likewise.
302 * elf/reldepmod6.c: Likewise.
304 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
305 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
306 used on all architectures.
308 * sunrpc/svc_tcp.c: Add noreturn attribute for
309 svctcp_rendezvous_abort.
310 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
312 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
315 2001-12-19 Jakub Jelinek <jakub@redhat.com>
317 * manual/llio.texi (aio_fsync): Fix a typo.
318 Patch by Tammy Fox <tfox@redhat.com>.
320 2001-12-18 Jakub Jelinek <jakub@redhat.com>
322 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
323 stack bias from child stack pointer before passing it to clone syscall.
325 2001-12-18 Ulrich Drepper <drepper@redhat.com>
327 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
329 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
330 Reported by Thorsten Kukuk <kukuk@suse.de>.
332 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
335 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
337 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
339 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
340 conforming: return EBADF if file descriptor is invalid and EINVAL
341 if file descriptor is no valid tty.
342 * login/tst-grantpt.c: New file.
343 * login/Makefile (tests): Add tst-grantpt.
345 2001-12-17 Ulrich Drepper <drepper@redhat.com>
347 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
348 different than implemented in last patch.
349 * io/bug-ftw3.c: Adjust test for changed handling of
350 inaccessibility of toplevel dir.
352 2001-12-16 Roland McGrath <roland@frob.com>
354 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
355 * grp/initgroups.c (internal_getgrouplist): Likewise.
357 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
358 `default:' to silence new GCC warning.
359 Rewrite cast of lvalue to silence new GCC warning.
361 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
363 * sysdeps/mach/hurd/spawni.c: New file, by me with a
364 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
366 2001-12-14 Ulrich Drepper <drepper@redhat.com>
368 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
369 Patch by Stephen R. van den Berg.
371 * crypt/md5.h: Define md5_uintptr.
373 2001-12-13 Ulrich Drepper <drepper@redhat.com>
375 * libio/tst_swprintf.c (main): Add test for string argument with
377 * stdio-common/Makefile (tests): Add tst-sprintf.
378 * stdio-common/tst-sprintf.c: New file.
380 2001-12-13 Andreas Schwab <schwab@suse.de>
382 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
383 zero precision with wide character string format.
385 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
387 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
388 but have a user supplied buffer, return the empty buffer, not NULL.
390 2001-12-13 Ulrich Drepper <drepper@redhat.com>
392 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
393 Patch by Eric Sharkey <sharkey@netrics.com>.
395 * crypt/md5test.c (main): Add test for multiple calls to
396 __md5_process_bytes to itererate over input string.
398 2001-12-12 Ulrich Drepper <drepper@redhat.com>
400 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
401 from __nis_findfastest. Take timeout value from parameter.
402 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
403 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
404 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
406 2001-12-12 Andreas Jaeger <aj@suse.de>
408 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
409 combreloc test so that it works in this case.
411 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
413 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
415 * sysdeps/sh/Makefile: New file.
416 * sysdeps/sh/_mcount.S: New file.
417 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
418 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
420 2001-12-11 Ulrich Drepper <drepper@redhat.com>
422 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
423 limitation [PR libc/2564].
425 2001-12-11 Jakub Jelinek <jakub@redhat.com>
427 * elf/Makefile (dl-routines): Add conflict.
428 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
429 (ld.so): Add _begin local symbol.
430 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
432 * elf/dl-deps.c (_dl_build_local_scope): New.
433 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
435 * elf/do-rel.h (VALIDX): Define.
436 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
437 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
439 * elf/dl-conflict.c: New file.
440 * elf/dl-lookup.c (_dl_debug_bindings): New.
441 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
443 (_dl_lookup_symbol_skip): Likewise.
444 (_dl_lookup_versioned_symbol): Likewise.
445 (_dl_lookup_versioned_symbol_skip): Likewise.
446 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
448 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
449 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
451 Don't adjust address dynamic tags if l_addr is 0.
452 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
453 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
454 (VALIDX, ADDRIDX): Define.
455 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
456 (dl_main): Print library list for LD_TRACE_PRELINKING.
457 If prelinking information can be used, skip relocating libraries and
458 call _dl_resolve_conflicts instead.
459 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
460 * elf/dl-load.c (_dl_map_object): Don't create fake libs
461 if LD_TRACE_PRELINKING.
462 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
464 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
465 (DL_DEBUG_PRELINK): Define.
466 (_dl_resolve_conflicts): Add prototype.
468 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
469 .plt for prelinked libraries where prelinking info cannot be used.
470 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
471 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
472 * sysdeps/arm/bits/link.h: New file.
473 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
475 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
476 (ELF_MACHINE_PLT_REL): Define.
477 (elf_machine_rela, elf_machine_rela_relative): New.
478 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
479 of adjusting it if prelinked and prelinking cannot be used.
480 * sysdeps/i386/bits/link.h: New file.
481 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
483 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
484 (ELF_MACHINE_PLT_REL): Define.
485 (elf_machine_rela, elf_machine_rela_relative): New.
486 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
487 of adjusting it if prelinked and prelinking cannot be used.
488 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
489 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
490 to find out map for R_PPC_JMP_SLOT relocs.
491 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
493 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
494 libraries where prelinking info cannot be used.
495 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
496 (elf_machine_fixup_plt): Call sparc_fixup_plt.
497 (elf_machine_rela): Set value to 0 if relocating conflicts.
498 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
499 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
500 (sparc64_fixup_plt): Fix a typo.
501 (elf_machine_rela): Set value to 0 if relocating conflicts.
502 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
503 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
504 libraries where prelinking info cannot be used.
505 * sysdeps/sh/bits/link.h: New file.
506 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
508 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
509 of adjusting it if prelinked and prelinking cannot be used.
510 * sysdeps/s390/s390-32/bits/link.h: New file.
511 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
512 Save original content of .got[1].
513 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
514 of adjusting it if prelinked and prelinking cannot be used.
515 * sysdeps/s390/s390-64/bits/link.h: New file.
516 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
517 Save original content of .got[1].
518 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
519 of adjusting it if prelinked and prelinking cannot be used.
520 * sysdeps/x86_64/bits/link.h: New file.
521 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
522 Save original content of .got[1].
523 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
524 of adjusting it if prelinked and prelinking cannot be used.
526 2001-12-11 Ulrich Drepper <drepper@redhat.com>
528 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
529 where appropriate instead of numbers. Little optimizations.
531 2001-12-10 Roland McGrath <roland@frob.com>
533 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
536 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
537 set to GLIBC_2.2.5, not GLIBC_2.2.4.
539 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
540 Fix conditionals so this is set by default for stdio and not for libio.
541 * sysdeps/mach/hurd/configure: Regenerated.
543 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
545 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
547 2001-12-10 Ulrich Drepper <drepper@redhat.com>
549 * io/Makefile (tests): Add bug-ftw3.
550 * io/bug-ftw3.c: New file.
552 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
553 matches and GLOB_NOCHECK is set.
554 * posix/globtest.sh: Correct expected result for NOCHECK test.
556 * po/ca.po: Update from translation team.
558 2001-12-09 Ulrich Drepper <drepper@redhat.com>
560 Implement transliteration of characters in strings of the locale
562 * locale/programs/linereader.c: Adjust for additional parameter to
564 (get_string): If character <Uxxxx> is not found try to transliterate
566 * locale/programs/ld-ctype.c: Adjust for additional parameter to
567 lr_token. Add const to charmap parameter of all functions.
568 (find_translit, find_translit2): New functions.
569 * locale/programs/charmap.c: Adjust for additional parameter to
571 * locale/programs/repertoire.c: Likewise.
572 * locale/programs/linereader.h: Likewise.
573 * locale/programs/ld-address.c: Likewise. Add const to charmap
574 parameter of all functions.
575 * locale/programs/ld-collate.c: Likewise.
576 * locale/programs/ld-identification.c: Likewise.
577 * locale/programs/ld-measurement.c: Likewise.
578 * locale/programs/ld-messages.c: Likewise.
579 * locale/programs/ld-monetary.c: Likewise.
580 * locale/programs/ld-name.c: Likewise.
581 * locale/programs/ld-numeric.c: Likewise.
582 * locale/programs/ld-paper.c: Likewise.
583 * locale/programs/ld-paper.c: Likewise.
584 * locale/programs/ld-telephone.c: Likewise.
585 * locale/programs/ld-time.c: Likewise.
586 * locale/programs/locfile.c: Likewise.
587 * locale/programs/localedef.c: Likewise.
588 * locale/programs/localedef.h: Likewise.
589 * locale/programs/locfile.h: Likewise. Add declaration for
591 * locale/programs/simple-hash.c: Add const to first parameter of
592 find_entry, iterate_table, and lookup.
593 * locale/programs/simple-hash.h: Likewise.
594 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
596 * include/locale.h: Define __LC_LAST.
597 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
599 2001-12-07 Geoff Keating <geoffk@redhat.com>
601 * sysdeps/powerpc/Dist: Update for recent FP changes.
602 * sysdeps/powerpc/fpu/Dist: Likewise.
604 2001-12-07 Andreas Schwab <schwab@suse.de>
606 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
608 2001-12-06 Geoff Keating <geoffk@redhat.com>
610 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
611 save/restore functions here.
612 (libm-support): Don't define these functions here.
613 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
615 * sysdeps/powerpc/fe_nomask.c: Move to...
616 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
617 * sysdeps/powerpc/fprrest.S: Move to...
618 * sysdeps/powerpc/fpu/fprrest.S: ... here.
619 * sysdeps/powerpc/fprsave.S: Move to...
620 * sysdeps/powerpc/fpu/fprsave.S: ... here.
622 2001-12-06 Ulrich Drepper <drepper@redhat.com>
624 * sysdeps/unix/sysv/linux/opensock.c: New file.
626 2001-12-06 Geoff Keating <geoffk@redhat.com>
628 * config.make.in (with-fp): Define from configure.
629 * configure.in: Substitute with_fp.
630 * configure: Regenerate.
631 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
632 specified, and don't change FPU environment.
634 2001-12-06 Ulrich Drepper <drepper@redhat.com>
636 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
637 * assert/assert.c: Check result of __asprintf call and don't use
639 * assert/assert-perr.c: Likewise.
640 * inet/rcmd.c: Likewise.
641 * locale/programs/localedef.c (main): Check result of
642 construct_output_path and exit if it failed.
643 (construct_output_path): Check result of asprintf and mkdir calls and
645 * posix/getopt.c: Check result of __asprintf calls and fail if
647 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
649 2001-12-05 Ulrich Drepper <drepper@redhat.com>
651 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
653 * sysdeps/generic/strncase.c: Likewise.
654 * string/tester.c: Add tests for strcasecmp and strncasecmp.
656 2001-12-05 Geoff Keating <geoffk@redhat.com>
658 * scripts/cpp: Test the exit status from 'type', not 'awk'.
660 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
661 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
662 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
663 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
664 * sysdeps/powerpc/fclrexcpt.c: Move to...
665 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
666 * sysdeps/powerpc/fpu_control.h: Move to...
667 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
669 2001-12-05 Ulrich Drepper <drepper@redhat.com>
671 * iconvdata/ibm1129.h: Remove duplicate mappings.
672 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
673 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
674 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
676 * timezone/zic.c: Fix handling of turnaround times.
677 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
679 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
681 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
684 2001-12-05 Ulrich Drepper <drepper@redhat.com>
686 * posix/regex.c: For use outside glibc defined bounded pointer
687 macros here. Patch by Jim Meyering <jim@meyering.net>.
689 * iconvdata/Makefile (modules): Add TCVN5712-1.
690 * iconvdata/TESTS: Add TCVN5712-1.
691 * iconvdata/gconv-modules: Likewise.
692 * iconvdata/tcvn5712-1.c: New file.
693 * iconvdata/testdata/TCVN-5712: New file.
694 * iconvdata/testdata/TCVN-5712..UTF8: New file.
696 2001-12-04 Ulrich Drepper <drepper@redhat.com>
698 * iconvdata/cp1258.c: Optimize conversion from UCS4.
700 2001-12-02 Roland McGrath <roland@frob.com>
702 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
704 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
705 Reported by Jeff Bailey <jbailey@nisa.net>.
707 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
708 Reported by Jeff Bailey <jbailey@nisa.net>.
710 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
711 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
712 Reported by Jeff Bailey <jbailey@nisa.net>.
714 2001-12-01 Roland McGrath <roland@frob.com>
716 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
717 missing backslash in test arguments.
718 * sysdeps/mach/hurd/configure: Regenerated.
720 2001-11-26 Roland McGrath <roland@frob.com>
722 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
723 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
725 2001-11-30 Ulrich Drepper <drepper@redhat.com>
727 * iconvdata/Makefile (modules): Add ARMSCII-8.
728 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
729 * iconvdata/armscii-8.c: New file.
731 2001-11-29 Jakub Jelinek <jakub@redhat.com>
733 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
734 don't match, fix {{a,b},c} globbing, clean up.
735 Patch by Flavio Veloso <flaviovs@magnux.com>.
736 * posix/globtest.sh: Add new tests.
738 2001-11-29 Andreas Jaeger <aj@suse.de>
740 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
741 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
743 * sysdeps/generic/abort.c: Include libioP.h for
744 _IO_flush_all_lockp prototype.
746 2001-11-29 Ulrich Drepper <drepper@redhat.com>
748 * posix/regex.h: Define __restrict_arr correctly.
750 2001-11-28 Ulrich Drepper <drepper@redhat.com>
752 * iconvdata/ibm1163.c: New file.
753 * iconvdata/ibm1163.h: New file.
754 * iconvdata/ibm1164.c: New file.
755 * iconvdata/ibm1164.h: New file.
756 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
757 * iconvdata/Makefile: Likewise.
758 * iconvdata/testdata/IBM1163: New file.
759 * iconvdata/testdata/IBM1163..UTF8: New file.
760 * iconvdata/testdata/IBM1164: New file.
761 * iconvdata/testdata/IBM1164..UTF8: New file.
762 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
764 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
765 * iconvdata/ibm1124.h: Likewise.
766 * iconvdata/ibm1132.h: Likewise.
767 * iconvdata/ibm1133.h: Likewise.
768 * iconvdata/ibm1160.h: Likewise.
769 * iconvdata/ibm1161.h: Likewise.
770 * iconvdata/ibm1162.h: Likewise.
771 * iconvdata/ibm856.h: Likewise.
772 * iconvdata/ibm922.h: Likewise.
773 * iconvdata/ibm930.h: Likewise.
774 * iconvdata/ibm932.h: Likewise.
775 * iconvdata/ibm933.h: Likewise.
776 * iconvdata/ibm935.h: Likewise.
777 * iconvdata/ibm937.h: Likewise.
778 * iconvdata/ibm939.h: Likewise.
779 * iconvdata/ibm943.h: Likewise.
780 * iconvdata/ibm930.c: Pretty printing.
781 * iconvdata/ibm937.c: Avoid access accross array boundary.
783 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
784 the current locale's codeset.
785 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
787 * iconv/iconv_prog.c: Pass empty strings as default value for to-
788 and from-charset. Don't determine locale's charset here.
790 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
791 as the old _IO_flush_all but lock only if parameter is nonzero.
792 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
793 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
794 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
795 if libio is used [PR libc/2575].
797 2001-11-28 Jakub Jelinek <jakub@redhat.com>
799 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
800 __signbitl): Only define for ISO C99.
802 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
804 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
805 herrnop to NETDB_INTERNAL if we run out of buffer space.
807 2001-11-28 Ulrich Drepper <drepper@redhat.com>
809 * nss/nss_files/files-XXX.c (internal_getent): Correct input
810 overflow test for platforms with signed char.
811 Reported by Andrew Haley <aph@cambridge.redhat.com>.
813 2001-11-28 Bruno Haible <bruno@clisp.org>
815 * locale/programs/simple-hash.c (lookup_2): Remove function.
816 (insert_entry_2): Call lookup instead of lookup_2.
818 2001-03-04 Bruno Haible <bruno@clisp.org>
820 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
822 2001-10-31 Bruno Haible <bruno@clisp.org>
824 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
826 2001-03-21 Bruno Haible <bruno@clisp.org>
828 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
829 chokes on empty macro arguments.
830 * intl/plural.y: Add #pragma for alloca on AIX 3.
832 2001-11-27 Ulrich Drepper <drepper@redhat.com>
834 * intl/dcigettext.c (guess_category_value): Only implement for
835 glibc. Otherwise rely on function _nl_locale_name which isn't
836 present in the glibc sources.
838 2001-09-24 Bruno Haible <bruno@clisp.org>
840 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
841 transliteration when building on a glibc system but outside glibc.
843 2001-09-22 Bruno Haible <bruno@clisp.org>
845 * intl/plural-eval.c: New file, extracted from dcigettext.c.
846 * intl/dcigettext.c (plural_eval): Remove function, moved to
848 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
849 Include plural-eval.c.
851 2001-09-22 Bruno Haible <bruno@clisp.org>
853 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
854 don't start with a digit; nplurals must be positive.
856 2001-09-02 Bruno Haible <bruno@clisp.org>
858 * intl/plural-exp.h: New file, extracted from gettextP.h.
859 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
860 * intl/gettextP.h (struct expression, struct parse_args,
861 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
862 * intl/loadmsgcat.c: Include plural-exp.h.
863 (PLURAL_PARSE): Move macro to plural-exp.h.
864 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
866 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
867 EXTRACT_PLURAL_EXPRESSION.
868 (_nl_unload_domain): Update.
869 * intl/dcigettext.c: Include plural-exp.h.
870 * intl/plural.y: Include plural-exp.h, not gettextP.h.
871 (FREE_EXPRESSION): Move macro to plural-exp.h.
872 * intl/Makefile (routines): Add plural-exp.
873 (distribute): Add plural-exp.h.
875 2001-07-28 Bruno Haible <bruno@clisp.org>
877 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
878 isdigit, tolower argument to 'unsigned char'.
879 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
881 * intl/localealias.c (read_alias_file): Cast isspace argument to
884 2001-10-20 Bruno Haible <bruno@clisp.org>
886 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
888 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
889 with the variable 'index' in plural_lookup.
890 * intl/l10nflist.c (strchr): Likewise.
891 * intl/localealias.c (strchr): Likewise.
893 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
894 * intl/bindtextdom.c: Likewise.
895 * intl/dcigettext.c: Likewise.
896 * intl/dgettext.c: Likewise.
897 * intl/dngettext.c: Likewise.
898 * intl/explodename.c: Likewise.
899 * intl/finddomain.c: Likewise.
900 * intl/gettext.c: Likewise.
901 * intl/l10nflist.c: Likewise.
902 * intl/loadmsgcat.c: Likewise.
903 * intl/localealias.c: Likewise.
904 * intl/ngettext.c: Likewise.
905 * intl/textdomain.c: Likewise.
906 * intl/gettext.h: Assume <limits.h> exists.
908 2001-11-27 Ulrich Drepper <drepper@redhat.com>
910 * stdio-common/Makefile (tests): Add scanf11.
911 * stdio-common/scanf11.c: New file.
913 2001-11-26 Ulrich Drepper <drepper@redhat.com>
915 * version.h (RELEASE): Define as development.
916 (VERSION): Set to 2.2.90.
918 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
920 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
921 * nis/nss_nis/nis-grp.c: Likewise.
922 * nis/nss_nisplus/nisplus-grp.c: Likewise.
924 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
925 * nis/nss_nis/nis-pwd.c: Likewise.
926 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
928 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
929 * nis/nss_nisplus/nisplus-parser.c: Likewise.
930 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
932 * nscd/grpcache.c: Use strtoul instead of atol.
933 * nscd/pwdcache.c: Likewise.
934 * nss/getent.c: Likewise.
936 2001-11-27 Paul Eggert <eggert@twinsun.com>
938 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
939 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
941 2001-11-19 Bruno Haible <bruno@clisp.org>
943 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
945 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
946 improves the quality of the hash function, especially for short
949 2001-11-26 Ulrich Drepper <drepper@redhat.com>
951 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
952 are found call conv_error and not input_error [PR libc/2669].
954 * math/bits/mathcalls.h: Mark ceil and floor as const.
955 Reported by David Mosberger.
957 2001-11-21 Jim Meyering <meyering@lucent.com>
959 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
960 Define to be __-prefixed.
961 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
963 2001-11-26 Andreas Jaeger <aj@suse.de>
965 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
968 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
970 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
973 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
974 unused variables. Fix threshold for returning 1.0.
976 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
979 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
980 remove unused variables.
982 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
984 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
985 include local math header files.
987 2001-11-22 Andreas Jaeger <aj@suse.de>
989 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
992 2001-11-21 Andreas Jaeger <aj@suse.de>
994 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
996 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
999 2001-11-15 Andreas Jaeger <aj@suse.de>
1001 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1002 compilers that support it.
1004 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1005 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1006 * stdlib/stdlib.h: Likewise.
1008 2001-11-17 Ulrich Drepper <drepper@redhat.com>
1010 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1011 statement with gotos.
1012 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1014 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
1016 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1018 2001-11-15 Ulrich Drepper <drepper@redhat.com>
1020 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1022 2001-10-02 Jakub Jelinek <jakub@redhat.com>
1023 H.J. Lu <hjl@gnu.org>
1025 * Versions.def (libc): Add GCC_3.0.
1026 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1027 if gcc supports this flag.
1028 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1029 (gcc3): Allow glibc to be compiled with gcc 3.x.
1030 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1031 * config.make.in (static-libgcc, unwind-find-fde): Add.
1032 * Makerules (build-shlib-helper, build-module-helper): Use it.
1033 * scripts/versions.awk: Make sure GLIBC_ versions come first.
1034 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1036 (_fini): Call __deregister_frame_info_bases if
1037 __register_frame_info_bases was used to register.
1038 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1040 (__register_frame_info_bases, __register_frame_info_table_bases,
1041 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1042 * elf/Makefile (routines): Add unwind-dw2-fde.
1043 (shared-only-routines): Add unwind-dw2-fde.
1044 * sysdeps/alpha/gccframe.h: New file.
1045 * sysdeps/arm/gccframe.h: New file.
1046 * sysdeps/generic/framestate.c: New file.
1047 * sysdeps/generic/dwarf2.h: New file.
1048 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1049 * sysdeps/generic/unwind-dw2-fde.c: New file.
1050 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1051 * sysdeps/generic/unwind-dw2-fde.h: New file.
1052 * sysdeps/generic/unwind-dw2.c: New file.
1053 * sysdeps/generic/unwind-pe.h: New file.
1054 * sysdeps/generic/unwind.h: New file.
1055 * sysdeps/hppa/gccframe.h: New file.
1056 * sysdeps/i386/gccframe.h: New file.
1057 * sysdeps/m68k/gccframe.h: New file.
1058 * sysdeps/mips/gccframe.h: New file.
1059 * sysdeps/powerpc/gccframe.h: New file.
1060 * sysdeps/s390/gccframe.h: New file.
1061 * sysdeps/sh/gccframe.h: New file.
1062 * sysdeps/sparc/gccframe.h: New file.
1063 * sysdeps/vax/gccframe.h: New file.
1064 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1065 Set on all architectures except ia64.
1066 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
1068 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
1069 __deregister_frame_info): Move to elf/Versions.
1070 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
1071 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1072 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1073 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
1074 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1075 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1076 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1077 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1078 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1079 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
1080 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1081 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1082 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1083 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1084 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1085 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1086 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1087 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
1089 2001-11-15 Jeff Law <law@redhat.com>
1091 * posix/regex.c (uintptr_t): Do not provide a definition if the
1092 system provided one.
1094 2001-11-13 Roland McGrath <roland@frob.com>
1096 * stdio-common/tmpfile.c: Moved to ...
1097 * sysdeps/generic/tmpfile.c: ... here.
1098 * sysdeps/mach/hurd/tmpfile.c: New file.
1100 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
1101 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
1102 (fopenport): Define as weak alias.
1104 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
1105 * libio/libioP.h: ... to here.
1107 2001-11-12 Ulrich Drepper <drepper@redhat.com>
1109 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
1110 program header twice. Construct list with the needed information.
1112 2001-11-10 Ulrich Drepper <drepper@redhat.com>
1114 * po/ca.po: Update from translation team.
1116 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
1117 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
1118 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
1119 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1121 2001-11-10 Andreas Jaeger <aj@suse.de>
1123 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
1124 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1125 Contributed by Stephen L Moshier <moshier@mediaone.net>.
1127 2001-11-09 Ulrich Drepper <drepper@redhat.com>
1129 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
1131 * elf/dl-load.c (is_dst): New function.
1132 (_dl_dst_count): Use is_dst to check for DST variable.
1133 (_dl_dst_substitute): Likewise.
1135 2001-11-09 Roland McGrath <roland@frob.com>
1137 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
1138 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
1139 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
1140 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
1141 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
1142 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
1143 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
1144 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
1145 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
1146 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
1147 * sysdeps/mach/hurd/powerpc/Dist: New file.
1149 * hurd/privports.c (__get_privileged_ports):
1150 Only contact the proc server if necessary for this call.
1151 Suggested by Neal H Walfield <neal@cs.uml.edu>.
1152 Check error return for mach_port_mod_refs.
1154 2001-11-09 Andreas Schwab <schwab@suse.de>
1156 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
1158 2001-11-09 Ulrich Drepper <drepper@redhat.com>
1160 * elf/dl-load.c (lose): Remove some unnecessary code. The new
1161 object is always the last in the list.
1162 (_dl_map_object_from_fd): Delete code to remove from object list
1163 when DF_1_NOOPEN is seen. This is done in lose.
1165 2001-11-08 Ulrich Drepper <drepper@redhat.com>
1167 * elf/dl-object.c (_dl_new_object): Various small optimizations.
1169 2001-11-07 Ulrich Drepper <drepper@redhat.com>
1171 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
1172 HWCAP_CHECK macro code.
1174 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
1175 Now returns MAP_FAILED on error.
1176 * elf/rtld.c: Adjust caller.
1177 * sysdeps/generic/dl-cache.c: Likewise.
1178 * sysdeps/generic/ldsodefs.h: Adjust description.
1180 * elf/dl-version.c (match_symbol): Optimize error handling for size.
1181 (_dl_check_map_versions): Likewise.
1183 2001-11-06 Ulrich Drepper <drepper@redhat.com>
1185 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
1186 _dl_signal_error directly, always use lose. Set fd to -1 after
1188 (lose): Don't call close if fd == -1.
1190 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
1192 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
1193 Also fix typo @code {mbsinit} to @code{mbsinit}.
1195 2001-11-06 Ulrich Drepper <drepper@redhat.com>
1197 * elf/dl-profile.c: Replace state variable with simple flag named
1198 running. Remove commented-out code.
1200 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
1201 (_dl_init_paths): Likewise.
1202 (_dl_map_object_from_fd): Likewise.
1203 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1205 2001-11-06 Roland McGrath <roland@frob.com>
1207 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
1208 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
1210 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
1211 sysdeps/powerpc/elf/sysdep.h.
1212 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
1214 2001-11-05 Ulrich Drepper <drepper@redhat.com>
1216 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
1218 (process_envvars): Some more optimizations.
1219 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
1221 * elf/elf.h: Add dynamic tag definitions for prelinking.
1223 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
1224 Rewrite code to remove environment varables for SUID binaries.
1225 Small optimization in LD_PROFILE handling.
1226 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
1228 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1230 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
1232 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
1233 strings. Change type of second parameter.
1234 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
1237 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
1239 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
1241 * manual/string.texi: Fix typos.
1242 * manual/examples/argp-ex2.c: Likewise.
1244 2001-11-05 Roland McGrath <roland@frob.com>
1246 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
1247 the more-specific unix/sysv/linux/powerpc file and breaks everything.
1248 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
1249 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
1250 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
1251 here, put under [__ELF__].
1253 2001-11-05 Ulrich Drepper <drepper@redhat.com>
1255 * manual/charset.texi: Extensive editing work.
1256 * manual/nss.texi: Likewise.
1257 Changes by Dennis Grace <dgrace@us.ibm.com>.
1259 2001-11-04 Roland McGrath <roland@frob.com>
1261 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
1262 parameter to dir_mkfile.
1264 2001-11-02 Jakub Jelinek <jakub@redhat.com>
1266 * string/bits/string2.h (__strndup): If n is smaller than len, set
1268 * string/tester.c (test_strndup): New function.
1271 2001-11-01 Ulrich Drepper <drepper@redhat.com>
1273 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
1275 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
1276 * scripts/cpp: New file.
1278 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
1279 for rtld_search_dirs content. Minor optimizations.
1281 2001-10-31 Ulrich Drepper <drepper@redhat.com>
1283 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
1284 avoiding unnecessary duplication.
1286 2001-10-31 Jakub Jelinek <jakub@redhat.com>
1288 * elf/dl-load.c (_dl_map_object): If library was found using
1289 LD_LIBRARY_PATH, don't try RUNPATH list.
1291 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
1293 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
1294 Correct second argument of register_dump call.
1295 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
1298 2001-10-31 Ulrich Drepper <drepper@redhat.com>
1300 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
1302 * iconvdata/TESTS: Likewise.
1303 * iconvdata/gconv-modules: Likewise.
1304 * iconvdata/ibm1132.c: New file.
1305 * iconvdata/ibm1132.h: New file.
1306 * iconvdata/ibm1133.c: New file.
1307 * iconvdata/ibm1133.h: New file.
1308 * iconvdata/ibm1162.c: New file.
1309 * iconvdata/ibm1162.h: New file.
1310 * iconvdata/testdata/IBM1132: New file.
1311 * iconvdata/testdata/IBM1132..UTF8: New file.
1312 * iconvdata/testdata/IBM1133: New file.
1313 * iconvdata/testdata/IBM1133..UTF8: New file.
1314 * iconvdata/testdata/IBM1162: New file.
1315 * iconvdata/testdata/IBM1162..UTF8: New file.
1316 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
1318 * string/string.h: Fix typo in comment.
1319 * wcsmbs/wchar.h: Likewise.
1321 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
1323 * manual/getopt.texi (getopt_long, getopt_long_only): Include
1324 const in type of longopts parameter.
1326 2001-10-29 Andreas Jaeger <aj@suse.de>
1328 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1330 2001-10-29 Kevin Ryde <user42@zip.com.au>
1332 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
1333 output, clarify `#' behaviour on 0.
1334 (Floating-Point Conversions): Clarify that %g only uses %e when
1335 the exponent would be greater than 1.
1337 2001-10-28 Roland McGrath <roland@frob.com>
1339 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
1340 * sysdeps/mach/powerpc/machine-sp.h: New file.
1341 * sysdeps/mach/powerpc/sysdep.h: New file.
1342 * sysdeps/mach/powerpc/thread_state.h: New file.
1344 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
1345 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
1346 expect to need the same thing on every platform.
1348 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
1349 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
1351 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
1352 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
1353 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
1354 Move all these assembly-related definitions to ...
1355 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
1357 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
1358 by Peter Bruin <pjbruin@dds.nl>.
1360 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
1361 packing results for a `poll' call.
1363 2001-10-26 Ulrich Drepper <drepper@redhat.com>
1365 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
1367 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
1370 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1372 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
1374 2001-10-24 H.J. Lu <hjl@gnu.org>
1376 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
1377 Use __BEGIN_DECLS/__END_DECLS around prototypes.
1378 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
1380 2001-10-21 Jim Meyering <meyering@lucent.com>
1382 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
1383 this code would end up calling gettext even in packages built
1385 * posix/getopt.c (_): Likewise.
1386 * posix/regex.c (_): Likewise.
1388 2001-10-26 Ulrich Drepper <drepper@redhat.com>
1390 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
1392 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1393 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
1395 2001-10-19 Jakub Jelinek <jakub@redhat.com>
1397 * misc/sys/cdefs.h (__attribute_used__): Define.
1398 * elf/rtld.c (_dl_start): Add __attribute_used__.
1399 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
1401 2001-10-25 Andreas Schwab <schwab@suse.de>
1403 * stdlib/a64l.c: Expect least significant digit first.
1404 * stdlib/l64a.c: Produce least significant digit first.
1405 * stdlib/Makefile (tests): Add test-a64l.
1406 * stdlib/test-a64l.c: New file.
1407 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
1409 2001-10-21 Ulrich Drepper <drepper@redhat.com>
1411 * po/sk.po: Update from translation team.
1413 2001-10-18 Ulrich Drepper <drepper@redhat.com>
1415 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
1417 2001-10-18 Andreas Schwab <schwab@suse.de>
1419 * math/libm-test.inc (print_ulps): Print ulp values rounded to
1421 (print_function_ulps): Likewise.
1422 (print_complex_function_ulps): Likewise.
1423 (print_max_error): Likewise.
1424 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
1426 2001-10-16 Andreas Schwab <schwab@suse.de>
1428 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
1431 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
1432 BSD_SETJMP or BSD__SETJMP is defined, resp.
1433 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
1434 a tail call to __sigsetjmp that would require extending the
1436 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
1437 * sysdeps/m68k/bsd-setjmp.S: Deleted.
1438 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
1439 Reported by Jes Sorensen <jes@trained-monkey.org>.
1441 2001-10-16 Andreas Jaeger <aj@suse.de>
1443 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
1444 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
1447 2001-10-15 Ulrich Drepper <drepper@redhat.com>
1449 * po/ca.po: New file. Contributed by the translation team.
1451 2001-10-15 Ralf Baechle <ralf@gnu.org>
1453 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
1454 a varargs prototype. Remove dependency from kernel header files.
1456 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
1457 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
1459 2001-10-14 Ulrich Drepper <drepper@redhat.com>
1461 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
1462 to generate hexadecimal identifier.
1463 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
1465 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
1467 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
1469 2001-10-14 Ulrich Drepper <drepper@redhat.com>
1471 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
1472 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
1473 Contributed by Stephen L Moshier <moshier@mediaone.net>.
1475 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
1476 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1477 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
1478 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
1479 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
1480 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
1482 * timezone/africa: Update from tzdata2001d.
1483 * timezone/asia: Likewise.
1484 * timezone/australasia: Likewise.
1485 * timezone/backward: Likewise.
1486 * timezone/europe: Likewise.
1487 * timezone/leapseconds: Likewise.
1488 * timezone/northamerica: Likewise.
1489 * timezone/southamerica: Likewise.
1490 * timezone/zone.tab: Likewise.
1492 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1494 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
1495 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
1497 2001-10-12 Ulrich Drepper <drepper@redhat.com>
1499 * elf/elf.h (PT_TLS): New definition.
1501 2001-10-10 Jeff Bailey <jbailey@nisa.net>
1503 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
1506 2001-10-07 Roland McGrath <roland@frob.com>
1508 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
1510 2001-10-10 Ulrich Drepper <drepper@redhat.com>
1512 * elf/elf.h: Add more ELFOSABI_* constants.
1514 2001-10-04 Ben Collins <bcollins@debian.org>
1516 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
1517 decleration of __need_wchar_t.
1519 2001-10-03 Jakub Jelinek <jakub@redhat.com>
1521 * string/bits/string2.h (__strsep_g): Add prototype.
1523 * string/Versions (__strsep): Remove.
1524 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
1526 2001-10-07 Ulrich Drepper <drepper@redhat.com>
1528 * manua/llio.texi: Clarify file references added by mmap.
1529 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1531 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
1533 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1534 Add sc_loadrs and sc_rbs_bas to match current kernel.
1536 2001-09-27 Jakub Jelinek <jakub@redhat.com>
1538 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1540 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
1542 2001-09-27 Jakub Jelinek <jakub@redhat.com>
1544 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
1545 object has been bumped because of relocation dependency, avoid
1546 duplicates in l_scope.
1547 (show_scope): Fix typos.
1548 * elf/Makefile: Add rules to build and run reldep6.
1549 * elf/reldep6.c: New file.
1550 * elf/reldep6mod0.c: New file.
1551 * elf/reldep6mod1.c: New file.
1552 * elf/reldep6mod2.c: New file.
1553 * elf/reldep6mod3.c: New file.
1554 * elf/reldep6mod4.c: New file.
1556 2001-09-26 Jakub Jelinek <jakub@redhat.com>
1558 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
1560 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
1561 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
1562 for non-lazy binding. Fix .plt[32768+] handling.
1563 (elf_machine_plt_value): Don't add addend.
1564 (elf_machine_rela): Call sparc64_fixup_plt instead of
1565 elf_machine_fixup_plt.
1566 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
1567 dynamic linker at 0xfffff800XXXXXXXX.
1569 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1571 2001-09-28 Ulrich Drepper <drepper@redhat.com>
1573 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
1575 2001-09-25 Jakub Jelinek <jakub@redhat.com>
1577 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
1578 declare __cmsg_data field if its size would be bigger than 0.
1579 (CMSG_DATA): Adjust accordingly.
1580 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
1581 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
1582 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
1583 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
1584 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1585 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
1586 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1588 2001-09-25 Ulrich Drepper <drepper@redhat.com>
1590 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
1591 * iconvdata/testdata/IBM1160: New file.
1592 * iconvdata/testdata/IBM1160..UTF8: New file.
1593 * iconvdata/testdata/IBM1161: New file.
1594 * iconvdata/testdata/IBM1161..UTF8: New file.
1595 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1597 2001-09-24 Ulrich Drepper <drepper@redhat.com>
1599 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
1600 UL_SETFSIZE computations better.
1602 * rt/Makefile: Remove use of filter for librt again.
1604 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
1605 UL_SETFSIZE computations better.
1607 * string/Versions: Export __strsep for GLIBC_2.2.5.
1608 * string/bits/string2.h: Define all __STRING_INLINE functions if
1609 _FORCE_INLINES is defined.
1610 Use int instead of char of parameter types.
1611 (__strsep): Don't use __strsep_g. Don't define it.
1612 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
1613 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
1615 (__stpcpy_a_small): Renamed from __stpcpy_small.
1616 (__strcspn_c1): Don't define if _FORCE_INLINES.
1617 (__strspn_c1): Likewise.
1619 2001-09-22 Ben Collins <bcollins@debian.org>
1621 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
1622 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
1623 * sysdeps/ia64/bits/sigaction.h: Likewise.
1624 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
1626 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
1628 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
1630 2001-09-24 Jakub Jelinek <jakub@redhat.com>
1632 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
1634 2001-09-24 Ulrich Drepper <drepper@redhat.com>
1636 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
1638 2001-09-20 H.J. Lu <hjl@gnu.org>
1640 * include/dlfcn.h (__RTLD_SPROF): New definiton.
1641 * elf/dl-open.c (dl_open_worker): Return immediately after loading
1643 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
1644 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
1646 2001-09-20 H.J. Lu <hjl@gnu.org>
1648 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
1651 2001-09-22 Ulrich Drepper <drepper@redhat.com>
1653 * nss/getent.c: Accept -s parameter to overwrite rules in
1654 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
1656 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
1657 with as many ".0" as necessary to form a complete address
1658 inet_network understands.
1660 * nss/getent.c: Various cleanups. Use simpler and fewer function
1663 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1665 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
1667 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
1669 2001-09-22 Ulrich Drepper <drepper@redhat.com>
1671 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
1673 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
1674 * iconvdata/ibm1160.c: New file.
1675 * iconvdata/ibm1160.h: New file.
1676 * iconvdata/ibm1161.c: New file.
1677 * iconvdata/ibm1161.h: New file.
1678 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1680 2001-09-19 Jakub Jelinek <jakub@redhat.com>
1682 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
1683 difference between base address and first PT_LOAD's virtual address,
1684 not the base address.
1686 2001-09-11 Tom Rix <trix@redhat.com>
1688 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
1689 ifdef for __getopt_clean_environment.
1690 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
1692 2001-09-22 Andreas Jaeger <aj@suse.de>
1694 * elf/reldep4.c (main): Add proper prototype to fix warning.
1696 * elf/reldep5.c (main): Remove unused variable.
1698 * math/math_private.h: Add prototypes.
1700 2001-09-21 Andreas Jaeger <aj@suse.de>
1702 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
1703 * sysdeps/x86_64/Dist: New file.
1704 * sysdeps/x86_64/soft-fp/Dist: New file.
1706 * sysdeps/gnu/Dist: Remove eval.c.
1708 2001-09-20 Ulrich Drepper <drepper@redhat.com>
1710 * malloc/memusage.c (realloc): Don't count already allocated
1712 (me): Always use dlsym() to find the real implementations.
1714 * malloc/memusage.sh: Make -n option actually do something.
1716 2001-09-20 Andreas Jaeger <aj@suse.de>
1718 * elf/elf.h (R_390_NUM): Correct value.
1720 * Versions.def: Add missing versions 2.2.3 for libthread_db and
1723 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
1724 for x86-64, install x86-64 into */lib64.
1726 * shlib-versions: Add x86-64.
1728 * elf/elf.h: Add x86-64 relocations.
1730 2001-09-19 Ulrich Drepper <drepper@redhat.com>
1732 * po/fr.po: Update from translation team.
1734 2001-09-19 Andreas Jaeger <aj@suse.de>
1736 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
1737 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
1738 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
1739 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
1740 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
1741 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
1742 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
1743 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
1744 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
1745 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
1746 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
1747 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
1748 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
1749 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
1750 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
1751 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
1752 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
1753 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
1754 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
1755 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
1756 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
1757 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
1758 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
1759 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
1760 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
1761 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
1762 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
1763 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
1764 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
1765 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
1766 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
1767 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
1768 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
1769 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
1770 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
1771 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
1772 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
1773 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
1774 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
1775 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
1776 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
1777 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
1778 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
1779 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
1780 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
1781 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
1782 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
1783 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
1784 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
1785 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
1786 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
1787 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
1788 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
1789 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
1790 * sysdeps/unix/x86_64/sysdep.S: New file.
1791 * sysdeps/unix/x86_64/sysdep.h: New file.
1792 * sysdeps/x86_64/Implies: New file.
1793 * sysdeps/x86_64/Makefile: New file.
1794 * sysdeps/x86_64/Versions: New file.
1795 * sysdeps/x86_64/__longjmp.S: New file.
1796 * sysdeps/x86_64/abort-instr.h: New file.
1797 * sysdeps/x86_64/atomicity.h: New file.
1798 * sysdeps/x86_64/bits/endian.h: New file.
1799 * sysdeps/x86_64/bits/setjmp.h: New file.
1800 * sysdeps/x86_64/bits/string.h: New file.
1801 * sysdeps/x86_64/bp-asm.h: New file.
1802 * sysdeps/x86_64/bsd-_setjmp.S: New file.
1803 * sysdeps/x86_64/bsd-setjmp.S: New file.
1804 * sysdeps/x86_64/dl-machine.h: New file.
1805 * sysdeps/x86_64/elf/initfini.c: New file.
1806 * sysdeps/x86_64/elf/start.S: New file.
1807 * sysdeps/x86_64/ffs.c: New file.
1808 * sysdeps/x86_64/ffsll.c: New file.
1809 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
1810 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
1811 * sysdeps/x86_64/fpu/e_acosl.c: New file.
1812 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
1813 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
1814 * sysdeps/x86_64/fpu/e_expl.c: New file.
1815 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
1816 * sysdeps/x86_64/fpu/e_log10l.S: New file.
1817 * sysdeps/x86_64/fpu/e_log2l.S: New file.
1818 * sysdeps/x86_64/fpu/e_logl.S: New file.
1819 * sysdeps/x86_64/fpu/e_powl.S: New file.
1820 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
1821 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
1822 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
1823 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
1824 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
1825 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
1826 * sysdeps/x86_64/fpu/fegetenv.c: New file.
1827 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
1828 * sysdeps/x86_64/fpu/fegetround.c: New file.
1829 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
1830 * sysdeps/x86_64/fpu/fesetenv.c: New file.
1831 * sysdeps/x86_64/fpu/fesetround.c: New file.
1832 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
1833 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
1834 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
1835 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
1836 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
1837 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
1838 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
1839 * sysdeps/x86_64/fpu/s_atanl.c: New file.
1840 * sysdeps/x86_64/fpu/s_cosl.S: New file.
1841 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
1842 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
1843 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
1844 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
1845 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
1846 * sysdeps/x86_64/fpu/s_logbl.c: New file.
1847 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
1848 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
1849 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
1850 * sysdeps/x86_64/fpu/s_rintl.c: New file.
1851 * sysdeps/x86_64/fpu/s_significandl.c: New file.
1852 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
1853 * sysdeps/x86_64/fpu/s_sinl.S: New file.
1854 * sysdeps/x86_64/fpu/s_tanl.S: New file.
1855 * sysdeps/x86_64/gmp-mparam.h: New file.
1856 * sysdeps/x86_64/hp-timing.c: New file.
1857 * sysdeps/x86_64/hp-timing.h: New file.
1858 * sysdeps/x86_64/htonl.S: New file.
1859 * sysdeps/x86_64/memusage.h: New file.
1860 * sysdeps/x86_64/setjmp.S: New file.
1861 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
1862 * sysdeps/x86_64/stackinfo.h: New file.
1863 * sysdeps/x86_64/sysdep.h: New file.
1864 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
1866 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
1869 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1871 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
1872 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
1874 2001-09-18 Andreas Schwab <schwab@suse.de>
1876 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
1877 list, now that l_scope is a pointer.
1879 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
1882 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
1884 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
1885 (elf_machine_rela_relative): Add a missing declaration.
1887 2001-09-18 Jakub Jelinek <jakub@redhat.com>
1889 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
1890 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
1891 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
1892 ldd-rewrite scripts.
1894 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1896 * elf/ldd.bash.in: Update copyright message.
1898 2001-09-17 H.J. Lu <hjl@gnu.org>
1900 * hurd/hurdmalloc.c (bcopy): Removed.
1901 (realloc): Replace bcopy with memcpy.
1902 * hurd/path-lookup.c (file_name_path_scan): Likewise.
1903 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
1904 * sunrpc/rpcinfo.c (pmapdump): Likewise.
1906 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
1907 (gethostbyaddr): Likewise.
1908 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
1910 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1912 * sysdeps/gnu/eval.c: Removed.
1914 2001-09-18 Andreas Jaeger <aj@suse.de>
1916 * sysdeps/i386/fpu/s_logbl.S: Move to ...
1917 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
1919 * sysdeps/i386/fpu/s_rintl.S: Move to ...
1920 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
1922 * sysdeps/i386/fpu/s_significandl.S: Move to ...
1923 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
1925 2001-09-16 Ulrich Drepper <drepper@redhat.com>
1927 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1930 2001-09-14 H.J. Lu <hjl@gnu.org>
1932 * sysdeps/mips/fpu/libm-test-ulps: Updated.
1934 2001-09-14 Ulrich Drepper <drepper@redhat.com>
1936 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
1937 Patch by Florian La Roche <laroche@redhat.com>.
1939 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
1941 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
1944 2001-09-14 Andreas Schwab <schwab@suse.de>
1946 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
1947 Sumner <bls@sgi.com>.
1948 * posix/execlp.c: Likewise.
1950 2001-09-13 Jakub Jelinek <jakub@redhat.com>
1952 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
1953 is already found earlier in the search scope.
1955 2001-09-12 Jakub Jelinek <jakub@redhat.com>
1957 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
1960 2001-09-13 Ulrich Drepper <drepper@redhat.com>
1962 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
1964 2001-09-12 Ulrich Drepper <drepper@redhat.com>
1966 * config.h.in: Enforce optimization to be used.
1967 * Makeconfig (preprocess-versions): Define ASSEMBLER.
1968 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
1969 * posix/Makefile (annexc-CFLAGS): Define to -O.
1970 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
1972 2001-09-11 Ulrich Drepper <drepper@redhat.com>
1974 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
1975 Patch by Stephan Kulow.
1977 2001-09-08 Ben Collins <bcollins@debian.org>
1979 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
1980 usage of RESOLVE() (r_type, not reloc->r_type).
1982 2001-09-08 Ulrich Drepper <drepper@redhat.com>
1984 * elf/dl-object.c: Avoid allocating extra memory block for name.
1985 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
1986 allocated separately.
1987 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1989 2001-09-08 H.J. Lu <hjl@gnu.org>
1991 * po/zh_TW.po: Fix a typo.
1993 2001-09-07 Tom Rix <trix@redhat.com>
1995 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
1997 2001-08-26 Tom Rix <trix@redhat.com>
1999 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2000 command line options.
2001 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2002 * sysdeps/unix/sysv/aix/start.c: Removed.
2003 * sysdeps/unix/sysv/aix/start-libc.c: New file.
2004 * sysdeps/unix/sysv/aix/init-first.c: New file.
2005 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2007 2001-09-08 Ben Collins <bcollins@debian.org>
2009 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2010 * sysdeps/generic/dl-machine.h: Likewise.
2011 * sysdeps/hppa/dl-fptr.c: Likewise.
2012 * sysdeps/ia64/dl-fptr.c: Likewise.
2013 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2014 * sysdeps/mips/dl-machine.h: Likewise.
2015 * sysdeps/mips/mips64/dl-machine.h: Likewise.
2016 * sysdeps/powerpc/dl-machine.c: Likewise.
2018 2001-09-07 Ben Collins <bcollins@debian.org>
2020 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2022 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2024 2001-09-08 Ulrich Drepper <drepper@redhat.com>
2026 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2027 dependencies if necessary.
2029 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2030 loaded directly) determine length if l_initfini list by iterating
2031 over its elements. Minor optimizations.
2032 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2033 for dependency objects.
2034 If object was already loaded check whether any of the dependencies
2035 is already on the relocation dependency list. If yes, remove the
2036 latter. Minor optimizations.
2037 * elf/dl-lookup.c (add_dependency): Add check for self reference of
2038 maps here. Search l_initfini list only if the object was loaded
2039 directly and not only as a dependency.
2040 (_dl_lookup_symbol): Add relocation dependency also if object
2041 is not in global scope. Remove test for self-reference here.
2042 (_dl_lookup_versioned_symbol): Likewise.
2043 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
2044 element of first name record.
2045 * elf/loadtest.c: Add some more test to recognize early if an object
2047 * elf/Makefile: Add rules to build and run reldep5.
2048 * elf/reldep5.c: New file.
2049 * elf/reldepmod5.c: New file.
2050 * elf/reldepmod6.c: New file.
2052 * elf/reldep2.c: Fix typo.
2054 2001-09-07 Ulrich Drepper <drepper@redhat.com>
2056 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
2057 elements. Change l_scope to be a pointer only.
2058 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
2059 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
2060 here add searchlist of newly open file to the dependency's scope.
2061 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
2062 only searchlist from its scope. Free own scope array if necessary.
2063 * elf/Makefile (tests): Add dblload and dblunload now.
2065 2001-09-06 Andreas Jaeger <aj@suse.de>
2067 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
2070 2001-09-05 Ulrich Drepper <drepper@redhat.com>
2072 * elf/Makefile: Add rules to build new tests. Don't run them yet since
2074 * elf/dblload.c: New file.
2075 * elf/dblloadmod1.c: New file.
2076 * elf/dblloadmod2.c: New file.
2077 * elf/dblloadmod3.c: New file.
2078 * elf/dblunload.c: New file.
2080 2001-09-04 Richard Henderson <rth@redhat.com>
2082 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
2083 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
2085 2001-09-04 Ulrich Drepper <drepper@redhat.com>
2087 Correct very misleading message for error in failed runtime relocation.
2088 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
2090 (_dl_signal_cerror): Likewise.
2091 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2092 * elf/dl-close.c: Likewise.
2093 * elf/dl-deps.c: Likewise.
2094 * elf/dl-load.c: Likewise.
2095 * elf/dl-lookup.c: Likewise.
2096 * elf/dl-open.c: Likewise.
2097 * elf/dl-reloc.c: Likewise.
2098 * elf/dl-sym.c: Likewise.
2099 * elf/dl-version.c: Likewise.
2100 * sysdeps/generic/dl-sysdep.c: Likewise.
2102 2001-09-04 Jakub Jelinek <jakub@redhat.com>
2104 * iconv/strtab.c (strtabinit): Initialize null Strent.
2105 (newstring): Move len == 0 handling...
2106 (strtabadd): ...here.
2107 If len == 1, return null Strent.
2108 When inserting a suffix of an existing string, check if
2109 it is not equal to some suffix already recorded.
2110 Copy left and right members over if adding longer string.
2112 2001-09-04 Jakub Jelinek <jakub@redhat.com>
2114 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
2116 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
2117 (__syscall_gethostname): Add prototype.
2119 2001-09-04 Ulrich Drepper <drepper@redhat.com>
2121 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
2123 2001-09-02 Ulrich Drepper <drepper@redhat.com>
2125 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
2127 2001-08-27 Roland McGrath <roland@frob.com>
2129 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
2130 short, copy that much into NAME anyway before returning error.
2132 2001-09-01 Richard Henderson <rth@redhat.com>
2134 * sysdeps/alpha/elf/Dist: Remove file.
2135 * sysdeps/alpha/elf/Makefile: Remove file.
2136 * sysdeps/alpha/elf/crtbegin.S: Remove file.
2137 * sysdeps/alpha/elf/crtend.S: Remove file.
2138 * sysdeps/alpha/elf/initfini.c: New file.
2140 2001-09-01 Mark Kettenis <kettenis@gnu.org>
2142 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
2143 * iconv/tst-iconv3.c: Likewise.
2145 2001-09-01 Jakub Jelinek <jakub@redhat.com>
2147 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
2149 2001-09-01 Ulrich Drepper <drepper@redhat.com>
2151 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
2153 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
2154 * iconv/iconv_prog.c (insert_cache): New function.
2155 (print_known_names): If cache is used call insert_cache to use the
2156 information from the cache [PR libc/2509].
2158 2001-08-31 Ulrich Drepper <drepper@redhat.com>
2160 * time/strptime.c (strptime_internal): Recognize 'l' format and
2161 handle it like 'I' for symmetry with strftime.
2163 2001-08-31 Richard Henderson <rth@redhat.com>
2165 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
2166 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
2167 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
2168 (print_statistics): Make scalar unsigned long long.
2169 * sysdeps/alpha/hp-timing.h: New file.
2171 2001-08-31 Jakub Jelinek <jakub@redhat.com>
2173 * stdio-common/perror.c (perror): Save errno early, pass it
2174 down to perror_internal.
2175 (perror_internal): Add errnum argument.
2177 2001-08-31 Jakub Jelinek <jakub@redhat.com>
2179 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
2180 Don't add old memory content for R_ALPHA_REFQUAD.
2182 2001-08-30 Ulrich Drepper <drepper@redhat.com>
2184 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
2187 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
2188 instead of open, __close instead of close, __getpagesize instead
2191 * string/argz-stringify.c (__argz_stringify): Use __strnlen
2193 * include/string.h (strndupa): Redefine here to use __strnlen
2195 * string/strndup.c (__strndup): Use __strnlen not strnlen.
2197 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
2200 2001-08-30 Jakub Jelinek <jakub@redhat.com>
2202 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
2203 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
2204 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2205 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
2206 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
2207 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
2208 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
2210 2001-08-30 Ulrich Drepper <drepper@redhat.com>
2212 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
2214 2001-08-30 Andreas Jaeger <aj@suse.de>
2216 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
2217 contributed Stephen L Moshier.
2219 2001-08-30 Jakub Jelinek <jakub@redhat.com>
2221 * sunrpc/etc.rpc (sgi_fam): Add.
2223 2001-08-30 Ulrich Drepper <drepper@redhat.com>
2225 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
2227 2001-08-29 Ulrich Drepper <drepper@redhat.com>
2229 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
2230 first is from a previous call.
2231 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
2233 2001-08-29 Andreas Schwab <schwab@suse.de>
2235 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
2237 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2239 * config.make.in (INSTALL_SCRIPT): Define.
2240 * Makeconfig (INSTALL_SCRIPT): Define.
2241 * Makerules (do-install-script): New macro to install scripts using
2243 (install-bin-script): New rule to install scripts with
2245 (install-bin-script-nosubdir): New rule.
2246 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
2247 (distinfo-vars): Add $(install-bin-script).
2248 * Rules (others): Likewise.
2249 * Makefile (glibcbug): Install with install-bin-script.
2250 * debug/Makefile (xtrace): Likewise.
2251 (catchsegv): Likewise.
2252 * elf/Makefile (ldd): Likewise.
2253 * malloc/Makefile (mtrace): Likewise.
2254 * timezone/Makefile (tzselect): Likewise.
2256 2001-08-29 H.J. Lu <hjl@gnu.org>
2258 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
2259 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
2260 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
2262 2001-08-29 Andreas Schwab <schwab@suse.de>
2264 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
2266 2001-08-28 H.J. Lu <hjl@gnu.org>
2268 * Makeconfig (combreloc-LDFLAGS): New variable.
2269 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
2270 * config.make.in (have-z-combreloc): New variable.
2271 * configure.in: Substitute libc_cv_z_combreloc.
2273 2001-08-29 Ulrich Drepper <drepper@redhat.com>
2275 * po/sv.po: Update from translation team.
2276 * po/fr.po: Likewise.
2277 * po/da.po: Likewise.
2279 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2281 * Makerules: Fix a typo: MD% -> MD5.
2283 2001-08-28 Ulrich Drepper <drepper@redhat.com>
2285 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
2286 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
2288 2001-08-28 Andreas Jaeger <aj@suse.de>
2290 * manual/libc-texinfo.sh: Add entry about free manuals.
2292 * manual/contrib.texi (Contributors): Fix cross reference.
2294 * manual/libc.texinfo (Copying): Include freemanuals.
2296 * manual/Makefile (appendices): Add freemanuals.
2298 * manual/freemanuals.texi: New file.
2299 Patch by Brian Youmans <3diff@gnu.org>.
2301 * manual/libm-err-tab.pl: Pretty print more platforms, print a
2304 * manual/math.texi (Errors in Math Functions): Fix grammar, start
2305 table on separate page.
2306 Patch by Brian Youmans <3diff@gnu.org>.
2308 2001-08-27 Ulrich Drepper <drepper@redhat.com>
2310 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
2311 the connection went down after we first used it try to connect
2312 again and resend the message before printing to the console.
2313 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
2315 2001-08-27 Jakub Jelinek <jakub@redhat.com>
2317 * string/tst-strlen.c (main): Test strnlen (, -1) too.
2318 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
2321 2001-08-27 Ulrich Drepper <drepper@redhat.com>
2323 * iconv/strtab.c (searchstring): Use correct length for comparison.
2324 (strtabadd): Account total size correct if new string has old string as
2327 2001-08-27 Jakub Jelinek <jakub@redhat.com>
2329 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
2331 2001-08-27 Andreas Jaeger <aj@suse.de>
2333 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
2335 * math/libm-test.inc (j0_test): Add extra tests.
2336 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
2337 not x, in Hankel approximation.
2338 Patches by Stephen L Moshier.
2340 2001-08-26 Ulrich Drepper <drepper@redhat.com>
2342 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
2345 * configure.in: Fix test for .rela.dyn section.
2347 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
2349 2001-08-26 Jakub Jelinek <jakub@redhat.com>
2351 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
2352 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
2353 Pass type_class to _dl_lookup_*.
2354 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
2355 Pass around just type_class instead of noexec, noplt pair.
2356 (_dl_lookup_versioned_symbol): Likewise.
2357 (_dl_lookup_symbol_skip): Pass around just type_class instead of
2359 (_dl_lookup_versioned_symbol_skip): Likewise.
2360 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
2361 * elf/do-lookup.h (do_lookup): Likewise.
2362 * include/link.h (struct link_map): Replace noexec and noplt fields
2363 in l_lookup_cache with type_class field.
2364 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
2365 ELF_RTYPE_CLASS_COPY): Define.
2366 Adjust prototypes for _dl_lookup_symbol and
2367 _dl_lookup_versioned_symbol.
2368 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
2369 elf_machine_lookup_noexec_p): Remove.
2370 (elf_machine_type_class): Define.
2371 * sysdeps/arm/dl-machine.h: Likewise.
2372 * sysdeps/hppa/dl-machine.h: Likewise.
2373 * sysdeps/cris/dl-machine.h: Likewise.
2374 * sysdeps/i386/dl-machine.h: Likewise.
2375 * sysdeps/ia64/dl-machine.h: Likewise.
2376 * sysdeps/m68k/dl-machine.h: Likewise.
2377 * sysdeps/mips/mips64/dl-machine.h: Likewise.
2378 * sysdeps/mips/dl-machine.h: Likewise.
2379 * sysdeps/powerpc/dl-machine.h: Likewise.
2380 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2381 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2382 * sysdeps/sh/dl-machine.h: Likewise.
2383 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2384 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2386 2001-08-26 Ulrich Drepper <drepper@redhat.com>
2388 * manual/message.texi (Advanced gettext functions): Change
2389 description of plural forms for Slovak.
2390 Reported by Marcel Telka <marcel@telka.sk>.
2392 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
2393 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
2395 2001-08-26 Jakub Jelinek <jakub@redhat.com>
2397 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
2398 typo. Patch by Florian La Roche <laroche@redhat.com>.
2400 2001-08-26 Ulrich Drepper <drepper@redhat.com>
2402 * include/link.h (struct link_map): Add l_lookup_cache element.
2403 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
2404 (RESOLVE_MAP): Likewise.
2405 (_dl_relocate_object): Remove cache initialization.
2406 * elf/dl-lookup.c: Rip out cache handling code.
2407 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
2410 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
2411 remove some __builtin_expect.
2412 (_dl_lookup_versioned_symbol): Likewise.
2414 * config.h.in: Add HAVE_Z_COMBRELOC.
2415 * configure.in: Add test for -z combreloc.
2417 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
2418 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
2419 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
2420 case to almost no code.
2422 2001-08-25 Ulrich Drepper <drepper@redhat.com>
2424 * po/tr.po: Update from translation team.
2426 2001-08-24 Andreas Jaeger <aj@suse.de>
2428 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
2431 2001-08-24 Ulrich Drepper <drepper@redhat.com>
2433 * elf/rtld.c (print_statistics): Printf % after percent values.
2434 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
2436 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
2437 don't have to compute the hash value and initialize current_value.
2438 Move reference_name variable to where it is needed.
2439 (_dl_lookup_versioned_symbol): Likewise.
2441 2001-08-24 Roland McGrath <roland@frob.com>
2443 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
2444 Just test that strerror returns non-null for a few errno codes.
2446 2001-08-23 Roland McGrath <roland@frob.com>
2448 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
2449 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
2451 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
2453 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
2456 2001-08-24 Ulrich Drepper <drepper@redhat.com>
2458 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
2461 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
2462 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
2464 * elf/rtld.c: Include <sys/param.h>.
2465 * elf/dl-reloc.c: Likewise.
2467 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2469 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
2470 empty to prevent junk from being generated.
2471 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
2473 2001-08-24 Jakub Jelinek <jakub@redhat.com>
2475 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
2476 records. Rename endrel to relative, initialize it to r, and use it
2477 in elf_machine_rel_relative calls. Point r after relative relocs.
2479 2001-08-24 Ulrich Drepper <drepper@redhat.com>
2481 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
2484 2001-08-24 Jakub Jelinek <jakub@redhat.com>
2486 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
2487 necessary. Undefine newly defined macros at the end.
2488 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
2489 Rename from elf_machine_rel_relative.
2490 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
2491 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
2492 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
2493 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
2495 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
2497 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
2499 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
2501 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
2502 Likewise. Fix argument types.
2503 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
2504 Likewise. Fix argument types.
2505 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
2507 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
2508 ElfW(Rel) in argument.
2509 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
2512 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2514 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
2516 2001-08-24 Andreas Jaeger <aj@suse.de>
2518 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
2519 Stephen L Moshier <moshier@mediaone.net>.
2521 2001-08-24 Ulrich Drepper <drepper@redhat.com>
2523 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
2524 first if RELCOUNT is set.
2526 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
2527 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
2528 elf_machine_rel_relative.
2529 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
2530 Minor optimizations.
2531 * sysdeps/arm/dl-machine.h: Likewise.
2532 * sysdeps/cris/dl-machine.h: Likewise.
2533 * sysdeps/hppa/dl-machine.h: Likewise.
2534 * sysdeps/i386/dl-machine.h: Likewise.
2535 * sysdeps/ia64/dl-machine.h: Likewise.
2536 * sysdeps/m68k/dl-machine.h: Likewise.
2537 * sysdeps/mips/dl-machine.h: Likewise.
2538 * sysdeps/powerpc/dl-machine.h: Likewise.
2539 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2540 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2541 * sysdeps/sh/dl-machine.h: Likewise.
2542 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2543 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2545 2001-08-23 Roland McGrath <roland@frob.com>
2547 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
2549 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
2550 sysdeps/mach version. Implement counting ("recursive") mutexes
2551 on top of cthreads mutexes.
2552 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
2554 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
2555 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
2556 (__libc_cleanup_region_start, __libc_cleanup_region_end,
2557 __libc_clean_end): Define these to call the cleanup function after
2558 normal exit when they're supposed to.
2560 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
2561 Take new first arg DOIT, a boolean saying whether to really install
2562 any cleanup handler.
2563 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
2564 (__libc_cleanup_end): Likewise.
2565 * sysdeps/generic/bits/libc-lock.h: Same changes.
2566 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
2567 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
2568 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
2570 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
2571 * sysdeps/generic/bits/stdio-lock.h
2572 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
2574 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2576 * elf/ldconfig.c (search_dir): Remove stale symlinks.
2578 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2580 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
2581 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
2583 (_dl_lookup_versioned_symbol): Likewise.
2584 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
2586 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
2587 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
2588 (lookup_cache, lookup_cache_versioned): Add declarations.
2590 2001-08-23 Ulrich Drepper <drepper@redhat.com>
2592 * stdlib/tst-random.c (main): Swap parameters in fail call.
2593 Patch by Pete Bevin <pete@petebevin.com>.
2595 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2597 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
2599 2001-08-23 Ulrich Drepper <drepper@redhat.com>
2601 * malloc/obstack.c: Indent preprocessor directives.
2602 Patch by Jim Meyering <meyering@ascend.com>.
2604 * po/ja.po: Update from translation team.
2606 2001-08-23 Roland McGrath <roland@frob.com>
2608 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
2610 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
2611 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
2613 2001-08-22 Roland McGrath <roland@frob.com>
2615 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
2616 __libc_lock_define_recursive.
2617 * elf/dl-open.c: Don't declare it here any more.
2618 * elf/dl-close.c: Likewise.
2619 * elf/dl-lookup.c: Likewise.
2620 * elf/dl-iteratephdr.c: Likewise.
2621 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
2622 __libc_lock_unlock_recursive.
2623 * elf/dl-close.c (_dl_close): Likewise
2624 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
2625 * elf/dl-open.c (_dl_open): Likewise
2627 * sysdeps/generic/bits/libc-lock.h
2628 (__libc_lock_define_recursive): New macro.
2629 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
2630 (_IO_lock_lock): Use __libc_lock_lock_recursive.
2631 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
2633 * conform/conformtest.pl (checknamespace): Sort the output list.
2635 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
2636 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
2637 definitions conditional on [__USE_XOPEN].
2639 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
2640 these unconditionally, not only use [__USE_BSD], so as to match
2641 the sysdeps/unix/sysv/linux files.
2643 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2645 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
2648 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
2651 2001-08-22 Roland McGrath <roland@frob.com>
2653 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
2654 conditionalization of sa_handler/sa_sigaction member types to
2655 match the sysdeps/unix/sysv/linux file.
2657 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2659 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
2660 symbol sizes a bit better.
2662 * sysdeps/ia64/strncpy.S: Complete rewrite.
2663 Contributed by Jakub Jelinek <jakub@redhat.com>.
2665 * string/stratcliff.c (main): Add strncpy test.
2667 2001-08-22 Roland McGrath <roland@frob.com>
2669 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
2670 and don't declare unsetenv or _environ directly.
2671 (unsetenv): Return int, not void. Use __environ instead of _environ.
2673 2001-08-01 Mark Kettenis <kettenis@gnu.org>
2675 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
2676 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
2677 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
2678 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
2679 test for cmsg struct size.
2681 2001-04-23 Paul Eggert <eggert@twinsun.com>
2683 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
2684 Rename __argc to ___argc in prototypes to avoid compatibility
2685 problems with systems that reserve the identifier "__argc".
2686 Similarly for __argv.
2688 2001-08-21 Roland McGrath <roland@frob.com>
2690 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
2692 * mach/Makefile (tests): Removed.
2693 * mach/hello.c: File removed.
2695 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2697 * po/sv.po: Update from translation team.
2699 * stdio-common/vfscanf.c: Fix handling of %l[].
2700 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
2702 * libio/Makefile (tests): Add tst-sscanf.
2703 * libio/tst-sscanf.c: New file.
2705 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
2706 * malloc/mtrace.c (tr_where): dli_sname always points to a
2707 non-empty string if != NULL.
2708 Reported by Tim Janik <timj@gtk.org>.
2710 2001-08-22 Jakub Jelinek <jakub@redhat.com>
2712 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
2713 buf. Free resources on failure.
2714 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
2715 (makefd_xprt): Likewise.
2716 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
2717 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
2718 * sunrpc/auth_unix.c (authunix_create): Likewise.
2720 2001-08-21 Jakub Jelinek <jakub@redhat.com>
2722 * string/strnlen.c: Remove.
2723 * sysdeps/generic/strnlen.c: New file.
2724 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
2726 2001-08-21 Roland McGrath <roland@frob.com>
2728 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
2729 as a macro, not an extern inline function.
2731 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
2732 * Versions.def (libc): Add GLIBC_2.2.5 set.
2733 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
2734 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
2736 2001-08-20 Roland McGrath <roland@frob.com>
2738 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
2739 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
2741 2001-08-21 Ulrich Drepper <drepper@redhat.com>
2743 * string/bits/string2.h: Remove strnlen optimization here.
2744 * sysdeps/i386/i486/bits/string.h: Add it here.
2746 2001-08-21 Wolfram Gloger <wg@malloc.de>
2748 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
2750 2001-08-21 Ulrich Drepper <drepper@redhat.com>
2752 * po/gl.po: Update from translation team.
2754 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2756 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
2757 * misc/err.c (convert_and_print): Likewise.
2759 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
2762 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2764 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
2765 change of the gregset_t type.
2766 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2768 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
2770 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
2772 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2774 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
2776 * string/strnlen.c: Fix the implementation. We cannot use memchr.
2778 2001-08-18 Mark Kettenis <kettenis@gnu.org>
2780 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
2781 before calling the cthreads initialization code.
2783 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2785 * argp/argp-help.c: Fix two problems introduced in last change.
2787 * include/dirent.h: Include <dirstream.h> first.
2789 2001-08-19 Ulrich Drepper <drepper@redhat.com>
2791 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
2793 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
2794 * sunrpc/xdr_rec.c: Likewise.
2795 * sunrpc/xdr_mem.c: Likewise.
2796 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
2797 * sunrpc/rpc_cmsg.c: Likewise.
2798 * sunrpc/getrpcport.c (getrpcport): Likewise.
2799 * sunrpc/clnt_simp.c (callrpc): Likewise.
2800 * sunrpc/clnt_gen.c (clnt_create): Likewise.
2801 * string/envz.c: Likewise.
2803 * po/ko.po: Update from translation team.
2805 * argp/argp-help.c: Handle wide oriented stderr stream.
2807 2001-08-18 Ulrich Drepper <drepper@redhat.com>
2809 * sysdeps/generic/strtol.c: Little optimizations. Add some
2812 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
2814 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
2815 * wcsmbs/wcwidth.c (wcwdith): Likewise.
2816 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
2818 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
2820 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
2822 * time/time.h (struct timespec): Use __time_t for tv_sec element.
2824 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
2825 wchar_t for function declarations and defintions.
2827 * misc/sys/select.h: Define __need_time_t before including <time.h>.
2828 Define suseconds_t if it hasn't happened yet.
2830 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
2832 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
2834 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
2837 * conform/data/stddef.h-data: Remove wint_t.
2839 * conform/conformtest.pl: Change namespace test to take #undef
2842 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
2844 * conform/data/sys/socket.h-data: Add sockatmark.
2846 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2848 * io/fts.c: Update from recent BSD source.
2850 2001-08-17 Roland McGrath <roland@frob.com>
2852 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
2853 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
2856 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2858 * locale/duplocale.c (__duplocale): Also initialize the special
2861 * conform/data/netdb.h-data: Adjust gai_strerror return type.
2863 2001-08-17 Andreas Jaeger <aj@suse.de>
2865 * misc/getpass.c: Include wchar.h for prototypes.
2866 * malloc/obstack.c: Likewise.
2868 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2870 * sunrpc/svc_simple.c (universal): Use __write instead of write.
2872 * wcsmbs/wcscoll.c: Also define __wcscoll.
2873 * include/wchar.h: Declare __wcscoll.
2875 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
2876 * libio/vwprintf.c: Likewise.
2877 * libio/wprintf.c: Likewise.
2879 * iconv/gconv_cache.c: Use __munmap instead of munmap.
2881 2001-08-16 Ulrich Drepper <drepper@redhat.com>
2883 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2885 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2886 wcslen, and __wcscoll instead of wcscoll.
2888 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
2890 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
2891 __getuid instead of getuid.
2893 * stdio-common/perror.c (perror): Use __close instead of close.
2894 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2895 * libio/freopen.c (freopen): Likewise.
2896 * libio/freopen64.c (freopen64): Likewise.
2898 * libio/tst-ungetwc2.c (main): Define str const.
2900 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
2901 * libio/fwprintf.c: Also define __fwprintf.
2902 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
2903 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
2904 * assert/assert-perr.c: Likewise.
2905 * assert/assert.c: Likewise.
2906 * gmon/gmon.c: Likewise.
2907 * inet/rcmd.c: Likewise.
2908 * malloc/obstack.c: Likewise.
2909 * misc/err.c: Likewise.
2910 * misc/error.c: Likewise.
2911 * misc/getpass.c: Likewise.
2912 * posix/getopt.c: Likewise.
2913 * resolv/res_hconf.c: Likewise.
2914 * stdio-common/perror.c: Likewise.
2915 * stdio-common/psignal.c: Likewise.
2916 * stdlib/fmtmsg.c: Likewise.
2917 * sunrpc/auth_unix.c: Likewise.
2918 * sunrpc/clnt_perr.c: Likewise.
2919 * sunrpc/clnt_tcp.c: Likewise.
2920 * sunrpc/clnt_udp.c: Likewise.
2921 * sunrpc/clnt_unix.c: Likewise.
2922 * sunrpc/svc_simple.c: Likewise.
2923 * sunrpc/svc_tcp.c: Likewise.
2924 * sunrpc/svc_udp.c: Likewise.
2925 * sunrpc/svc_unix.c: Likewise.
2926 * sunrpc/xdr.c: Likewise.
2927 * sunrpc/xdr_array.c: Likewise.
2928 * sunrpc/xdr_rec.c: Likewise.
2929 * sunrpc/xdr_ref.c: Likewise.
2930 * sysdeps/generic/wordexp.c: Likewise.
2932 * po/it.po: Update from translation team.
2934 * misc/err.c: Handle wide oriented stderr stream.
2936 2001-08-14 Tom Rix <trix@redhat.com>
2938 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
2939 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
2941 2001-08-13 Tom Rix <trix@redhat.com>
2943 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
2944 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
2947 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
2949 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
2950 Store the access registers to the ucontext structure.
2951 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
2954 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
2955 Load the access registers from the ucontext structure.
2956 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
2959 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
2960 offsets to the new ucontext layout.
2961 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
2963 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
2964 of the ucontext structure.
2965 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2967 2001-08-15 Ulrich Drepper <drepper@redhat.com>
2969 * misc/error.c (error): Handle wide oriented stderr stream correctly.
2970 (error_at_line): Likewise.
2972 * stdio-common/perror.c (perror): Implement according to standard.
2973 The stream orientation must not be changed if the stream was not
2974 oriented before the call.
2975 * stdio-common/Makefile (tests): Add tst-perror.
2976 * stdio-common/tst-perror.c: New file.
2979 See ChangeLog.12 for earlier changes.