diff options
Diffstat (limited to 'ChangeLog.14')
-rw-r--r-- | ChangeLog.14 | 25720 |
1 files changed, 14325 insertions, 11395 deletions
diff --git a/ChangeLog.14 b/ChangeLog.14 index 241861369e..708e765084 100644 --- a/ChangeLog.14 +++ b/ChangeLog.14 @@ -1,13829 +1,16759 @@ -2002-10-03 Richard Henderson <rth@redhat.com> +2004-04-19 Roland McGrath <roland@redhat.com> - * sysdeps/alpha/stxncpy.S: Don't access memory beyond the source - buffer. - * sysdeps/alpha/alphaev6/stxncpy.S: Likewise. + * rt/tst-mqueue9.c (do_test): Initialize RESULT. -2002-10-02 Andreas Jaeger <aj@suse.de> - Guido Guenther <agx@sigxcpu.org> +2004-04-19 Jakub Jelinek <jakub@redhat.com> - * sysdeps/mips/fpu/fraiseexcpt.c: Add internal definition. - * sysdeps/mips/fpu/fesetenv.c: Likewise. + * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Change EPERM into + EACCES. + * rt/Makefile (tests): Add tst-mqueue9. + * rt/tst-mqueue9.c: New test. + * rt/tst-mqueue4.c (do_test): Add test for mq_unlink of a too long + name component. -2002-10-03 Jakub Jelinek <jakub@redhat.com> +2004-04-19 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/net/route.h: Include bits/wordsize.h. - (struct rtentry): Make rt_pad4 6 bytes long if __WORDSIZE == 64. - * sysdeps/unix/sysv/linux/alpha/Dist: Remove net/route.h. - * sysdeps/unix/sysv/linux/alpha/net/route.h: Remove. - * sysdeps/unix/sysv/linux/ia64/Dist: Remove net/route.h. - * sysdeps/unix/sysv/linux/ia64/net/route.h: Remove. - * sysdeps/unix/sysv/linux/s390/Dist: Remove net/route.h. - * sysdeps/unix/sysv/linux/s390/net/route.h: Remove. + * rt/tst-mqueue7.c (do_test): Make newargv const. -2002-10-03 Ulrich Drepper <drepper@redhat.com> +2004-04-18 Randolph Chung <tausq@debian.org> - * libio/freopen.c: Don't re-set _wide_data element if the stream - is of old style which didn't have the element. - * libio/freopen64.c: Likewise. + * sysdeps/hppa/elf/entry.h: New file. + * sysdeps/hppa/machine-gmon.h: New file. + * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Don't use x86 version. -2002-10-02 Ulrich Drepper <drepper@redhat.com> +2004-04-18 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/x86_64/Dist: Add bits/utmpx.h. - * sysdeps/unix/sysv/linux/sparc/Dist: Likewise. - * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise. + * sysdeps/unix/sysv/linux/powerpc/rt-sysdep.c: New file. + * sysdeps/unix/sysv/linux/powerpc/Makefile (librt-routines): Add + rt-sysdep. - * sysdeps/s390/s390-32/initfini.c: Avoid unterminated string literals. - * sysdeps/sh/elf/initfini.c: Likewise. - * sysdeps/mach/hurd/mips/init-first.c: Likewise. - * sysdeps/hppa/elf/initfini.c: Likewise. - * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Likewise. + * rt/tst-mqueue5.c (mqsend): Don't inline. + (mqrecv): Likewise. -2002-10-02 Steven Munroe <sjmunroe@us.ibm.com> - Jakub Jelinek <jakub@redhat.com> + * rt/tst-timer4.c: Include <string.h>. - * login/programs/utmpdump.c (print_entry): Copy up->ut_tv fields - to struct timeval temp_tv before printing to be 32-/64-bit agnostic. - * sysdeps/powerpc/bits/wordsize.h: Move to... - * sysdeps/powerpc/powerpc32/bits/wordsize.h: ...here. - (__WORDSIZE_COMPAT32): Define. - * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise. - * sysdeps/sparc/sparc32/bits/wordsize.h (__WORDSIZE_COMPAT32): - Define. - * sysdeps/sparc/sparc64/bits/wordsize.h (__WORDSIZE_COMPAT32): - Define. - * sysdeps/s390/bits/wordsize.h: Move to... - * sysdeps/s390/s390-32/bits/wordsize.h: ...here. - * sysdeps/s390/s390-64/bits/wordsize.h: Likewise. - * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Define. - * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: New file. - * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: New file. - * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: New file. - * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: New file. - * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: New file. - * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: New file. - -2002-10-02 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix comment typo. - Temporarily enable R_ALPHA_NONE relocs in ld.so. - * sysdeps/ia64/dl-machine.h (elf_machine_rela): Temporarily enable - R_IA64_NONE relocs in ld.so. - -2002-09-27 Steven Munroe <sjmunroe@us.ibm.com> - - * README.template: Minimum Linux kernel for powerpc64 is 2.4.19. - - * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (struct ipc_perm): - Use __uint32_t and __uint64_t for __seq, __pad1, __unused[12] fields - so they are consistent between PPC32 and PPC64. - - * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__WORDSIZE != 32]: - (_STAT_VER): Define to _STAT_VER_KERNEL. - (stru stat, struct stat64): Define to match the PPC64 kernel. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions - (libc: GLIBC_2.2): Remove __xstat64, __fxstat64, and __lxstat64. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/fxstat64.c: New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/lxstat64.c: New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/xstat64.c: New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add kernel_stat.h. - -2002-10-02 Roland McGrath <roland@redhat.com> - - * sysdeps/unix/sysv/linux/xstatconv.c [STAT_IS_KERNEL_STAT]: - Conditionalize the function definitions on this. - * sysdeps/unix/sysv/linux/xstat.c (__xstat) [STAT_IS_KERNEL_STAT]: - Don't use xstat_conv, just fail if VERS != _STAT_VER_KERNEL. - * sysdeps/unix/sysv/linux/fxstat.c (__fxstat) [STAT_IS_KERNEL_STAT]: - Likewise. - * sysdeps/unix/sysv/linux/lxstat.c (__lxstat) [STAT_IS_KERNEL_STAT]: - Likewise. +2004-04-17 Jakub Jelinek <jakub@redhat.com> -2002-10-02 Ulrich Drepper <drepper@redhat.com> + * rt/Makefile (tests): Add tst-mqueue8. + * rt/tst-mqueue8.c: New test. - * version.h (VERSION): Bump to 2.3. + * sysdeps/unix/sysv/linux/s390/Makefile (librt-routines): Add + rt-sysdep. + * sysdeps/unix/sysv/linux/s390/rt-sysdep.S: New file. - * elf/Makefile (distribute): Add tst-tlsmod1.c, tst-tlsmod2.c, - tst-tlsmod3.c, tst-tlsmod4.c, circlemod1.c, circlemod1a.c, - circlemod2.c, circlemod2a.c, circlemod3.c, circlemod3a.c, - and nodlopenmod2.c. +2004-03-26 H.J. Lu <hongjiu.lu@intel.com> - * login/Makefile (distribute): Add utmp-equal.h. + * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c (__fxstat): Don't + use "struct kernel_stat". - * iconvdata/Makefile (distribute): Add TSCII.precomposed and - TSCII.irreversible. +2004-04-02 H.J. Lu <hongjiu.lu@intel.com> - * Make-dist (dist): Create .bz2 file. Add rule to create .bz2 files. - Also distribute xtests sources. + * sysdeps/ia64/memcmp.S: Fix symbol. -2002-10-02 Kaz Kojima <kkojima@rr.iij4u.or.jp> +2004-04-04 Carlos O'Donell <carlos@baldric.uwo.ca> - * elf/elf.h: Change TLS ELF relocation numbers. - * elf/tls-macros.h: Fix code sequences for SH TLS_LD and TLS_GD - macros. - * sysdeps/sh/dl-machine.h (dl_machine_rela) [case R_SH_TLS_TPOFF32]: - Use addend. - * sysdeps/sh/elf/initfini.c: Move __fpscr_values to... - * sysdeps/sh/elf/start.S: ...here. + * sysdeps/hppa/Dist: Add bits/link.h elf/entry.h. -2002-10-01 Jakub Jelinek <jakub@redhat.com> + * sysdeps/hppa/bits/link.h: New file. - * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ, - SIGSTKSZ): Changed to match kernel. - * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h: New file. + * sysdeps/hppa/dl-machine.h (__hppa_init_bootstrap_fdesc_table): + Initialze the fdesc table for the generic code. + (elf_machine_dynamic): Use asm version. + (elf_machine_load_addresss): Simplify asm by calling + elf_machine_dynamic. + (elf_machine_fixup_plt): Correct comment. + (elf_machine_profile_fixup_plt): New. + (elf_machine_runtime_setup): Check PLT exists, if lazy=1 process + normally, else relocate all the absolute entries. + (RTLD_START): Fix comments. + (TRAMPOLINE_TEMPLATE): Reformat assembly, add return pointer for + calls to profile_fixup. + (ELF_MACHINE_SIZEOF_JMP_SLOT, DL_STATIC_FUNCTION_ADDRESS, + DL_PLATFORM_INIT): Define. + (DL_FUNCTION_ADDRESS): Remove. + (dl_platform_init): New. + (elf_machine_rela): Use generic fdesc code, and process all COPY + relocations. Use __attribute__((always_inline)). + (elf_machine_rela_relative): Add sanity checks, remove IPLT + processing, print error message in default case. Use + __attribute__((always_inline)). + (elf_machine_lazy_rel): Use __attribute__((always_inline)). -2002-10-01 Carlos O'Donell <carlos@baldric.uwo.ca> +2004-04-05 Carlos O'Donell <carlos@baldric.uwo.ca> - * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h - [__USE_GNU] (F_SETLEASE, F_GETLEASE, F_NOTIFY): New macros. - [__USE_GNU] (DN_ACCESS, DN_MODIFY, DN_CREATE, DN_DELETE, DN_RENAME, - DN_ATTRIB, DN_MULTISHOT): New macros. + * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Use only sw[0] + and call feraiseexcept. -2002-02-08 Randolph Chung <tausq@debian.org> +2003-11-15 Randolph Chung <tausq@debian.org> - * sysdeps/hppa/elf/start.S: Define __data_start. + * gmon/gmon.c (__monstartup): Round kcountsize to multiples of + the froms[] array so the array is properly aligned. -2002-10-01 Isamu Hasegawa <isamu@yamato.ibm.com> +2004-04-05 H.J. Lu <hongjiu.lu@intel.com> - * posix/regex_internal.c (re_string_reconstruct): Reset the member - LEN and STOP. - * posix/regexec.c (re_search_stub): Remove incorrect condition of - "range < 0". - Round RANGE in case that it is too small. + * Makeconfig (libgcc_eh): Add -Wl,. -2002-10-01 Roland McGrath <roland@frob.com> + * configure.in: Add -lgcc_s for --as-needed check. - * config.h.in (NO_HIDDEN): New #undef. - * include/libc-symbols.h [! NO_HIDDEN]: Add this condition to - nonempty definitions of hidden_proto et al. - * configure.in: Grok --disable-hidden-plt to define NO_HIDDEN. - * configure: Regenerated. - * sysdeps/mach/hurd/configure.in: Always define NO_HIDDEN. - * sysdeps/mach/hurd/configure: Regenerated. +2004-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp> -2002-09-19 David Mosberger <davidm@hpl.hp.com> + * sysdeps/sh/elf/configure.in: New file. - * sysdeps/ia64/dl-fptr.c (make_fdesc): Load address of "local" via - a 64-bit gp-relative address to enable binaries with large data - sections. +2004-04-17 Ulrich Drepper <drepper@redhat.com> -2002-09-30 Ulrich Drepper <drepper@redhat.com> + * iconvdata/gconv-modules: Add PT154 and RK1048 entries. + * iconvdata/tst-tables.sh: Add PT154 and RK1048. + * iconvdata/Makefile (modules): Add PT154 anhd RK1048. + (distribute): Add pt154.c and rk1048.c. + (gen-8bit-gap-modules): Add pt154 and rk1048. + * icondata/pt154.c: New file. + * iconvdata/rk1048.c: New file. - * stdlib/cxa_finalize.c (__cxa_finalize): Call UNREGISTER_ATFORK - if it is defined. - * posix/Makefile (distribute): Add fork.h. - * sysdeps/generic/fork.h: New file. + * rt/tst-timer4.c: Disable some tests, mark errors better. -2002-09-29 Bruno Haible <bruno@clisp.org> +2004-04-16 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro. - (UNLOCK_FILE): Add a label. - (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file, - updwtmp_file): Shut off the alarm clock when locking failed. + * rt/tst-mqueue6.c (mqsend): Don't inline. + (mqrecv): Likewise. -2002-09-30 Isamu Hasegawa <isamu@yamato.ibm.com> + * rt/tst-mqueue3.c (do_test): Cope with kernel without mq support. - * posix/regex_internal.h (re_match_context_t): Add a new member. - (re_fail_stack_ent_t): New structure. - (re_fail_stack_t): Likewise. - * posix/regexec.c (re_search_internal): Use the new member of - re_match_context_t. - Use fail stack only if it has back references and there are plural - matching candidates. - (proceed_next_node): Use fail stack if it is indicated. - (set_regs): Likewise. - (push_fail_stack): New function. - (pop_fail_stack): New function. - (check_dst_limits): Likewise. - (check_dst_limits_calc_pos): Likewise. - (search_subexp): Check the limitations on the top of subexpressions. - (sift_states_bkref): Check the limitations of the destination node. - Reuse the array sctx->sifted_states. + * sysdeps/ieee754/bits/nan.h (__nan_union): Add __attribute_used__ + attribute to keep gcc quiet. -2002-09-30 Ulrich Drepper <drepper@redhat.com> +2004-04-16 Jakub Jelinek <jakub@redhat.com> - * stdio-common/printf_fp.c: Shuffle a few lines around to help the - compiler optimizing. No semantical changes intended. + * misc/syslog.c (vsyslog): Avoid freeing failbuf. -2002-09-30 Jakub Jelinek <jakub@redhat.com> +2004-04-15 Jakub Jelinek <jakub@redhat.com> - * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits - from the next quad are needed. + * rt/Makefile (tests): Add tst-timer4. + * rt/tst-timer4.c: New test. -2002-09-30 Roland McGrath <roland@redhat.com> +2004-04-15 Jakub Jelinek <jakub@redhat.com> - * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq. + * rt/tst-mqueue5.c (rtmin_code): New variable. + (rtmin_handler): Set it. + (thr, do_child, do_test): Also check rtmin_code. - * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD] [! PIC]: - Use direct-%fs form of TLS access for errno. +2004-04-14 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: File removed, since - the i386 version has all the same asm now. + * rt/Makefile (tests): Add tst-mqueue7. + (tst-mqueue7-ARGS): Set. + * rt/tst-mqueue7.c: New test. - * sysdeps/i386/elf/configure.in: Add @GOTNTPOFF and @NTPOFF uses to - the TLS support check. - * sysdeps/i386/elf/configure: Regenerated. +2004-04-13 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD] - (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno. + * rt/Makefile (tests): Add tst-mqueue5 and tst-mqueue6. + * rt/tst-mqueue1.c (do_one_test): Bitwise or check_attrs () into + result instead of replacing it. Use TEMP_FAILURE_RETRY around + waitpid, kill child if waitpid failed. + (do_test): Bitwise or check_attrs () into result instead of replacing + it. Change temp mq name. + * rt/tst-mqueue5.c: New test. + * rt/tst-mqueue6.c: New test. + * rt/tst-mqueue.h: Include stdio.h, unistd.h, sys/uio.h. + (temp_mq_list, delete_temp_mqs): Remove. + (temp_mq_fd): New variable. + (do_cleanup, do_prepare): New functions. + (add_temp_mq): Rewritten to use a temp file. + (PREPARE): Define. + (CLEANUP_HANDLER): Change to do_cleanup (). - * sysdeps/unix/i386/sysdep.S (syscall_error) - [USE_TLS && HAVE___THREAD]: Use TLS access for errno. + * rt/tst-timer3.c: Don't fail if _POSIX_THREADS is not available. - * sysdeps/unix/sysv/linux/x86_64/sysdep.h - [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use TLS access. +2004-04-13 Thorsten Kukuk <kukuk@suse.de> - * rt/tst-aio7.c (do_test): Don't read from stdin, which could be the - terminal when the test is running in a background job. Instead, make - a pipe and read from its read half while never writing anything to it. + * sysdeps/s390/ffs.c: Include limits.h -2002-09-30 Andreas Jaeger <aj@suse.de> +2004-04-13 Kaz Kojima <kkojima@rr.iij4u.or.jp> - * stdlib/tst-bsearch.c (main): Fix format strings. - * stdio-common/tst-rndseek.c (do_test): Likewise. - * libio/tst_swprintf.c (main): Likewise. - * catgets/tst-catgets.c (main): Likewise. - * libio/tst-fgetws.c (main): Likewise. - * posix/tst-mmap.c (main): Likewise. - * posix/bug-regex12.c (main): Likewise. - * posix/bug-regex11.c (main): Likewise. - * io/tst-getcwd.c (do_test): Likewise. + * sysdeps/unix/sysv/linux/sh/sysdep.h (SUBSTITUTE_ARGS_1, + SUBSTITUTE_ARGS_2, SUBSTITUTE_ARGS_3, SUBSTITUTE_ARGS_4, + SUBSTITUTE_ARGS_5, SUBSTITUTE_ARGS_6, SUBSTITUTE_ARGS_7): Load + argument values into temporary variables. - * iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t. +2004-04-15 Atsushi Nemoto <anemo@mba.ocn.ne.jp> - * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): - Store 4 bytes into errno, not 8 bytes. + * sysdeps/mips/dl-machine.h (RTLD_START): Do not use nested .end. + +2004-04-12 Ulrich Drepper <drepper@redhat.com> + + * rt/Makefile (tests): Add tst-timer3. + * rt/tst-timer3.c: New file. By Roland McGrath. + +2004-04-08 Ulrich Drepper <drepper@redhat.com> + + * rt/tst-mqueue3.c: New file. + * rt/Makefile (tests): Add tst-mqueue3. + +2004-04-08 Jakub Jelinek <jakub@redhat.com> + + * rt/tst-mqueue1.c: New file. + * rt/tst-mqueue2.c: New file. + * rt/tst-mqueue4.c: New file. + * rt/Makefile (tests): Add tst-mqueue1, tst-mqueue2, tst-mqueue4. + + * rt/Versions (librt): Add mq_*@@GLIBC_2.3.4. + * rt/Makefile (headers): Add mqueue.h and bits/mqueue.h. + (mq-routines): Set. + (librt-routines): Use it. + * rt/mqueue.h: New file. + * include/mqueue.h: New file. + * sysdeps/generic/bits/mqueue.h: New file. + * sysdeps/generic/mq_setattr.c: New file. + * sysdeps/generic/mq_getattr.c: New file. + * sysdeps/generic/mq_notify.c: New file. + * sysdeps/generic/mq_close.c: New file. + * sysdeps/generic/mq_send.c: New file. + * sysdeps/generic/mq_unlink.c: New file. + * sysdeps/generic/mq_receive.c: New file. + * sysdeps/generic/mq_timedreceive.c: New file. + * sysdeps/generic/mq_timedsend.c: New file. + * sysdeps/generic/mq_open.c: New file. + * sysdeps/unix/sysv/linux/bits/local_lim.h (MQ_PRIO_MAX): Define. + * sysdeps/unix/sysv/linux/bits/mqueue.h: New file. + * sysdeps/unix/sysv/linux/syscalls.list: Add mq_timedsend, + mq_timedreceive and mq_setattr. + * sysdeps/unix/sysv/linux/mq_getattr.c: New file. + * sysdeps/unix/sysv/linux/mq_notify.c: New file. + * sysdeps/unix/sysv/linux/mq_close.c: New file. + * sysdeps/unix/sysv/linux/mq_send.c: New file. + * sysdeps/unix/sysv/linux/mq_unlink.c: New file. + * sysdeps/unix/sysv/linux/mq_receive.c: New file. + * sysdeps/unix/sysv/linux/mq_open.c: New file. + +2004-04-09 Andreas Schwab <schwab@suse.de> + + * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL): Move + LOAD_ARGS_##nr up front and add LOAD_REGS_##nr. + (LOAD_ARGS_0, LOAD_ARGS_1, LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4) + (LOAD_ARGS_5, LOAD_ARGS_6): Load argument values into temporary + variables. + (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4) + (LOAD_REGS_5, LOAD_REGS_6): New macros to actually load the + syscall argument registers. + + * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL): Add + LOAD_REGS_##nr. + (LOAD_ARGS_0, LOAD_ARGS_1, LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4) + (LOAD_ARGS_5, LOAD_ARGS_6): Load argument values into temporary + variables. + (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4) + (LOAD_REGS_5, LOAD_REGS_6): New macros to actually load the + syscall argument registers. + +2004-04-09 Andreas Schwab <schwab@suse.de> + + * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Add + LOAD_REGS_##nr. + (LOAD_ARGS_0, LOAD_ARGS_1, LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4) + (LOAD_ARGS_5, LOAD_ARGS_6): Load argument values into temporary + variables. + (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4) + (LOAD_REGS_5, LOAD_REGS_6): New macros to actually load the + syscall argument registers. + +2004-04-09 Thorsten Kukuk <kukuk@suse.de> + + * sysdeps/s390/ffs.c: Don't add ffsl weak alias on s390x. + +2004-04-09 Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: New file. + +2004-04-08 Ulrich Drepper <drepper@redhat.com> + + * po/nl.po: Update from translation team. + +2004-04-04 Ulrich Drepper <drepper@redhat.com> + + * math/test-tgmath.c: Declare compile_testl inly if we will define it. + +2004-04-03 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/powerpc/powerpc64/ffsll.c: New file. + + * string/test-ffs.c: Also test ffsl and ffsll. + + * sysdeps/powerpc/ffs.c: Don't define ffsl for ppc64. + + * sysdeps/powerpc/powerpc64/bits/atomic.h: Never use matching + constraints for asm mem parameters. + * sysdeps/powerpc/bits/atomic.h: Likewise. + + * sysdeps/powerpc/elf/libc-start.c: No need for a separate + function for __aux_init_cache. + + * inet/test-ifaddrs.c: Fight warnings. + + * argp/argp-help.c: Fight warnings. + + * include/time.h: Declare __difftime. + + * sysdeps/unix/sysv/linux/internal_statvfs.c: Restructure to avoid + duplication in 64-bit version. + * sysdeps/unix/sysv/linux/wordsize-64/internal_statvfs64.c: New file. + +2004-04-03 Andreas Jaeger <aj@suse.de> + + * nis/nss-nis.c: Include <string.h> for strncmp. + +2004-03-30 H.J. Lu <hongjiu.lu@intel.com> + + * Makeconfig (link-libc-static): Use $(static-gnulib) instead + of $(gnulib). + (libgcc_eh): New variable. + (gnulib): Use it variable. + (static-gnulib): New variable. + * Makerules (LDLIBS-c.so): Use $(static-gnulib) instead of $(gnulib). + * config.make.in (have-as-needed): New variable. + * configure.in: Check if linker supports --as-needed. + +2004-04-02 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/internal_statvfs64.c: New file. + * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): + Add internal_statvfs64. + * sysdeps/unix/sysv/linux/internal_statvfs.c: Allow to be used to + compile 64bit version. + * sysdeps/unix/sysv/linux/statvfs64.c: Use __fstatfs64 and skip + compatibility code if __ASSUME_STATFS64 is defined. + * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise. + + * sysdeps/unix/sysv/linux/statfs64.c: Don't add __no_statfs64 if + __ASSUME_STATFS64 != 0. + +2004-04-02 Thorsten Kukuk <kukuk@firun.suse.de> + + * nis/nss_nis/nis-ethers.c (saveit): Fix return codes in error case. + * nis/nss_nis/nis-initgroups.c (saveit): Likewise. + * nis/nss_nis/nis-proto.c (saveit): Likewise. + * nis/nss_nis/nis-rpc.c (saveit): Likewise. + * nis/nss_nis/nis-service.c (saveit): Likewise. + +2004-04-02 Jakub Jelinek <jakub@redhat.com> + + * nis/nss: Add SERVICES_AUTHORITATIVE. + * nis/nss-nis.h (NSS_FLAG_SET, NSS_FLAG_NETID_AUTHORITATIVE, + NSS_FLAG_SERVICES_AUTHORITATIVE): Define. + (_nis_default_nss_flags, _nis_check_default_nss): New decls. + (_nis_default_nss): New inline. + * nis/nss-nis.c: Include ctype.h, stdio.h and stdio_ext.h. + (_nis_default_nss_flags, default_nss): New variables. + (_nis_check_default_nss): New function. + * nis/nss_nis/nis-initgroups.c: Don't include stdio.h and + stdio_ext.h. + (check_default_nss, default_nss): Move to nss-nis.c. + (init): Removed. + (_nss_nis_initgroups_dyn): Use _nis_default_nss (). + * nis/nss_nis/nis-services.c (_nss_nis_getservbyname_r): If + NSS_FLAG_SERVICES_AUTHORITATIVE and services.byservicename lookup + fails, return immediately. -2002-09-29 Ulrich Drepper <drepper@redhat.com> +2004-04-01 Roland McGrath <roland@redhat.com> - * posix/regexec.c (sift_states_bkref): Remove ret variable. Use - err instead. + * elf/tst-execstack.c (do_test): Make F static. -2002-09-29 Roland McGrath <roland@redhat.com> +2004-04-01 Ulrich Drepper <drepper@redhat.com> - * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid. - Examine the child's status and print something different if it wasn't - just killed by our SIGKILL. - (main): In the child process call setpgid to put it in its own pgrp. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Use + __sigprocmask not sigprocmask. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise. -2002-09-29 Ulrich Drepper <drepper@redhat.com> + * include/string.h: Add libc_hidden_builtin_proto for memcmp. + * sysdeps/generic/memcmp.c: Add libc_hidden_builtin_def. + * sysdeps/i386/memcmp.S: Likewise. + * sysdeps/i386/i686/memcmp.S: Likewise. + * sysdeps/ia64/memcmp.S: Likewise. + * sysdeps/sparc/sparc64/memcmp.S: Likewise. - * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value - semantics for sigtimedwait is different. Rework the return value - handling and don't pass in a siginfo variable. + * sysdeps/unix/sysv/linux/sigprocmask.c: Include <string.h>. + * time/mktime.c: Likewise. + * misc/getpass.c: Likewise. + + * time/difftime.c (__difftime): New renamed. Make old name alias. + Use __difftime in recursive call. + + * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Use + __tcgetattr() instead of tcgetattr(). + + * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S [SHARED]: + Use __GI_exit. + + * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S [SHARED]: Use + __GI__exit. + + * sysdeps/powerpc/fpu/bits/mathinline.h: Add __signbitf and + __signbit inlines. + + * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Use + __sigprocmask not sigprocmask. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise. + + * elf/elf.h: Define more ppc64 specific dynamic tags. + +2004-04-01 Jakub Jelinek <jakub@redhat.com> + + * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): If protocol + is NULL, instead of trying yp_match (name/tcp), yp_match (name/udp), + yp_all, try yp_match (name), yp_all. + +2004-04-01 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add handling for + ignored entries. Ignore AT_IGNOREPPC. + +2004-03-31 Andreas Jaeger <aj@suse.de> + + * libio/fileops.c (new_do_write): Return _IO_size_t to make 64-bit + clean. + +2004-03-31 Ulrich Drepper <drepper@redhat.com> + + * locale/programs/localedef.c (construct_output_path): Remove + remnants of CEN locale names. + +2004-03-30 Thorsten Kukuk <kukuk@suse.de> + + * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Add IUTF8. + * sysdeps/unix/sysv/linux/bits/termios.h: Likewise. + * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise. + * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise. + +2004-03-30 Richard Henderson <rth@redhat.com> + + * sysdeps/alpha/remqu.S: Detect power-of-two special case. + +2004-03-30 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/generic/libc-start.c (LIBC_START_MAIN) + [HAVE_CLEANUP_JMP_BUF]: Call __nptl_deallocate_tsd. + +2004-03-30 Jakub Jelinek <jakub@redhat.com> + + * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): If protocol + == NULL, try name/tcp and name/udp first before falling back into + the sequential scanning. Use services.byname database for + sequential scanning. + (_nss_nis_getservbyport_r): Likewise. Just allocate sizeof (int) * 3 + chars for integer. + + * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Convert + proto to host by order for snprintf. + +2004-03-30 Ulrich Drepper <drepper@redhat.com> + + * nss/getent.c (services_keys): Don't implement lookups with + missing protocol using getservent loop, just pass NULL. -2002-09-29 Roland McGrath <roland@redhat.com> + * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Avoid + comparison with limit if we can rely on the syscall being available. - * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining. + * nis/nss_nis/nis-initgroups.c: Implement getting the information + from the netid.byname map if the system administrator allows this. + * nis/Makefile (distribute): Add nss. + * nis/nss: New file. - * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location. + * grp/initgroups.c (initgroups): Limit the initial allocation to 64 + entries to not allocate too much on systems with really high limits. - * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: - Define errno in .tbss. - * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS - access for setting errno. +2004-03-30 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits. - AFAICT, it was just blind luck that the word following errno in .bss - was just alignment padding and not some other variable to be clobbered. + * nis/nss_nis/nis-service.c (struct search_t): New type. + (dosearch): New function. + (_nss_nis_getservbyname_r): Use it. Call yp_get_default_domain + unconditionally. + (_nss_nis_getservbyport_r): Likewise. + +2004-03-29 Alexandre Oliva <aoliva@redhat.com> + + * sysdeps/unix/sysv/linux/sched_getaffinity.c: Prepend GLIBC_ to + version names is SHLIB_COMPAT check. + * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise. + +2004-03-29 Ulrich Drepper <drepper@redhat.com> + + * nis/nss_nis/nis-rpc.c (saveit): Improve memory handling. No need to + allocate multiple blocks. + (internal_nis_endrpcent): Adjust accordingly. + * nis/nss_nis/nis-proto.c (saveit): Improve memory handling. No need + to allocate multiple blocks. + (internal_nis_endprotoent): Adjust accordingly. + * nis/nss_nis/nis-initgroups.c (saveit): Improve memory handling. No + need to allocate multiple blocks. + (_nss_nis_initgroups_dyn): Adjust accordingly. + * nis/nss_nis/nis-ethers.c (saveit): Improve memory handling. No need + to allocate multiple blocks. + (internal_nis_endetherent): Adjust accordingly. + * nis/nss_nis/nis-service.c (saveit): Improve memory handling. No need + to allocate multiple blocks. + (internal_nis_endservent): Adjust accordingly. + + * nss/getXXbyYY_r.c: Return 0 for NSS_STATUS_NOTFOUND. + +2004-03-26 Thorsten Kukuk <kukuk@suse.de> + + * nis/nss_nis/nis-grp.c (_nss_nis_getgrnam_r): Don't + set errno if group does not exist. + +2004-03-28 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Handle + _SC_SIGQUEUE_MAX. + +2004-03-26 Ulrich Drepper <drepper@redhat.com> + + * elf/dl-caller.c: New file. + * include/caller.h: New file. + * Makefile (distribute): Add include/caller.h. + * elf/Makefile (dl-routines): Add dl-caller. + * elf/dl-load.c (_dl_map_object_from_fd): Record l_text_end. + * elf/dl-open.c (check_libc_caller): Removed. + (dl_open_worker): Use __check_caller instead. + * elf/rtld.c (_rtld_global_ro): Initialize _dl_check_caller. + (_dl_start_final): Record l_text_end for ld.so map. + (dl_main): Record l_text_end for main object and vdso. + * include/link.h (struct link_map): Add l_text_end field. + * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add + _dl_check_caller field. + Define enum allowmask. Add declaration of _dl_check_caller. + * sysdeps/unix/sysv/linux/dl-execstack.c: Also use __check_caller test. + +2004-03-26 Richard Henderson <rth@redhat.com> + + * sysdeps/alpha/Makefile <gnulib> (sysdep_routines): Merge divrem + variable, add unsigned variants. + * sysdeps/alpha/divrem.h: Remove file. + * sysdeps/alpha/div_libc.h: New file. + * sysdeps/alpha/divl.S: Rewrite from scratch. + * sysdeps/alpha/reml.S: Likewise. + * sysdeps/alpha/divq.S: Likewise. + * sysdeps/alpha/remq.S: Likewise. + * sysdeps/alpha/divlu.S: New file. + * sysdeps/alpha/remlu.S: New file. + * sysdeps/alpha/divqu.S: New file. + * sysdeps/alpha/remqu.S: New file. + +2004-03-26 Ulrich Drepper <drepper@redhat.com> + + * elf/dl-open.c (check_libc_caller): Fix typo. + +2004-03-26 Jakub Jelinek <jakub@redhat.com> + + * elf/tst-dlmodcount.c: Include stddef.h and stdlib.h. + +2003-03-25 Richard Henderson <rth@redhat.com> + + * sysdeps/alpha/backtrace.c: New file. + +2004-03-25 Ulrich Drepper <drepper@redhat.com> + + * iconvdata/utf-7.c: Remove inline from isdirect, isxdirect, and + isxbase64. + +2004-03-25 Richard Henderson <rth@redhat.com> + + * sysdeps/generic/strtol_l.c (__strtol_ul_max_tab, + __strtol_ull_max_tab, __strtol_ull_rem_tab, __strtol_ul_rem_tab, + cutoff_tab, cutlim_tab, jmax_tab): New. + (__strtol_l): Use them to avoid runtime division. + +2004-03-24 Roland McGrath <roland@redhat.com> + + * Makerules ($(common-objpfx)shlib.lds): Don't use \n in rhs of sed + substitutions; the semicolon terminators are enough for ld anyway. + + * elf/dl-deps.c (_dl_map_object_deps): Use alloca instead of + dynamically sized auto array in function already using alloca. + * locale/programs/ld-ctype.c (ctype_output): Likewise. + * locale/programs/ld-time.c (time_output): Likewise. + * elf/dl-misc.c (_dl_debug_vdprintf): Use macro instead of const for + IOV array size. + * locale/programs/charmap.c (charmap_read): Avoid alloca (or strdupa) + when also using dynamically-sized auto array. + * locale/programs/locfile.c (locfile_read): Likewise. + * locale/programs/repertoire.c (repertoire_read): Likewise. + * nis/nis_print_group_entry.c (nis_print_group_entry): Likewise. + * locale/programs/locarchive.c (enlarge_archive): Likewise. + * posix/annexc.c (check_header): Likewise. + + * iconv/gconv_int.h (norm_add_slashes): Don't handle null SUFFIX. + strlen ("") gets optimized away just as well. + * intl/loadmsgcat.c (_nl_init_domain_conv): Update caller. + * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise. + + * Makefile ($(objpfx)c++-types-check.out): Reduce duplication in + defining this target. Also elide -Wstrict-prototypes from CFLAGS. + +2004-03-24 Ulrich Drepper <drepper@redhat.com> + + * stdio-common/vfscanf.c [!COMPILE_WSCANF] (TOLOWER): Cast first + parameter to unsigned char. + * sysdeps/generic/strcasestr.c [_LIBC] (TOLOWER): Likewise. + +2004-03-24 Jakub Jelinek <jakub@redhat.com> + + * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Clear the rest of retval, + not just one limb if RETURN_LIMB_SIZE > 2. Fix shifting up if + RETURN_LIMB_SIZE > 2. + + * stdio-common/printf_fp.c (__printf_fp): For IEEE quad long double + on 32-bit architectures reserve 8 limbs instead of 4. + +2004-03-23 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_pread, __NR_pwrite): + Define to __NR_p{read,write}64 if not defined. + * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread, + __NR_pwrite): Define to __NR_p{read,write}64 if not defined instead + of defining it the other way around. + * sysdeps/unix/sysv/linux/alpha/syscalls.list: Move common syscalls + for 64bit arches to sysdeps/unix/sysv/linux/wordsize-64/syscalls.list. + * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/alpha/pread64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/glob64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/truncate64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/xstat64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/pwrite64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/posix_fadvise.c: Removed. + * sysdeps/unix/sysv/linux/alpha/mmap64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/fxstat64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/ftruncate64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/sendfile64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/lxstat64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/posix_fadvise64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/statfs64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/fstatfs64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/pread64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/getrlimit64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/glob64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/readdir64_r.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/truncate64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/xstat64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/pwrite64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/getdents64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/readdir_r.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/readdir.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/mmap64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/fxstat64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/setrlimit64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/ftruncate64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/getdents.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/lxstat64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/readdir64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/statfs64.c: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/fstatfs64.c: Removed. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: Removed. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: Removed. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/xstat64.c: Removed. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise.c: Removed. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/fxstat64.c: Removed. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: Removed. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/lxstat64.c: Removed. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/pread64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/getrlimit64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/glob64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/readdir64_r.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/truncate64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/xstat64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/pwrite64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/mmap64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/setrlimit64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/ftruncate64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/lxstat64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/readdir64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/statfs64.c: Removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/fstatfs64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/pread64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/glob64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: Removed. + * sysdeps/unix/sysv/linux/ia64/truncate64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/xstat64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/pwrite64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/getdents64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Removed. + * sysdeps/unix/sysv/linux/ia64/lxstat.c: Removed. + * sysdeps/unix/sysv/linux/ia64/readdir.c: Removed. + * sysdeps/unix/sysv/linux/ia64/posix_fadvise.c: Removed. + * sysdeps/unix/sysv/linux/ia64/mmap64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/xstat.c: Removed. + * sysdeps/unix/sysv/linux/ia64/fxstat64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/sendfile64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/getdents.c: Removed. + * sysdeps/unix/sysv/linux/ia64/lxstat64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/posix_fadvise64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/readdir64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/fxstat.c: Removed. + * sysdeps/unix/sysv/linux/ia64/statfs64.c: Removed. + * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/pread64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/glob64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/truncate64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/xstat64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/getdents64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/lxstat.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/readdir.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/posix_fadvise.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/mmap64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/xstat.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/getdents.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/posix_fadvise64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/readdir64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/fxstat.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/statfs64.c: Removed. + * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/Implies: New file. + * sysdeps/unix/sysv/linux/alpha/getdents64.c: New file. + * sysdeps/unix/sysv/linux/s390/s390-64/Implies: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/Implies: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file. + * sysdeps/unix/sysv/linux/sparc/sparc64/Implies: New file. + * sysdeps/unix/sysv/linux/sparc/sparc64/lxstat.c: New file. + * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: New file. + * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/statvfs64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/xstat64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/mmap64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/fxstat64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/sendfile64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/lxstat64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: New file. + * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/statfs64.c: New file. + * sysdeps/unix/sysv/linux/wordsize-64/fstatfs64.c: New file. + * sysdeps/unix/sysv/linux/ia64/Implies: New file. + * sysdeps/unix/sysv/linux/x86_64/Implies: New file. + +2004-03-22 Richard Henderson <rth@redhat.com> + + * sysdeps/alpha/s_fabs.S: Remove file. + * sysdeps/alpha/s_copysign.S: Remove file. + +2004-03-22 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c + (__getpagesize): Avoid warning about writing into read-only memory. + + * string/Makefile (routines): Add xpg-strerror. + * string/string.h (strerror_r): If __USE_XOPEN2K but not __USE_GNU, + redirect strerror_r to __xpg_strerror_r. + * string/Versions (libc): Add __xpg_strerror_r@@GLIBC_2.3.4. + * sysdeps/generic/xpg-strerror.c: New file. + * sysdeps/mach/xpg-strerror.c: New file. + +2004-03-22 Joseph S. Myers <jsm@polyomino.org.uk> + + * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): Do not use + casts as lvalues. + +2004-03-22 Andreas Jaeger <aj@suse.de> + + * elf/tst-dlmodcount.c (unload): Remove unused variable. + + * misc/tst-mntent.c (main): Use tmpfile instead of tmpnam. + +2004-03-20 Roland McGrath <roland@frob.com> + + * sysdeps/mach/hurd/dl-execstack.c: New file. + +2004-03-20 Ulrich Drepper <drepper@redhat.com> + + * po/ca.po: Update from translation team. + +2004-03-20 Andreas Jaeger <aj@suse.de> + + * sysdeps/unix/sysv/linux/sched_getaffinity.c + (__sched_getaffinity_old): Fix interface. + * sysdeps/unix/sysv/linux/sched_setaffinity.c + (__sched_setaffinity_old): Likewise. + + * sysdeps/unix/sysv/linux/sched_setaffinity.c: Include <alloca.h>. -2002-09-29 Jakub Jelinek <jakub@redhat.com> +2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/unix/sysv/linux/kernel-features.h - (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty. + (__ASSUME_CLONE_THREAD_FLAGS ): Define for newer SH kernel. + (__ASSUME_TGKILL, __ASSUME_UTIMES): Likewise. + * sysdeps/unix/sysv/linux/sh/socket.S: Add unwind information. + +2004-03-19 Ulrich Drepper <drepper@redhat.com> + + * time/tzfile.c (__tzfile_default): Correct setting of rule_stdoff + and rule_dstoff after reading the posixrules file. + +2004-03-18 Ulrich Drepper <drepper@redhat.com> + + * malloc/malloc.c (__posix_memalign): Correct alignment check. + Reported by Don Heller <dheller@cse.psu.edu>. + +2004-03-18 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Remove hwcap + variable and weak_extern for _dl_hwcap. + (_DL_HWCAP_TLS_MASK): Define. + (HWCAP_CHECK): Fix checking of non-platform hwcap bits. Use + lib->osversion instead of cache_new->libs[middle].osversion. + + * stdio-common/asprintf.c: Remove USE_IN_LIBIO conditionals. + * stdio-common/dprintf.c: Likewise. + * stdio-common/fprintf.c: Likewise. + * stdio-common/getline.c: Likewise. + * stdio-common/getw.c: Likewise. + * stdio-common/perror.c: Likewise. + * stdio-common/printf-prs.c: Likewise. + * stdio-common/printf.c: Likewise. + * stdio-common/printf_size.c: Likewise. + * stdio-common/psignal.c: Likewise. + * stdio-common/putw.c: Likewise. + * stdio-common/scanf.c: Likewise. + * stdio-common/snprintf.c: Likewise. + * stdio-common/sprintf.c: Likewise. + * stdio-common/sscanf.c: Likewise. + * stdio-common/tstgetln.c: Likewise. + * stdio-common/vfprintf.c: Likewise. -2002-09-29 Jakub Jelinek <jakub@redhat.com> +2004-03-18 Paul Eggert <eggert@cs.ucla.edu> - * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't - exist. + * posix/getopt.h (__GNUC_PREREQ) [!defined __THROW]: Define + if not defined, fixing a typo (it used to be defined if + __GNUC__ was not defined). -2002-09-29 Ulrich Drepper <drepper@redhat.com> +2004-03-18 Ulrich Drepper <drepper@redhat.com> - * nss/Makefile: Move bug-erange from tests to xtests. + * posix/sched.h: Change sched_getaffinity and sched_setaffinity + interfaces: add new second parameter. + * sysdeps/generic/sched_getaffinity.c: Implement interface change. + * sysdeps/generic/sched_setaffinity.c: Likewise. + * sysdeps/unix/sysv/linux/sched_getaffinity.c: Likewise. Add + compatibility interface. + * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise. + * sysdeps/unix/sysv/linux/Versions: Add versions for changed + interfaces. -2002-09-29 Jakub Jelinek <jakub@redhat.com> +2004-03-18 Roland McGrath <roland@redhat.com> + + * manual/Makefile (stamp-summary): Use -k option to sort, + not traditional key selection syntax. + Reported by Jim Gifford <giffordj@linkline.com>. + +2004-03-18 Jakub Jelinek <jakub@redhat.com> + + * elf/ldconfig.c: Include stdbool.h. + +2004-03-18 Roland McGrath <roland@redhat.com> + + * elf/ldconfig.c (parse_conf_include): New function. + (parse_conf): Call it to parse lines starting with "include". + Remaining words are glob patterns for more config files to read. + Take additional bool argument to disable opt_chroot processing. + (main): Update caller. + +2004-03-17 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/ia64/ioperm.c (_iopl): Match EPERM error + the x86 code produces in case of mission permissions. + Patch by Bernd Schmidt <bernds@redhat.com>. + + * resolv/netdb.h: Define AI_IDN_ALLOW_UNASSIGNED, + AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED, and + NI_IDN_USE_STD3_ASCII_RULES. + * inet/getnameinfo.c (getnameinfo): Implement handling of + NI_IDN_ALLOW_UNASSIGNED and NI_IDN_USE_STD3_ASCII_RULES. + * sysdeps/posix/getaddrinfo.c (gaih_inet): Implement handling of + AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES. + +2004-03-17 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW): Make asm volatile. - * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype. +2004-03-16 Jakub Jelinek <jakub@redhat.com> -2002-09-29 Jakub Jelinek <jakub@redhat.com> + * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Spelling. + (JB_SIZE): Undefine before including __longjmp-common.S again. + * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Spelling. + (JB_SIZE): Undefine before including setjmp-common.S again. + * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Spelling. + * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Spelling. + * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Spelling. + * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Spelling. + * sysdeps/powerpc/sigjmp.c: Spelling. + +2004-03-16 Ulrich Drepper <drepper@redhat.com> + + * include/ctype.h: For libc, define isdigit, isdigit_l, and + __isdigit_l as simple comparison macros. + * include/wctype.h: For libc, define iswdigit, iswdigit_l, and + __iswdigit_l as simple comparison macros. + * wctype/wcfuncs_l.c: #undef iswdigit and __iswdigit. + +2004-03-15 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/sparc/fpu/bits/mathinline.h: Restore missing #ifdef. + Patch by Richard Henderson. + +2004-03-16 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/generic/strtold_l.c (STRING_TYPE, STRTOLD, __STRTOLD, + __STRTOD, INTERNAL, INTERNAL1): Define, use them. + [! USE_WIDE_CHAR] (INTERNAL (__STRTOLD)): Add libc_hidden_def. + + * inet/getnameinfo.c: Include stdlib.h. + +2004-03-15 Richard Henderson <rth@redhat.com> + + * math/Makefile (headers): Add bits/huge_valf.h, bits/huge_vall.h, + and bits/inf.h. + * math/math.h: Include them. + + * sysdeps/alpha/fpu/bits/mathdef.h: Remove INFINITY. + * sysdeps/arm/fpu/bits/mathdef.h: Likewise. + * sysdeps/generic/bits/mathdef.h: Likewise. + * sysdeps/i386/fpu/bits/mathdef.h: Likewise. + * sysdeps/ia64/fpu/bits/mathdef.h: Likewise. + * sysdeps/m68k/fpu/bits/mathdef.h: Likewise. + * sysdeps/mips/fpu/bits/mathdef.h: Likewise. + * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise. + * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise. + * sysdeps/sparc/fpu/bits/mathdef.h: Likewise. + * sysdeps/x86_64/fpu/bits/mathdef.h: Likewise. + + * sysdeps/arm/bits/huge_val.h (HUGE_VAL): Use __builtin_huge_val. + (HUGE_VALF, HUGE_VALL): Remove. + * sysdeps/ieee754/bits/huge_val.h: Likewise. + * sysdeps/sh/bits/huge_val.h: Likewise. + + * sysdeps/generic/bits/huge_val.h (HUGE_VAL): Use __builtin_huge_val. + * sysdeps/generic/bits/huge_valf.h: New file. + * sysdeps/generic/bits/huge_vall.h: New file. + * sysdeps/generic/bits/inf.h: New file. + * sysdeps/ieee754/bits/huge_valf.h: New file. + * sysdeps/ieee754/bits/inf.h: New file. + * sysdeps/i386/bits/huge_val.h: Remove file. + * sysdeps/i386/bits/huge_vall.h: New file. + * sysdeps/ia64/bits/huge_val.h: Remove file. + * sysdeps/ia64/bits/huge_vall.h: New file. + * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: New file. + * sysdeps/m68k/bits/huge_val.h: Remove file. + * sysdeps/m68k/bits/huge_vall.h: New file. + * sysdeps/s390/bits/huge_val.h: Remove file. + * sysdeps/sh/sh4/fpu/bits/huge_val.h: Remove file. + * sysdeps/sparc/bits/huge_vall.h: New file. + * sysdeps/sparc/sparc32/fpu/bits/huge_val.h: Remove file. + * sysdeps/sparc/sparc64/fpu/bits/huge_val.h: Remove file. + + * sysdeps/ieee754/bits/nan.h (NAN): Use __builtin_nanf. + * sysdeps/mips/bits/nan.h (NAN): Likewise. + +2004-03-15 Ulrich Drepper <drepper@redhat.com> + + * iconv/gconv_simple.c (__gconv_transform_utf8_internal): Use only + one copy of error handling code. + + * stdio-common/vfscanf.c: Simplify error handling macros. Use + direct locale access functions. + + * sysdeps/generic/strcasestr.c (__strcasestr): Optimize use of + tolower function. + +2004-03-13 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add const. + (handle_amd): New function. + (__sysconf): Handle _SC_LEVEL4_CACHE_LINESIZE here, not in + linux_sysconf. Call handle_amd on AuthenticAMD. + * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Likewise. + +2004-03-14 Ulrich Drepper <drepper@redhat.com> + + * wcsmbs/mbsrtowcs.c: Just a wrapper around __mbsrtowcs_l. + * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add real implementation here. + + Make the non-_l functions wrappers around the _l functions. + * include/monetary.h: Declare __vstrmon_l. + * include/string.h: Add libc_hidden_proto for __strcoll_l and + __strxfrm_l. + * include/time.h: Define ptime_locale_status. Declare + __strptime_internal. + * include/wchar.h: Add libc_hidden_proto for __wcscoll_l and + __wcsxfrm_l. + * stdlib/strfmon.c: Move the code to strfmon_l.c. Add little + wrapper around __vstrfmon_l. + * stdlib/strfmon_l.c: Add real implementation. Split into new + function __vstrfmon_l to allow calling it from strfmon. + * stdlib/strtod.c: Move real code to strtod_l.c and add wrapper. + * stdlib/strtod_l.c: Add real implementation. + * stdlib/strtof.c: Adjust to changed strtod.c. + * stdlib/strtof_l.c: Include strtod_l.c now. + * stdlib/strtold.c: New file. + * stdlib/strtold_l.c: Removed. + * string/strcoll.c: Move real code to strcoll_l.c: Add wrapper. + * string/strcoll_l.c: Add real implementation. + * string/strxfrm.c: Move real code to strxfrm_l.c: Add wrapper. + * string/strxfrm_l.c: Add real implementation. + * sysdeps/generic/strtol.c: Move real implementation to strtol_l.c. + Add wrappers. + * sysdeps/generic/strtol_l.c: Add real implementation. + * sysdeps/generic/strtold.c: Removed. + * sysdeps/generic/strtold_l.c: New file. + * sysdeps/generic/strtoll_l.c: Include strtol_l.c now. Adjust + #defines. + * sysdeps/generic/strtoul_l.c: Likewise. + * sysdeps/generic/strtoull_l.c: Likewise. + * sysdeps/generic/wcstol_l.c: Likewise. + * sysdeps/generic/wcstoll_l.c: Likewise. + * sysdeps/generic/wcstoul_l.c: Likewise. + * sysdeps/generic/wcstoull_l.c: Likewise. + * sysdeps/ieee754/ldbl-128/strtold.c: Removed. + * sysdeps/ieee754/ldbl-128/strtold_l.c: New file. + * sysdeps/ieee754/ldbl-96/strtold.c: Removed. + * sysdeps/ieee754/ldbl-96/strtold_l.c: New file. + * sysdeps/m68k/strtold.c: Removed. + * sysdeps/m68k/strtold_l.c: New file. + * time/strftime.c: Move real code to strftime_l.c. Add wrapper. + * time/strftime_l.c: Add real implementation. + * time/strptime.c: Move real code to strptime_l.c. Add wrapper. + * time/strptime_l.c: Add real implementation. + * time/wcsftime.c: Simplify since only wrappers are defined in + strftime.c. + * time/wcsftime_l.c: Include strftime_l.c. + * wcsmbs/wcscoll.c: Simplify since the file is not used by wcscoll_l.c + anymore. + * wcsmbs/wcscoll_l.c: Include strcoll_l.c. + * wcsmbs/wcsxfrm.c: Simplify since the file is not used by wcsxfrm_l.c + anymore. + * wcsmbs/wcsxfrm_l.c: Include strxfrm_l.c. + * wcsmbs/wcstod.c: Prepare to include new strtod.c. + * wcsmbs/wcstod_l.c: Include strtod_l.c. + * wcsmbs/wcstof.c: Prepare to include new strtof.c. + * wcsmbs/wcstof_l.c: Include strtof_l.c. + * wcsmbs/wcstold.c: Prepare to include new strtold.c. + * wcsmbs/wcstold_l.c: Include strtold_l.c. + + * locale/uselocale.c: Use _NL_CURRENT_LOCALE instead of __libc_tsd_get. + + * sysdeps/generic/strcasecmp.c: Optimize a bit. It's better to get + a reference to the current locale and then use the _l functions. + * sysdeps/generic/strncase.c: Likewise. - * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm - volatile. - (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4, - inline_syscall5, inline_syscall6): Likewise. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL): +2004-03-11 Jeroen Dekkers <jeroen@dekkers.cx> + + * cppflags-iterator.mk: Change libof-$(cpp-src) to + libof-$(notdir $(cpp-src)). + +2004-03-13 Ulrich Drepper <drepper@redhat.com> + + * resolv/netdb.h (EAI_OVERFLOW): Define. + (NI_IDN): Define. + * inet/getnameinfo.c (getnameinfo): Return error in case argument + buffers overflow. Implement NI_IDN. + +2004-03-12 Ulrich Drepper <drepper@redhat.com> + + * resolv/netdb.h: Define AI_CANONIDN. + * sysdeps/posix/getaddrinfo.c: Implement AI_CANONIDN. + +2004-03-12 Richard Henderson <rth@redhat.com> + + * sysdeps/unix/sysv/linux/alpha/select.S: Fix unwind. Propagate + oldvalue from CENABLE to CDISABLE. + +2004-03-12 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/x86_64/sysconf.c: New file. + + * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX. + + * posix/getconf.c (vars): Add _SC_ values for cache information. + * sysdeps/generic/bits/confname.h: Add _SC_* values for cache + information. + * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Reorganize to + allow yet another sysconf function to include the one in this file. + * sysdeps/unix/sysv/linux/i386/sysconf.c: New file. + * sysdeps/generic/sysconf.c: Add default handling for cache line info. + +2004-03-11 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/posix/sysconf.c (__sysconf): Add missing support for + some _SC_* values. + +2004-03-10 Chris Heath <chris@heathens.co.nz> + + * iconvdata/gconv.map: Add gconv_end (fixes memory leak). + +2004-03-11 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/powerpc/powerpc32/__longjmp.S (JB_SIZE): Undefine before + including __longjmp-common.S again. + * sysdeps/powerpc/powerpc64/__longjmp.S (JB_SIZE): Likewise. + * sysdeps/powerpc/powerpc32/setjmp.S (JB_SIZE): Undefine before + including setjmp-common.S again. + * sysdeps/powerpc/powerpc64/setjmp.S (JB_SIZE): Likewise. + * sysdeps/powerpc/novmxsetjmp.h (__novmx__longjmp): Fix type of + first argument in the prototype. + * sysdeps/powerpc/longjmp.c (__vmx__longjmp, __vmx__libc_longjmp): + Remove bogus semicolons. + + * sysdeps/s390/dl-tls.h: Only add __tls_get_offset assembly if + IS_IN_rtld. + (__TLS_GET_ADDR): Use __tls_get_offset, not __tls_get_addr. + +2004-03-11 Ulrich Drepper <drepper@redhat.com> + + * resolv/ns_ttl.c: Don't add ns_parse_ttl for libresolv.so. + +2004-03-10 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/generic/errno.c: Include <dl-sysdep.h>. Use + RTLD_PRIVATE_ERRNO to decide whether errno compat symbols are needed. + + * elf/dl-sym.c: Unify _dl_sym and _dl_vsym code and make the entry + points wrappers around the unified code. + +2004-03-11 Richard Henderson <rth@redhat.com> + + * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (kernel_stat64): New. + (glibc21_stat): New. + * sysdeps/unix/sysv/linux/alpha/fxstat.c: New file. + * sysdeps/unix/sysv/linux/alpha/lxstat.c: New file. + * sysdeps/unix/sysv/linux/alpha/xstat.c: New file. + * sysdeps/unix/sysv/linux/alpha/xstatconv.c (__xstat_conv): Add + code for _STAT_VER_GLIBC2_3_4. + (__libc_missing_axp_stat64): New. + * sysdeps/unix/sysv/linux/alpha/xstatconv.h: New file. + * sysdeps/unix/sysv/linux/alpha/bits/stat.h (__ST_TIME): New. + (_STAT_VER_GLIBC2_3_4, _STAT_VER_KERNEL64): New. + (struct stat, struct stat64): Update to new format. + (_STATBUF_ST_NSEC): New. + +2004-03-11 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S + (__novec_swapcontext): Branch to novec_* labels. + +2004-03-10 Ulrich Drepper <drepper@redhat.com> + + * posix/getopt.c (_): Don't define here for glibc. + +2004-03-10 Jakub Jelinek <jakub@redhat.com> + + * include/libc-symbols.h [__ASSEMBLY__] (compat_text_section, + compat_data_section): Define. + * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): Add + attribute_compat_text_section. + * sysdeps/unix/sysv/linux/alpha/wordexp.c (__old_wordexp): Likewise. + * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob, + __old_globfree): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown_is_lchown): Likewise. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL): + * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c + (__posix_fadvise64_l32): Likewise. + * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c + (__posix_fadvise64_l32): Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (__old_semctl): Likewise. + * sysdeps/unix/sysv/linux/semctl.c (__old_semctl): Likewise. + * sysdeps/unix/sysv/linux/posix_fadvise64.c (__posix_fadvise64_l32): + Likewise. + * sysdeps/unix/sysv/linux/shmctl.c (__old_shmctl): Likewise. + * hurd/compat-20.c (_hurd_proc_init_compat_20): Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S + (__swapcontext, __novec_swapcontext): Use END instead of PSEUDO_END. + (__novec_swapcontext, __swapcontext_stub): Add compat_text_section. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S + (__makecontext_stub): Likewise. + (__novec_makecontext): Likewise. Fix name in END () to match + function name. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S + (__setcontext): Use END instead of PSEUDO_END. + (__novec_setcontext): Add compat_text_section. Use END instead of + PSEUDO_END, fix the name in END () to match function name. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S + (__getcontext, __novec_getcontext): Use END instead of PSEUDO_END. + (__novec_getcontext, __getcontext_stub): Add compat_text_section. + +2004-03-10 Kaz Kojima <kkojima@rr.iij4u.or.jp> + + * sysdeps/sh/dl-machine.h: Don't use GL macro if not appropriate. + (COPY_UNALIGNED_WORD): Remove cast used as lvalue. + +2004-03-10 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/i386/dl-procinfo.h (HWCAP_IMPORTANT): Remove mmx, add sse2. + +2004-03-10 Richard Henderson <rth@redhat.com> + + * sysdeps/generic/errno.c: Disable versioning for rtld. + + * sysdeps/generic/Makefile (elf/shared): Add unwind-pe. + * sysdeps/generic/unwind-pe.c: New file. + * sysdeps/generic/unwind-pe.h: Only prototypes for _LIBC without + _LIBC_DEFINITIONS. + +2004-03-10 Ulrich Drepper <drepper@redhat.com> + + * include/libc-symbols.h: Define attribute_compat_text_section and + attribute_compat_data_section. + * io/ftw.c: Mark compat code with attribute_compat_text_section. + * libio/iofopncook.c: Likewise. + * libio/oldfileops.c: Likewise. + * libio/oldiofclose.c: Likewise. + * libio/oldiofdopen.c: Likewise. + * libio/oldiofgetpos.c: Likewise. + * libio/oldiofgetpos64.c: Likewise. + * libio/oldiofopen.c: Likewise. + * libio/oldiofsetpos.c: Likewise. + * libio/oldiofsetpos64.c: Likewise. + * libio/oldiopopen.c: Likewise. + * libio/oldpclose.c: Likewise. + * libio/oldtmpfile.c: Likewise. + * nptl/forward.c: Likewise. + * nss/getXXbyYY_r.c: Likewise. + * nss/getXXent_r.c: Likewise. + * posix/tst-vfork1.c: Likewise. + * stdlib/canonicalize.c: Likewise. + * stdlib/old_atexit.c: Likewise. + * sysdeps/generic/glob.c: Likewise. + * sysdeps/posix/posix_fallocate64.c: Likewise. + * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise. + * sysdeps/unix/sysv/linux/i386/chown.c: Likewise. + * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise. + * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise. + * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise. + * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise. + * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise. + * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise. + * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise. + * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise. + * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise. + * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise. + * posix/regexec.c: Likewise. + + * sysdeps/unix/sysv/linux/i386/syscalls.list: vm86@@GLIBC_2.3.4 + should be the default symbol. Having none misses the point. + +2004-03-09 Ulrich Drepper <drepper@redhat.com> + + * stdlib/qsort.c (_quicksort): Initialize first stack element [BZ #16]. + +2004-03-05 Jakub Jelinek <jakub@redhat.com> + + * posix/regexec.c (regexec): Return with error on unknown eflags. + Replace weak_alias with versioned_symbol. + (__compat_regexec): New. + * posix/Versions (libc): Add regexec@GLIBC_2.3.4. + +2004-03-09 Richard Henderson <rth@redhat.com> + + * math/math.h (isgreater, isgreaterequal, isless, islessequal, + islessgreater, isunordered): Use builtins if available. + * sysdeps/i386/fpu/bits/mathinline.h: Don't define via builtins. + * sysdeps/m68k/fpu/bits/mathinline.h: Likewise. + * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise. + * sysdeps/sparc/fpu/bits/mathinline.h: Likewise. + * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise. + * sysdeps/alpha/fpu/bits/mathinline.h (isgreater, isgreaterequal, + isless, islessequal, islessgreater): Remove; use default. + (isunordered): Convert inputs to double. + +2004-02-09 Jakub Jelinek <jakub@redhat.com> + + * posix/Makefile (tests): Add tst-vfork2. + * posix/tst-vfork1.c (do_test): Fix comment. + * posix/tst-vfork2.c: New test. + +2004-03-09 Ulrich Drepper <drepper@redhat.com> + + * elf/dl-lookup.c (_dl_lookup_symbol_x): Fix possible NULL pointer + derefernce in error message. Pretty printing. + + * po/nl.po: Update from translation team. + +2004-03-08 Andreas Schwab <schwab@suse.de> + + * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't truncate + sysinfo pointer value. + +2004-03-08 Paul Eggert <eggert@cs.ucla.edu> + + Merge from gnulib. We now assume C89 or better. + * posix/getopt1.c (const): Remove. + * posix/getopt.c (const): Likewise. + * posix/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only, + _getopt_long_only_r, main): Use prototypes, not old-style definitions. + * posix/getopt.c (exchange, _getopt_initialize, _getopt_internal_r, + _getopt_internal, getopt, main): Likewise. + * posix/getopt.h (getopt, getopt_long, getopt_long_only): Likewise. + * posix/getopt.c [!defined VMS || !HAVE_STRING_H]: + Include <string.h> regardless. No need for <strings.h>. + [!defined _LIBC]: Include "gettext.h" rather than rolling it ourselves. + (_): Define to gettext always. + (my_index): Remove: all uses changed to strchr. + (strlen): Remove declaration. + * posix/getopt.h (struct option.name): Always const char *. + +2004-03-08 Marcus Brinkmann <marcus@gnu.org> + + * posix/getopt.h (_getopt_internal): Move to ... + * posix/getopt_int.h: ... here. New file. + * include/getopt_int.h: New file. + * include/getopt.h: Remove libc_hidden_proto for getopt_long + and getopt_long_only. + * posix/getopt1.c: Include "getopt_int.h". Remove + libc_hidden_def for getopt_long and getopt_long_only. + (_getopt_long_r, _getopt_long_only_r): New functions. + * posix/getopt.c: Include "getopt_int.h". + (__getopt_initialized): Variable removed. + (nextchar, ordering, posixly_correct, first_nonopt, last_nonopt): + Static variables removed. + (nonoption_flags_max_len, nonoption_flags_len) [_LIBC && + USE_NONOPTION_FLAGS]: Static variables removed. + (getopt_data): New static variable. + (SWAP_FLAGS): Use d->__nonoption_flags_len instead + nonoption_flags_len. + (exchange): Add new argument D of type struct getopt_data *. + Replace optind with d->optind, optarg with d->optarg, opterr with + d->opterr, optopt with d->optopt, nextchar with d->__nextchar, + first_nonopt with d->__first_nonopt, last_nonopt with + d->__last_nonopt, d->ordering with d->__ordering, + d->posixly_correct with d->__posixly_correct (which is now an + int instead a string, so fix users), nonoption_flags_len + with d->__nonoption_flags_len, nonoption_flags_max_len with + d->__nonoption_flags_max_len. + (_getopt_initialize): Likewise. + (_getopt_internal): Rename to ... + (_getopt_internal_r): ... this. Also add new argument D of type + struct getopt_data * and use of members of D rather than global or + static variables as described for exchange() above. Add new argument + to invocations of _getopt_initialize and exchange. + (_getopt_internal): Reimplement in terms of _getopt_internal_r. + * argp/argp-parse.c: Include <getopt_int.h>. + [_LIBC]: Do not include <bits/libc-lock.h>. + [!_LIBC && HAVE_CTHREADS_H]: Do not include <cthreads.h>. + [!_LIBC] (_argp_hang): Make static. + (getopt_lock, LOCK_GETOPT, UNLOCK_GETOPT): Remove. + (_argp_unlock_xxx): Remove. + (parser_init): Do not use LOCK_GETOPT. + (parser_finalize): Do not use UNLOCK_GETOPT. + (struct parser): New member OPT_DATA. + (parser_init): Initialize parser->opt_data. Use + parser->opt_data.opterr instead of opterr. + (parser_parse_opt): Use parser->opt_data.optarg instead optarg. + (parser_parse_next): Likewise. Use parser->opt_data.optind + instead optind. Use parser->opt_data.optopt instead of optopt. + Call _getopt_long_only_r and _getopt_long_r instead of + getopt_long_only and getopt_long, and pass the extra argument. + +2004-03-09 Ulrich Drepper <drepper@redhat.com> + + * iconv/gconv_db.c: Don't define lock as static. Rename to + __gconv_lock and export from the file. + * iconv/gconv_int.h: Declare __gconv_lock. + * libio/iofclose.c [_LIBC] (_IO_new_fclose): Lock gconv lock + before __gconv_release_step calls. + Patch by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>. + + * iconv/gconv_simple.c (internal_ucs4_loop): Fix typo in last change. + + * posix/Makefile (tests): Add tst-vfork1. + * posix/tst-vfork1.c: New file. + +2004-03-08 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/i386/dl-machine.h: Define ARCH_FIXUP_ATTRIBUTE and use + it in the fixup function declarations. + * elf/dl-runtime.c: If ARCH_FIXUP_ATTRIBUTE is not defined, + provide dummy definition. Use macro in fixup function + definitions. -2002-09-29 Roland McGrath <roland@redhat.com> + * sysdeps/unix/sysv/linux/i386/vfork.S: If SAVE_PID and + RESTORE_PID are defined, use it. + * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise. - * configure.in (libc_cv_ranlib_necessary check): Put the .o file in - the archive, not the .c file. - * configure: Regenerated. + * sysdeps/posix/gai_strerror.c: Add error string for EAI_IDN_ENCODE. -2002-09-29 Roland McGrath <roland@redhat.com> + * Makerules: Use extra-modules.mk if modules-names is defined. + * extra-modules.mk: New file. + * dlfcn/Makefile (CPPFLAGS-modcxaatexit.c): Removed. + * elf/Makefile (CFLAGS-interp.c): Add -DNOT_IN_libc=1. + * csu/Makefile ($(objpfx)version-info.h): Pass -DNOT_IN_libc=1 to + compiler. + * Makefile (distribute): Add symbol-hacks.h and extra-modules.mk. + * sysdeps/generic/symbol-hacks.h: New file. + * sysdeps/wordsize-32/symbol-hacks.h: New file. + * sysdeps/wordsize-32/divdi3.c: Define *_internal aliases for __divdi3, + __moddi3, __udivdi3, and __umoddi3. + * include/libc-symbols.h: Include <symbol-hacks.h>. - * configure: Regenerated after aclocal.m4 change. +2004-03-08 Jeroen Dekkers <jeroen@dekkers.cx> - * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form. - * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here. + * elf/rtld.c (_rtld_global_ro) [MAP_COPY]: Don't set _dl_unload_cache. - * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP): - Define it, because _dl_sym presumes it (for any platform). + * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): + Don't use INTUSE with _dl_signal_error. - * sysdeps/x86_64/dl-tls.h: New file. +2004-03-08 Ulrich Drepper <drepper@redhat.com> - * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast. + * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow): + Don't use INTUSE with _dl_signal_error. - * sysdeps/x86_64/elf/configure.in: New file. - * sysdeps/x86_64/elf/configure: New generated file. +2004-03-08 Richard Henderson <rth@redhat.com> -2002-09-28 Roland McGrath <roland@redhat.com> + * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Fix typo + in name. - * elf/rtld.c (_dl_start): Fix conditional for declaring CNT. +2004-03-07 Ulrich Drepper <drepper@redhat.com> - * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib - before we check it. + * config.h.in: Add entry for HAVE_LIBIDN. + * configure.in: If libidn add-on present define HAVE_LIBIDN. + * Versions.def: Add entry for libcidn. -2002-09-28 Ulrich Drepper <drepper@redhat.com> +2004-03-07 Simon Josefsson <jas@extundo.com> - * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit - entry point. + * resolv/netdb.h [__USE_GNU]: Add new AI_IDN ai_flags for addrinfo. + [__USE_GNU]: Add new error code EAI_IDN_ENCODE for getaddrinfo. + * sysdeps/posix/getaddrinfo.c: Add prototype for __idna_to_ascii_lz + and define IDNA_SUCCESS. + (gaih_inet): If ai_flags have AI_IDN, invoke __idna_to_ascii_lz. + (getaddrinfo): Fix EAI_BADFLAGS test to include AI_IDN. + All changes only applicable when glibc is compiled with the libidn + add-on. -2002-09-28 Jakub Jelinek <jakub@redhat.com> +2004-03-07 Ulrich Drepper <drepper@redhat.com> - * posix/bug-regex11.c (tests): Add flags field. - (main): Avoid warnings. Use test[i].flags. Return nonzero - if any of the tests failed. - * posix/bug-regex12.c: New file. - * posix/Makefile (tests): Add bug-regex12. + * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Call + _dl_lookup_symbol_x not _dl_lookup_symbol. -2002-03-02 Thorsten Kukuk <kukuk@suse.de> + * sysdeps/powerpc/elf/rtld-global-offsets.sym: Adjust for moving + _dl_hwcap into _rtld_global_ro. + * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise. + * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise. + * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise. + * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise. - * sysdeps/unix/nice.c (nice): Use getpriority() for the return value. +2004-03-07 Andreas Schwab <schwab@suse.de> -2002-09-28 Jeff Bailey <jbailey@gnu.org> + * elf/dl-sym.c: Include <dl-tls.h> only when USE_TLS. - * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete. - * sysdeps/unix/sysv/aix/configure.in: Update comment and remove - stdio=libio setting. +2004-03-07 Andreas Jaeger <aj@suse.de> -2002-09-28 Roland McGrath <roland@redhat.com> + * iconvdata/iso-2022-cn-ext.c (BODY): Remove cast used as lvalue. + * iconvdata/tcvn5712-1.c (EMIT_SHIFT_TO_INIT): Likewise. + * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT): Likewise. + * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT): Likewise. + * iconvdata/tscii.c (EMIT_SHIFT_TO_INIT): Likewise. - * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for - _dl_signal_error. - * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise. - * sysdeps/powerpc/powerpc64/dl-machine.c - (_dl_reloc_overflow): Likewise. - * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise. - (elf_machine_rela): Likewise. +2004-03-07 Ulrich Drepper <drepper@redhat.com> -2002-09-27 Steven Munroe <sjmunroe@us.ibm.com> + * sysdeps/generic/ldsodefs.h: Move _dl_initial_searclist, + _dl_hp_timing_overhead, _dl_init_all_dirs, and the content of + dl-procinfo.c from _rtld_global to _rtld_global_ro. + * elf/rtld.c: Adjust initializer for _rtld_global_ro. + * elf/dl-close.c: Use GLRO instead of GL where appropriate. + * elf/dl-libc.c: Likewise. + * elf/dl-load.c: Likewise. + * sysdeps/i386/dl-procinfo.h: Likewise. + * sysdeps/i386/i686/hp-timing.h: Likewise. + * sysdeps/ia64/hp-timing.h: Likewise. + * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise. + * sysdeps/sparc/sparc64/hp-timing.h: Likewise. + * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise. + * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise. + * string/test-string.h: Define GLRO. - * include/libc-symbols.h (__hidden_dot_weak1): Fix typo. Replace - ASM_GLOBAL_DIRECTIVE with .weak. +2004-03-06 Ulrich Drepper <drepper@redhat.com> -2002-09-28 Andreas Jaeger <aj@suse.de> + * elf/dl-lookup.c: We don't need for specialized lookup functions. + Combining the functionality does not slow down relocation processing, + it might even speed it up a little. + * sysdeps/generic/ldsodefs.h: Adjust prototypes for lookup function. + Add only one function pointer to rtlf_global_ro. + * elf/do-lookup.h: Replace #ifs with ifs. + * elf/dl-libc.c: Adjust _dl_lookup_* callers. + * elf/dl-reloc.c: Likewise. + * elf/dl-runtime.c: Likewise. + * elf/dl-sym.c: Likewise. + * elf/rtld.c: Likewise. Adjust _rtld_global_ro initialization. + +2004-03-06 Richard Henderson <rth@redhat.com> + + * sysdeps/generic/ldsodefs.h (__rtld_local_attribute__, + __rtld_global_attribute__): Undef after use. + (_rtld_local_ro): Define __rtld_local_attribute__ with just hidden + if available. + + * soft-fp/quad.h (union _FP_UNION_Q): Add longs structure. + * sysdeps/alpha/Implies: Add alpha/soft-fp. + * sysdeps/alpha/soft-fp/sfp-machine.h: Rewrite for GEM interface. + * sysdeps/alpha/Subdirs: New file. + * sysdeps/alpha/soft-fp/Makefile: New file. + * sysdeps/alpha/soft-fp/Versions: New file. + * sysdeps/alpha/soft-fp/local-soft-fp.h: New file. + * sysdeps/alpha/soft-fp/ots_add.c: New file. + * sysdeps/alpha/soft-fp/ots_cmp.c: new file. + * sysdeps/alpha/soft-fp/ots_cmpe.c: New file. + * sysdeps/alpha/soft-fp/ots_cvtqux.c: New file. + * sysdeps/alpha/soft-fp/ots_cvtqx.c: New file. + * sysdeps/alpha/soft-fp/ots_cvttx.c: New file. + * sysdeps/alpha/soft-fp/ots_cvtxq.c: New file. + * sysdeps/alpha/soft-fp/ots_cvtxt.c: New file. + * sysdeps/alpha/soft-fp/ots_div.c: New file. + * sysdeps/alpha/soft-fp/ots_mul.c: New file. + * sysdeps/alpha/soft-fp/ots_nintxq.c: New file. + * sysdeps/alpha/soft-fp/ots_sub.c: New file. + +2004-03-06 Ulrich Drepper <drepper@redhat.com> + + * configure.in: Recognize --enable-bind-now. + * elf/dynamic-link.h (elf_get_dynamic_info): Allow bind-now flags + in ld.so. + * Makerules (LDFLAGS-c.so): Add -z now if so configured. + * elf/Makefile ($(objpfx)ld.so): Likewise. + * config.make.in (bind-now): New definition. + + * elf/dl-fini.c (_dl_fini): Combine _dl_debug_printf calls. + * elf/rtld.c (print_statistics): Likewise. + + * elf/dl-open.c: No need to pass any parameter to _dl_start_profile. + They are the same in both places. + * elf/dl-profile.c: Likewise. + * elf/rtld.c: Likewise. + * sysdeps/generic/ldsodefs.h: Likewise. + * elf/dl-support.c: Define _dl_profile_output variable. Initialize it. - * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix - number of args to syscall. - * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise. - Patch by Guido Guenther <agx@sigxcpu.org>. +2004-03-05 Ulrich Drepper <drepper@redhat.com> -2002-09-27 Roland McGrath <roland@redhat.com> + * elf/Versions: Remove functions which are not exported anymore. + * dlfcn/dlerror.c: Call ld.so functions through GLSO. + * dlfcn/dlinfo.c: Likewise. + * elf/dl-close.c: Likewise. + * elf/dl-libc.c: Likewise. + * elf/dl-open.c: Likewise. + * elf/dl-sym.c: Likewise. + * sysdeps/generic/libc-start.c: Likewise. + * elf/dl-debug.c: Remove *_internal definition. Don't use INTUSE for + functions which are not exported anymore. + * elf/dl-deps.c: Likewise. + * elf/dl-dst.h: Likewise. + * elf/dl-error.c: Likewise. + * elf/dl-fini.c: Likewise. + * elf/dl-init.c: Likewise. + * elf/dl-load.c: Likewise. + * elf/dl-lookup.c: Likewise. + * elf/dl-misc.c: Likewise. + * elf/dl-profile.c: Likewise. + * elf/dl-profstub.c: Likewise. + * elf/dl-reloc.c: Likewise. + * elf/dl-runtime.c: Likewise. + * elf/dl-version.c: Likewise. + * elf/do-lookup.h: Likewise. + * include/dlfcn.h: Likewise. + * sysdeps/generic/dl-cache.c: Likewise. + * sysdeps/generic/dl-fptr.c: Likewise. + * sysdeps/generic/dl-origin.c: Likewise. + * sysdeps/generic/dl-sysdep.c: Likewise. + * sysdeps/generic/dl-tls.c: Likewise. + * sysdeps/generic/ldsodefs.h: Likewise. + * sysdeps/i386/dl-tls.h: Likewise. + * sysdeps/unix/sysv/linux/dl-origin.c: Likewise. + * elf/rtld.c: Likewise. Export function though _rtld_global_ro. - * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite): - Define these to __NR_pread64, __NR_pwrite64 if not defined. + * sysdeps/generic/ldsodefs.h (struct rtld_global): Move + dl_debug_fd to rtld_global_ro. + * elf/rtld.c: Use GLRO instead of GL for dl_debug_fd. + * elf/dl-misc.c: Likewise. - * sysdeps/unix/sysv/linux/powerpc/lchown.S - [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition - on chown compatibility symbol; use compat_symbol, not symbol_version. + * malloc/malloc.c: Don't call exported interface in the implementation. -2002-09-27 Isamu Hasegawa <isamu@yamato.ibm.com> + * include/wctype.h: Add libc_hidden_proto for __towctrans. + * wctype/towctrans.c: Add libc_hidden_def. - * posix/regcomp.c (reg_free): Free the debug area. - (re_compile_internal): Allocate debug area for the input string. - (create_initial_state): Check the back references in initial states - if they are really match null string in the initial state. - (parse_reg_exp): Mark the dfa that the dfa can have plural matchings. - (parse_expression): Likewise. - (parse_bracket_exp): Likewise. - * posix/regex_internal.c (re_node_set_intersect): Remove unused - function. - (re_node_set_contains): Change to return the index of node. - * posix/regex_internal.h (re_backref_cache_entry): Change the members. - (re_match_context_t): Likewise. - (struct re_dfa_t): Likewise. - (re_sift_context_t): New structure. - * posix/regexec.c (match_ctx_clear_flag): New function. - (sift_ctx_init): Likewise. - (update_cur_sifted_state): Likewise. - (add_epsilon_src_nodes): Likewise. - (sub_epsilon_src_nodes): Likewise. - (check_subexp_limits): Likewise. - (search_subexp): Likewise. - (sift_states_bkref): Likewise. - (merge_state_array): Likewise. - (sift_states_iter_bkref): Remove unused function. - (add_epsilon_backreference): Remove unused function. - (re_search_internal): Adapt new members and interfaces. - (check_matching): Check the back references in initial states - if they are really match null string in the initial state. - (proceed_next_node): Change the evaluation of back references, - since we have real registers here. - (set_regs): Adapt new interface of proceed_next_node. - (sift_states_backward): Add invocation of update_cur_sifted_state - instead of add_epsilon_backreference. - Add a sentinel to the outermost while loop. - Move the handling of back references to sift_states_bkref function, - since we can't handle some back references (e.g. a back reference - which match NULL string) here. - (transit_state_mb): Handle the new member max_mb_elem_len. - (transit_state_bkref_loop): Move the evaluation of back references to - search_subexp function, since we can't evaluate some back references - (e.g. a back reference which can have plural matchings) here. - (match_ctx_init): Adapt the new member. - (match_ctx_add_entry): Adapt the new members. - -2002-09-25 Alan Modra <amodra@bigpond.net.au> - - * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for - 'elf_machine_rel_relative' - (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro - instead of 'elf_machine_rel_relative'. - * sysdeps/hppa/dl-machine.h: - Define macro DO_ELF_MACHINE_REL_RELATIVE for - 'elf_machine_rel_relative' with extra map parameter - required by HPPA. - (elf_machine_rela_relative): Add plt relocation changes. - -2001-11-14 Matthew Wilcox <willy@debian.org> - - * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file. - * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file. - * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file. - * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file. - -2002-09-27 Steven Munroe <sjmunroe@us.ibm.com> - - * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment. - - * sysdeps/powerpc/powerpc64/Makefile - [$(build-shared) = yes] (pic-ccflag): Define it. - [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too. - -2002-09-27 Roland McGrath <roland@redhat.com> - - * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove - unneeded TLS cases. - -2002-09-27 Jakub Jelinek <jakub@redhat.com> - - * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start - unconditionally. Set dli_fname to _dl_argv[0] only for main program. - -2002-09-27 Roland McGrath <roland@redhat.com> - - * elf/dl-addr.c (_dl_addr): Add a cast. - - * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new - TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64. - - * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64, - R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32, - R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros. - (R_X86_64_NUM): Update the value. - -2002-09-24 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't - rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the - addend. - * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use - the same l_addr computation. - * sysdeps/sparc/sparc64/configure.in: Removed. - * sysdeps/sparc/sparc64/configure: Removed. - * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove. - -2002-09-26 Ulrich Drepper <drepper@redhat.com> - - * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry - if necessary. - * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated. - * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the - symbol table if necessary. + * libio/memstream.c (open_memstream): Use _IO_init with INTUSE. -2002-09-26 Roland McGrath <roland@redhat.com> + * posix/regexec.c (transit_state): Remove unused variable + next_state. - * stdlib/longlong.h: Replaced with current version from GCC mainline, - last modified 2002-09-22 Kazu Hirata <kazu@cs.umass.edu>. + * posix/regcomp.c (init_dfa): Use __btowc instead of btowc. -2002-09-25 Andreas Jaeger <aj@suse.de> + * sysdeps/generic/ldsodefs.h: Define new structure rtld_global_ro. + Declare _rtld_global_ro and _rtld_local_ro. Move members of + rtld_global structure into the new one if they are modified only + at startup time. Define GLRO to access _rtld_global_ro. + * elf/Versions: Export _rtld_global_ro. + * elf/dl-close.c: Use GLRO instead of GL where appropriate. + * elf/dl-conflict.c: Likewise. + * elf/dl-deps.c: Likewise. + * elf/dl-dst.h: Likewise. + * elf/dl-error.c: Likewise. + * elf/dl-fini.c: Likewise. + * elf/dl-init.c: Likewise. + * elf/dl-load.c: Likewise. + * elf/dl-lookup.c: Likewise. + * elf/dl-minimal.c: Likewise. + * elf/dl-open.c: Likewise. + * elf/dl-profile.c: Likewise. + * elf/dl-reloc.c: Likewise. + * elf/dl-runtime.c: Likewise. + * elf/dl-support.c: Likewise. + * elf/dl-version.c: Likewise. + * elf/do-lookup.h: Likewise. + * elf/rtld.c: Likewise. + * sysdeps/generic/dl-cache.c: Likewise. + * sysdeps/generic/dl-origin.c: Likewise. + * sysdeps/generic/dl-sysdep.c: Likewise. + * sysdeps/generic/libc-start.c: Likewise. + * sysdeps/generic/dl-cache.c: Likewise. + * sysdeps/i386/dl-machine.h: Likewise. + * sysdeps/i386/setfpucw.c: Likewise. + * sysdeps/i386/fpu/fclrexcpt.c: Likewise. + * sysdeps/i386/fpu/fedisblexcpt.c: Likewise. + * sysdeps/i386/fpu/feenablxcpt.c: Likewise. + * sysdeps/i386/fpu/feholdexcpt.c: Likewise. + * sysdeps/i386/fpu/fesetround.c: Likewise. + * sysdeps/i386/fpu/fsetexcptflg.c: Likewise. + * sysdeps/i386/fpu/ftestexcept.c: Likewise. + * sysdeps/unix/sysv/linux/dl-execstat.c: Likewise. + * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise. + * sysdeps/unix/sysv/linux/dl-origin.c: Likewise. + * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise. + * sysdeps/unix/sysv/linux/getclktck.c: Likewise. + * sysdeps/unix/sysv/linux/getpagesize.c: Likewise. + * sysdeps/unix/sysv/linux/init-first.c: Likewise. + * sysdeps/unix/sysv/linux/prof-freq.c: Likewise. + * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise. + * sysdeps/unix/sysv/linux/i386/sigaction.h: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise. + * sysdeps/x86_64/dl-machine.h: Likewise. + * sysdeps/sparc/sparc64/dl-machine.h: Likewise. + * sysdeps/sparc/sparc32/dl-machine.h: Likewise. + * sysdeps/s390/s390-64/dl-machine.h: Likewise. + * sysdeps/s390/s390-32/dl-machine.h: Likewise. + * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise. + * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise. + * sysdeps/m68k/dl-machine.h: Likewise. + * sysdeps/ia64/dl-machine.h: Likewise. + * sysdeps/arm/dl-machine.h: Likewise. + * sysdeps/alpha/dl-machine.h: Likewise. + * generic/dl-fptr.c: Likewise. + * mach/hurd/dl-sysdep.c: Likewise. + * unix/sysv/linux/ia64/dl-static.c: Likewise. + * unix/sysv/linux/ia64/getpagesize.c: Likewise. + * unix/sysv/linux/m68k/getpagesize.c: Likewise. + * unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise. - * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit. - Patch by Guido Guenther <agx@sigxcpu.org>. +2004-03-04 Ulrich Drepper <drepper@redhat.com> -2002-09-25 Roland McGrath <roland@redhat.com> + * sysdeps/generic/ldsodefs.h: Don't define _dl_name_match_p as inline. + * elf/dl-misc.c: Define _dl_name_match_p here. + * elf/dl-open.c (check_libc_caller): Don't use _dl_name_match_p. - * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS). + * elf/dl-open.c (dl_open_worker): Check that _dl_open is called + from the right place. -2002-09-24 Ulrich Drepper <drepper@redhat.com> +2004-01-15 Paolo Bonzini <bonzini@gnu.org> - * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name. + * posix/regex.h (REG_STARTEND): Define. + * posix/regexec.c (regexec): Check for REG_STARTEND. -2002-09-24 Roland McGrath <roland@redhat.com> +2004-02-29 Paolo Bonzini <bonzini@gnu.org> - * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read, - __libc_write, __libc_lseek64, to ... - (ld: GLIBC_PRIVATE): ... here. + * posix/regexec.c (transit_state): Don't handle state == NULL. + Move state log and backreference management... + (merge_state_with_log): ... to this function. + (find_recover_state): New function. + (check_matching): Use find_recover_state to get a non-NULL + state when an invalid state is reached. Compute the amount + of initial characters to be skipped less conservatively when + multi-byte character sets are in use. Do not check + dfa->nbackref if the state log is NULL. Initialize err. + (acquire_init_state_context): Expect err to be initialized. + Fix spacing. - * csu/Versions: Use %include <tls.h> to get USE_TLS defined. - (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno. - (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead. - * resolv/Versions: Use %include <tls.h> to get USE_TLS defined. - (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno, - and _res. - (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here. +2004-03-05 Jakub Jelinek <jakub@redhat.com> - * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD): - New macros for x86-64. + * sysdeps/sparc/sparc32/elf/start.S: Handle PIEs. + * sysdeps/sparc/sparc64/elf/start.S: Likewise. - * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed. - It was indentical to the linux/bits/time.h file. +2004-03-04 Jakub Jelinek <jakub@redhat.com> - * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning. + * iconv/iconv_prog.c (process_block): Handle omit_invalid. + If iconv returns EILSEQ with omit_invalid, continue converting + and return 1 if no other errors are seen. + (main): Set status to EXIT_FAILURE whenever process_* returns + nonzero, but only stop processing further files if iy returns + negative value. - * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE. +2004-03-03 Jakub Jelinek <jakub@redhat.com> -2002-09-23 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/x86_64/posix_fadvise.c: New file. + * sysdeps/unix/sysv/linux/x86_64/posix_fadvise64.c: New file. + * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64): + Remove. + * sysdeps/unix/sysv/linux/alpha/posix_fadvise.c: New file. + * sysdeps/unix/sysv/linux/alpha/posix_fadvise64.c: New file. + * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): + Remove. + * sysdeps/unix/sysv/linux/ia64/posix_fadvise.c: New file. + * sysdeps/unix/sysv/linux/ia64/posix_fadvise64.c: New file. + * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64): + Remove. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise.c: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise64.c: New + file. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Removed. + * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise.c: New file. + * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise64.c: New file. + * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list + (posix_fadvise64): Remove. + * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise.c: New file. + * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise64.c: New file. + * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list + (posix_fadvise64): Remove. - * po/zh_CN.po: New file. +2004-03-02 Andreas Schwab <schwab@suse.de> -2002-09-23 Roland McGrath <roland@redhat.com> + * sysdeps/unix/sysv/linux/powerpc/powerpc32/xstat.c: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/fxstat.c: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/lxstat.c: New file. - * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K] - for gethostname declaration. +2004-03-01 Ulrich Drepper <drepper@redhat.com> - * catgets/open_catalog.c (__open_catalog): Don't use a value type - as the __builtin_expect expression, just the Boolean value. + * nscd/nscd_getgr_r.c (nscd_getgr_r): Add missing initialization + of return value. + * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise. - * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter. - * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise. - * resolv/res_hconf.c (arg_service_list, parse_line): Likewise. - * iconvdata/tst-loading.c (main): Likewise. - * catgets/tst-catgets.c (main): Likewise. - * stdlib/tst-xpg-basename.c (main): Likewise. - * stdlib/tst-bsearch.c (main): Likewise. - * stdio-common/test-vfprintf.c (main): Likewise. - * stdio-common/tst-rndseek.c (do_test): Likewise. - * libio/tst_swprintf.c (main): Likewise. - * libio/tst-fgetws.c (main): Likewise. - * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise. - * time/tst-posixtz.c (main): Likewise. - * time/tst-strptime.c (test_tm): Likewise. - * time/tst-strptime.c (main): Likewise. - * time/tst-getdate.c (main): Likewise. - * posix/tst-mmap.c (main): Likewise. - * posix/tst-getaddrinfo.c (do_test): Likewise. - * io/tst-getcwd.c (do_test): Likewise. - * resolv/tst-aton.c (main): Likewise. - * inet/tst-network.c (main): Likewise. - * libio/tst-fgetws.c (main): Likewise. - * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I. - * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int - for PTYNO. + * sysdeps/unix/sysv/linux/kernel-features.h: Add support for + __ASSUME_GETDENTS32_D_TYPE. + * sysdeps/unix/sysv/linux/getdents.c: For 2.6.4+ kernels use + getdents syscall again since it provides d_type information. - * stdlib/msort.c (qsort): Add a cast to silence warning. - * stdio-common/vfprintf.c (process_string_arg): Likewise. - * libio/oldfileops.c (_IO_old_do_write): Likewise. - * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise. - * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise. - * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise. - * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise. - * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise. - * sysdeps/unix/grantpt.c (grantpt): Likewise. - * libio/tst-widetext.c (main): Likewise. - * libio/tst-mmap2-eofsync.c (do_test): Likewise. - * rt/tst-aio.c (test_file): Likewise. - * rt/tst-aio64.c (test_file): Likewise. - * resolv/tst-aton.c (main): Likewise. +2004-02-29 Andreas Jaeger <aj@suse.de> - * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant. + * manual/install.texi (Tools for Compilation): Autoconf 2.53 is + required. + (Supported Configurations): Add x86_64-*-linux. - * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t - instead of uint32_t in these macros. +2004-02-28 Ulrich Drepper <drepper@redhat.com> -2002-09-22 Bruno Haible <bruno@clisp.org> + * sysdeps/i386/i686/memcmp.S: Move table to .rodata. Patch by HJ Lu. - * iconv/iconv_prog.c (main): Provide an error message that identifies - the wrong encoding. +2004-02-27 Jakub Jelinek <jakub@redhat.com> - * iconvdata/tscii.c: New file. - * iconvdata/testdata/TSCII: New file. - * iconvdata/testdata/TSCII..UTF8: New file. - * iconvdata/TSCII.precomposed: New file. - * iconvdata/TSCII.irreversible: New file. - * iconvdata/gconv-modules (TSCII): New module. - * iconvdata/Makefile (modules): Add TSCII. - (distribute): Add tscii.c. - * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output - buffer size. - * iconvdata/tst-tables.sh: Add TSCII. - * iconvdata/TESTS: Add TSCII. + * elf/rtld.c (dl_main): Adjust l->l_ld of the vDSO by l->l_addr. + * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Only set + GL(dl_sysinfo) if non-zero. - Revert 2002-04-18 patch. - * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for - FROM_DIRECTION): Make the FROM direction stateful again. - * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for - FROM_DIRECTION): Likewise. + * sysdeps/unix/sysv/linux/sysconf.c: Include stdlib.h. - * iconvdata/tst-e2big.c: New file. - * iconvdata/Makefile (tests): Add tst-e2big. +2004-02-26 Ulrich Drepper <drepper@redhat.com> -2002-09-23 Roland McGrath <roland@redhat.com> + * nss/getXXbyYY_r.c: Pass result also to the nscd_* function. Don't + set *result here. + * nscd/nscd_proto.h: Add new argument for pointer to result pointer + to all nscd_* functions. + * nscd/nscd_getgr_r.c (nscd_getgr_r): Add new parameter. Store result + pointer in the address provided by the new parameter if successful. + Otherwise store NULL. Return zero if no entry found. + (__nscd_getgrnam_r, __nscd_getgrgid_r): Add new parameter and pass + it on. + * nscd/nscd_gethst_r.c (nscd_gethst_r): Add new parameter. Store + result pointer in the address provided by the new parameter if + successful. Otherwise store NULL. Return zero if no entry found. + (__nscd_gethostbyname_r, __nscd_gethostbyname2_r, + __nscd_gethostbyaddr_r): Add new parameter and pass it on. + * nscd/nscd_getpw_r.c (nscd_getpw_r): Add new parameter. Store result + pointer in the address provided by the new parameter if successful. + Otherwise store NULL. Return zero if no entry found. + (__nscd_getpwnam_r, __nscd_getpwuid_r): Add new parameter and pass + it on. - * elf/Makefile (test-extras): Define this instead of test-srcs. - * Makerules (all-nonlib): Include $(test-extras) too. +2004-02-26 Jakub Jelinek <jakub@redhat.com> -2002-09-21 Carlos O'Donell <carlos@baldric.uwo.ca> + * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Set + retval to -1 on error. - * sysdeps/hppa/abort-instr.h: New file. +2004-02-26 Ulrich Drepper <drepper@redhat.com> -2002-09-22 Roland McGrath <roland@frob.com> + * stdlib/canonicalize.c (__realpath): Simplify. - * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry. + * posix/regcomp.c (parse_expression): Avoid duplication in calls + to build_charclass_op. - * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit. +2004-02-26 Jakub Jelinek <jakub@redhat.com> -2002-09-22 Andreas Schwab <schwab@suse.de> + * elf/rtld.c (dl_main): Correctly set up l_map_end and l_addr + in vDSO's link_map, don't assume l_addr == 0. Set GL(dl_sysinfo) + from e_entry only if AT_SYSINFO not present and adjust by l_addr. + Take vDSO into account when inserting rtld into _dl_loaded chain. - * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite. +2004-02-26 Ulrich Drepper <drepper@redhat.com> - * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal) - (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]: - Use GCC builtins. + * sunrpc/svcauth_des.c (authdes_getucred): Removed fixed limit on + number of groups in the cache. Relax the disconnect between the + interface of authdes_getucred and netname2user a bit. + * sunrpc/auth_unix.c (authunix_create_default): Don't allocate + huge arrays on the stack. -2002-09-21 Roland McGrath <roland@redhat.com> + * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Use the official + not cancelable interfaces. - * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM): - Correct the value so it covers all platforms, and is computed - from _DL_PLATFORMS_COUNT rather than hard-wired. - From Andrew Suffield <asuffield@debian.org>. +2004-02-24 Arnold D. Robbins <arnold@skeeve.com> -2002-09-20 Ulrich Drepper <drepper@redhat.com> + * posix/regex_internal.c (build_wcs_upper_buffer): Enclose + `offsets_needed' label in `#ifdef _LIBC' to silence `unused label' + compiler warning. - * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid - locking when using mount tab file. - * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise. - * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>. - * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise. +2004-02-24 Nelson H.F. Beebe <beebe@math.utah.edu> - * elf/dl-init.c (_dl_init): Fix test of the size of the - preinit_array section. - (call_init): Optimize access to DT_INIT_ARRAY entry a bit. - Reported by Brian Cabral <cabral@ikuni.com>. + * posix/regcomp.c (parse_expression): Add cast to (const unsigned + char *) in calls to `build_charclass_op'. + * posix/regex_internal.c (build_wcs_buffer): Add cast to char* in call + to `wcrtomb'. + * posix/regex_internal.h (bitset_not, bitset_merge, bitset_not_merge, + bitset_mask, re_string_char_size_a, re_string_wchar_at, + re_string_elem_size_at): Change to use prototypes. + (re_string_char_size_at, re_string_wchar_at, + re_string_elem_size_at): Declare as `internal_function'. -2002-09-20 Steven Munroe <sjmunroe@us.ibm.com> +2004-02-25 Ulrich Drepper <drepper@redhat.com> - * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros. - * sysdeps/powerpc/powerpc32/sysdep.h: New file. Define powerpc32 - specific macros copied from sysdeps/powerpc/sysdep.h. - * sysdeps/powerpc/powerpc64/sysdep.h: New file. Define powerpc64 - specific macros. - * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>. - [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h. - [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h. + * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Handle + _SC_NGROUPS_MAX. -2002-09-19 Bruno Haible <bruno@clisp.org> +2004-02-23 Jakub Jelinek <jakub@redhat.com> - * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before - returning. + * wcsmbs/mbrtowc.c (__mbrtowc): Cap s + n at the end of address space. + * stdlib/Makefile (tests): Add testmb2. + (testmb2-ENV): New. + * stdlib/testmb2.c: New test. -2002-09-17 Bruno Haible <bruno@clisp.org> +2004-02-23 Jakub Jelinek <jakub@redhat.com> - * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c. - * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry - also on platforms with !HAVE_UT_TYPE. - (proc_utmp_eq): Remove function. - (internal_getut_r, pututline_file): Call __utmp_equal instead. + * sysdeps/posix/getaddrinfo.c (gaih_inet): If _res has not been + inited yet, try to init it before saving old _res.options. + * posix/Makefile (xtests): Add bug-ga2. + (generated): Add bug-ga2.mtrace and bug-ga2-mem. + (xtests): Depend on bug-ga2-mem. + ($(objpfx)bug-ga2-mem, bug-ga2-ENV): New. + * posix/bug-ga2.c: New test. -2002-09-20 Bruno Haible <bruno@clisp.org> +2004-02-22 Ulrich Drepper <drepper@redhat.com> - * abi-tags: Add support for FreeBSD with ABI OS value 3. - * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag. + * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Pop register + content also in case of an overflow in the parameter. + Reported by Momchil Velikov <velco@fadata.bg>. -2002-09-20 Roland McGrath <roland@redhat.com> +2004-02-21 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>. - (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in - terms of __WORDSIZE. - * sysdeps/x86_64/gmp-mparam.h: File removed. - * sysdeps/sparc/gmp-mparam.h: File removed. - * sysdeps/mips/mips64/gmp-mparam.h: File removed. - * sysdeps/ia64/gmp-mparam.h: File removed. - * sysdeps/alpha/gmp-mparam.h: File removed. + * elf/dynamic-link.h (elf_get_dynamic_info): Recognize DF_1_NOW. + In ld.so, neither DT_FLAGS nor DT_FLAGS_1 must be used. -2002-09-20 Steven Munroe <sjmunroe@us.ibm.com> +2004-02-21 Andreas Jaeger <aj@suse.de> - * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc - load, so as to work on both 32-bit and 64-bit. Remove unnecessary - casts. Align __libc_stack_end to 8 bytes. + * posix/bug-ga1.c: Include <string.h> for memset prototype. -2002-09-20 Roland McGrath <roland@redhat.com> + * elf/dl-load.c (_dl_map_object_from_fd): Fix casts used as lvalue. - * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros - instead of asm for lrintf, __lrintf aliases. + * iconv/gconv_simple.c (internal_ucs4le_loop): Remove cast used as + lvalue. - * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to - int array for 32-/64-bit compatibility. - From Steven Munroe <sjmunroe@us.ibm.com>. +2004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca> -2002-09-17 Bruno Haible <bruno@clisp.org> + * sysdeps/generic/framestate.c [__USING_SJLJ_EXCEPTIONS__] + (__frame_state_for): Set frame_State_for to abort if the compiler + is using sjlj. + * sysdeps/generic/unwind-dw2.c: Allow sjlj enabled compilers to + build the code by removing __USING_SJLJ_EXCEPTIONS__ wrapper. - * sysdeps/generic/ifreq.h (__if_nextreq): New function. - * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function. - * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function. - * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq - for iterating through the list of interfaces. - * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise. +2004-02-20 Alexandre Oliva <aoliva@redhat.com> -2002-09-20 Roland McGrath <roland@redhat.com> + * resolv/Versions: Remove semicolon from the end of libresolv's + GLIBC_2.3.2 version block. + * Versions.def (libresolv): Add GLIBC_2.3.2. - * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails. - Reported by Bruno Haible <bruno@clisp.org>. +2004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca> - * sysdeps/unix/bsd/bsd4.4/isatty.c: New file. + * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Fix order of fp + status register loads. - * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno. - * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from - isatty unmodified. Reported by Bruno Haible <bruno@clisp.org>. +2004-02-20 Thorsten Kukuk <kukuk@suse.de> -2002-09-20 Steven Munroe <sjmunroe@us.ibm.com> + * nscd/nscd.c (termination_handler): Use _exit instead of exit - * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf. - * sysdeps/powerpc/bits/wordsize.h: New file. - * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long - array to int array for 32-/64-bit compatibility. +2004-02-20 Ulrich Drepper <drepper@redhat.com> -2002-09-20 Roland McGrath <roland@redhat.com> + * nscd/nscd.c (main): Report fork errors. - * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>. + * dlfcn/dlsym.c: Get ld.so loading lock before the call into ld.so. + * dlfcn/dlvsym.c: Likewise. + * elf/dl-addr.c: Get loading lock while using _dl_loaded data. + * elf/dl-fini.c: Likewise. + Patch by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>. - * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null. - Reported by Bruno Haible <bruno@clisp.org>. +2004-02-20 Jakub Jelinek <jakub@redhat.com> - * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition - before doubling RQ_LEN. - * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise. - Reported by Bruno Haible <bruno@clisp.org>. + * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Add ulps for the + 2003-11-27 atan2 test. -2002-09-18 Bruno Haible <bruno@clisp.org> + * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Protect + with #ifndef __powerpc64__. - * login/logout.c (logout): Don't assume ut_time has the same size as - a time_t. - * login/logwtmp.c (logwtmp): Likewise. + * sysdeps/generic/ldsodefs.h (_dl_argv, _dl_argv_internal): If + DL_ARGV_NOT_RELRO defined, don't use attribute_relro. + * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Remove. + * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove. + * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Remove. + * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove. + * sysdeps/alpha/dl-sysdep.h: New file. + * sysdeps/ia64/dl-sysdep.h: New file. + * sysdeps/sparc/dl-sysdep.h: New file. - * sysdeps/pthread/configure: New file, moved here from - linuxthreads/sysdeps/unix/sysv/linux/configure. +2004-02-19 Jakub Jelinek <jakub@redhat.com> -2002-09-19 Ulrich Drepper <drepper@redhat.com> + * sysdeps/sparc/sparc32/bits/atomic.h: Add __make_section_unallocated + for .gnu.linkonce.b.__sparc32_atomic_locks section. + (__sparc32_atomic_locks): Add __sec_comment at the end of section name. - * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>. - (_exit): Don't use ABORT_INSTRUCTION if it is not defined. - Reported by Glen Nakamura <glen@imodulo.com>. +2004-02-19 Steven Munroe <sjmunroe@us.ibm.com> -2002-09-19 Neal H. Walfield <neal@cs.uml.edu> + * sysdeps/generic/libc-start.c [LIBC_START_DISABLE_INLINE] (STATIC): + Define as static. + * sysdeps/powerpc/elf/libc-start.c: Define LIBC_START_DISABLE_INLINE + because gcc does not allow inline of functions that call setjmp. - * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal - thread's sigstate data structure if it has been allocated. +2004-02-19 Steven Munroe <sjmunroe@us.ibm.com> -2002-09-19 Roland McGrath <roland@redhat.com> + * sysdeps/powerpc/powerpc64/Makefile: Use -finline-limit. + +2004-02-19 Jakub Jelinek <jakub@redhat.com> + + * elf/rtld.c (_dl_argv): If DL_ARGV_NOT_RELRO defined, don't + use attribute_relro for _dl_argv. + * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Define. + * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Define. + * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Define. + * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Define. + +2004-02-19 Ulrich Drepper <drepper@redhat.com> + + * libio/iopopen.c (_IO_new_proc_open): It's not kosher to use + vfork instead of fork. + * libio/oldiopopen.c (_IO_old_proc_open): Likewise. + + * sysdeps/unix/clock_settime.c (clock_settime): Fix typo which + prevented system-dependent handling from being used. + +2004-02-18 Carlos O'Donell <carlos@baldric.uwo.ca> + + * test-skeleton.c (main): If set, use environment variable + TIMEOUTFACTOR to scale test TIMEOUT. + +2004-02-18 Ulrich Drepper <drepper@redhat.com> + + * nscd/nscd_conf.c: Include <stdio_ext.h>. + +2004-02-16 Ulrich Drepper <drepper@redhat.com> + + * stdlib/test-canon.c (do_test): Test realpath(,NULL) in the loop + as well. + + * stdlib/canonicalize.c (__realpath): Remove unnecessary copy + operations. + + * nscd/nscd_conf.c (nscd_parse_file): Little optimization. + +2004-02-14 Thorsten Kukuk <kukuk@suse.de> + + * nscd/dbg_log.c (set_logfile): Only save name of logfile, + don't open it. + (init_logfile): New function, open logfile if requested. + * nscd/dbg_log.h: Adjust protoype for set_logfile, add init_logfile. + * nscd/nscd.c (main): Call init_logfile after forking in background. + * nscd/nscd_conf.c (nscd_parse_file): Adjust for new set_logfile. + +2004-02-16 Ulrich Drepper <drepper@redhat.com> + + * elf/rtld.c (dl_main): Don't fail execution if file named in + ld.so.preload is not present [BZ #18]. + + * sysdeps/posix/getaddrinfo.c (getaddrinfo): Undo unintended + changes in last patch. + + * posix/regexec.c (transit_state): Fix typo in commented-out code + [BZ #6]. + + * sysdeps/posix/getaddrinfo.c (match_prefix): Correctly match + partial bytes [BZ #24]. + * posix/Makefile (tests): Add bug-ga1. + * posix/bug-ga1.c: New file. + +2004-02-13 Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/powerpc/powerpc64/__longjmp-common.S: New file. + * sysdeps/powerpc/powerpc64/__longjmp.S [NOT_IN_libc](__longjmp): + Non-versioned __longjmp for rtld-__longjmp. + [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as + default version of __longjmp. + [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] + (__novmx__longjmp): Original version of __longjmp. + * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [NOT_IN_libc](_setjmp): + Non-versioned _setjmp for rtld-_setjmp. + [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define + as default version of _setjmp. + [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] + (__novmx_setjmp): Original version of _setjmp. + * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__vmxsetjmp): Branch to + __vmx__sigsetjmp and define as default version of setjmp. + [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] + (__novmxsetjmp): Original version of setjmp. + * sysdeps/powerpc/powerpc64/setjmp-common.S: New file. + * sysdeps/powerpc/powerpc64/setjmp.S [NOT_IN_libc](__setjmp): + Non-versioned __sigsetjmp for rtld-setjmp. + [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define + as default version of __sigsetjmp. + [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] + (__novmx__sigsetjmp): Original version of __sigsetjmp. + + * sysdeps/powerpc/powerpc32/__longjmp-common.S: New File + * sysdeps/powerpc/powerpc32/__longjmp.S [NOT_IN_libc](__longjmp): + Non-versioned __longjmp for rtld-__longjmp. + [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as + default version of __longjmp. + [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)] + (__novmx__longjmp): Original version of __longjmp. + * sysdeps/powerpc/powerpc32/bsd-_setjmp.S [NOT_IN_libc](_setjmp): + Non-versioned _setjmp for rtld-_setjmp. + [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define + as default version of _setjmp. + [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)] + (__novmx_setjmp): Original version of _setjmp. + * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__vmxsetjmp): Branch to + __vmx__sigsetjmp and define as default version of setjmp. + [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)] + (__novmxsetjmp): Original version of setjmp. + * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: New file. + * sysdeps/powerpc/powerpc32/fpu/__longjmp.S [NOT_IN_libc](__longjmp): + Non-versioned __longjmp for rtld-__longjmp. + [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as + default version of __longjmp. + [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)] + (__novmx__longjmp): Original version of __longjmp. + * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: New file. + * sysdeps/powerpc/powerpc32/fpu/setjmp.S [NOT_IN_libc](__setjmp): + Non-versioned __sigsetjmp for rtld-setjmp. + [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define + as default version of __sigsetjmp. + [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)] + (__novmx__sigsetjmp): Original version of __sigsetjmp. + * sysdeps/powerpc/powerpc32/setjmp-common.S: New file. + * sysdeps/powerpc/powerpc32/setjmp.S [NOT_IN_libc](__setjmp): + Non-versioned __sigsetjmp for rtld-setjmp. + [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define + as default version of __sigsetjmp. + [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)] + (__novmx__sigsetjmp): Original version of __sigsetjmp. + + * sysdeps/powerpc/Dist: New File. + * sysdeps/powerpc/Makefile (sysdep_routines): Add novmx-longjmp.c + and novmx-sigjmp.c + * sysdeps/powerpc/Versions (libc): To GLIBC_2.3_4 add _longjmp, + __sigsetjmp, _setjmp, longjmp, and setjmp. To GLIBC_PRIVATE add + __novmx__libc_longjmp, __novmx__libc_siglongjmp, __vmx__libc_longjmp, + and __vmx__libc_siglongjmp. + * sysdeps/powerpc/bits/setjmp.h: Define JB_VRSAVE, JB_VRS, and adjust + JB_SIZE to add VMX regs to __jmp_buf. + * sysdeps/powerpc/longjmp.c: New file. + * sysdeps/powerpc/novmxsetjmp.h: New file. + * sysdeps/powerpc/novmx-longjmp.c: New file. + * sysdeps/powerpc/novmx-sigjmp.c: New file. + * sysdeps/powerpc/sigjmp.c: New file. + +2004-02-13 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c (__lrintf, lrintf): + Define. + (__lrintl, lrintl): Remove. + * sysdeps/powerpc/powerpc64/fpu/s_llrint.c (__lrint): Fix a typo in + strong_alias spelling. + * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: Remove. + * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: New file. - * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE] - [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name. +2004-02-12 Ulrich Drepper <drepper@redhat.com> -2002-09-18 Ulrich Drepper <drepper@redhat.com> + * posix/getopt.h: Add some non-gcc support. Patch by Aharon Robbins. - * version.h (VERSION): Bump to 2.2.94. +2004-02-12 Mark Brown <bmark@us.ibm.com> - * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to... - * sysdeps/powerpc/powerpc32/fpu/Dist: ...here. New file. - * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to... - * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here. + * sysdeps/ia64/fpu/e_fmodf.S: Added text of Intel license. - * sysdeps/i386/Makefile: Remove obsolete db2 rules. +2004-02-12 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S. + * sysdeps/powerpc/fpu/s_lrint.c: Move to... + * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: ... here. + * sysdeps/powerpc/fpu/s_llrint.c: Move to... + * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: ... here. + * sysdeps/powerpc/fpu/s_llrintf.c: Move to... + * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: ... here. + * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file. + * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: New file. + * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: New file. - * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh. + * math/libm-test.inc (lrint_test): Add new test. + (llrint_test, lround_test, llround_test): Likewise. + * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Fix special case + with result taking up 48 bits. + * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise. + * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise. + * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Fix special case + with result taking up 31 bits. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file. +2004-02-12 Ulrich Drepper <drepper@redhat.com> -2002-09-19 Jakub Jelinek <jakub@redhat.com> + * locale/programs/locale.c (show_locale_vars): Don't print a value + for LANG if it is not set. - * sysdeps/wordsize-32/Makefile: New file. - * sysdeps/arm/Makefile: Removed. - * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines): - Don't add divdi3 here. - * sysdeps/m68k/Makefile: Likewise. - * sysdeps/powerpc/powerpc32/Makefile: Likewise. - * sysdeps/sh/Makefile: Likewise. - * sysdeps/s390/s390-32/Makefile: Likewise. +2004-02-11 Jakub Jelinek <jakub@redhat.com> -2002-09-18 Roland McGrath <roland@redhat.com> + * posix/regexec.c (check_node_accept_bytes): Return 0 if char_len is 0. + (find_collation_sequence_value): Don't look beyond end of + SYMB_EXTRAMB table. + * posix/Makefile (tests): Add bug-regex23. + (bug-regex23-ENV): New. + * posix/bug-regex23.c: New file. - * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for - the __ctype_* compat symbols, so the relocs generated bind to the - right versioned global symbol in the shared object. +2004-02-10 Roland McGrath <roland@frob.com> - * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag) - from the value taken from the DT_VERSYM table. - * elf/dl-runtime.c (fixup, profile_fixup): Likewise. - * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise. - (RESOLVE_GOTSYM): Likewise. + * sysdeps/mach/hurd/times.c (__times): Use union instead of cast. + * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Likewise. - * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction): - Add libc_hidden_def. - * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise. - * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise. - * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise. - * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise. - * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise. + * sysdeps/mach/hurd/configure.in: Move `retcode' check to ... + * sysdeps/mach/configure.in: ... here. + * sysdeps/mach/hurd/configure: Regenerated. + * sysdeps/mach/configure.in: Regenerated. -2002-09-18 Ulrich Drepper <drepper@redhat.com> +2004-02-10 Ulrich Drepper <drepper@redhat.com> - * include/signal.h: Add libc_hidden_proto for __libc_sigaction. + * sysdeps/generic/setenv.c (__add_to_environ): Don't let the + temporary copies of the variables accumulate on the stack. - * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined - define sigaction and __sigaction as wrappers around - __libc_sigaction which rejects changing SIGCANCEL. - * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise. + * stdio-common/_i18n_number.h: Finish last patch. - * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and - SETTID/CLEARTID. +2004-02-09 Ulrich Drepper <drepper@redhat.com> - * signal/allocrtsig.c: Move to... - * sysdeps/generic/allocrtsig.c: ...here. New file. + * sysdeps/i386/i686/memcmp.S: New file. Patch by HJ Lu. -2002-09-17 Jakub Jelinek <jakub@redhat.com> +2003-12-05 Roland McGrath <roland@redhat.com> - * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always. + * sysdeps/unix/sysv/linux/i386/syscalls.list: Turn vm86 into vm86old + for vm86@GLIBC_2.0 version. Add new vm86@GLIBC_2.3.4. + * sysdeps/unix/sysv/linux/i386/Versions (libc: GLIBC_2.3.4): Add vm86. + * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Update vm86 prototype. - * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE, - R_386_TLS_LE): Define. - (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update - comments. - * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return - ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF. - (elf_machine_rel): Handle R_386_TLS_TPOFF. - (elf_machine_rela): Likewise. - Remove unnecessary RTLD_BOOTSTRAP #ifdefs. - -2002-09-17 Roland McGrath <roland@redhat.com> - - * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define - file-specific variable override so it compiles properly when using - --with-headers. - -2002-09-17 Steven Munroe <sjmunroe@us.ibm.com> - - Ported to PowerPC64 running Linux. - * sysdeps/powerpc/powerpc64/Dist: New file. - * sysdeps/powerpc/powerpc64/Implies: New file. - * sysdeps/powerpc/powerpc64/Makefile: New file. - * sysdeps/powerpc/powerpc64/__longjmp.S: New file. - * sysdeps/powerpc/powerpc64/atomicity.h: New file. - * sysdeps/powerpc/powerpc64/backtrace.c: New file. - * sysdeps/powerpc/powerpc64/bp-asm.h: New file. - * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file. - * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file. - * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file. - * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file. - * sysdeps/powerpc/powerpc64/dl-machine.c: New file. - * sysdeps/powerpc/powerpc64/dl-machine.h: New file. - * sysdeps/powerpc/powerpc64/memset.S: New file. - * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file. - * sysdeps/powerpc/powerpc64/register-dump.h: New file. - * sysdeps/powerpc/powerpc64/setjmp.S: New file. - * sysdeps/powerpc/powerpc64/stpcpy.S: New file. - * sysdeps/powerpc/powerpc64/strchr.S: New file. - * sysdeps/powerpc/powerpc64/strcmp.S: New file. - * sysdeps/powerpc/powerpc64/strcpy.S: New file. - * sysdeps/powerpc/powerpc64/strlen.S: New file. - * sysdeps/powerpc/powerpc64/elf/bzero.S: New file. - * sysdeps/powerpc/powerpc64/elf/start.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file. +2004-02-09 Ulrich Drepper <drepper@redhat.com> - * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] - (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for - various gcc versions. Dot names required for powerpc64. - [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol. - [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global - C_SYMBOL_DOT_NAME(alias). - [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as - original strong_alias macro. - [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak - C_SYMBOL_DOT_NAME(alias). - [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name. - [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver - '.'ed name. - Add comments on libc_hidden_data_def and libc_hidden_data_weak usage. - [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate - .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro. - (hidden_def): Append hidden_dot_def1 macro to definition. - (hidden_ver): Append hidden_dot_def1 macro to definition. - (hidden_data_def): New macro. Same as original hidden_def macro. - (hidden_data_ver): New macro. Same as original hidden_ver macro. - [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate - .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro. - (hidden_weak): Append hidden_dot_weak1 macro to definition. - (hidden_data_weak): New macro. Same as original hidden_weak macro. - [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name. - Otherwise defined as __GI_name. - (libc_hidden_data_def): New macro. Use hidden_data_def. - (libc_hidden_data_weak): New macro. Use hidden_data_weak. - (libc_hidden_data_ver): New macro. Use hidden_data_ver. - (rtld_hidden_data_def): New macro. Use hidden_data_def. - (rtld_hidden_data_weak): New macro. Use hidden_data_weak. - (rtld_hidden_data_ver): New macro. Use hidden_data_ver. - (libm_hidden_data_def): New macro. Use hidden_data_def. - (libm_hidden_data_weak): New macro. Use hidden_data_weak. - (libm_hidden_data_ver): New macro. Use hidden_data_ver. - * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def. - -2002-09-17 Ulrich Drepper <drepper@redhat.com> - - * include/libc-symbols.h: Change *hidden_proto macros to accept - option parameters and pass those to the attribute definition. - * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call. - - * include/unistd.h: Declare __libc_pause. - - * include/sys/socket.h: Declare __libc_send, __libc_recv, - __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept. - - * include/unistd.h: Declare __libc_fork. - -2002-09-17 Roland McGrath <roland@redhat.com> - - * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des. - (passwd2des): Define it as an alias. - (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des. - -2002-09-12 Bruno Haible <bruno@clisp.org> - - * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto. - * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def. - - * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto. - * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def. - -2002-09-05 Steven Munroe <sjmunroe@us.ibm.com> - - * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__] - (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64, - __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these. - PowerPC64 does not have separate 64-bit syscalls. - -2002-09-16 Roland McGrath <roland@redhat.com> - - * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast. + * nis/ypclnt.c: Cleanup last patch. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL): - New macro. +2004-02-09 Andreas Jaeger <aj@suse.de> - * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case. + * configure.in: Remove glibcbug creation. + * configure: Regenerated. - * include/unistd.h: Uncomment libc_hidden_proto for _exit. - * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def. - * sysdeps/generic/_exit.c: Likewise. + * sysdeps/x86_64/fpu/s_copysignf.S: Only load 4 bytes. -2002-09-12 Jakub Jelinek <jakub@redhat.com> +2004-02-03 Thorsten Kukuk <kukuk@suse.de> - * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate. + * nis/ypclnt.c (__yp_bind_client_create): New, small chunk + of duplicated code from __yp_bind. + (__yp_bind_file): New, binding dir code from __yp_bind. + (__yp_bind_client_create): New, ypbind code from __yp_bind. + (__ypclnt_call): New, make NIS query. + (do_ypcall): At first use cached data, then try data from + binding directory, after this ask ypbind for a working ypserv. + Based on a patch from Jeff Bastian <jmbastia@ti.com> and + Chris Barrera <cbarrera@ti.com> - * elf/rtld.c (struct dl_start_final_info): New. - (_dl_start_final): Change second argument to struct - dl_start_final_info *. Set start_time from info. - (_dl_start): Remove bootstrap_map variable, add info. - Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP, - store HP_TIMING_NOW result into info.start_time. +2004-01-19 Roland McGrath <roland@redhat.com> -2002-09-16 Andreas Jaeger <aj@suse.de> + * configure.in: Don't set CCVERSION. + * configure: Regenerated. + * glibcbug.in: File removed. + * Makefile (install-bin-script): Remove glibcbug. + (glibcbug): Target removed. + (distclean-1): Don't rm glibcbug. + (distribute): Remove glibcbug.in. - * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias - to _Exit. - * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise. +2004-02-09 Roland McGrath <roland@redhat.com> -2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> + * time/tzset.c (tzset_internal): Cap hour in POSIX $TZ rule format to + 24, not 23. - * sysdeps/powerpc/abort-instr.h: New file. +2004-01-29 Roland McGrath <roland@redhat.com> -2002-09-14 Ulrich Drepper <drepper@redhat.com> + * io/ftwtest-sh: Use $tmp consistently, not literal /tmp. + Reported by Kevin P. Fleming <kpfleming@backtobasicsmgmt.com>. - * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus - comment. +2004-02-09 Ulrich Drepper <drepper@redhat.com> - * test-skeleton.c (main): Provide more information in case waitpid - fails. + * libio/genops.c (_IO_cleanup): Do not use locking when flushing + the buffers. Some thread might be using a stream. - * include/unistd.h: Declare __exit_thread. - * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr. - Wrap call to main in setjmp if HAVE_CANCELBUF is defined. - * sysdeps/unix/sysv/linux/exit-thread.S: New file. - * sysdeps/unix/sysv/linux/_exit.c: New file. - * sysdeps/unix/sysv/linux/i386/_exit.S: New file. - * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines): - Add exit-thread. +2004-02-09 Andreas Jaeger <aj@suse.de> - * configure.in: Add dl_iterate_phdr to test using -nostdlib. + * sysdeps/x86_64/memcpy.S: Fix alignment [BZ #7]. + Patch by Jan Beulich <jbeulich@novell.com>. + +2004-02-09 Andreas Schwab <schwab@suse.de> + + * include/rpc/rpc.h: Declare thread variables with their correct type. + * sunrpc/clnt_perr.c: Don't cast thread variables. + * sunrpc/clnt_raw.c: Likewise. + * sunrpc/clnt_simp.c: Likewise. + * sunrpc/key_call.c: Likewise. + * sunrpc/svcauth_des.c: Likewise. + * sunrpc/svc.c: Likewise. + * sunrpc/svc_raw.c: Likewise. + * sunrpc/svc_simple.c: Likewise. -2002-09-12 Jakub Jelinek <jakub@redhat.com> +2004-02-09 Ulrich Drepper <drepper@redhat.com> - * sysdeps/i386/dl-machine.h (elf_machine_rel) - (case R_386_TLS_DTPMOD32): Don't use addend. - [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check. - (elf_machine_rela): Add support for TLS relocs. + * stdio-common/_i18n_number.h: Support printing localized decimal + point and thousand separator. + * wctype/wctrans.c: Add __wctrans alias. + * include/wctype.h: Declare __wctrans. + Based on a patch by Hamed Malek. -2002-09-14 Roland McGrath <roland@redhat.com> + * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Don't touch bits + other than the status bits [BZ #10]. - * Makefile (manual/%): Add this pattern target to the iconvdata/% rule. +2004-02-08 Ulrich Drepper <drepper@redhat.com> -2002-07-29 Steven Munroe <sjmunroe@us.ibm.com> + Make stream locking operations really work. + * misc/Makefile (CFLAGS-mntent_r.c): Define. + * shadow/Makefile (CFLAGS-fgetspent_r.c): Define. + (CFLAGS-putspent.c): Define. + * grp/Makefile (CFLAGS-fgetgrent_r.c): Define. + (CFLAGS-putgrent.c): Define. + * pwd/Makefile (CFLAGS-fgetpwent_r.c): Define. + Reported by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>. - * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64 - specific asm macros for multiple percision integer math. + * elf/dl-load.c (lose): Use noinline attribute instead of silly + alloca to prevent inlining. + * elf/dl-runtime.c (fixup): Likewise. + (profile_fixup): Likewise. -2002-06-04 Steven Munroe <sjmunroe@us.ibm.com> + * stdio-common/printf_size.c: Undo parts of patch from 2000-2-11. + Initialize width correctly. - * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro. - * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64. - Remove per-machine conditionals for FLAG_* cases. - * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file. - * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file. +2004-02-07 Andreas Jaeger <aj@suse.de> -2002-09-10 Alan Modra <amodra@bigpond.net.au> + * iconv/gconv_simple.c (ucs4le_internal_loop): Remove cast used as + lvalue. + (internal_ucs4le_loop_single): Likewise. + (ucs4_internal_loop): Likewise. + (BODY): Likewise. + (internal_ucs4_loop_single): Likewise. + * iconvdata/iso8859-1.c (BODY): Likewise. + * iconvdata/cp1255.c (EMIT_SHIFT_TO_INIT): Likewise. + * iconvdata/cp1258.c (EMIT_SHIFT_TO_INIT): Likewise. + * iconvdata/gb18030.c (BODY): Likewise. + * iconvdata/armscii-8.c (BODY): Likewise. + * stdlib/msort.c (msort_with_tmp): Likewise. - * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already - defined in entry.h. - (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain - lowest address for profiling in __monstartup call. - * sysdeps/powerpc/powerpc64/elf/entry.h: New file. + * iconv/gconv_open.c (__gconv_open): Remove conditional expression + as lvalue. -2002-09-14 Roland McGrath <roland@redhat.com> +2004-02-06 Steven Munroe <sjmunroe@us.ibm.com> - * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined - instead of __NR_pread. - * sysdeps/unix/sysv/linux/pread64.c: Likewise. - * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined - instead of __NR_pwrite. - * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. + * sysdeps/powerpc/powerpc32/dl-machine.c: Declare __cache_line_size as + weak extern. + (__elf_machine_runtime_setup): Invalidate the instruction cache over + the whole range of the PLT. -2002-09-13 Roland McGrath <roland@redhat.com> +2004-02-06 Andreas Schwab <schwab@suse.de> - * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice. + * posix/regcomp.c (build_range_exp): Fix off-by-one. + (parse_bracket_exp): Likewise. -2002-09-13 Andreas Jaeger <aj@suse.de> +2004-02-05 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead - syscall. Patch by Guido Guenther <agx@sigxcpu.org>. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Define + _HAVE_STAT_NSEC and _HAVE_STAT64_NSEC. Patch by Anton Blanchard. -2002-09-12 Ulrich Drepper <drepper@redhat.com> +2004-02-02 Paolo Bonzini <bonzini@gnu.org> - * elf/elf.h: Correct DT_LOOS and DT_HIOS values. + * posix/regexec.c (check_matching): Add P_MATCH_FIRST parameter. + (re_search_internal): Pass new parameter to check_matching. + (check_matching): Unless a parenthesized group is found at the + beginning of the regexp, advance P_MATCH_FIRST until we entered + a state different from the initial state. -2002-09-10 Ulrich Drepper <drepper@redhat.com> +2004-02-01 Ulrich Drepper <drepper@redhat.com> - * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after - reading the headers. + * math/libm-test.inc (lround_test): Add new test. + (llround_test): Likewise. + (lrint_test): Likewise. + (llrint_test): Likewise. + * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Fix special case + with result taking up 20 bits. + * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise. + * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.. + * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Fix special + case with result taking up 31 bits. + * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise. -2002-09-12 Roland McGrath <roland@redhat.com> + * po/nl.po: Update from translation team. - * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn. - (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to - find the ELF header. +2004-01-30 Andreas Schwab <schwab@suse.de> - * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main - executable if needed, in case it's actually a shared object. + * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_BREAK, + FPE_DECOVF, FPE_DECDIV, FPE_DECERR, FPE_INVASC, FPE_INVDEC, + SEGV_PSTKOVF): Remove underscore prefix from definition. -2002-09-11 Roland McGrath <roland@redhat.com> +2004-01-28 Paolo Bonzini <bonzini@gnu.org> - * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of - l_map_start to adjust l_tls_initimage. + Merge regex changes in gawk. + * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity + of collation elements. + * posix/regex.c: Include limits.h. + * posix/regex.h: Document REG_ECOLLATE correctly. + * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS. - * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno - when using h_errno and it's not set to NETDB_INTERNAL. - * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise. +2004-01-24 Andreas Jaeger <aj@suse.de> - * Makefile ($(common-objpfx)testrun.sh): New target. - (others): Depend on it. - (postclean-generated): Append it. + * malloc/obstack.h: Import gnulib version. + * malloc/obstack.c: Likewise. - * nss/bug-erange.c: New file. - * nss/Makefile (tests): Add it. +2004-01-26 David Mosberger <davidm@hpl.hp.com> - * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno - instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN. + * elf/link.h (struct dl_phdr_info): Fix typo in comment. + * elf/rtld.c (dl_main): After incrementing dl_nloaded, also + increment dl_load_adds. + * elf/dl-iteratephdr.c (__dl_iterate_phdr): Replace GL(dl_load_subs) + with equivalent GL(dl_load_adds - GL(dl_nloaded). + (dl_iterate_phdr): Likewise. + * elf/dl-close.c (_dl_close): Delete increment of GL(dl_load_subs). + * elf/dl-support.c: Remove global variable _dl_load_subs. + * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove + _dl_load_subs member. + +2004-01-27 Jakub Jelinek <jakub@redhat.com> + + * elf/rtld.c (_dl_start_final): Don't set l_relro_* here. + (_dl_start): And neither here. + (dl_main): Set GL(dl_loaded)->l_relro_* and + GL(dl_rtld_map)->l_relro_*. + +2004-01-23 David Mosberger <davidm@hpl.hp.com> + + * sysdeps/generic/ldsodefs.h (struct rtld_global): Add members + _dl_load_adds and _dl_load_subs. + * elf/dl-support.c (_dl_load_adds): New variable. + (_dl_load_subs): Likewise. + * elf/dl-object.c (_dl_new_object): Increment dl_load_adds. + * elf/dl-close.c (_dl_close): Increment dl_load_subs. + * elf/link.h (struct dl_phdr_info): Add members dlpi_adds and + dlpi_subs. + * include/link.h: Likewise. + * elf/dl-iteratephdr.c (__dl_iterate_phdr): Initialize dlpi_adds + and dlpi_subs members. + (dl_iterate_phdr): Likewise. + * elf/tst-dlmodcount.c: New file. + * elf/Makefile (distribute): Mention tst-dlmodcount.c. + (tests): If build-shared, mention tst-dlmodcount. + ($(objpfx)tst-dlmodcount): If build-shared, build and + run tst-dlmodcount. + +2004-01-22 Jakub Jelinek <jakub@redhat.com> + + * elf/dl-reloc.c (_dl_relocate_object): Move PT_GNU_RELRO protection + into... + (_dl_protect_relro): New routine. + * sysdeps/generic/ldsodefs.h (_dl_protect_relro): New prototype. + * elf/rtld.c (_dl_start_final): Copy l_relro_addr and l_relro_size + from bootstrap_map. + (_dl_main): Don't set GL(_dl_loaded)->l_relro_{addr,size} here. + Call _dl_protect_relro for libraries if prelinking. + +2004-01-23 Richard Henderson <rth@redhat.com> + + * Versions.def (libm): Replace GLIBC_2.3.3 with GLIBC_2.3.4. + * sysdeps/alpha/fpu/Versions (libm): Likewise. + * sysdeps/alpha/fpu/cfloat-compat.h (cfloat_versions): Likewise. + * sysdeps/alpha/fpu/s_clog10f.c (clog10f): Likewise. + +2004-01-22 Andreas Jaeger <aj@suse.de> + + * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to + avoid warnings for builtin function log2. + + * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind + information. - * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without - strncmp, keeps the code smaller for a non-performance-critical case. +2004-01-20 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp, - no longer wrongly matches arbitrary prefixes of NAME. - Reported by Jakub Jelinek <jakub@redhat.com>. + * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT. + * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise. + Patch by Davide Libenzi. -2002-09-11 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/kernel-features.h: Define + __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels. - * posix/bug-regex11.c (tests): New array. - (main): Rewritten to run more different tests. + * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale. -2002-09-10 Roland McGrath <roland@redhat.com> + * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t + instead of loff_t. Include <fcntl.h>. + * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add readahead prototype. + * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/cris/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise. - * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log) - (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed. - Instead, catch all of $(nscd-modules) via cppflags-iterator.mk. + * elf/dl-load.c: Don't add attribute_relro to max_dirnamelen. - * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as - well so we don't get it declared by include/math.h's hidden_proto. - Then do hidden_proto for __isnanf locally so hidden_def works right. + * sysdeps/generic/inttypes.h: Fix PRI*FAST{16,32} macros. - * posix/bug-regex5.c (main): Use `union locale_data_value' rather than - a cast to turn nl_langinfo return value into an integer. +2003-12-31 Bruno Haible <bruno@clisp.org> -2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com> + * iconvdata/iso_6937-2.c (to_ucs4): Map 0x7E to U+007E, not U+203E. + Map 0xA6 to U+0023. Map 0xA8 to U+00A4. + (to_ucs4_comb): Map 0xC5 0x20 to U+00AF. + (from_ucs4): Map U+00ED to 0xC2 0x69, not 0xC2 0xE9. + (BODY for TO_LOOP): Don't map U+02DC. Map U+02DD to 0xCD 0x20, not + 0x00 0x20. Don't map U+2500..U+25E3. - * posix/regexec.c (build_trtable): Fix the destination of - newline to prevent wrong states from overwriting. - Append break statements to optimization. +2004-01-19 Jakub Jelinek <jakub@redhat.com> -2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com> + * posix/regexec.c (get_subexp): Remove bkref_str variable. + Extend buffers if needed before comparisons. + (get_subexp_sub): Handle clean_state_log_if_needed failure. - * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if. - (build_range_exp): Add castings to strlen invocations. - (build_collating_symbol): Restore the type of characters from "char" - to "unsigned char", and supplement castings. - (build_collating_symbol): Likewise. - (build_equiv_class): Likewise. - (build_charclass): Likewise. - (seek_collating_symbol_entry): Likewise. - (parse_bracket_exp): Likewise. - (build_word_op): Supplement a casting. - * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if. - (re_string_allocate): Fix castings. - (re_string_construct): Likewise. - (re_string_construct_common): Likewise. - (re_string_realloc_buffers): Likewise. - (build_wcs_buffer): Likewise. - (build_wcs_upper_buffer): Likewise. - (re_string_skip_chars): Likewise. - (re_string_reconstruct): Likewise. - * posix/regex_internal.h: Restore the type of characters in - re_string_t and bracket_elem_t from "char" to "unsigned char". - (re_string_elem_size_at): Fix castings. - * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if. - (transit_state_bkref_loop): Restore the type of characters from - "char" to "unsigned char", and append a cast to "char*" pointer in - array subscript. - (check_node_accept_bytes): Likewise. - (find_collation_sequence_value): Likewise. - -2002-09-10 Hartvig Ekner <hartvige@mips.com> - - * sysdeps/mips/memcpy.S: New file. - * sysdeps/mips/memset.S: New file. - * sysdeps/mips/fpu/e_sqrt.c: New file. - * sysdeps/mips/fpu/e_sqrtf.c: New file. - - * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not - functional before. Also removed all SHLIB_COMPAT stuff. - * fpu/fegetenv.c: Likewise. - * fpu/fesetenv.c:: Likewise. - * fpu/feupdateenv.c: Likewise. - * fpu/fgetexcptflg.c: Likewise. - * fpu/fraiseexcpt.c: Likewise. - - * sysdeps/mips/fpu/fsetexcptflg.c: New file. - -2002-09-09 Jakub Jelinek <jakub@redhat.com> - - * include/math.h (__finite_internal, __finitef_internal, - __finitel_internal, __isinf_internal, __isnan_internal): Remove. - (isfinite): Remove. - (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel, - __isinfl, __isnanl): Add hidden_proto. - (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add - libm_hidden_proto. - * math/Makefile (libm-calls): Add s_isinf and s_isnan. - * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from - __is{inf,nan} calls. - * stdio-common/printf_size.c (printf_size): Likewise. - * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise. - * sysdeps/generic/s_ldexp.c (__ldexp): Likewise. - * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise. - * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise. - * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def. - * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias. - (__finite): Add hidden_def. - * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias. - (__finitef): Add hidden_def. - * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias. - (__finitel): Add hidden_def. - * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add - hidden_def. - * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise. - * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add - libm_hidden_def. - * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise. - * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add - hidden_def. - * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise. - (__isinfl): Remove INTDEF. - * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add - hidden_def. - (__isnanl): Remove INTDEF. - * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add - libm_hidden_def. - * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos - instead of sin and cos. - * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF. - Add hidden_def. - * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise. - * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise. - * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add - libm_hidden_def. - * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF. - Add hidden_def. - * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise. - * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise. - * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add - libm_hidden_def. - * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add - libm_hidden_def. - * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF. - Add hidden_def. - * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise. - * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise. - * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add - libm_hidden_def. - * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal, - __finitel_internal): Remove aliases. - (__finite, __finitef, __finitel): Add hidden_def. - * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal, - __isnanl_internal): Remove aliases. - (__isnan, __isnanf, __isnanl): Add hidden_def. - * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal, - __isinfl_internal): Remove aliases. - (__isinf, __isinff, __isinfl): Add hidden_def. - * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf, - __fpclassifyl): Add libm_hidden_def. - * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise. - * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def. - * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove. - (hidden_defx): Define and use. - * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add - libm_hidden_def. - * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise. - * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def. - * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl): - Remove INTDEF. - (__isnan, __isnanf): Add hidden_def. - * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias. - (__finitel): Add libm_hidden_def. - * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise. - - * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto. - * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver. - * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise. - * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise. - * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise. - * sysdeps/generic/fesetenv.c (fesetenv): Likewise. - * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise. - * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise. - * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise. - * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise. - * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise. - * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise. - * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise. - * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise. - * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise. - * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise. - * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise. - * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def. - * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise. - * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise. - * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise. - * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise. - * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise. - * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise. - * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise. - * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise. - * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise. - -2002-09-09 Steven Munroe <sjmunroe@us.ibm.com> - - * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types. - -2002-09-09 Jakub Jelinek <jakub@redhat.com> - - * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only - LD_DEBUG=statistics or LD_TRACE_PRELINKING. - -2002-09-09 Ulrich Drepper <drepper@redhat.com> - - * string/stratcliff.c: Some more strncpy tests. - Patch by Daniel Jacobowitz <drow@mvista.com>. - -2002-09-08 Roland McGrath <roland@redhat.com> - - * resolv/resolv.h: Include <sys/types.h> for u_long even in - the [__need_res_state] case. - Reported by Bruno Haible <bruno@clisp.org>. - -2002-09-04 Bruno Haible <bruno@clisp.org> - - * sysdeps/generic/bits/ustat.h: Comment fix. - * io/sys/sendfile.h: Comment fix. - * sysdeps/posix/pread.c: Comment fix. - * sysdeps/posix/pread64.c: Comment fix. - * sysdeps/posix/pwrite.c: Comment fix. - * sysdeps/posix/pwrite64.c: Comment fix. - -2002-09-06 Roland McGrath <roland@redhat.com> - - * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined - to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>. - (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise. - (_UTSNAME_MACHINE_LENGTH): Likewise. - (struct utsname): Use new macros instead of _UTSNAME_LENGTH. - -2002-09-06 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct - test for filesystem type name of mount points. - - * include/errno.h: Use errno definition with __thread for now only - in libc and ld.so. - - * test-skeleton.c (main): Improve error message for unexpected - signal case. - -2002-09-05 Roland McGrath <roland@redhat.com> - - * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*. - * locale/lc-ctype.c (_nl_postload_ctype): Likewise. - -2002-09-05 Jakub Jelinek <jakub@redhat.com> - - * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in - case of failure. - -2002-09-04 Bruno Haible <bruno@clisp.org> - - * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask, - sigset_get_old_mask): Turn into inline functions. - * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask, - sigset_get_old_mask): Likewise. - * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask, - sigset_get_old_mask): Likewise. - * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter - syntax. - - * elf/readlib.c (process_file): Conditionalize check for QMAGIC. - - * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove - default definitions. - (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist, - _sys_nerr_internal instead of _sys_nerr. - - * nscd/connections.c (handle_request): Declare CALLER inside #if. - -2002-07-29 Steven Munroe <sjmunroe@us.ibm.com> - - * sysdeps/powerpc/__longjmp.S: Moved to... - * sysdeps/powerpc/powerpc32/__longjmp.S: ...here. - * sysdeps/powerpc/add_n.S: Moved to... - * sysdeps/powerpc/powerpc32/add_n.S: ...here. - * sysdeps/powerpc/addmul_1.S: Moved to... - * sysdeps/powerpc/powerpc32/addmul_1.S: ...here. - * sysdeps/powerpc/atomicity.h: Moved to... - * sysdeps/powerpc/powerpc32/atomicity.h: ...here. - * sysdeps/powerpc/backtrace.c: Moved to... - * sysdeps/powerpc/powerpc32/backtrace.c: ...here. - * sysdeps/powerpc/bp-asm.h: Moved to... - * sysdeps/powerpc/powerpc32/bp-asm.h: ...here. - * sysdeps/powerpc/bsd-_setjmp.S: Moved to... - * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here. - * sysdeps/powerpc/bsd-setjmp.S: Moved to... - * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here. - * sysdeps/powerpc/dl-machine.c: Moved to... - * sysdeps/powerpc/powerpc32/dl-machine.c: ...here. - * sysdeps/powerpc/dl-machine.h: Moved to... - * sysdeps/powerpc/powerpc32/dl-machine.h: ...here. - * sysdeps/powerpc/dl-start.S: Moved to... - * sysdeps/powerpc/powerpc32/dl-start.S: ...here. - * sysdeps/powerpc/gprrest0.S: Moved to... - * sysdeps/powerpc/powerpc32/gprrest0.S: ...here. - * sysdeps/powerpc/gprrest1.S: Moved to... - * sysdeps/powerpc/powerpc32/gprrest1.S: ...here. - * sysdeps/powerpc/gprsave0.S: Moved to... - * sysdeps/powerpc/powerpc32/gprsave0.S: ...here. - * sysdeps/powerpc/gprsave1.S: Moved to... - * sysdeps/powerpc/powerpc32/gprsave1.S: ...here. - * sysdeps/powerpc/lshift.S: Moved to... - * sysdeps/powerpc/powerpc32/lshift.S: ...here. - * sysdeps/powerpc/memset.S: Moved to... - * sysdeps/powerpc/powerpc32/memset.S: ...here. - * sysdeps/powerpc/mul_1.S: Moved to... - * sysdeps/powerpc/powerpc32/mul_1.S: ...here. - * sysdeps/powerpc/ppc-mcount.S: Moved to... - * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here. - * sysdeps/powerpc/register-dump.h: Moved to... - * sysdeps/powerpc/powerpc32/register-dump.h: ...here. - * sysdeps/powerpc/rshift.S: Moved to... - * sysdeps/powerpc/powerpc32/rshift.S: ...here. - * sysdeps/powerpc/setjmp.S: Moved to... - * sysdeps/powerpc/powerpc32/setjmp.S: ...here. - * sysdeps/powerpc/stpcpy.S: Moved to... - * sysdeps/powerpc/powerpc32/stpcpy.S: ...here. - * sysdeps/powerpc/strchr.S: Moved to... - * sysdeps/powerpc/powerpc32/strchr.S: ...here. - * sysdeps/powerpc/strcmp.S: Moved to... - * sysdeps/powerpc/powerpc32/strcmp.S: ...here. - * sysdeps/powerpc/strcpy.S: Moved to... - * sysdeps/powerpc/powerpc32/strcpy.S: ...here. - * sysdeps/powerpc/strlen.S: Moved to... - * sysdeps/powerpc/powerpc32/strlen.S: ...here. - * sysdeps/powerpc/sub_n.S: Moved to... - * sysdeps/powerpc/powerpc32/sub_n.S: ...here. - * sysdeps/powerpc/submul_1.S: Moved to... - * sysdeps/powerpc/powerpc32/submul_1.S: ...here. - * sysdeps/powerpc/elf/bzero.S: Moved to... - * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here. - * sysdeps/powerpc/elf/start.S: Moved to... - * sysdeps/powerpc/powerpc32/elf/start.S: ...here. - * sysdeps/powerpc/fpu/__longjmp.S: Moved to... - * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here. - * sysdeps/powerpc/fpu/fprrest.S: Moved to... - * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here. - * sysdeps/powerpc/fpu/fprsave.S: Moved to... - * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here. - * sysdeps/powerpc/fpu/setjmp.S: Moved to... - * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here. - * sysdeps/powerpc/fpu/s_copysign.S: Moved to... - * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here. - * sysdeps/powerpc/fpu/s_copysignf.S: Moved to... - * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here. - * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to... - * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here. - * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to... - * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here. - * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to... - * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here. - * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to... - * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here. - * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to... - * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here. - * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to... - * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here. - * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to... - * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here. - Support PowerPC64. Separate powerpc into powerpc/powerpc32 and - powerpc/powerpc64. - -2002-07-29 Steven Munroe <sjmunroe@us.ibm.com> - - * FAQ.in: Add powerpc64 to supported targets list. Also state the - minimum gcc version is 3.2 - * README: Add powerpc64 to supported targets list. - * configure.in: Change machine=powerpc to machine=powerpc/powerpc32. - Add powerpc64 and machine=powerpc/powerpc64. - (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*. - * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64. - * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S, - gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S. - * sysdeps/powerpc/powerpc32/Dist: New file. - * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp. - * sysdeps/powerpc/powerpc32/Implies: New file. - * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags. - ($(with-fp) = no): Move test to powerpc32/Makefile. - ($(subdir) = misc): Move to powerpc32/Makefile. - ($(build-shared) = yes): Move to powerpc32/Makefile. - ($(subdir) = csu): Move to powerpc32/Makefile. - (sysdep-rtld-routines): Remove dl-start. Moved these bits to ... - * sysdeps/powerpc/powerpc32/Makefile: New file. - * sysdeps/powerpc/Versions: Remove libgcc functions. - * sysdeps/powerpc/powerpc32/Versions: New file. - * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest. - * sysdeps/powerpc/powerpc32/fpu/Makefile: New file. - * sysdeps/unix/sysv/linux/configure.in (powerpc*): - Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set - libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64. - ($machine): Add powerpc/powerpc64 to if ... | for - libc_cv_slibdir=/libc64. - (powerpc*): Set ldd_rewrite_script. - * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file. - * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file. - Add clone.S. - * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64. - * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0 - functions. Remove GLIBC_2.2 functions except getrlimit and - setrlimit. Moved them to ... - * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file. - -2002-09-04 Ulrich Drepper <drepper@redhat.com> - - * libio/tst-atime.c: Include <errno.h>. - (do_test): Only perform fstatvfs check if ST_NOATIME is defined. - -2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com> - - * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid - warnings of some compilers. - (build_collating_symbol): Change the type of characters from - "unsigned char" to "char", and append a cast to "char*" pointer in - array subscript. - (build_collating_symbol): Likewise. - (build_equiv_class): Likewise. - (build_charclass): Likewise. - (re_compile_pattern): Remove incorrect cast. - (re_compile_fastmap_iter): Change the type of characters from - "unsigned char" to "char", and append a cast to "char*" pointer - in array subscript. - (parse_bracket_exp): Likewise. - * posix/regex_internal.c (re_string_construct_common): Likewise. - (re_string_allocate): Likewise. - (re_string_construct): Likewise. - (re_string_realloc_buffers): Likewise. - (build_wcs_buffer): Likewise. +2004-01-17 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/i386/i486/bits/atomic.h (atomic_add): Fix test for using + atomic_decrement. Patch by Davin McCall. + +2004-01-13 Daniel Jacobowitz <drow@mvista.com> + + * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions) + (__sim_disabled_exceptions, __sim_round_mode): Declare with + hidden data and nocommon. + * sysdeps/powerpc/nofpu/soft-supp.h (__sim_exceptions) + (__sim_disabled_exceptions, __sim_round_mode): Use + libc_hidden_proto. + * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions) + (__sim_disabled_exceptions, __sim_round_mode): Likewise. + +2004-01-16 Ulrich Drepper <drepper@redhat.com> + + * elf/elf.h: Define PT_IA_64_HP_OPT_ANOT, PT_IA_64_HP_HSL_ANOT, and + PT_IA_64_HP_STACK. + +2004-01-16 Richard Henderson <rth@redhat.com> + + * include/unistd.h (__libc_enable_secure): Mark attribute_relro. + (__libc_enable_secure_internal): Likewise. + + * elf/dl-load.c: Don't declare __libc_stack_end. + * sysdeps/generic/libc-start.c: Likewise. + * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise. + * sysdeps/generic/segfault.c: Likewise. Include ldsodefs.h. + * sysdeps/generic/backtrace.c: Likewise. + +2004-01-15 Ulrich Drepper <drepper@redhat.com> + + * Versions.def: Add GLIBC_2.3.4. + +2004-01-15 Richard Henderson <rth@redhat.com> + + * sysdeps/unix/alpha/sysdep.h: Revert last change. + +2004-01-15 Richard Henderson <rth@redhat.com> + + * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal. + + * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use + !samegp relocation. + +2004-01-15 Richard Henderson <rth@redhat.com> + + * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process + ucontext-offsets.sym. + * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file. + * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file. + * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file. + * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file. + * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file. + +2004-01-15 Richard Henderson <rth@redhat.com> + + * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with + __syscall_, move nop inside, adjust users by +4. + +2004-01-14 Steven Munroe <sjmunroe@us.ibm.com> + + * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] + (_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols. + (_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed + symbols. + * sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to + gen-as-const-headers. + * sysdeps/powerpc/elf/rtld-global-offsets.sym: New file. + * sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers. + Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP. + * sysdeps/unix/sysv/linux/kernel-features.h + (__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels. + * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]: + Declare mcontext_t inline and include altivec state for 64-bit. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4 + versions for setcontext, getcontext, and swapcontext. + + * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4 + versions for setcontext, getcontext, swapcontext, and makecontext. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S + (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4. + [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_getcontext): + Compatible with GLIBC_2.3.3 release. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S + (__makecontext): Use parm save area instead of compiler_dw to hold + context pointer. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S + (__setcontext): Upgrade to restore Altivec regs and version + GLIBC_2_3_4. + [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_setcontext): + Compatible with GLIBC_2.3.3 release. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S + (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4. + [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_swapcontext): + Compatible with GLIBC_2.3.3 release. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h + (SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined. + +2004-01-12 Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4 + versions for setcontext, getcontext, swapcontext, and makecontext. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S + (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4. + [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_getcontext): + Compatible with GLIBC_2.3.3 release. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S + (__makecontext): Upgrade to align for Altivec regs and version + GLIBC_2_3_4. + [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_makecontext): + Compatible with GLIBC_2.3.3 release. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S + (__setcontext): Upgrade to restore Altivec regs and version + GLIBC_2_3_4. + [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_setcontext): + Compatible with GLIBC_2.3.3 release. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S + (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4. + [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] + (__novec_swapcontext): Compatible with GLIBC_2.3.3 release. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: + (_UC_VSCR, _UC_VRSAVE): Define. + (_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2, + _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined. + +2004-01-15 Ulrich Drepper <drepper@redhat.com> + + * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined. + +2004-01-16 Alfred M. Szmidt <ams@kemisten.nu> + + * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust + parameter type. + +2004-01-15 Ulrich Drepper <drepper@redhat.com> + + * elf/elf.h: Fix typo in comment. + + * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end. + * elf/rtld.c: Initialize _dl_argv to allow aliasing. + + * resolv/resolv.h: Add RES_USEBSTRING. + * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6, + RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING. + * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring. + * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform + bytestring IPv6 lookup with RES_USEBSTRING option is selected. + Otherwise use the two nibble formats. + +2004-01-14 Ulrich Drepper <drepper@redhat.com> + + * configure.in: Define HAVE_Z_RELRO if the linker supports -z relro. + * config.h.in: Add entry for HAVE_Z_RELRO. + * include/libc-symbols.h: Define attribute_relro. + * elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr, + max_capstrlen, and max_dirnamelen definitions. + * elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args, + load_time, start_time, library_path, preloadlist, version_info, + any_debug. + Remove rtld_total_time. Make it a local variable. Pass pointer to + it to print_statistics. Change print_statistics accordingly. + * sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv. Use + attribute_relro instead of explicitly assigning variable to the + .data.rel.ro section for __libc_enable_secure and __libc_stack_end. + * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc, + _dl_argv, _dl_argv_internal with attribute_relro. + +2004-01-13 Segher Boessenkool <boessen@de.ibm.com> + + * Makerules (gen-as-const): Don't silently continue on failure. + +2004-01-14 Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with + rtld_hidden_data_def. + +2004-01-14 Ulrich Drepper <drepper@redhat.com> + + * libio/libio.h: Add const to function tables types. + * libio/libioP.h: Likewise. + * login/utmp-private.h: Likewise. + * libio/fileops.c: Add const to jump table variable definition. + * libio/genops.c: Likewise. + * libio/iofopncook.c: Likewise. + * libio/iopopen.c: Likewise. + * libio/memstream.c: Likewise. + * libio/obprintf.c: Likewise. + * libio/oldfileops.c: Likewise. + * libio/oldiopopen.c: Likewise. + * libio/strops.c: Likewise. + * libio/vsnprintf.c: Likewise. + * libio/vswprintf.c: Likewise. + * libio/wfileops.c: Likewise. + * libio/wstrops.c: Likewise. + * login/getutent_r.c: Likewise. + * login/getutid_r.c Likewise. + * login/getutline_r.c: Likewise. + * sysdeps/generic/utmp_file.c: Likewise. + +2004-01-09 Bruno Haible <bruno@clisp.org> + + * intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition. + * intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I". + (_nl_load_domain): Treat major revision 1 like major revision 0. + +2004-01-11 Bruno Haible <bruno@clisp.org> + + * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after + width or precision has been seen. + +2004-01-08 Bruno Haible <bruno@clisp.org> + + * intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system + dependent segment not known to this version of the library, ignore + the string pair instead of crashing. + +2004-01-13 Ulrich Drepper <drepper@redhat.com> + + * configure.in: Rewrite test to give gcc to clean up after itself. + Patch by Greg Schafer. + + * posix/regex.c: Support crappy compilers and platforms which have + problems with alloca. + * posix/regex_internal.h: Likewise. + Patch by Paolo Bonzini. + +2004-01-12 Paolo Bonzini <bonzini@gnu.org> + + * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]: + Drop code to support this, it is never true. + (build_range_exp) [!_LIBC]: Do not create a range + in MBCSET for a single-byte character set. + (build_range_exp) [_LIBC]: Do not create a range + in MBCSET for a single-byte character set without + collation elements. + (init_dfa): Do not conditionalize on _LIBC, it + just makes the code less clear. + (parse_bracket_exp): Use NON_MATCH variable in + addition to "mbcset->non_match", not as an + alternative. + (build_charclass_op): rename NOT parameter to + NON_MATCH, use it instead of declaring a variable. + (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET + if the character set is single-byte. + +2004-01-14 Jakub Jelinek <jakub@redhat.com> + + * posix/regcomp.c (peek_token_bracket): Check remaining + string length before re_string_peek_byte (x, 1). + (parse_bracket_symbol): Likewise. + * posix/regex_internal.h (re_string_is_single_byte_char): Return + true at last byte in the string. + * posix/bug-regex22.c (main): Add new test. + +2004-01-13 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into + .data.rel.ro. + + * sysdeps/x86_64/dl-machine.h: Include <tls.h>. + + * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here. + * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with + rtld_hidden_def and move into .data.rel.ro section. + * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with + rtld_hidden_proto. + * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here + if !SHARED. + +2004-01-13 Richard Henderson <rth@redhat.com> + + * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo. + +2004-01-13 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/dl-execstack.c + (_dl_make_stack_executable): Move common code in front. Use + __builtin_expect. + + * sysdeps/unix/sysv/linux/dl-execstack.c: Change interface. Add + challenge for caller. + * sysdeps/generic/ldsodefs.h: Change declaration and type of hook + member in rtld_global appropriately. + * elf/dl-support.c: Likewise. + * elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter. + Pass it on to the changed function. + (_dl_map_object): Pass new parameter to _dl_map_object_from_fd. + +2004-01-13 Richard Henderson <rth@redhat.com> + + * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int): + Cast old up to uint64_t before back down to inner width. + (__arch_compare_and_exchange_xxx_16_int): Likewise. + (__arch_compare_and_exchange_xxx_32_int): Likewise. + (__arch_compare_and_exchange_xxx_64_int): Likewise. + (__arch_compare_and_exchange_val_8_int): Cast result to + the type of the memory. + (__arch_compare_and_exchange_val_16_int): Likewise. + (__arch_compare_and_exchange_val_32_int): Likewise. + (__arch_compare_and_exchange_val_64_int): Likewise. + (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize. + (atomic_compare_and_exchange_bool_rel): Likewise. + + * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm + based on HAVE___THREAD instead of USE_TLS. + + * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New. + (__adjtimex_tv64): Use it. + + * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast + to void* rather than directly to the compatibility structure type. + * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise. + + * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction): + Forward declare. + +2004-01-13 Richard Henderson <rth@redhat.com> + + * Versions.def (libm): Add GLIBC_2.3.3. + * sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3. + * sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c, + sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c, + sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c, + sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c, + sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c, + sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c, + sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c, + sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c, + sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c, + sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c, + sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c, + sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files. + * sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float + functions for gcc 3.3. + + * sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c, + sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c, + sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c, + sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c, + sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c, + sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c, + sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c, + sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c, + sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't + weak_alias if the function name has been #defined. + + * math/cabsf.c: Move ... + * sysdeps/generic/cabsf.c: ... here. + * math/cargf.c: Move ... + * sysdeps/generic/cargf.c: ... here. + * math/cimagf.c: Move ... + * sysdeps/generic/cimagf.c: ... here. + * math/conjf.c: Move ... + * sysdeps/generic/conjf.c: ... here. + * math/crealf.c: Move ... + * sysdeps/generic/crealf.c: ... here. + +2004-01-13 Ulrich Drepper <drepper@redhat.com> + + * Makeconfig: Define relro-LDFLAGS if have-z-relro==yes. Add it to + LDFLAGS.so and LDFLAGS-rtld. + (+link): Add relro-LDFLAGS. + * Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and + __libc_thread_subfreeres sections after .jcr section. + * config.make.in: Add have-z-relro. + * configure.in: Add check for -z relro option. + * include/link.h (struct link_map): Add relro_addr and relro_size + members. + * elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO. + * elf/dl-reloc.c (_dl_relocate_object): At the end, make relro + part of loaded segments read-only. + * elf/elf.h: Define PT_GNU_RELRO. + * elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so. + (dl_main): Recognize PT_GNU_RELRO of the application. Call + _dl_debug_initialize and initialize l_info[DT_DEBUG] before + relocations. + +2004-01-12 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/x86_64/strcspn.S: Fix typo in last patch. + +2004-01-11 Andreas Jaeger <aj@suse.de> + + * sysdeps/x86_64/__longjmp.S: Add cfi directives. + +2004-01-10 Andreas Jaeger <aj@suse.de> + + * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives. + * sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise. + * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise. + * sysdeps/x86_64/strcspn.S: Likewise. + * sysdeps/x86_64/strspn.S: Likewise. + +2004-01-08 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc + right before syscall and cfi_startproc before PSEUDO_END. + Clear %rbp in thread_start. + +2004-01-05 Jakub Jelinek <jakub@redhat.com> + + * posix/regcomp.c (regcomp): Fix comment typo. + (regfree): Free preg->translate, clear buffer, allocated, fastmap + and translate fields. + + * posix/regcomp.c (build_charclass, buld_charclass_op): Change first + argument to unsigned RE_TRANSLATE_TYPE. + * posix/regex_internal.h (re_string_t): Change trans type to + unsigned RE_TRANSLATE_TYPE. + * posix/regex_internal.c (re_string_construct_common): Cast + trans to unsigned RE_TRANSLATE_TYPE. + (re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast + path if pstr->trans. Never translate the character through + pstr->trans. + * posix/Makefile (tests): Add bug-regex22. + (bug-regex22-ENV): Set. + * posix/bug-regex22.c: New test. + +2004-01-02 Paolo Bonzini <bonzini@gnu.org> + + * posix/regex_internal.c (re_node_set_add_intersect, + re_node_set_merge): Rewritten. + (re_node_set_insert, re_node_set_remove_at): + Avoid memmove, we know what direction we should copy and that we + are copying 32-bit words. + (re_node_set_compare): Iterate backwards. + +2003-12-30 Paul Eggert <eggert@twinsun.com> + + * time/mktime.c (verify): New macro. + (time_t_is_integer, twos_complement_arithmetic, + right_shift_propagates_sign, base_year_is_a_multiple_of_100, + C99_integer_division): Document these longstanding assumptions in the + code, and verify them at compile-time. + +2004-01-02 Jakub Jelinek <jakub@redhat.com> + + * posix/regex_internal.h (re_match_context_t): Add dfa member. + * posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry, + match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context, + prune_impossible_nodes, check_halt_state_context, proceed_next_node, + sift_states_backward, update_cur_sifted_state, check_dst_limits, + check_dst_limits_calc_pos, sift_states_bkref, transit_state, + check_subexp_matching_top, transit_state_sb, transit_state_mb, + transit_state_bkref, get_subexp, get_subexp_sub, check_arrival, + check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept): + Remove dfa parameter. Get dfa from mctx. Adjust callers. + (re_search_internal): Initialize mctx.dfa. + + * posix/regex_internal.c (re_node_set_insert): Remove unused variables. + + * posix/regex_internal.h (re_dfa_t): Add syntax field. + * posix/regcomp.c (parse): Initialize dfa->syntax. + * posix/regexec.c (acquire_init_state_context, + prune_impossible_nodes, check_matching, check_halt_state_context, + proceed_next_node, sift_states_iter_mb, sift_states_backward, + update_cur_sifted_state, sift_states_bkref, transit_state, + transit_state_sb, transit_state_mb, transit_state_bkref, + get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache, + build_trtable): Remove preg argument, add dfa argument instead + and remove dfa = preg->buffer initialization in the body. + Adjust all callers. + (check_node_accept_bytes, group_nodes_into_DFAstates, + check_node_accept): Likewise. Use dfa->syntax instead of + preg->syntax. + (check_arrival_add_next_nodes): Remove preg argument. + + * posix/regex_internal.h (re_match_context_t): Make input + re_string_t instead of a pointer to it. + * posix/regex_internal.c (re_string_construct_common): Don't clear + pstr here... + (re_string_construct): ... but only here. + * posix/regexec.c (match_ctx_init): Remove input argument. Don't + initialize fields to zero. + (re_search_internal): Move input into mctx.input. + (acquire_init_state_context, check_matching, + check_halt_state_context, proceed_next_node, + clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb, + transit_state, transit_state_sb, transit_state_mb, + transit_state_bkref, get_subexp, check_arrival, + check_arrival_add_next_nodes, check_node_accept, extend_buffers): + Change mctx->input into &mctx->input and mctx->input->field into + mctx->input.field. + +2004-01-02 Jakub Jelinek <jakub@redhat.com> + Paolo Bonzini <bonzini@gnu.org> + + * posix/regex_internal.h (re_const_bitset_ptr_t): New type. + (re_string_t): Add newline_anchor, word_char and word_ops_used fields. + (re_dfa_t): Change word_char type to bitset. Add word_ops_used field. + (re_string_context_at, re_string_reconstruct): Remove last argument. + * posix/regex_internal.c (re_string_allocate): Initialize + pstr->word_char and pstr->word_ops_used. + (re_string_context_at): Remove newline_anchor argument. + Use input->newline_anchor instead, swap && conditions. + Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0. + Use input->word_char bitmap instead of IS_WORD_CHAR. (re_string_reconstruct): Likewise. - * posix/regex_internal.h: Change the type of characters in - re_string_t and bracket_elem_t from "unsigned char" to "char". - * posix/regexec.c (regexec): Append "__restrict" modifier to avoid - warnings of some compilers. - (transit_state_bkref_loop): Change the type of characters from - "unsigned char" to "char", and append a cast to "char*" pointer in - array subscript. - (check_node_accept_bytes): Likewise. - (find_collation_sequence_value): Likewise. + Adjust re_string_context_at caller. + * posix/regexec.c (acquire_init_state_context, + check_halt_state_context, transit_state, transit_state_sb, + transit_state_mb, transit_state_bkref, check_arrival, + check_node_accept): Adjust re_string_context_at and + re_string_reconstruct callers. + (re_search_internal): Likewise. Set input.newline_anchor. + (build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR. + * posix/regcomp.c (init_word_char): Change return type to void. + Set dfa->word_ops_used. + (free_dfa_content): Don't free dfa->word_char. + (parse_expression): Remove error handling for init_word_char. -2002-09-04 Roland McGrath <roland@redhat.com> +2004-01-01 Paolo Bonzini <bonzini@gnu.org> - * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value - from 1024 to 65536, to avoid buffer overrun. + * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT + bitfield. -2002-09-03 Gerhard Tonn <ton@de.ibm.com> + * posix/regex_internal.c (re_node_set_insert): Rewrite. - * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate. +2004-01-01 Ulrich Drepper <drepper@redhat.com> -2002-09-04 Ulrich Drepper <drepper@redhat.com> + * posix/getconf.c: Update copyright year. + * nss/getent.c: Likewise. + * nscd/nscd_nischeck.c: Likewise. + * iconv/iconvconfig.c: Likewise. + * iconv/iconv_prog.c: Likewise. + * elf/ldconfig.c: Likewise. + * catgets/gencat.c: Likewise. + * csu/version.c: Likewise. + * elf/ldd.bash.in: Likewise. + * elf/sprof.c (print_version): Likewise. + * locale/programs/locale.c: Likewise. + * locale/programs/localedef.c: Likewise. + * nscd/nscd.c (print_version): Likewise. + * debug/xtrace.sh: Likewise. + * malloc/memusage.sh: Likewise. + * malloc/mtrace.pl: Likewise. - * libio/tst-atime.c (do_test): Make sure noatime flag isn't set - for filesystem. +2004-01-01 Petter Reinholdtsen <pere@hungry.com> -2002-09-04 Jakub Jelinek <jakub@redhat.com> + * stdlib/strfmon.c: Make formatting of left-justified currency + values match the the POSIX standard. When using format string + "[%-14#5.4n]" to print -123.45, the result should be + "[-$ 123.4500 ]", not "[-$123.4500 ]". - * posix/bug-regex11.c: New test. - * posix/Makefile (tests): Add bug-regex11. +2004-01-01 Andreas Jaeger <aj@suse.de> -2002-09-03 Jakub Jelinek <jakub@redhat.com> + * resolv/Makefile (generated): New. - * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to - newlocale. +2003-12-31 Joseph S. Myers <jsm@polyomino.org.uk> -2002-09-02 Roland McGrath <roland@redhat.com> + * CONFORMANCE: Update. - * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call - __pthread_initialize_minimal and __libc_check_standard_fds to - match the generic version. +2003-12-30 Paul Eggert <eggert@twinsun.com> - * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a - warning when INLINE_SYSCALL macro uses the __syscall_ipc function. + * time/mktime.c: (my_mktime_localtime_r): + Remove. All uses changed to __localtime_r. + (__localtime_r) [!defined _LIBC]: New macro. Include "time_r.h" to + get its implementation. + Fix compile-command to allow for TIME_R_POSIX. - * locale/localeconv.c (__localeconv): Cast -1 to char to avoid - warnings on platorms where char is unsigned. + * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r): + Remove. All uses changed to __localtime_r and __gmtime_r. + (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros. + Include "time_r.h" to get their implementations. -2002-09-02 Ulrich Drepper <drepper@redhat.com> + * time/timegm.c: Allow use in GNU applications outside glibc. + [defined HAVE_CONFIG_H]: Include <config.h>. + [!defined _LIBC]: Include "timegm.h", <time_r.h>. + Define __gmtime_r, and declare __mktime_internal. + (timegm): Define via a prototype, since we can safely assume C89 now. - * version.h (VERSION): Bump to 2.2.93. + * time/mktime.c (check_result): Use less-confusing report format. + "long" -> "long int", as per usual GNU style. + (main): Likewise. + Don't loop if the iteration overflows time_t. + Allow a negative step in the iteration. - * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S. + * time/mktime.c: Assume freestanding C89 or better. + (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove; + assume they're 1. + (__P): Remove; not used. + (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them. + (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes. + Prototypes use const * where appropriate. + (main) [DEBUG]: Fix typo in testing code uncovered by above changes, + which caused the testing code to dump core on some hosts. -2002-09-02 Jakub Jelinek <jakub@redhat.com> +2003-12-31 Ulrich Drepper <drepper@redhat.com> - * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects - as relocated. + * locale/setlocale.c (setlocale): Avoid duplicating locale names + if we can reuse old strings. -2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu> + * inet/rcmd.c: Provide better error message in case of unknown + host. Remove USE_IN_LIBIO. - * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated. + * nscd/nscd.init: Updated version, more conforming with current + init file standards. -2002-09-02 Jakub Jelinek <jakub@redhat.com> - - * locale/localeinfo.h (struct locale_data): Add private.ctype. - * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale, - __wcsmbs_to_wc, update_conversion_ptrs): Removed. - (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs. - (__wcsmbs_load_conv): Remove const from argument. - (_nl_cleanup_ctype): New proto. - (get_gconv_fcts): New function. - * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed. - (__wcsmbs_to_wc): Rename back to... - (to_wc): ... this. - (__wcsmbs_gconv_fcts): Rename to... - (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc. - (lock): Removed. - (__libc_setlocale_lock): New extern. - (__wcsmbs_load_conv): Remove const from argument. - Initialize new_category->private.ctype instead of a global - variable. - (__wcsmbs_clone_conv): Use get_gconv_fcts instead of - update_function_ptrs. No locking is necessary. - (_nl_cleanup_ctype): New function. - * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of - update_function_ptrs and a global __wcsmbs_gconv_fcts variable. - * wcsmbs/mbrtowc.c (__mbrtowc): Likewise. - * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise. - * wcsmbs/wcrtomb.c (__wcrtomb): Likewise. - * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise. - * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise. - * wcsmbs/wctob.c (wctob): Likewise. - * stdlib/mblen.c (mblen): Likewise. - * stdlib/mbtowc.c (mbtowc): Likewise. - * stdlib/wctomb.c (wctomb): Likewise. - * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise. - Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs. - * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs): - Removed. - -2002-09-02 Roland McGrath <roland@frob.com> - - * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64. - -2002-09-01 Roland McGrath <roland@redhat.com> - - * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower): - Variable declarations removed. - (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare - these functions to replace them. - (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor - functions plus an indirection rather than the old global variables. - * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper): - Macros removed. - (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern - inline functions. - * ctype/ctype-info.c: Revert last reversion back the other way. - Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER. - Define real function versions of include/ctype.h inlines here. - * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc, - __ctype_tolower_loc, __ctype_toupper_loc. - * locale/lc-ctype.c: Revert last reversion back the other way. - (_nl_postload_ctype): If current thread uses the global locale, - update its tsd vars. - * locale/uselocale.c (__uselocale): Update tsd vars from new locale. - * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B, - CTYPE_TOLOWER, CTYPE_TOUPPER. - - * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro. - * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed - from __libc_tsd_threadvar_location. - (__libc_tsd_set, __libc_tsd_get): Update uses. - -2002-09-01 Ulrich Drepper <drepper@redhat.com> - - * ctype/ctype.h: Undo the patch before the last one. Put back the - macro definitions for the standard functions to access the - classification and mapping arrays. - * include/ctype.h: Partly revert last patch. Move the macro - definitions for the exported functions back to the public header. - #undef all the macros defined here before redefining. - * ctype/ctype-info.c: Revert last patch. - * locale/lc-ctype.c: Revert last patch. - - * ctype/Makefile (routines): Add isctype. - * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3. - * ctype/ctype.h: Add declaration of isctype. - * include/ctype.h: Declare __isctype. - * ctype/isctype.c: New file. - -2002-09-01 Roland McGrath <roland@redhat.com> - - * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass - TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1. - - * include/getopt.h: Include <features.h> before <posix/getopt.h>. - - * locale/findlocale.c (_nl_remove_locale): Don't search in - _nl_locale_file_list if DATA->alloc is ld_archive. - Use _nl_unload_locale to do the rest of the work. - - * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count - of new structure to UNDELETABLE. - - * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, - iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank, - towlower, towupper): Macros removed. - * ctype/ctype.h (__tobody): Put parens around macro argument. - (__isctype): Macro removed. - (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed. - (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint, - ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper, - tolower, toupper): Macros and inlines removed. - * include/ctype.h [! NOT_IN_libc] - (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint, - ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper, - tolower, toupper): Define here instead, using _NL_CURRENT. - * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros - using _NL_CURRENT. - * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise. - * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper): - Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT. - (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise. - (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed. - * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables, - conditional on SHLIB_COMPAT. Don't set removed variables at all. - * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals. - * wcsmbs/wcwidth.h (internal_wcwidth): Likewise. - * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars. - (ISSORTMASK): Update use. - * intl/localealias.c [__GNUC__]: #undef alloca before #define. - * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'. - (_nss_files_getENTNAME_r): Likewise. - * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r): - Likewise. + * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into + /var/run/nscd directory. + (_PATH_NSCDSOCKET): Likewise. - * Makerules (all-nonlib): Renamed from all-tests. - Include $(others) here too. - * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef, - CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric, - CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification, - CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader, - CPPFLAGS-charmap-dir): Variables removed. Instead, catch all - the program modules via cppflags-iterator.mk. - * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed. - Instead, catch all rpcgen-objs via cppflags-iterator.mk. + * test-skeleton.c (timeout_handler): Fix error message. -2002-08-31 Roland McGrath <roland@redhat.com> + * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if + CNT == 0. - * posix/tst-getconf.sh: If no third arg, work with static linking. +2003-12-30 Jakub Jelinek <jakub@redhat.com> - * locale/categories.def (LC_TIME): No more _nl_postload_time. + * posix/regexec.c (get_subexp): Only set bkref_str after the first + loop, use buf + bkref_str_off in the loop instead. + * posix/bug-regex11.c (tests): Add 3 new tests. - * locale/setlocale.c (_nl_category_postload): Use weak refs only under - [_NL_CURRENT_INDIRECT]. + * posix/regexec.c (clean_state_log_if_need): Rename to... + (clean_state_log_if_needed): ...this. + (transit_state_mb, get_subexp_sub): Adjust callers. -2002-08-31 Ulrich Drepper <drepper@redhat.com> + * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL + failed. Reported by Steve Grubb. - * time/tst-ftime_l.c (main): Also test strftime with uselocale. +2003-12-29 Ulrich Drepper <drepper@redhat.com> -2002-08-31 Roland McGrath <roland@redhat.com> + * elf/elf.h: Add a few definitions from Solaris 9. + +2003-12-29 Andreas Schwab <schwab@suse.de> + + * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add + $(fno_unit_at_a_time) to avoid reordering assembler output. + +2003-12-29 Jakub Jelinek <jakub@redhat.com> + + * posix/regexec.c (re_copy_regs): Revert comment change. + Avoid memory leak if realloc fails. + (proceed_next_node): Return -2 if re_node_set_insert fails. + Return -2 if push_fail_stack fails. + (push_fail_stack): Change fs->alloc only after successful realloc. + (pop_fail_stack): Formatting. + (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs. + (check_arrival_add_next_nodes): Merge identical statements + from if branches. + + * signal/Makefile (tests): Add tst-raise. + * signal/tst-raise.c: New test. + +2003-12-28 Ulrich Drepper <drepper@redhat.com> + + * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int. + + * posix/regexec.c (re_copy_regs): Fix testing for failed allocation. + (push_fail_stack): Add missing check for failed memory allocation. + + * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked, + _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and + _IO_putwc_unlocked. + +2003-12-28 Andreas Jaeger <aj@suse.de> + + * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only + overflow for 0 as argument. Raise Invalid exception for negative args. + * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise. + * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise. + * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise. + * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise. + * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise. + * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise. + * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise. + * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise. + * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise. + * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise. + * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise. + + * math/libm-test.inc (yn_test): Expect invalid exception for + negative arguments. + (y0_test): Likewise. + (y1_test): Likewise. + + * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise + execptions for exp(NaN). + +2003-12-23 Paolo Bonzini <bonzini@gnu.org> + + * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp. + * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS + among the tokens, rather than among the epsilon-transiting nodes. + (re_token_t): Add the opt_subexp flag. + * posix/regcomp.c (optimize_utf8, calc_first, + calc_next, calc_epsdest): Don't consider OP_DUP_PLUS. + (mark_opt_subexp, mark_opt_subexp_iter): New functions. + (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to + OP_DUP_ASTERISK and marking optional subexpressions + as such using mark_opt_subexp. + * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH + and pass it to update_regs. + (update_regs): Use the PREV_INDEX_MATCH parameter, together + with the opt_subexp flag, in order to discard a final empty + match of a repeated subexpression. + * posix/BOOST.tests: Adjust test vectors. + * posix/PCRE.tests: Likewise. + * posix/rxspencer/tests: Likewise. + +2000-05-22 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?: + with omitted middle operand. + +2003-12-22 Jakub Jelinek <jakub@redhat.com> + + * posix/regcomp.c: Remove C99-ism. + * posix/tst-rxspencer.c: Likewise. + Based on a patch by Alex Davis <alex14641@yahoo.com>. + +2003-12-17 Paolo Bonzini <bonzini@gnu.org> + + * posix/regex_internal.h [!_LIBC] (internal_function): Define. + (re_string_allocate, re_string_construct, re_string_reconstruct, + re_string_realloc_buffers, build_wcs_buffer, + build_wcs_upper_buffer, build_upper_buffer, + re_string_translate_buffer, re_string_destruct, + re_string_elem_size_at, re_string_char_size_at, + re_string_wchar_at, re_string_context_at, + re_node_set_alloc, re_node_set_init_1 + re_node_set_init_2, re_node_set_init_copy, + re_node_set_add_intersect, re_node_set_init_union, + re_node_set_merge, re_node_set_insert + re_node_set_compare, re_node_set_contains + re_node_set_remove_at, re_dfa_add_node, + re_acquire_state, re_acquire_state_context, + free_state): Add internal_function to declaration. + + * posix/regexec.c (match_ctx_init, match_ctx_clean, + match_ctx_free, match_ctx_free_subtops, + match_ctx_add_entry, search_cur_bkref_entry, + match_ctx_clear_flag, match_ctx_add_subtop, + match_ctx_add_sublast, sift_ctx_init, + re_search_internal, re_search_2_stub, re_search_stub, + re_copy_regs, acquire_init_state_context, + prune_impossible_nodes, check_matching, + check_halt_node_context, check_halt_state_context + update_regs, proceed_next_node, push_fail_stack, + pop_fail_stack, set_regs, free_fail_stack_return, + sift_states_iter_mb, sift_states_backward + update_cur_sifted_state, add_epsilon_src_nodes, + sub_epsilon_src_nodes, check_dst_limits, + check_dst_limits_calc_pos, check_subexp_limits, + sift_states_bkref, clean_state_log_if_need, + merge_state_array, transit_state, + check_subexp_matching_top, transit_state_sb, + transit_state_mb, transit_state_bkref, + get_subexp, get_subexp_sub, find_subexp_node, + check_arrival, check_arrival_add_next_nodes, + find_collation_sequence_value, check_arrival_expand_ecl, + check_arrival_expand_ecl_sub, expand_bkref_cache, + build_trtable, check_node_accept_bytes, extend_buffers, + group_nodes_into_DFAstates, check_node_accept): Likewise. + + * posix/regex_internal.c (re_string_construct_common, + re_string_skip_chars, create_newstate_common, + register_state, create_ci_newstate, create_cd_newstate, + calc_state_hash): Likewise. + (re_string_peek_byte_case, re_fetch_byte_case): Change + declaration from ANSI to K&R. + +2003-12-16 Paolo Bonzini <bonzini@gnu.org> + + * posix/regexec.c (build_trtable): Don't allocate the trtable + until state->word_trtable is known. Don't hardcode UINT_BITS + iterations on each bitset item. + +2003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl> + + * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): + Initialize REF before passing it to _dl_lookup_symbol. + +2003-12-21 Roland McGrath <roland@frob.com> + + * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden. + +2003-12-21 Jakub Jelinek <jakub@redhat.com> + + * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert + 2003-11-24 changes. + * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with + NEXT_{,NOT}WORD_CONSTRAINT check word_char bit. + * posix/bug-regex19.c (tests): Add new tests. + + * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting. + + * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL, + after checking syntax. Optimize. + (calc_first): Fix comment. + * posix/bug-regex13.c (tests): Add new tests. + +2003-12-21 Roland McGrath <roland@redhat.com> + + * manual/arith.texi (Parsing of Integers): Typo fix. + +2003-12-20 Roland McGrath <roland@frob.com> + + * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo: + add missing dereference of IFREQS before counting loop. + +2003-12-21 Andreas Schwab <schwab@suse.de> + + * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory + constraints. - * locale/newlocale.c (__newlocale): Don't use strdup for names. - Instead, make the single allocation of the structure larger to hold - the name strings. - * locale/duplocale.c (__duplocale): Don't strdup names individually. - Instead, calculate size for a single allocation and copy into it. - * locale/freelocale.c (__freelocale): Don't free names individually. +2003-12-20 Ulrich Drepper <drepper@redhat.com> - * locale/newlocale.c (__newlocale): Don't leak old data or names. + * elf/rtld.c (dl_main): Optimize order of subexpressions in if(). - * locale/xlocale.h (__locale_struct): Move __names member last, - for binary compatibility. +2003-12-18 Ulrich Drepper <drepper@redhat.com> - * locale/duplocale.c (__duplocale): Free names from the right array. + * stdio-common/printf_fp.c: Add support to use alternative decimal + digits. + * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to + __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>. - * locale/uselocale.c (__uselocale): Return previous locale when - setting a new one. +2003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca> - * locale/newlocale.c: Commit changes from 2002-08-30 - batch where I failed to commit this file: - (__newlocale): Fill in __names array. + * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC, + reload PIC if we need to call __syscall_error, cleanup asm. -2002-08-31 Ulrich Drepper <drepper@redhat.com> +2003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca> - * sysdeps/gnu/Makefile: Only depend on Versions.v.i for - errlist-compat.c if versioning==yes. + * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift + FE_ALL_EXCEPT before complimenting. + * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer, + and gcc '+r' constraint. + * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise. + * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise. + * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised + exception bits, OR with envp, pass to fesetenv. + * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed + exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is + triggered by M_PI/69.69 converted to single precision. + * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable + bits not raised exception bits. -2002-08-31 Andreas Jaeger <aj@suse.de> + * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the + correct build strings. + * sysdeps/hppa/dl-fptr.h: New file. + * sysdeps/hppa/dl-fptr.c: Removed. + * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr, + remove const qualifier for map. + (_dl_function_address): Removed. + * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear + PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and + DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and + DL_DT_FINI_ADDRESS use the previous two macros. - * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare - external functions with hidden attribute. - (elf_machine_rela): Optimize. +2003-12-17 Jakub Jelinek <jakub@redhat.com> - * sysdeps/x86_64/memset.S: New file. - * sysdeps/x86_64/bzero.S: New file. - * sysdeps/x86_64/stpcpy.S: New file. - * sysdeps/x86_64/strcat.S: New file. - * sysdeps/x86_64/strchr.S: New file. - * sysdeps/x86_64/strcpy.S: New file. - * sysdeps/x86_64/strcspn.S: New file. - * sysdeps/x86_64/strlen.S: New file. - * sysdeps/x86_64/strpbrk.S: New file. - * sysdeps/x86_64/strspn.S: New file. - * sysdeps/x86_64/strcmp.S: New file. - * sysdeps/x86_64/strtok_r.S: New file. - * sysdeps/x86_64/strtok.S: New file. - * sysdeps/x86_64/memcpy.S: New file. - * sysdeps/x86_64/mempcpy.S: New file. + * malloc/mtrace.c (tr_old_memalign_hook): New variable. + (tr_memalignhook): New function. + (mtrace): Register tr_memalignhook. + (muntrace): Deregister tr_memalignhook. + * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL, + call it directly instead of memalign_internal. - * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm. +2003-12-17 Ulrich Drepper <drepper@redhat.com> - * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests. + * misc/mntent_r.c: Change encoding to match recently changed decoder. + Patch by Alexander Achenbach <xela@slit.de>. -2002-08-31 Ulrich Drepper <drepper@redhat.com> +2003-12-16 Steven Munroe <sjmunroe@us.ibm.com> - * stdio-common/Makefile (generated): Add errlist-compat.c. + * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of + vrregset_t. - * locale/Makefile (extra-objs): Add $(localedef-aux:=.o). +2003-12-16 Steven Munroe <sjmunroe@us.ibm.com> - * locale/localeinfo.h: Pretty printing. + * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend + conditional to include typedef elf_vrreg_t. - * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in - form_number handling. +2003-12-17 Paolo Bonzini <bonzini@gnu.org> -2002-08-31 Andreas Jaeger <aj@suse.de> + * posix/regexec.c (re_search_internal): Limit search to the + beginning of the buffer if the initial states are empty for + contexts that do not include CONTEXT_BEGBUF or, if + !preg->newline_anchor, that do not include any one of + CONTEXT_BEGBUF and CONTEXT_NEWLINE. - * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long - double tests. +2003-12-17 Andreas Jaeger <aj@suse.de> - * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add - __start_context. + * sysdeps/generic/system.c (__libc_system): Fix typo, reported by + Kevin Pedretti <pedretti@ieee.org>. - * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file. +2003-12-17 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file. + * elf/rtld.c: Don't use strong_alias to define _rtld_local. This + removes the visibility attributes which might be defined earlier + for some gcc versions. Instead spell out what strong_alias does + plus the visibility. - * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for - registers used for passing args. +2003-12-16 Petter Reinholdtsen <pere@hungry.com> - * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore - all needed registers. + * posix/regex_internal.h: Make sure the regex code compile + with non-GCC compilers by hiding attributes. - * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all - registers. +2003-12-16 Jakub Jelinek <jakub@redhat.com> + Paolo Bonzini <bonzini@gnu.org> - * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed - registers. + * posix/regexec.c (group_nodes_into_DFAstates): Never produce + dests_ch items that are empty. -2002-08-30 Ulrich Drepper <drepper@redhat.com> +2003-12-14 Paolo Bonzini <bonzini@gnu.org> - * elf/dynamic-link.h (elf_get_dynamic_info): Mark with - always_inline attribute. + * posix/regexec.c (check_arrival): Remove duplicate test. -2002-08-30 Roland McGrath <roland@redhat.com> +2003-12-15 Ulrich Drepper <drepper@redhat.com> - * stdlib/tst-setcontext.c (main): If makecontext does nothing, - presume it's the stub and bail without error. + * posix/regcomp.c: Make !RE_ENABLE_I18N work again. + * posix/regex_internal.c: Likewise. + * posix/regexec.c: Likewise. + Patch by Paolo Bonzini. - * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is - neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]). +2003-12-14 Paolo Bonzini <bonzini@gnu.org> - * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one. + * posix/regex_internal.c (re_acquire_state_context): + Compare the node sets after all the other comparisons. - * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New - macros replace the i686 versions for 64-bit mode. +2003-12-13 Paolo Bonzini <bonzini@gnu.org> - * locale/duplocale.c: Include <string.h>. + * posix/regexec.c (find_subexp_node, check_arrival, + check_arrival_add_next_nodes, check_arrival_expand_ecl, + check_arrival_expand_ecl_sub, expand_bkref_cache): + Rename the FL_OPEN parameter to TYPE, which is either + OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted. - * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY. - [_LIBC] (category_to_name): Don't define the function. Instead - define a macro using _nl_category_names. +2003-12-12 Andreas Jaeger <aj@suse.de> - * locale/xlocale.h (struct __locale_struct): New member `__names'. - * locale/xlocale.c (_nl_C_locobj): Update initializer. - * locale/global-locale.c (_nl_global_locale): Likewise. - * locale/duplocale.c (__duplocale): strdup __names elements. - * locale/freelocale.c (__freelocale): Free __names elements. - * locale/localename.c (_nl_current_names): Variable removed. - (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead. - * locale/localeinfo.h (_nl_current_names): Removed decl. - * locale/setlocale.c: Use _nl_global_locale->__names in place of - _nl_current_names throughout. + * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument + to syscall. - * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C). +2003-12-11 Ulrich Drepper <drepper@redhat.com> - * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist - and sys_nerr in the output file. + * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL. + There might always be processes which have no vDSO. + * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses. + * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise. - * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment. - * scripts/cpp: Just use the environment variable. +2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca> - * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag. - * libio/tst-mmap-offend.c (do_test): Likewise. - * libio/tst-mmap-fflushsync.c (do_test): Likewise. - * libio/tst-mmap-eofsync.c (do_test): Likewise. - * libio/tst-mmap2-eofsync.c (do_test): Likewise. + * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old + in the right order. - * locale/localename.c: If the current locale is the global locale, use - _nl_current_names; otherwise use the locale object. +2003-12-01 Jes Sorensen <jes@wildopensource.com> -2002-08-29 Ulrich Drepper <drepper@redhat.com> + * rt/tst-clock.c (do_test): Print message when skipping + CLOCK_PROCESS_CPUTIME_ID test. - * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier - 'm' to enable mmap I/O. - * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The - former wasn't used (anymore?). - (_IO_FLAGS2_MMAP): New define. - * libio/genops.c (_IO_no_init): Initialize _flags2 field. - * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if - _IO_FLAGS2_MMAP bit is set. - * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier. - Enable mmap-using mode only if 'm' was set. + * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file. + Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0. -2002-08-29 Roland McGrath <roland@frob.com> +2003-12-02 David Mosberger <davidm@hpl.hp.com> - * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro. + * sysdeps/ia64/elf/initfini.c: Add unwind info. - * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit): - Change argument type from int to intptr_t. + * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with + attribute "unused". + (elf_machine_dynamic): Mark with attributes "unused" and "const". + (elf_machine_runtime_setup): Likewise. - * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the - initializer on [! _HURD_THREADVAR_H] (bad kludge). - * sysdeps/mach/hurd/i386/init-first.c (init): Initialize - _HURD_THREADVAR_LOCALE slot to &_nl_global_locale. - * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots. + * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with + attribute "always_inline". + * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table): + Likewise. - * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def. + * configure.in: Check whether compiler has libunwind support. + * config.make.in (have-cc-with-libunwind): New variable. + * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro. + * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also + mention -lunwind. - * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64). +2003-11-12 David Mosberger <davidm@hpl.hp.com> - * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort. + * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK. + Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK. + Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use + DO_INLINE_SYSCALL. - * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto. - * assert/assert-perr.c: Add libc_hidden_def. - * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function. + * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK() + instead of DO_CALL(). - * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions - found at all. - * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat - sys_errlist stuff to ... - * sysdeps/unix/sysv/linux/Versions: ... here. + * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead + of DO_CALL(). - * mach/mach.h: Include <features.h>. + * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it + to take advantage of DO_CALL() macro. + * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise. + * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise. -2002-08-29 Roland McGrath <roland@redhat.com> + * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first + program header. On ia64, the check failed previously because + there are two program headers. - * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing. - * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and - define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME. +2003-12-10 Andreas Jaeger <aj@suse.de> + Ruediger Oertel <ro@suse.de> - * sysdeps/generic/readelflib.c (process_elf_file): Fix typo. + * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used. - * iconv/gconv_int.h: Include <stdlib.h> for alloca decl. - (norm_add_slashes): alloca -> __alloca +2003-12-07 Ulrich Drepper <drepper@redhat.com> -2002-08-29 Jakub Jelinek <jakub@redhat.com> + * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly. + * sysdeps/i386/fpu/s_nexttoward.c: Likewise. + * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise. + * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise. + * sysdeps/generic/s_nexttowardf.c: Likewise. + * math/Makefile (tests): Add bug-nexttoward. + * math/bug-nexttoward.c: New file. - * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for - string_malloced, it is unlikely to be set. - Only call free with non-NULL workspace. - * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use - -mcpu=ultrasparc, not only tune for it. - (ASFLAGS*): Set unconditionally. + * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set. + * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise. + * math/bug-nextafter.c (main): Add tests for overflow and negative + values. - * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR - ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from - p_vaddr/p_offset when computing LOADADDR. +2003-12-06 Ulrich Drepper <drepper@redhat.com> + + * math/Makefile (tests): Add bug-nextafter. + * math/bug-nextafter.c: New file. + * sysdeps/generic/s_nextafter.c: Construct overflow value correctly. + * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise. + * math/libm-test.inc (nextafter_test): Add test for overflow after + +/-FLT_MAX etc. + +2003-12-04 Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking + of fenv. + * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise. + +2003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com> + + * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END + statements. + * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise. + * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive. + (END): Add cfi_endproc directive. + * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove + cfi_startproc and cfi_endproc directive. + * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise. + * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives. + * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise. + * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise. + * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): + Likewise. + * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): + Likewise. + * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise. + * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise. + * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error): + Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error): + Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI + directives. Move thread_start out of ENTRY/PSEUDO_END block to + make backchain terminate. + * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise. -2002-08-29 Ulrich Drepper <drepper@redhat.com> + * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure. + (unwind_backtrace, unwind_getip): New variables. + (init, __backchain_backtrace, backtrace_helper): New functions. + (__backtrace): Use unwind info for backtrace instead of backchain + walking if the unwind functions can be found. + * sysdeps/s390/s390-64/backtrace.c: Likewise. - * version.h (VERSION): Bump to 2.2.92. + * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file. - * time/Makefile (tst-ftime_l-ENV): New variable. + * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define. + (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types. + (elf_prstatus32, elf_prpsinfo32): New structures. + (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types. - * iconvdata/ibm870.c: All bytes are now used, no holes anymore. + * scripts/data/c++-types-s390-linux-gnu.data: New file. + * scripts/data/c++-types-s390x-linux-gnu.data: New file. - * localedata/charmaps/IBM870: Add correct mapping for <U017E>, - <U017A>, <U017D> and <U0179>. Add missing mappings. - Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>. +2003-11-30 Petter Reinholdtsen <pere@hungry.com> - * gmon/sys/gmon.h (ARCDENSITY): Bump to 3. - Define ARCINDEX. Bump MAXARCS to 1 << 20. - (struct tostruct): Use ACRINDEX as type for link field. - (statuc gmonparam): Likewise for froms. - * gmon/gmon.c (__monstartup): Use currect cast for assignments to - kcount and froms. - (write_call_graph): Use correct type for from_index and to_index. - * gmon/mcount.c: Use correct types for frompcindex and toindex - variables. - Patches by Dan Kegel <dank@kegel.com>. - - * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine - canonical name. - - * time/strptime.c (ISSPACE): New #define. Use isspace or - __isspace_l. Replace calls to isspace. - (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL. - -2002-08-29 Roland McGrath <roland@redhat.com> - - * string/tst-strxfrm.c: Remove __ from function names. - -2002-08-28 Ulrich Drepper <drepper@redhat.com> - - * include/wchar.h: Declare __mbsrtowcs_l. - * wcsmbs/Makefile (routines): Add mbsrtowcs_l. - * wcsmbs/mbsrtowcs.c: Add support for compilation with - USE_IN_EXTENDED_LOCALE_MODEL. - * wcsmbs/mbsrtowcs_l: New file. - * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't - define as static. Change all uses. - (__wcsmbs_getfct): Renamed from getfct. Don't define as static. - Change all callers. - * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct. - * time/strftime.c: When translating for the extended locale model - use the _l functions. - * time/Makefile (tests): Add tst-ftime_l. - * time/tst-ftime_l.c: New file. - -2002-08-28 Roland McGrath <roland@redhat.com> - - * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable. - * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return - from _nl_find_locale ok if for _nl_C_name. - - * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def - iterator to refer to each category's _nl_current_LC_FOO symbol, so - we know they are all linked in. - - * NEWS: Added 2.2.6 text from 2.2 branch version. - - * time/strptime.c (strptime_internal): Remove spurious const. - - * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry, - _nl_select_era_entry): Moved to ... - * time/era.c: ... here, new file. - (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry): - Add internal_function to definitions. Take an additional argument - giving the `struct locale_data *' to use. - * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit, - _nl_parse_alt_digit): Moved to ... - * time/alt_digit.c: ... here, new file. - * time/lc-time-cleanup.c: New file. - * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed. - * locale/localeinfo.h (_nl_postload_time): Remove decl. - (_nl_cleanup_time): Declare it. - (_nl_get_era_entry, _nl_select_era_entry): Update decls. - (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise. - * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup. - * time/strftime.c: Pass locale data to helper functions. - * time/strptime.c: Likewise. - - * locale/localeinfo.h (struct locale_data): New member `private' - * locale/loadlocale.c (_nl_intern_locale_data): Initialize it. - (_nl_unload_locale): Call LOCALE->private.cleanup if it is set. - * locale/C-collate.c: Update initializer. - * locale/C-identification.c: Likewise. - * locale/C-measurement.c: Likewise. - * locale/C-telephone.c: Likewise. - * locale/C-address.c: Likewise. - * locale/C-name.c: Likewise. - * locale/C-paper.c: Likewise. - * locale/C-time.c: Likewise. - * locale/C-numeric.c: Likewise. - * locale/C-monetary.c: Likewise. - * locale/C-messages.c : Likewise. - * locale/C-ctype.c: Likewise. + * stdlib/strfmon.c: Correct formatting of international currency + values. The international currency formatting should prefer the + int_* values if they are set for a locale, and use the domestic + values if the int_* values are unset. - * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD): - Redefine this too. - -2002-08-28 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define. - (_rtld_global): Use it. - - * sysdeps/gnu/Dist: Remove errlist-compat.c. - * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the - object directory. Pass all Versions files to the awk script. - * sysdeps/gnu/errlist-compat.c: Removed. - * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the - first Versions file in the search path which has them. - Allow multiple errlist symbol versions to have the same count of - errors. - * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead - of "errlist-compat.c". - * sysdeps/gnu/errlist.c: Regenerated. - * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat - comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3. - * sysdeps/unix/sysv/linux/alpha/Versions: Likewise. - (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3. - * sysdeps/unix/sysv/linux/hppa/Versions: Likewise. - * sysdeps/unix/sysv/linux/sparc/Versions: New file. - * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file. - * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to - ECANCELLED if not defined by kernel headers. - * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if - already defined by kernel headers. - * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file. - * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its - aio_cancel64 renaming hack nor provide weak_alias if aio_cancel - is a macro. - * Versions.def (GLIBC_2.3) [librt]: Add. - - * sysdeps/unix/sysv/linux/alpha/pipe.S: New file. - -2002-08-28 Ulrich Drepper <drepper@redhat.com> - - * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add - missing comma to .type directive. - -2002-08-28 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define - unconditionally. - * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New - check. - (PI_STATIC_AND_HIDDEN): Define if check succeeded. +2003-12-03 Jakub Jelinek <jakub@redhat.com> -2002-08-28 Jakub Jelinek <jakub@redhat.com> + * posix/Makefile (distribute): Add BOOST.tests. + (tests): Add tst-boost, depend on tst-boost-mem. + (generated): Add tst-boost-mem and tst-boost.mtrace. + (tst-boost-ARGS, tst-boost-ENV): Set. + ($(objpfx)tst-boost-mem): New. + * posix/tst-boost.c: New test. + * posix/BOOST.tests: New file. - * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0 - check to close_and_out close. Replace return NULL statements where - fd might be >= 0 with goto close_and_out. Close the file descriptor - when it is no longer needed. + * posix/Makefile (distribute): Add PCRE.tests. + (tests): Add tst-pcre, depend on tst-pcre-mem. + (generated): Add tst-pcre-mem and tst-pcre.mtrace. + (tst-pcre-ARGS, tst-pcre-ENV): Set. + ($(objpfx)tst-pcre-mem): New. + * posix/tst-pcre.c: New test. + * posix/PCRE.tests: New file. -2002-08-28 Ulrich Drepper <drepper@redhat.com> +2003-12-02 Jakub Jelinek <jakub@redhat.com> - * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in - string constants. - * sysdeps/sparc/sparc32/dl-machine.h: Likewise. - * sysdeps/arm/dl-machine.h: Likewise. - * sysdeps/cris/dl-machine.h: Likewise. - * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise. - * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise. + * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l. -2002-08-28 Roland McGrath <roland@redhat.com> + * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated. + * sysdeps/s390/fpu/libm-test-ulps: Regenerated. - * Makeconfig (default_cflags): Revert unintended change. +2003-12-03 Ulrich Drepper <drepper@redhat.com> -2002-08-28 Ulrich Drepper <drepper@redhat.com> + * locale/programs/locarchive.c (enlarge_archive): Print size info + only in verbose mode. - * version.h (VERSION): Bump to 2.2.91. + * locale/iso-3166.def: Three letter code of Romania changed. - * configure.in: Disable TLS support by default for now. +2003-12-02 Roland McGrath <roland@redhat.com> - * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float. + * scripts/config.sub: Update from master, timestamp='2003-10-20'. + * scripts/config.guess: Update from master, timestamp='2003-10-20'. - * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid - warnings. +2003-11-30 Andreas Jaeger <aj@suse.de> - * stdlib/strtod.c (STRTOF): Correct type in cast of last patch. + * config.make.in (fno-unit-at-a-time): Define. - * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of - fprintf/fwprintf calls. + * configure.in: Add test for -fno-unit-at-a-time. + Fix text for -fpie. -2002-08-28 Roland McGrath <roland@redhat.com> + * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time). + * locale/Makefile (CFLAGS-loadlocale.c): Likewise. - * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...) - to use $(filter ...) instead. Same bug fixed in aix conditionals. +2003-12-01 Automatic - * locale/setlocale.c: Declare postload functions weak. + * version.h (VERSION): Bump to 2.3.3. - * elf/tst-tls1-static.c: New file. - * elf/tst-tls2-static.c: New file. - * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule. +2003-11-30 Andreas Jaeger <aj@suse.de> - Make uselocale support static linking. - * locale/xlocale.c: Revert changes putting _nl_global_locale here. - This file again just defines _nl_C_locobj. - (_nl_C_locobj): Use a categories.def iterator in the initializer. - * locale/global-locale.c: New file. Define _nl_global_locale here, - using all weak references in the initializer. - * locale/Makefile (aux): Add global-locale. - * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make - these unconditional, along with the tsd decl. - [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT): - Define it under these conditions. - [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED]. - Don't declare _nl_current. Declare _nl_current_LC_FOO as - `extern __thread struct locale_data *const *'. - [NL_CURRENT_INDIRECT] - (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection. - [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define - the thread variable _nl_current_LC_FOO and also a special absolute - symbol _nl_current_LC_FOO_used. - * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]: - Set each _nl_current_LC_FOO symbol to point into the new locale, - using weak references to test if _nl_current_LC_FOO_used was linked in. - * locale/setlocale.c [! SHARED]: Replace this conditional ... - [NL_CURRENT_INDIRECT]: ... with this one. - (_nl_current, _nl_C): Variables removed. - [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of - weak references to _nl_current_LC_FOO_used. - [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table. - (free_category): New function, broken out of ... - (free_mem): ... here. Call that. - (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator - instead of a loop. + * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to + decrease stack usage. - * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for - PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr; - it is already absolute. +2003-11-30 Andreas Schwab <schwab@suse.de> - * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally. - [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static. - [$(build-static) = yes] (tests-static): New variable. - ($(tests-static):%=$(objfpx)%.o)): New static pattern rule. + * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL) + (PSEUDO_END_ERRVAL, ret_ERRVAL): Define. -2002-08-26 Christoph Hellwig <hch@lst.de> +2003-11-29 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix - formating braindamage, add missing PER_HPUX and PER_OSF1 values. + * misc/mntent_r.c (decode_name): Be compatible with util-linux and + recognize \134 as well. -2002-08-28 Ulrich Drepper <drepper@redhat.com> +2003-10-09 H.J. Lu <hongjiu.lu@intel.com> - * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h. + * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>. - * sysdeps/s390/Dist: Add bits/link.h. +2003-10-08 H.J. Lu <hongjiu.lu@intel.com> - * sysdeps/sh/Dist: New file. + * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include + <asm/fpu.h>. + (struct ia64_fpreg): New definition. - * sysdeps/ia64/Dist: Add ia64libgcc.S. + * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include + <asm/elf.h>. + (ELF_NGREG): New #define. + (ELF_NFPREG): Likewise. + (elf_greg_t): New type. + (elf_gregset_t): Likewise. + (elf_fpreg_t): Likewise. + (elf_fpregset_t): Likewise. - * sysdeps/wordsize-32/Dist: New file. +2003-10-08 H.J. Lu <hongjiu.lu@intel.com> - * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S. - * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise. + * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include + <sys/ucontext.h>. + (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS. + (pt_all_user_regs): New type. - * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and - sys/personality.h. +2003-10-10 Simon Josefsson <jas@extundo.com> - * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and - sparc/dl-brk.S. + * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h, + strchrnul.h, strndup.h (from gnulib). + * argp/argp-parse.c: Add alloca.h include snippet verbatim from + Autoconf manual. + * argp/argp-help.c: Replace alloca.h include snipper with verbatim + Autoconf manual version. + * argp/argp.h: Map __restrict to restrict or empty string when + necessary, copied verbatim from posix/regex.h. + +2003-10-09 Steven Munroe <sjmunroe@us.ibm.com> + + * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in + addition to c++-types-$(base-machine)-$(config-os).data. + * scripts/data/c++-types-powerpc-linux-gnu.data: New file. + * scripts/data/c++-types-powerpc64-linux-gnu.data: New file. + +2003-11-28 Ulrich Drepper <drepper@redhat.com> + + * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding + of newline. + * manual/sysinfo.texi (mtab): Adjust description accordingly. + Reported by Andries.Brouwer@cwi.nl. + + * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes + to compensate other setup. + +2003-11-27 Andreas Jaeger <aj@suse.de> + + * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test. + + * math/libm-test.inc (atan2_test): Add test that run infinitly. + Reported by "Willus" <etc231etc231@willus.com>. + +2003-11-27 Michael Matz <matz@suse.de> + + * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem + with wrong types. + +2003-11-28 Jakub Jelinek <jakub@redhat.com> + + * posix/regexec.c (acquire_init_state_context): Make inline. + Add always_inline attribute. + (check_matching): Add BE macro. Move if (cur_state->has_backref) + into if (dfa->nbackref). + (sift_states_backward): Fix comment. + (transit_state): Add BE macro. Move if (next_state->has_backref) + into if (dfa->nbackref && next_state). Don't check for next_state + != NULL twice. + * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx + for ANCHOR. + (parse_expression): Only call init_word_char if word context will be + needed. + + * posix/bug-regex11.c (tests): Add new tests. + + * posix/tst-regex.c: Include getopt.h. + (timing): New variable. + (main): Set timing to 1 if --timing argument is present. + Add 2 new tests. + (run_test, run_test_backwards): Handle timing. + +2003-11-27 Jakub Jelinek <jakub@redhat.com> + + * posix/regex_internal.h (re_string_t): Remove mbs_case field. + Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and + offsets_needed fields. Change icase, is_utf8 and map_notascii + type from int bitfield to unsigned char. + (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove. + (build_wcs_upper_buffer): Change prototype to return int. + (re_string_peek_byte_case, re_string_fetch_byte_case): Remove + defines, add prototypes. + * posix/regex_internal.c (re_string_allocate): Don't initialize + stop here. Don't initialize mbs_case. Set valid_raw_len. + Use mbs_allocated instead of MBS_* macros. + (re_string_construct): Don't initialize stop and valid_len here. + Don't initialize mbs_case. Use mbs_allocated instead of MBS_* + macros. Reallocate buffers if build_wcs_upper_buffer converted + too few bytes. Set valid_len to bufs_len only for single byte + no translation and set in that case valid_raw_len as well. + (re_string_realloc_buffers): Reallocate offsets if not NULL. + Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate + mbs_case. + (re_string_construct_common): Initialize raw_len, mbs_allocated, + stop and raw_stop. + (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of + after it. Set valid_raw_len. Don't set mbs_case. + (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE. + Only use the fast path if !pstr->offsets_needed. Apply pstr->trans + before mbrtowc instead of after it. If upper case character + uses different number of bytes than lower case, goto to the + slow path. Don't call towupper unnecessarily twice. Set + valid_raw_len as well. Handle in the slow path the case if + lower and upper case use different number of characters. + Don't set mbs_case. + (re_string_skip_chars): Use valid_raw_len instead of valid_len. + (build_upper_buffer): Don't set mbs_case. Add BE macro. Set + valid_raw_len. + (re_string_translate_buffer): Set mbs instead of mbs_case. Set + valid_raw_len. + (re_string_reconstruct): Use raw_len/raw_stop to initialize + len/stop. Clear valid_raw_len and offsets_needed when clearing + valid_len. Use mbs_allocated instead of MBS_* macros. + Check original offset against valid_raw_len instead of valid_len. + Remove mbs_case handling. Adjust valid_raw_len together with + valid_len. If is_utf8 and looking for tip context, apply + pstr->trans first. If buffers start with partial multi-byte + character, initialize mbs array as well if mbs_allocated. + Check return value of build_wcs_upper_buffer. + (re_string_peek_byte_case): New function. + (re_string_fetch_byte_case): New function. + (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED. + Don't free mbs_case. Free offsets. + * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8 + if mb_cur_max == 6. + * posix/regexec.c (re_search_internal): Initialize input.raw_stop + as well. Use valid_raw_len instead of valid_len when looking + through fastmap. Adjust registers through input.offsets. + (extend_buffers): Allow build_wcs_upper_buffer to fail. + * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new + tests. + +2003-11-26 Jakub Jelinek <jakub@redhat.com> + + * posix/regexec.c (check_subexp_limits): Only check close + subexpression limitation if one is found. Formatting. + (sift_states_backward, check_arrival, check_arrival_add_next_nodes): + Formatting. + * posix/bug-regex11.c (tests): Enable most #ifdefed out tests. + Add new test. + +2003-11-26 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S. + * sysdeps/unix/sysv/linux/kernel-features.h + (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up. + * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code + if __ASSUME_PROT_GROWSUPDOWN is defined. - * sysdeps/unix/bsd/sun/Dist: New file. +2003-11-26 Andreas Jaeger <aj@suse.de> - * sysdeps/unix/bsd/osf/Dist: New file. + * sysdeps/unix/sysv/linux/dl-execstack.c + (_dl_make_stack_executable): Set dl_stack_flags always for + success. - * sysdeps/unix/bsd/hp/Dist: New file. +2003-06-22 Petter Reinholdtsen <pere@hungry.com> - * sysdeps/unix/arm/Dist: New file. + * locale/program/ld-monetary.c: Only check the first three + characters in int_curr_symbol against ISO-4217, to make the + separator character used by a locale independent of the content + in iso-4217.def. + * locale/iso-4217.def: Remove the space character from all + currency values to get the new test code in ld-monetary.c working. - * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S. +2003-11-21 David Mosberger <davidm@hpl.hp.com> - * sysdeps/mach/hurd/Dist: Add set-init.c. + * elf/soinit.c (_fini): Put _fini() in .init_array section if + HAVE_INITFINI_ARRAY is defined. - * sysdeps/i386/Dist: Add bits/link.h. +2003-11-25 Ulrich Drepper <drepper@redhat.com> - * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk. + * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol. + Define it appropriately after last change. Use it where __sqrtl + was used. - * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c. +2003-11-25 H.J. Lu <hongjiu.lu@intel.com> - * locale/Makefile (distribute): Add hashval.h. + * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline + sqrt for gcc 3.3 and above. - * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c. +2003-11-25 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/Dist: Remove errlist.h. + * posix/runptests.c (main): Make errors fatal. + * posix/PTESTS: One test in GA135 and GA136 check functionality + which seems not guaranteed. - * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD, - __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and - __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES. - * ctype/ctype.h: Prepare headers for use in ISO C++ compliant - implementations. - * libio/stdio.h: Likewise. - * locale/locale.h: Likewise. - * math/math.h: Likewise. - * math/bits/mathcalls.h: Likewise. - * setjmp/setjmp.h: Likewise. - * signal/signal.h: Likewise. - * stdlib/stdlib.h: Likewise. - * string/string.h: Likewise. - * time/time.h: Likewise. - * wcsmbs/wchar.h: Likewise. - * wctype/wctype.h: Likewise. - -2002-08-28 Roland McGrath <roland@redhat.com> - - * locale/tst-C-locale.c (run_test): Remove __ from function names. - -2002-08-28 Jakub Jelinek <jakub@redhat.com> - Roland McGrath <roland@redhat.com> - - * locale/hashval.h (compute_hashval): Use prototype defn. - (hashval_t): New macro, defined to unsigned long int - if not already defined. - (compute_hashval): Return hashval_t instead of unsigned long int. - * locale/loadarchive.c (hashval_t): New macro. - * locale/programs/locarchive.c: Include hashval.h directly instead - of simple-hash.h. - (compute_hashval, hashval_t): Define these macros first. - (insert_name): Use archive_hashval instead of compute_hashval. - (add_locale, delete_locales_from_archive): Likewise. - -2002-08-28 Jakub Jelinek <jakub@redhat.com> - - * locale/programs/locarchive.c (insert_name): Suppress warnings about - hash collisions if be_quiet. - -2002-08-27 Roland McGrath <roland@redhat.com> - - * locale/locale.h (__newlocale, __duplocale, __freelocale, - __uselocale): Don't declare these any more. - * include/locale.h (__uselocale): Declare here instead, using __typeof. +2003-11-25 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno - and treat it as an EOF return. - * sysdeps/unix/readdir_r.c: Likewise. + * posix/regexec.c (re_search_internal): If prune_impossible_nodes + returned REG_NOMATCH, set match_last to -1. Don't initialize + pmatch[0] needlessly. Fix comment. + (prune_impossible_nodes): Don't segfault on NULL state_log entry. + (set_regs): Fix comment. + * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match + if adding both SIMPLE_BRACKET and COMPLEX_BRACKET. + (build_charclass_op): Set has_plural_match if adding both + SIMPLE_BRACKET and COMPLEX_BRACKET. + * posix/bug-regex11.c (tests): Fix register values for one commented + out test. Add new tests. - * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output. - From Alexandre Oliva <aoliva@redhat.com>. - * sysdeps/gnu/errlist-compat.c: Regenerated. + * posix/regex_internal.c (re_string_allocate): Make sure init_len + is at least dfa->mb_cur_max. + (re_string_reconstruct): If is_utf8, don't fall back into + re_string_skip_chars just because idx points into a middle of + valid UTF-8 character. Instead, set the wcs bytes which correspond + to the partial character bytes to WEOF. + * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1 + instead of dfa->nodes_len + 1 state_log entries initially. + * posix/bug-regex20.c (main): Uncomment backwards case insensitive + tests. -2002-08-27 Brian Youmans <3diff@gnu.org> +2003-11-24 Jakub Jelinek <jakub@redhat.com> - * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission - wording at request of copyright holder Stephen Moshier. - * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise. - * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise. - * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise. - * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise. - * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise. - * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise. - * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise. - * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise. - * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise. + * posix/regex_internal.h (re_token_t): Add word_char bit. Add + comment. + (re_dfa_t): Add sb_char field. + (bitset_mask): New function. + * posix/regcomp.c (free_dfa_content): Free sb_char. + (init_dfa): Don't initialize word_char unnecessarily. + Initialize sb_char. + (duplicate_node): Don't duplicate !word_char CHARACTERs with + NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with + NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead. + (duplicate_node_closure): Handle clone_dest == -1 from + duplicate_node. + (peek_token): Initialize word_char bit. + (parse_expression, parse_dup_op): Add comments. + (parse_bracket_exp): Don't set bitmask bits for multi-byte char + starting bytes here at the beginning. Mask off the bits right + before creating SIMPLE_BRACKET. + (build_charclass_op): Likewise. + * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only + set accept bits for single-byte characters. + (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127 + being single byte encoded and the rest multi-byte. + * posix/bug-regex19.c (tests): Add new tests. + (do_mb_tests): Initialize t to *test. + (main): Fail even on do_mb_tests errors. + +2003-11-23 Ulrich Drepper <drepper@redhat.com> + + * posix/regexec.c: Correct several memory allocation problems. + Add more BE. + * posix/regex_internal.c: Likewise. + * posix/regcomp.c: Likewise. + + * posix/regexec.c: Add const in a number of places. + * posix/regex_internal.h: Make EPSILON_BIT a macro to help + debugging. Its value isn't important. + +2003-11-22 Ulrich Drepper <drepper@redhat.com> + + * posix/PTESTS: Fix first test of GA143. + +2003-11-21 Ulrich Drepper <drepper@redhat.com> + + * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation + isn't likely. + + * locale/programs/charmap.c (charmap_read): If encoding is found + not ASCII compatible, set enc_not_ascii_compatible. + * locale/programs/charmap.h: Declare enc_not_ascii_compatible. + * locale/programs/ld-ctype.c (ctype_startup): If + enc_not_ascii_compatible is set, initialize to_nonascii to 1. + +2003-11-22 Jakub Jelinek <jakub@redhat.com> + + * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS + if !__libc_enable_secure. + + * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global + field. + * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field. + (dl_main): Set GL(dl_use_load_bias) default. + (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS. + Add EXTRA_LD_ENVVARS_13. + * elf/dl-support.c (_dl_use_load_bias): New variable. + * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart + with GL(dl_use_load_bias). + * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add + LD_USE_LOAD_BIAS. + * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove. + (EXTRA_LD_ENVVARS_LINUX): Renamed to... + (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning. + * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): + Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX. + +2003-11-21 Ulrich Drepper <drepper@redhat.com> + + * posix/regcomp.c (duplicate_node): Remove unnecessary local variable. + + * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a + pointer. Adjust callers. + + * posix/regcomp.c (fetch_token): Change interface to match + peek_token. This avoids some copying and reduces code size. + +2003-11-21 Jakub Jelinek <jakub@redhat.com> + + * posix/bug-regex19.c (tests): Add more tests. + + * posix/bug-regex11.c: And one more commented out test. + + * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte + tests multiple times unnecessarily. + + * posix/bug-regex19.c (BRE, ERE): Define. + (tests): Add many new tests, remove UTF-8 ones. + (do_one_test, do_mb_tests): New functions. + (main): Rewritten using do_one_test and do_mb_tests. + +2003-11-20 Ulrich Drepper <drepper@redhat.com> + + * posix/PTESTS: Fix first test in GA143. + +2003-11-20 Jakub Jelinek <jakub@redhat.com> + + * posix/regex_internal.h (re_dfastate_t): Remove trtable_search. + Add word_trtable. + * posix/regex_internal.c (create_newstate_common, free_state): + Don't free trtable_search. + * posix/regexec.c (check_matching): Remove fl_search argument. + (transit_state_sb): Likewise. #ifdef out as unused. + (build_trtable): Remove fl_search argument. Set state->word_trtable + and state->trtable. Build separate word and non-word tables if + multi-byte and they differ for some character. + (transit_state): Remove fl_search argument. Don't update + state->trtable here. Handle state->word_trtable. + #ifdef out unused call to transit_state_sb. + (re_search_internal): Update check_matching caller. + (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts + bitmask for multi-byte locales. + * posix/bug-regex19.c (tests): Enable some commented out tests, add + 2 new tests. + * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as + multi-byte. Don't run identical multi-byte tests multiple times + unnecessarily. + (main): Check setlocale return value. + * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument. + (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH. + ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test + here, without --utf8 argument but with MALLOC_TRACE. + +2003-11-19 Jakub Jelinek <jakub@redhat.com> + + * posix/regexec.c (extend_buffers): Don't allocate + twice as big state_log as needed. Don't modify pstr->valid_len + for mb_cur_max == 1 !icase !trans. + + * posix/regcomp.c (free_bin_tree): Removed. + (create_tree): Add dfa argument. Don't call re_malloc for + each tree, instead allocate from str_tree_storage. + (re_dfa_add_tree_node): New function. + (free_dfa_content): Handle freeing if dfa->nodes == NULL + or dfa->state_table == NULL. + (re_compile_internal): Call free_dfa_content if init_dfa + fails. Call free_workarea_compile, re_string_destruct + and free_dfa_content for most of the other failure paths. + (init_dfa): Initialize str_tree_storage_idx. + Don't clear any fields on allocation failure. + (free_workarea_compile): Free str_tree_storage chunks + instead of free_bin_tree (dfa->str_tree). + (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node + followed by create_tree. Add dfa argument to remaining + create_tree calls. Remove new_idx variable. Remove calls + to free_bin_tree. + (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp, + parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise. + (duplicate_tree): Remove calls to free_bin_tree, add dfa + argument to create_tree. + * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define. + (bin_tree_storage_t): New type. + (re_dfa_t): Add str_tree_storage and str_tree_storage_idx + fields. + * posix/Makefile (tests): Add bug-regex21. + (generated): Add bug-regex21-mem, bug-regex21.mtrace, + tst-rxspencer-mem and tst-rxspencer.mtrace. + (tests): Depend on $(objpfx)bug-regex21-mem + and $(objpfx)tst-rxspencer-mem. + (bug-regex21-ENV, tst-rxspencer-ENV): Set. + ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New. + * posix/tst-rxspencer.c (main): Add call to mtrace. + Free line at the end. + * posix/bug-regex21.c: New test. + +2003-11-19 Ulrich Drepper <drepper@redhat.com> + + * posix/bug-regex20.c: Correct invalid UTF-8 sequences. + + * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc + fails, just use the byte, do no fancy conversions. + + * posix/regex_internal.h (re_string_first_byte): Use ->valid_len + not ->len. + (re_string_is_single_byte_char): Likewise. + +2003-11-18 Ulrich Drepper <drepper@redhat.com> + + * posix/regexec.c (get_subexp): After calling get_subexp_sub + reload buf and bkref_str. Little optimization by avoiding memcmp. + +2003-11-14 David Mosberger <davidm@hpl.hp.com> + + * sysdeps/unix/sysv/linux/ia64/sysdep.h + (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate + that all existing GAS versions have a problem with .align inside + a function. + * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug. + * sysdeps/ia64/memcpy.S: Likewise. + * sysdeps/ia64/memset.S: Likewise. + * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to + out of .text into .rodata, where it belongs. + + * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to + save/restore input-arguments, because they're necessarily + preserved by the kernel to support syscall-restart. + +2003-11-18 Jakub Jelinek <jakub@redhat.com> + + * posix/regex_internal.h (re_token_type_t): Remove unused ALT, + END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD + and EPSILON_BIT. + (IS_EPSILON_NODE): Just test if EPSILON_BIT is set. + (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well. + * posix/regex_internal.c (create_ci_newstate, create_cd_newstate): + Handle OP_UTF8_PERIOD. + (re_string_reconstruct): Set valid_len for single byte char searching + with no translation and case sensitivity. + * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle + OP_UTF8_PERIOD. + (re_compile_internal): Don't call optimize_utf8 if preg->translate + != NULL. + (optimize_utf8): Remove BACK_SLASH case. + Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be + optimized. + (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have + any bits set and COMPLEX_BRACKET is used. + * posix/regexec.c (transit_state_mb): Fix comment typo. + (group_nodes_into_DFAstates, check_node_accept): Handle + OP_UTF8_PERIOD. + (check_node_accept_bytes): Likewise. Reorder slightly so that + re_string_char_size_at and re_string_elem_size_at are called + only when needed. + * posix/bug-regex20.c (BRE, ERE): Define. + (tests): Use them to make lines shorter. Expect . to be + optimized. Add lots of new tests. + (main): Run (ATM just case sensitive) test with backwards searching + as well. + +2003-11-18 Jakub Jelinek <jakub@redhat.com> + + * io/bug-ftw4.c: Include string.h. + * posix/fnmatch.c (mbsinit): Remove define. + +2003-11-17 Jakub Jelinek <jakub@redhat.com> + + * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as + well. + * posix/bug-regex20.c (tests): Add new tests. Multi-byte char + followed by dup operator is expected to be optimized. + + * posix/regexec.c (check_node_accept_bytes): Move nrules and j + variables to the block where they are only used, initialize + nrules only immediately before using it. + +2003-11-15 Andreas Jaeger <aj@suse.de> + + * sysdeps/x86_64/fpu/s_scalbnl.S: New file. + * sysdeps/x86_64/fpu/s_truncl.S: New file. + * sysdeps/x86_64/fpu/s_nearbyintl.S: New file. + * sysdeps/x86_64/fpu/s_floorl.S: New file. + * sysdeps/x86_64/fpu/s_ilogbl.S: New file. + * sysdeps/x86_64/fpu/e_remainderl.S: New file. + + * math/libm-test.inc (floor_test): Test also ±0.25. + (ceil_test): Test -0.25. + +2003-11-17 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/posix/getaddrinfo.c: Add support for destination address + selection according to RFC 3484. + +2003-11-15 Ulrich Drepper <drepper@redhat.com> + + * posix/regex_internal.h: Add forward declaration of re_dfa_t. + Replace last two parameters of re_string_allocate and + re_string_construct with pointer to DFA. + (re_dfa_t): Add map_notascii field. + * posix/regcomp.c (re_compile_internal): Add call of + re_string_construct. + (init_dfa): Initialize map_notascii. + * posix/regex_internal.c: Adjust definitions of re_string_allocate + and re_string_construct. + Pass DFA to re_string_construct. Adjust definition. Initialize + map_notascii field. + (build_wcs_upper_buffer): If map_notascii is zero use simplified + method to map ASCII values to upper case. + * posix/regex.c: Include localeinfo.h. + * posix/regexec.c: Adjust call of re_string_allocate. + + * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII. + * locale/localeinfo.h (LIMAGIC): Change value. + * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII. + * locale/C-ctype.h: Likewise. + * locale/programs/ld-ctype.c: Compute whether any mapping maps from + ASCII to non-ASCII value. Write out that value. + + * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit. + * include/wchar.h: Provide inline versions of mbsinit and __mbsinit. + +2003-11-14 Jakub Jelinek <jakub@redhat.com> + + * posix/tst-rxspencer.c (check_match): @ without any following + characters must match only end of string. + (main): Fix filename in error message. + +2003-11-12 David Mosberger <davidm@hpl.hp.com> + + * sysdeps/ia64/dl-machine.h: Force inlining of + elf_machine_runtime_setup(). + +2003-11-13 Andreas Jaeger <aj@suse.de> + + * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin. + (CFLAGS-test-double.c): Likewise. + (CFLAGS-test-ldouble.c): Likewise. + (CPPFLAGS-test-ifloat.c): Likewise. + (CPPFLAGS-test-idouble.c): Likewise. + (CPPFLAGS-test-ildoubl.c): Likewise. -2002-08-28 Jakub Jelinek <jakub@redhat.com> + * math/libm-test.inc (ceil_test): Test ceil (0.25). - * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts. - * ctype/ctype-extn.c (isblank_l): Add weak alias. - * sysdeps/generic/strtol_l.c (strtol_l): Likewise. - * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise. - * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise. - * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise. - * wctype/iswctype_l.c (iswctype_l): Likewise. - -2002-08-27 Roland McGrath <roland@redhat.com> - - * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def. - - * ctype/ctype.h (__exctype_l): Don't declare __ name. - * stdlib/stdlib.h: Don't declare __*_l names. - * include/stdlib.h: Declare them here instead. - * include/string.h: Don't declare __*_l names. - * string/string.h: Declare them here instead. - * time/time.h: Don't declare __*_l names. - * include/time.h: Declare them here instead. - * wcsmbs/wchar.h: Don't declare __*_l names. - * include/wchar.h: Declare them here instead. - * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l. - Don't declare __*_l names. - * include/wctype.h: Declare them here instead. - * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l. - * stdlib/strfmon_l.c (strfmon_l): Define as weak alias. - * locale/langinfo.h: Don't declare __nl_langinfo_l. - * include/langinfo.h: Declare it here with __typeof. - - * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l - instead, taking an extra __locale_t argument. - * time/Makefile (routines): Add strptime_l. - * time/time.h (__strptime_l, strptime_l): Declare them. - * time/strptime_l.c: New file. - - * time/time.h (__strftime_l, strftime_l): Declare them. - * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them. - * time/strftime_l.c: New file. - * time/wcsftime_l.c: New file. - * time/Makefile (routines): Add strftime_l, wcsftime_l. - * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l, - strftime_l, wcsftime_l. - * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l - or __wcsftime_l instead, taking an extra __locale_t argument. - - * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ... - (libc: GLIBC_2.3): ... here. - -2002-08-27 Ulrich Drepper <drepper@redhat.com> - - * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule. - - * Makefile (distribute): Add LICENSES. - - * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and - sys/debugreg.h. - - * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h. - - * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h. - - * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h. - - * sysdeps/unix/sysv/linux/Dist: Add readahead.c. - - * sysdeps/mach/hurd/alpha/Dist: New file. - - * sysdeps/arm/Dist: Add bits/link.h. - - * sunrpc/Makefile: Distribute thrsvc. - - * stdio-common/Makefile: Remove more left-overs from old stdio. - - * include/linewrap.h: Removed. - - * libio/bug-mmap-fflush.c: Rewrite to not touch source directory. - - * intl/Makefile (distribute): Add plural-eval.c. - -2002-08-27 Roland McGrath <roland@redhat.com> - - * manual/sysinfo.texi (Mount Information): Correct file name to macro - assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED. - Say mtab is in either /var/run or /etc. - -2002-08-26 Roland McGrath <roland@redhat.com> - - * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd). - * sysdeps/mach/hurd/bits/errno.h: Regenerated. - - * sysdeps/gnu/Versions: New file. - * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove - _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here. - * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target. - ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c. - * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal - and _sys_nerr_internal instead of anything else. Make it include - "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT]. - Make it emit some asm magic if [EMIT_ERR_MAX]. - * sysdeps/gnu/errlist.c: Regenerated. - * sysdeps/gnu/errlist-compat.awk: New file. - * sysdeps/gnu/errlist-compat.c: New file (generated). - * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro. - (_sys_errlist_internal): Define this as a macro for _hurd_errlist. - (_sys_nerr_internal): Define this is a macro for _hurd_nerr. - (SYS_ERRLIST, SYS_NERR): Macros removed. - (sys_nerr, _sys_nerr): Remove these weak aliases. - * sysdeps/unix/sysv/linux/errlist.c: File removed. - * sysdeps/unix/sysv/linux/errlist.h: File removed. - * sysdeps/unix/sysv/linux/arm/errlist.c: File removed. - - * include/libc-symbols.h (declare_symbol): New macro. - * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef. - * configure.in: New check to define it. +2003-11-04 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who + sends the netlink data. + * sysdeps/unix/sysv/linux/check_pf.c: Likewise. + +2003-11-13 Jakub Jelinek <jakub@redhat.com> + + * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET + with no bits set for >= 0x80 chars is seen. + * posix/bug-regex20.c (tests): Add new tests. Expect [ABC] to be + optimized. + (main): Run all tests with RE_ICASE as well. + +2003-11-13 Ulrich Drepper <drepper@redhat.com> + + * posix/Makefile: Add rules to build and run tst-rxspencer. + (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT. + * posix/tst-rxspencer.c: New file. + * posix/rxspencer/tests: New file. + * posix/rxspencer/COPYRIGHT: New file. + Patch mostly by Jakub Jelinek. + + * posix/regcomp.c (parse_bracket_exp): Don't check for range if + this is no option given the first token. + + * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after + hyphen in range expression. Return EBRACK in this case. + + * posix/regcomp.c (parse_bracket_element): Reject hyphens unless + we expect them or it's the last element in the bracket expression. + Indicated by new parameter. Adjust all callers. + + * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern. + Prettier error messages. + + * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first + number in {,} expression is larger. + +2003-11-13 Andreas Jaeger <aj@suse.de> + + * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL): + Define appropriately for x86_64. + (__ASSUME_UTIMES): Likewise. + (__ASSUME_CLONE_THREAD_FLAGS): Likewise. + + * sysdeps/x86_64/fpu/s_ceill.S: New file. + +2003-11-13 Ulrich Drepper <drepper@redhat.com> + + * posix/regcomp.c (parse_expression): In BRE consecutive + duplications are not allowed. + +2003-11-12 Ulrich Drepper <drepper@redhat.com> + + * posix/regcomp.c (parse_bracket_exp): If end of expression is + seen, return EBRACK error, not BADPAT. + + * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM + and RE_CONTEXT_INVALID_DUP syntax flag is set, fail. + * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro. + (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS. + + * posix/regcomp.c (parse_sub_exp): In case of not-matching ( ) + return REG_EPAREN. + + * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2. + * posix/runptests.c (main): Handle comments. + * posix/PTESTS2C.sed: Handle comments. + +2003-11-12 Jakub Jelinek <jakub@redhat.com> + + * posix/regcomp.c (optimize_utf8): New function. + (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead + of !icase. + (re_compile_internal): Call optimize_utf8 if not case insensitive + and in UTF-8 locale. + * posix/regex_internal.h: Ifdef out some prototypes if + RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings. + * posix/Makefile (tests): Add bug-regex20. + (bug-regex20-ENV): Add LOCPATH. + * posix/bug-regex20.c: New test. + +2003-11-12 Jakub Jelinek <jakub@redhat.com> + + * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes. + +2003-11-12 Jakub Jelinek <jakub@redhat.com> + + * posix/tst-regex.c (umemlen): New variable. + (test_expr): Add expectedicase argument. Test case insensitive + searches as well as backwards searches (case sensitive and + insensitive) too. + (run_test): Add icase argument. Use it to compute regcomp flags. + (run_test_backwards): New function. + (main): Cast read to size_t to avoid warning. Set umemlen. + Add expectedicase arguments to test_expr. + * posix/regex_internal.c (re_string_reconstruct): If is_utf8, + find previous character by walking back instead of converting + all chars from beginning. + +2003-11-12 Jakub Jelinek <jakub@redhat.com> + + * posix/regex_internal.h (struct re_string_t): Add is_utf8 + and mb_cur_max fields. + (struct re_dfa_t): Likewise. Reorder fields to make structure + smaller on 64-bit arches. + (re_string_allocate, re_string_construct): Add mb_cur_max and + is_utf8 arguments. + (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max + instead of MB_CUR_MAX. + * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max + instead of MB_CUR_MAX. + (re_compile_internal): Pass new arguments to re_string_construct. + (init_dfa): Initialize mb_cur_max and is_utf8 fields. + (peek_token, peek_token_bracket): Use input->mb_cur_max instead + of MB_CUR_MAX. + (parse_expression, parse_bracket_exp, parse_charclass_op): Use + dfa->mb_cur_max instead of MB_CUR_MAX. + * posix/regex_internal.c (re_string_construct_common): Add + mb_cur_max and is_utf8 arguments. Initialize fields with them. + (re_string_allocate, re_string_construct): Add mb_cur_max and + is_utf8 arguments, pass them to re_string_construct_common. + Use mb_cur_max instead of MB_CUR_MAX. + (re_string_realloc_buffers): Use pstr->mb_cur_max instead of + MB_CUR_MAX. + (re_string_reconstruct): Likewise. + (re_string_context_at): Use input->mb_cur_max instead of + MB_CUR_MAX. + (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max + instead of MB_CUR_MAX. + * posix/regexec.c (re_search_internal): Likewise. + Pass new arguments to re_string_allocate. + (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of + MB_CUR_MAX. + (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX. + +2003-11-12 Jakub Jelinek <jakub@redhat.com> + + * posix/Makefile (tests): Add bug-regex19. + (bug-regex19-ENV): Add LOCPATH. + * posix/bug-regex19.c: New test. + +2003-11-11 Jakub Jelinek <jakub@redhat.com> + + * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE + with MB_CUR_MAX > 1 locales in the fastmap. + +2003-11-11 Jakub Jelinek <jakub@redhat.com> + + * posix/regex_internal.c (build_wcs_buffer): Fix comment typo. + (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead + of toupper. + * posix/Makefile (tests): Add bug-regex17 and bug-regex18. + (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH. + * posix/bug-regex17.c: New file + * posix/bug-regex18.c: New file. + +2003-10-08 Thorsten Kukuk <kukuk@suse.de> + + * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite): + Define __NR_pread/__NR_pwrite if not done in kernel headers + +2003-11-11 Roland McGrath <roland@redhat.com> + + * manual/xtract-typefun.awk: Swallow [(){}*] from function names. + + * manual/Makefile (info): Don't depend on dir-add.info. + (libc.dvi libc.pdf libc.info): Depend on dir-add.texi. + (dir-add.info): Target removed, replaced with ... + (dir-add.texi): New target. + (distribute): Add it. + (install): Remove variant with --section arguments. + Let the @dircategory directives do their work. + (mostlyclean): Don't remove dir-add.info here. + (realclean): Remove dir-add.texi here. + * manual/libc.texinfo: @include dir-add.texi + * configure.in: Remove check for old Debian install-info. * configure: Regenerated. + * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed. -2002-08-27 Ulrich Drepper <drepper@redhat.com> +2003-11-08 Andreas Schwab <schwab@suse.de> - * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This - file isn't distributed. Add special rules to install bits/stdio_lim.h. + * scripts/data/c++-types-ia64-linux-gnu.data: New file. - * Make-dist: Remove traces of old stdio. - * Makeconfig: Likewise. +2003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca> - * locale/Makefile (localedef-aux): New variable. Only md5 - assigned to it. These files are not ddistributed in this directory. + * io/ftwtest-sh: Fix nested sed commands. - * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h. - * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h. - * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise. +2003-11-10 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h. + * posix/regex_internal.h (re_string_char_size_at): Don't look beyond + valid_len wide chars. - * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available - set h_errno to NO_RECOVERY [PR libc/4360]. +2003-11-09 Roland McGrath <roland@redhat.com> -2002-08-26 Ulrich Drepper <drepper@redhat.com> + * manual/examples/dir2.c (one): Add const to argument type. + Reported by J de Haan <j.de.haan@home.nl>. - * libio/Makefile (tests): Add bug-fopena+. - * libio/bug-fopena+.c: New file. - * libio/fileops.c (_IO_file_open): Only set file pointer to end of the - file for _IO_IS_APPENDING if file isn't opened for reading, too. +2003-11-07 Ulrich Drepper <drepper@redhat.com> - * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings. + * po/pl.po: Update from translation team. - * locale/xlocale.c: Fix the last change. The variable still has - to end in _data. - * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)] - (__libc_tsd_set): Add _data prefix to variable name. - -2002-08-26 Roland McGrath <roland@redhat.com> - - * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace - macro with inline function. - (sigset_get_old_mask): Likewise. - * sysdeps/posix/sigblock.c (__sigblock): Update callers. - * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise. - * sysdeps/posix/sigpause.c (__sigpause): Likewise. - * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise. - * sysdeps/unix/sysv/aix/sigset-cvt-mask.h - (sigset_set_old_mask, sigset_get_old_mask): Make these macros return - values. - * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise. - * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise. +2003-11-07 Jakub Jelinek <jakub@redhat.com> -2002-07-06 Bruno Haible <bruno@clisp.org> + * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define. + (ftw_dir, ftw_startup): Add __attribute ((noinline)). + (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions. + (NFTW_NAME): Only define if !_LIBC, add versioned_symbol + and compat_symbol. + * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define. + * io/Versions (libc): Export nftw@@GLIBC_2.3.3 + and nftw64@@GLIBC_2.3.3. - * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask, - sigset_get_old_mask): Make it work with larger sigset_t. - * sysdeps/posix/sigblock.c (__sigblock): Use those macros. - * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise. - * sysdeps/posix/sigpause.c (__sigpause): Likewise. + * io/ftw.h (FTW_ACTIONRETVAL): New flag. + (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New. + * io/ftw.c (ftw_dir): Add old_dir argument. + Clear result if it was FTW_SKIP_SIBLINGS after processing all + dir entries. Change cwd back if old_dir != NULL. + (process_entry): Adjust caller. Don't change cwd back here. + Change FTW_SKIP_SUBTREE result to 0. + (ftw_startup): Adjust ftw_dir caller. + Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS. + * io/ftwtest.c (skip_subtree, skip_siblings): New variables. + (options, main): Add --skip-subtree and --skip-siblings options. + (cb): Use return FTW_CONTINUE instead of return 0. + Handle --skip-subtree and --skip-siblings. + * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL. + * manual/filesys.texi: Document FTW_ACTIONRETVAL. -2002-08-26 Roland McGrath <roland@redhat.com> +2003-11-04 Jakub Jelinek <jakub@redhat.com> - * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them. - * manual/filesys.texi (File Times): Document lutimes and futimes. - * misc/Makefile (routines): Add them. - * misc/Versions (libc: GLIBC_2.3): Likewise. - * sysdeps/generic/lutimes.c: New file. - * sysdeps/generic/futimes.c: New file. - * sysdeps/mach/hurd/lutimes.c: New file. - * sysdeps/mach/hurd/futimes.c: New file. + * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns + non-zero. + * io/Makefile (tests): Add bug-ftw4. + * io/bug-ftw4.c: New test. - * manual/filesys.texi (File Times): Add explicit note about null - pointer argument to utimes. +2003-10-27 Daniel Jacobowitz <drow@mvista.com> -2002-08-26 Roland McGrath <roland@frob.com> + * libio/libioP.h [_IO_USE_OLD_IO_FILE] + (struct _IO_FILE_complete_plus): New type. + * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus. + * libio/oldiofdopen.c (_IO_old_fdopen): Likewise. + * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise. + Call _IO_old_init instead of _IO_init. - * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon. - (__ifreq): Add a cast. Remove an unused variable. +2003-11-03 Ulrich Drepper <drepper@redhat.com> - * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add - _HURD_THREADVAR_LOCALE. + * intl/locale.alias: nb_NO is now the correct name, not no_NO. -2002-08-26 Jakub Jelinek <jakub@redhat.com> + * locale/iso-639.def: Add Blin. + Patch by Daniel Yacob <locales@geez.org>. - * posix/regexec.c (re_search_stub): Return correct match length - if start != 0. - * posix/bug-regex10.c: New test. - * posix/Makefile (tests): Add bug-regex10. +2003-10-31 Steven Munroe <sjmunroe@us.ibm.com> -2002-08-26 Brian Youmans <3diff@gnu.org> + * sysdeps/powerpc/powerpc32/strncmp.S: New File. + * sysdeps/powerpc/powerpc64/strncmp.S: New File. - * COPYING.LIB: Replaced with fresh copy from - ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1; - suggested copying permission notice now says version 2.1 instead - of version 2. +2003-11-01 Randolph Chung <tausq@debian.org> - * crypt/crypt.c: Changed copying permission notice to Lesser GPL - from Library GPL. - * crypt/crypt_util.c: Likewise. - * crypt/ufc.c: Likewise. - * elf/dl-conflict.c: Likewise. - * elf/dl-iteratephdr.c: Likewise. - * iconv/iconvconfig.h: Likewise. - * malloc/arena.c: Likewise. - * malloc/hooks.c: Likewise. - * malloc/malloc.c: Likewise. - * posix/glob/Makefile.ami: Likewise. - * posix/glob/Makefile.in: Likewise. - * stdlib/gmp-impl.h: Likewise. - * stdlib/gmp.h: Likewise. - * sysdeps/generic/dl-iteratephdr-static.c: Likewise. - * sysdeps/generic/strnlen.c: Likewise. - * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise. - * sysdeps/mach/hurd/recvmsg.c: Likewise. - * sysdeps/mach/hurd/sendmsg.c: Likewise. - * sysdeps/mach/hurd/spawni.c: Likewise. - * sysdeps/mach/powerpc/machine-sp.h: Likewise. - * sysdeps/mach/powerpc/sysdep.h: Likewise. - * sysdeps/mach/powerpc/thread_state.h: Likewise. - * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise. - * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise. - * sysdeps/x86_64/gmp-mparam.h: Likewise. - - * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in - Lesser GPL copying permission notice from 2 to 2.1. - * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise. - * sysdeps/ieee754/dbl-64/atnat.h: Likewise. - * sysdeps/ieee754/dbl-64/atnat2.h: Likewise. - * sysdeps/ieee754/dbl-64/branred.c: Likewise. - * sysdeps/ieee754/dbl-64/branred.h: Likewise. - * sysdeps/ieee754/dbl-64/dla.h: Likewise. - * sysdeps/ieee754/dbl-64/doasin.c: Likewise. - * sysdeps/ieee754/dbl-64/doasin.h: Likewise. - * sysdeps/ieee754/dbl-64/dosincos.c: Likewise. - * sysdeps/ieee754/dbl-64/dosincos.h: Likewise. - * sysdeps/ieee754/dbl-64/e_asin.c: Likewise. - * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise. - * sysdeps/ieee754/dbl-64/e_exp.c: Likewise. - * sysdeps/ieee754/dbl-64/e_log.c: Likewise. - * sysdeps/ieee754/dbl-64/e_pow.c: Likewise. - * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise. - * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise. - * sysdeps/ieee754/dbl-64/halfulp.c: Likewise. - * sysdeps/ieee754/dbl-64/mpa.c: Likewise. - * sysdeps/ieee754/dbl-64/mpa.h: Likewise. - * sysdeps/ieee754/dbl-64/mpa2.h: Likewise. - * sysdeps/ieee754/dbl-64/mpatan.c: Likewise. - * sysdeps/ieee754/dbl-64/mpatan.h: Likewise. - * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise. - * sysdeps/ieee754/dbl-64/mpexp.c: Likewise. - * sysdeps/ieee754/dbl-64/mpexp.h: Likewise. - * sysdeps/ieee754/dbl-64/mplog.c: Likewise. - * sysdeps/ieee754/dbl-64/mplog.h: Likewise. - * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise. - * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise. - * sysdeps/ieee754/dbl-64/mptan.c: Likewise. - * sysdeps/ieee754/dbl-64/mydefs.h: Likewise. - * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise. - * sysdeps/ieee754/dbl-64/root.tbl: Likewise. - * sysdeps/ieee754/dbl-64/s_atan.c: Likewise. - * sysdeps/ieee754/dbl-64/s_sin.c: Likewise. - * sysdeps/ieee754/dbl-64/s_tan.c: Likewise. - * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise. - * sysdeps/ieee754/dbl-64/sincos32.c: Likewise. - * sysdeps/ieee754/dbl-64/sincos32.h: Likewise. - * sysdeps/ieee754/dbl-64/slowexp.c: Likewise. - * sysdeps/ieee754/dbl-64/slowpow.c: Likewise. - * sysdeps/ieee754/dbl-64/uasncs.h: Likewise. - * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise. - * sysdeps/ieee754/dbl-64/uexp.h: Likewise. - * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise. - * sysdeps/ieee754/dbl-64/ulog.h: Likewise. - * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise. - * sysdeps/ieee754/dbl-64/upow.h: Likewise. - * sysdeps/ieee754/dbl-64/upow.tbl: Likewise. - * sysdeps/ieee754/dbl-64/urem.h: Likewise. - * sysdeps/ieee754/dbl-64/uroot.h: Likewise. - * sysdeps/ieee754/dbl-64/usncs.h: Likewise. - * sysdeps/ieee754/dbl-64/utan.h: Likewise. - * sysdeps/ieee754/dbl-64/utan.tbl: Likewise. - - * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen - Moshier and Lesser GPL copying permission notice, per license from - Moshier. - * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise. - * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise. - * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise. - * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise. - * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise. - * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise. - * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise. - * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise. - * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise. - - * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission - notice, per license from copyright holder Stephen Moshier. - * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise. - * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise. - * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise. - * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise. - * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise. - -2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir. - (shared-only-routines): Likewise. - -2002-08-26 Roland McGrath <roland@redhat.com> - - * locale/programs/ld-ctype.c (ctype_read): When given a repertoire - name of "", store a null pointer instead. - - * configure.in (elf): Set to yes for freebsd*, netbsd*. - * configure: Regenerated. + * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1, + LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6): + Add missing parentheses. - * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE): - Initialize this instead of __libc_tsd_LOCALE_data. +2003-11-01 Roland McGrath <roland@redhat.com> - * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from - ptsname_r to EINVAL. + * libio/bug-ftell.c (do_test): Add a cast. - * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0. +2003-09-26 Daniel Jacobowitz <drow@mvista.com> - * rt/Makefile: Revert last change, it was inappropriate to presume aio - implementations depend on pthreads. - * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS. - * rt/tst-aio64.c (do_test): Likewise. - * rt/tst-aio2.c (do_test): Likewise. - * rt/tst-aio3.c (do_test): Likewise. - * rt/tst-aio4.c (do_test): Likewise. - * rt/tst-aio5.c (do_test): Likewise. - * rt/tst-aio6.c (do_test): Likewise. - * rt/tst-aio7.c (do_test): Likewise. + * Makerules (shlib.lds): Make sure that ld doesn't try to link + anything while generating the linker script. - * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to - void so as to avoid compiler warnings. +2003-10-31 Roland McGrath <roland@redhat.com> - * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define - _IO_wide_data_FD, which is never used here. + * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's + special members. - * libio/iofread.c - [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn. - * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise. - * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise. +2003-10-29 Ulrich Drepper <drepper@redhat.com> - * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl. - * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern. + * po/be.po: Update from translation team. - * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT]. - (closelog): Likewise. +2003-10-27 Ulrich Drepper <drepper@redhat.com> -2002-07-06 Bruno Haible <bruno@clisp.org> + * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to + _dl_map_object. - * sysdeps/alpha/fpu/fpu_control.h: Comment fix. + * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate + ELF header. - * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ... - * sysdeps/unix/alpha/pipe.S: ... here. - * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed. + * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip + rest of line. We use getline which means this cannot happen. - * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF. +2003-10-26 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation. - * sysdeps/unix/i386/fork.S: Likewise. - * sysdeps/unix/i386/pipe.S: Likewise. - * sysdeps/unix/i386/wait.S: Likewise. + * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs): + Avoid infinite loops in case the mounts file is hosed. + * io/Makefile: Add rules to build and run tst-statvfs. + * io/tst-statvfs.c: New file. - * sysdeps/unix/fork.S: Fix PSEUDO_END argument. - * sysdeps/unix/arm/fork.S: Likewise. + * include/dlfcn.h (__RTLD_OPENEXEC): Define. + * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading + executables unless __RTLD_OPENEXEC flag is present. + * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to + _dl_map_object when loading the executable. - * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL - arguments. - (DO_CALL): Swap argument order. - * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL - arguments. - (DO_CALL): Swap argument order. - * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL - arguments. - (DO_CALL): Swap argument order. - * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL - arguments. - (DO_CALL): Swap argument order. - * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL - arguments. - (DO_CALL): Swap argument order. - * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL - arguments. - (DO_CALL): Swap argument order. - * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL - arguments. - (DO_CALL): Swap argument order. + * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping + correctly. + * posix/globtest.sh: Add tests for GLOB_BRACE and escaping. - * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error. - (L): Define right for ELF. - * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition. - Now defined in sysdeps/i386/sysdep.h. + * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default + reverse lookup format for IPv6 addresses is using bitstring and + .ip6.arpa suffix. + * resolv/ns_name.c: Implement encoding and decoding bitstring in + hex format. - * sysdeps/posix/readv.c: Ansify function definition. - * sysdeps/posix/writev.c: Likewise. +2003-10-23 Jakub Jelinek <jakub@redhat.com> - * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t - have the same size. Avoid direct cast from size_t to off_t. + * locale/programs/locale.c (show_info): Fix printing word values on + 64-bit big-endian architectures. - * login/tst-utmp.c (simulate_login): Don't leave garbage after the - nul byte in entry[n].ut_user. - (simulate_logout): Likewise. +2003-10-19 Bruno Haible <bruno@clisp.org> - * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE, - _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the - existence of corresponding members of 'struct utmp'. - * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and - !_HAVE_UT_TYPE. + * intl/hash-string.c (hash_string): Zero-extend each char from the + string; the old code did a sign-extend on some platforms. - * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small, - allocate a buffer of at least BUFSIZ bytes, not just of - sizeof (struct dirent). +2003-10-22 Steven Munroe <sjmunroe@us.ibm.com> - * sysdeps/generic/glob.c: Include <limits.h>. - (NAME_MAX): Define a fallback. - (glob_in_dir): Allocate enough room for a 'struct dirent64' on the - stack. - * posix/tst-dir.c: Include <stddef.h>, for offsetof. - (main): Allocate enough room for a 'struct dirent64' on the stack. - * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a - 'struct dirent'. + * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't + append options to these. + * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise. - * sysdeps/unix/sysv/linux/init-first.c: Don't include - kernel-features.h. +2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca> - * inet/htontest.c: Include <sys/types.h>. + * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error. - * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS. +2003-10-15 Roland McGrath <roland@redhat.com> - * include/sys/sysctl.h: Comment fix. + * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function. + Fake an entry for the main executable and then call __dl_iterate_phdr. + * elf/Makefile (routines): Remove dl-iteratephdr-static. + (elide-routines.os): Likewise. + (CFLAGS-dl-iterate-phdr-static.c): Variable removed. + * sysdeps/generic/dl-iteratephdr-static.c: File removed. + * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed. - * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize - _dl_load_lock. - * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO. +2003-10-15 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias. + * elf/rtld.c (print_statistics): Print also number of relative + relocations. - * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias. - (__getpeername): New alias. - (__getsockname): New alias. - (__socket): New alias. +2003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca> - * sysdeps/unix/common/syscalls.list (getpgid): Remove. + * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use. + * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL, + SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL, + INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL, + and undef JUMPTARGET before use. + [PIC]: Save pic register around syscall. + * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall): + Cleanup asm statment. - * sysdeps/unix/syscalls.list (__chown_internal): New alias. - (__fcntl_internal): New alias. - (__profil): New alias. +2003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp> -2002-08-26 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD + after trapa instruction. - * nscd/hstcache.c (cache_addhst): Add new parameter saying whether - entry was for getaddr* lookup or not. Add only matching cache - entry. Change all callers [PR libc/4317]. +2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp> - * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after - finding the read position [PR libc/4265]. - * libio/Makefile (tests): Add bug-rewind2. - * libio/bug-rewind2.c: New file. + * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid. - * libio/bug-rewind.c: Fix creation of temp file. +2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca> -2002-08-25 Ulrich Drepper <drepper@redhat.com> + * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed. - * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is - neither SUCCESS nor TRYAGAIN [PR libc/4259]. - * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop - to ENOENT if no entry is found. - * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup - failure. - * nis/nss_compat/compat-initgroups.c: Likewise. - * nis/nss_compat/compat-pwd.c: Likewise. - * nis/nss_compat/compat-spwd.c: Likewise. - * nis/nss_nis/nis-alias.c: Likewise. - * nis/nss_nis/nis-ethers.c: Likewise. - * nis/nss_nis/nis-grp.c: Likewise. - * nis/nss_nis/nis-hosts.c: Likewise. - * nis/nss_nis/nis-initgroups.c: Likewise. - * nis/nss_nis/nis-netgrp.c: Likewise. - * nis/nss_nis/nis-network.c: Likewise. - * nis/nss_nis/nis-proto.c: Likewise. - * nis/nss_nis/nis-publickey.c: Likewise. - * nis/nss_nis/nis-pwd.c: Likewise. - * nis/nss_nis/nis-rpc.c: Likewise. - * nis/nss_nis/nis-service.c: Likewise. - * nis/nss_nis/nis-spwd.c: Likewise. - * resolv/nss_dns/dns-host.c: Likewise. - * resolv/nss_dns/dns-network.c: Likewise. - * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls. +2003-10-09 Roland McGrath <roland@redhat.com> + + * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there + is no file to name. + +2003-10-08 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate + two identical copies of strings. + +2003-10-06 Ulrich Drepper <drepper@redhat.com> + + * posix/bug-regex11.c: Add some more tests which fail so far. + Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>. + +2003-10-05 Paolo Bonzini <bonzini@gnu.org> + + * posix/bug-regex11.c: Add more backreference-related test cases. + (main): Show the failing regex in the error messages. + * posix/regexec.c (check_dst_limits_calc_pos): + Simplify some nested conditionals. Replace if's with a switch + statement. + (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to + FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE + does not change in the recursive invocation, fixing an infinite loop + in the ()\1*\1* regex. + (sift_states_backward): Fix function comment. + * posix/regcomp.c (calc_epsdest): Add an assertion. + +2003-10-06 Ulrich Drepper <drepper@redhat.com> + + * manual/examples/testopt.c: Fix warnings. Better error message + for missing -c argument. + Patch mostly by Gitonga Marete <bgmarete@comcast.net>. + + * timezone/asia: Update from tzdata2003d. + * timezone/australasia: Likewise. + * timezone/backward: Likewise. + * timezone/europe: Likewise. + * timezone/iso3166.tab: Likewise. + * timezone/northamerica: Likewise. + * timezone/southamerica: Likewise. + * timezone/zone.tab: Likewise. + +2003-10-05 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/ia64/backtrace.c: New file. + * sysdeps/x86_64/backtrace.c: New file. + * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type. + (_Unwind_Backtrace): New prototype. + +2003-10-03 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub. + * sysdeps/i386/elf/setjmp.S: Likewise. + +2003-10-02 Roland McGrath <roland@redhat.com> + + * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC]. + * argp/argp-namefrob.h + [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME] + (__argp_short_program_name): Don't declare fn, define it as a macro. + +2003-08-22 Simon Josefsson <jas@extundo.com> + + * argp/argp-fmtstream.h [!__attribute__]: Define to nothing. + + * argp/argp-help.c: Don't include malloc.h, some platforms + complain and it doesn't appear to be used. + [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare + strerror_r. + [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare + strerror. + (hol_entry_long_iterate): Change __attribute to __attribute__. + (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE + && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile. + (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller, + modified after comments from Ulrich Drepper. + (__argp_short_program_name): Ditto. + (__argp_state_help, __argp_error, __argp_failure): Use it. + (__argp_failure): Use strerror when necessary. + + * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy) + (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix. + (clearerr_unlocked, feof_unlocked, ferror_unlocked) + (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked) + (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked) + (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to + non-unlocked functions. + [!_LIBC]: Add prototypes for __argp_basename and + __argp_short_program_name. + + * argp/argp-parse.c (argp_default_parser): Only use + program_invocation{_short,}_name if declared. + (parser_init): Use __argp_short_program_name. + + * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for + '#include features.h'. + + * argp/argp.h [!__attribute__]: Define to nothing. + +2003-09-26 Paolo Bonzini <bonzini@gnu.org> + + * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE + for the first token in a subexpression as well. + +2003-10-02 Jakub Jelinek <jakub@redhat.com> + + * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor + handling again. + (parse_reg_exp): Likewise. + * posix/regex.h (RE_CARET_ANCHORS_HERE): Define. + + * posix/bug-regex11.c (tests): Add new tests. + * posix/bug-regex12.c (tests): Add new test. + +2003-10-01 Thorsten Kukuk <kukuk@suse.de> + + * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of + variables only used if TLS_DTV_AT_TP is defined into the #if branch. + +2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx> + + * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from + the old thread-m.h header too. + +2003-10-02 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go + back to 131027 since this is what the kernel enforces. + + * inet/getnameinfo.c: Move domain out of nrl_domainname scope and + define it with libc_freeres_ptr. + +2003-10-01 Roland McGrath <roland@redhat.com> + + * elf/rtld.c (dl_main): Add cast in last change. + +2003-09-10 Chris Demetriou <cgd@broadcom.com> + + * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove + "#if 0" surrounding most of contents. + (SYSCALL_ERROR_LABEL): Define. + (__SYSCALL_CLOBBERS): Add $10. + (internal_syscall7): Remove. + * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise. + +2003-09-30 Ulrich Drepper <drepper@redhat.com> + + * elf/rtld.c (dl_main): Also set l_map_start. + +2003-09-30 Daniel Jacobowitz <drow@mvista.com> + + * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO + to work around kernel problem. + +2003-09-27 Wolfram Gloger <wg@malloc.de> + + * malloc/malloc.c: Include <malloc-machine.h> earlier instead of + "thread-m.h", so that default parameters can be overridden in a + system-specific malloc-machine.h. Remove extra ; from extern "C" + closing brace. + * sysdeps/generic/malloc-machine.h: New file. + * sysdeps/mach/hurd/malloc-machine.h: New file. + * malloc/thread-m.h: Removed. + * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it + is in sysdeps/generic/malloc-machine.h now. + +2003-09-29 Ulrich Drepper <drepper@redhat.com> + + * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of + variables only used if TLS_TCB_AT_TP is defined into the #if + branch. + + * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as + well to cover using long long in C90. + +2003-09-28 Alfred M. Szmidt <ams@kemisten.nu> + + * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop): + Redefine and use __libc_cleanup_region_end instead. + +2003-09-29 Thorsten Kukuk <kukuk@suse.de> + + * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and + fix prototypes for picky C++ compilers. + +2003-09-27 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if + the device ID is invalid and return -1. + * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise. + +2003-09-26 Andreas Schwab <schwab@suse.de> + + * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to + rt_sigprocmask system call. + +2003-09-25 Roland McGrath <roland@redhat.com> + + * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable): + Don't check for zero __libc_stack_end, it should be initialized. + [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag + and fall back if it fails with EINVAL. + [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP. + +2003-09-25 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include + sysdeps/i386/dl-procinfo.c instead of + sysdeps/unix/sysv/linux/i386/dl-procinfo.c. + * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using + #include_next. + +2003-09-25 Ulrich Drepper <drepper@redhat.com> + + * posix/regcomp.c (peek_token): Remove recent changes for anchor + handling again. + (parse_reg_exp): Likewise. + * posix/regex.h: Remove RE_CARET_ANCHORS_HERE. + + * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle + banners. + + * nis/nis_table.c (nis_list): Always strdup string used with + ibreq->ibr_name. Add several NULL pointer checks. + + * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value + of nis_list. * nis/nss_nisplus/nisplus-ethers.c: Likewise. * nis/nss_nisplus/nisplus-grp.c: Likewise. * nis/nss_nisplus/nisplus-hosts.c: Likewise. + * nis/nss_nisplus/nisplus-netgrp.c: Likewise. * nis/nss_nisplus/nisplus-network.c: Likewise. * nis/nss_nisplus/nisplus-proto.c: Likewise. + * nis/nss_nisplus/nisplus-publickey.c: Likewise. * nis/nss_nisplus/nisplus-pwd.c: Likewise. * nis/nss_nisplus/nisplus-rpc.c: Likewise. * nis/nss_nisplus/nisplus-service.c: Likewise. * nis/nss_nisplus/nisplus-spwd.c: Likewise. - * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value. - * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise. - * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise. - * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise. - * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by - declaring __restore and __restore_rt as hidden (if possible). + * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN + and PROT_GROWSUP. + * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise. + +2003-09-25 Jakub Jelinek <jakub@redhat.com> + + * misc/syslog.c: Include locale.h. + (vsyslog): Add date always in C locale %h %e %T format. + +2003-09-24 Paul Eggert <eggert@twinsun.com> + + * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for + size_t overflow when reallocating storage. + * argp/argp-help.c (make_hol, hol_append): Likewise. + (SIZE_MAX): New macro. + +2003-08-07 Alfred M. Szmidt <ams@kemisten.nu> + + * sysdeps/mach/hurd/bits/libc-lock.h + (__libc_cleanup_push, __libc_cleanup_pop): New macros. + +2003-08-01 Alfred M. Szmidt <ams@kemisten.nu> + + * sysdeps/i386/dl-procinfo.h: New file, contents taken from ... + * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here. + #include_next dl-procinfo.h to get them. + (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h. + (_DL_PLATFORMS_COUNT): Likewise. + (_DL_FIRST_PLATFORM): Likewise. + (_DL_HWCAP_PLATFORM): Likewise. + (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE, + HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE, + HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR, + HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV, + HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR, + HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D, + HWCAP_IMPORTANT): Likewise. + (_DL_PROCINFO_H_): Likewise. + (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise. + (_dl_string_platform): Likewise. + * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ... + * sysdeps/i386/dl-procinfo.c: ... here, new file. + +2003-09-24 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/dl-execstack.c + (_dl_make_stack_executable): Remember that we changed the permission. + + * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of + __libc_stack_end. Patch by David Mosberger. + +2003-09-24 Jakub Jelinek <jakub@redhat.com> + + * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of + __libc_stack_end@GLIBC_PRIVATE. + + * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined. + (_dl_sysdep_start): Set __libc_stack_end here. + * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of + __libc_stack_end. + * sysdeps/arm/dl-machine.h (RTLD_START): Likewise. + * sysdeps/cris/dl-machine.h (RTLD_START): Likewise. + * sysdeps/i386/dl-machine.h (RTLD_START): Likewise. + * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise. + * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise. + * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise. + * sysdeps/sh/dl-machine.h (RTLD_START): Likewise. + * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise. + * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define. + * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define. + (RTLD_START): Remove setting of __libc_stack_end. + * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define. + (RTLD_START): Remove setting of __libc_stack_end. + +2003-09-24 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to + function definitions. Adjust macro expansions accordingly. + * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major, + minor, makedev name. + * sysdeps/unix/sysv/linux/makedev.c: Likewise. + +2003-09-24 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev): + Add __THROW. + +2003-09-24 Jakub Jelinek <jakub@redhat.com> + + * nscd/Makefile (others): Add nscd before including ../Rules. + +2003-09-24 Ulrich Drepper <drepper@redhat.com> + + * nscd/Makefile: Add rules to build nscd as a PIE. + * configure.in: Check for -fpie and -pie compiler options. + * config.make.in (have-fpie): Define. + +2003-09-23 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger + kernel dev_t size. + * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed. + * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed. + * sysdeps/unix/sysv/linux/makedev.c: New file. + * sysdeps/unix/sysv/linux/Dist: Add makedev.c. + * sysdeps/unix/sysv/linux/Makefile [subdir=misc] + (sysdep_routines): Add makedev. + * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add + major, minor, makedev. + * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit + kernel dev_t. + * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed. + * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise. + * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed. + Code by Alexander Viro <aviro@redhat.com>. + +2003-09-23 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc] + (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and + makecontext. + * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change + for include Altivec support for PPC32. It was not compatible. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust + offsets for ucontext_t change. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust + for ucontext_t change. Add compatibility code. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise. + Patch by Paul Mackerras <paulus@samba.org>. + +2003-02-25 Randolph Chung <tausq@debian.org> + + * sysdeps/hppa/Makefile: Include compat code in build. + * sysdeps/hppa/libgcc-compat.c: New file. + * sysdeps/hppa/Dist: Add libgcc-compat.c. + * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab. + +2003-09-23 Roland McGrath <roland@redhat.com> + + * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize + GL(dl_stack_flags) according to rtld's own PT_GNU_STACK. + Move GL(dl_make_stack_executable_hook) initialization up. + * elf/tst-execstack-prog.c: New file. + * elf/Makefile (tests-execstack-yes): Add it. + (LDFLAGS-tst-execstack-prog): New variable. + +2003-09-23 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end + before calling _dl_start, using %rip relative access. + Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded + and _dl_fini. + +2003-09-23 Roland McGrath <roland@redhat.com> + + * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before + calling _dl_start, using GOTOFF access. + + * configure.in (libc_cv_z_execstack): New check. + * configure: Regenerated. + * config.make.in (have-z-execstack): New variable set by it. + * elf/tst-execstack.c: New file. + * elf/tst-execstack-mod.c: New file. + * elf/tst-execstack-needed.c: New file. + * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New + variables. + (tests, modules-names): Conditionally include them. + (distribute): Add tst-execstack-mod.c here. + ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets. + (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables. + ($(objpfx)tst-execstack-needed): New target. + (LDFLAGS-tst-execstack-needed): New variable. -2002-08-25 Roland McGrath <roland@redhat.com> + * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags + and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable. + * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags. + (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr. + Initialize _dl_make_stack_executable_hook. + * elf/dl-support.c: Define those new variables. + (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK. + (_dl_phdr): Fix type. + * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and + enable execute permission for the stack if necessary. + * sysdeps/generic/dl-execstack.c: New file. + * elf/Makefile (dl-routines): Add it. + * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable. + * sysdeps/unix/sysv/linux/dl-execstack.c: New file. + +2003-09-23 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker. + +2003-09-20 Alfred M. Szmidt <ams@kemisten.nu> + + * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE, + UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of + __fcntl_nocancel. + +2003-09-22 Ulrich Drepper <drepper@redhat.com> - * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns. + * malloc/malloc.c: Include <stdint.h>. + +2003-09-20 Paolo Bonzini <bonzini@gnu.org> - * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl. - (getutent_r_file, internal_getut_r): Updated all callers. - (getutline_r_file, pututline_file, updwtmp_file): Likewise. + * posix/regcomp.c (build_word_op): Rename like... + (build_charclass_op): ...this. Accept two extra parameters, + CLASS_NAME and EXTRA. Add EXTRA to the result, not only _. + (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE. + (parse_expression): Replace build_word_op with + build_charclass_op, add new arguments, accept OP_SPACE + and OP_NOTSPACE. + * posix/regex_internal.h (re_token_type_t): Add OP_SPACE + and OP_NOTSPACE. -2002-08-25 Ulrich Drepper <drepper@redhat.com> + * posix/regcomp.c (peek_token): Don't look back for ( or | + to check whether to treat a caret as special. It fails + for the (extended) regex \(^. + (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token. + * posix/regex.h: Define RE_CARET_ANCHORS_HERE. - * locale/programs/locale.c: Don't print aliases for non-existing - locales for 'locale -a'. - Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166]. + * posix/regexec.c: Check out of bounds value before shifting. -2002-07-19 H.J. Lu <hjl@gnu.org> + * posix/regex_internal.h: Define __attribute for non-gcc. - * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file. +2003-09-22 Jakub Jelinek <jakub@redhat.com> -2002-07-16 H.J. Lu <hjl@gnu.org> + * include/atomic.h (atomic_compare_and_exchange_val_rel, + atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments + to avoid confusion. - * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add - sys/personality.h. - * sysdeps/unix/sysv/linux/sys/personality.h: New file. + * sysdeps/unix/opendir.c: Include string.h. -2002-08-25 Ulrich Drepper <drepper@redhat.com> +2003-09-22 Ulrich Drepper <drepper@redhat.com> - * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is - not moved ahead of the fputs call. - * elf/tst-tlsmod2.c (in_dso): Likewise. - * elf/tst-tlsmod3.c (in_dso2): Likewise. - * elf/tst-tlsmod4.c (in_dso): Likewise. + * timezone/zdump.c: Update from tzcode2003c. + * timezone/zic.c: Likewise. + * timezone/leapseconds: Update from tzdata2003c. -2002-08-25 Andreas Schwab <schwab@suse.de> +2003-09-19 Ulrich Drepper <drepper@redhat.com> - * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message. + * elf/Makefile ($(objpfx)librtld.os): Create link map also for + final build to ease quality control. -2002-08-25 Roland McGrath <roland@redhat.com> + * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for + ld.so, don't include NULL buffer pointer handling. - * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before - resetting handler, to avoid the possibility of a spurious SIGALRM - delivered to the user's handler. - Reported by Amit D. Chaudhary <amitc@brocade.com>, +2003-09-19 Jakub Jelinek <jakub@redhat.com> - * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to - set -fkeep-inline-functions, which is not needed for the current file. + * dlfcn/dlopen.c (dlopen): Add static_link_warning. - * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls. - (_dl_setup_hash): Add attribute_hidden. - (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise. - (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise. - (_dl_new_object, _dl_map_object_deps): Likewise. - (_dl_map_object_deps_internal): Remove decl. - * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden. +2003-09-18 Jakub Jelinek <jakub@redhat.com> - * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN - && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN - && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE] - (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm, - instead relying on the compiler to produce only GOTOFF variable refs. + * libio/memstream.c (open_memstream): Use _IO_init instead of + _IO_old_init. -2002-08-25 Ulrich Drepper <drepper@redhat.com> +2003-09-17 Ulrich Drepper <drepper@redhat.com> - * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect. + * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we + have to recognize octal and hexadecimal numbers as well. Simplify + function, signs are handled in strtol. + * posix/wordexp-test.c: Add tests for octal and hexadecimal + numbers in arithmetic expressions. - * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static - inline to avoid defining it in every file which includes this header. +2003-09-17 Jakub Jelinek <jakub@redhat.com> - * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before - defining DONT_USE_BOOTSTRAP_MAP. + * elf/Makefile (distribute): Add tst-alignmod.c. + (tests): Add tst-align. + (modules-names): Add tst-alignmod. + (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add + $(stack-align-test-flags). + ($(objpfx)tst-align): Depend on libdl. + ($(objpfx)tst-align.out): Depend on tst-alignmod.so. + * elf/tst-align.c: New file. + * elf/tst-alignmod.c: New file. + * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags). + * misc/tst-tsearch.c: Include tst-stack-align.h. + (stack_align_check): New array. + (cmp_fn, walk_action): Use TEST_STACK_ALIGN (). + (main): Report error if stack was not enough aligned + in cmp_fn or walk_action. + * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags). + * stdlib/tst-qsort.c: Include tst-stack-align.h. + (align_check): New var. + (compare): Use TEST_STACK_ALIGN () macro. + (main): Report error if stack was not enough aligned in compare. + * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove + unneeded -mpreferred-stack-boundary=4. + * sysdeps/x86_64/tst-stack-align.h: New file. - * libio/tst-freopen.c (main): Use correct formats for __LINE__. - * libio/tst-mmap-setvbuf.c (main): Likewise. - * libio/tst-widetext.c (main): Likewise. + * libio/memstream.c (_IO_wmem_jumps): Remove unused structure. + (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions. - * libio/tst-mmap-eofsync.c (do_test): Use correct format in error - message. - * libio/tst-mmap-fflushsync.c (do_test): Likewise. - * libio/tst-mmap2-eofsync.c (do_test): Likewise. +2003-09-17 Philip Blundell <philb@gnu.org> - * sysdeps/i386/elf/configure.in: Unconditionally define - PI_STATIC_AND_HIDDEN. - * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if - PI_STATIC_AND_HIDDEN is defined as well. - * config.h.in: Add PI_STATIC_AND_HIDDEN entry. + * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted. + (BX): Define. + (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little. -2002-08-24 Ulrich Drepper <drepper@redhat.com> + * sysdeps/arm/sysdep.h (DO_RET): New. - * sysdeps/ia64/bzero.S: Define __bzero as well. + * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork + required but not defined. Improve test of error code. + +2003-09-17 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/i386/Makefile (stack-align-test-flags): Add + -malign-double -mpreferred-stack-boundary=4. - * locale/programs/charmap.c (charmap_new_char): Don't use - ULONG_MAX as maximum UCS4 value. +2003-09-17 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file. + * sysdeps/posix/utimes.c (__utimes): Truncate instead of round. + * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise. - * sysdeps/generic/strtol.c: We don't need the isascii test in glibc. +2003-09-15 Jakub Jelinek <jakub@redhat.com> - * malloc/hooks.c (public_sET_STATe): use size_t as type for i. - * malloc/malloc.c (mALLINFo): Likewise. + * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu + subdir, add -mpreferred-stack-boundary=4, with few exceptions. - * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison. +2003-09-17 Jakub Jelinek <jakub@redhat.com> - * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when - examining result of _IO_do_flush call. + * Makeconfig (stack-align-test-flags): Set. + * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add + $(stack-align-test-flags). + * stdlib/tst-bsearch.c: Include tst-stack-align.h. + (align_check): New var. + (comp): Use TEST_STACK_ALIGN macro. + (do_test): Fail if align_check != 1. + * sysdeps/generic/tst-stack-align.h: New file. + * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse. + * sysdeps/i386/i686/tst-stack-align.h: New file. + +2003-09-17 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a + stack which is aligned (mod 16). + +2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net> + Hans-Peter Nilsson <hp@axis.com> + + * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify + R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment. + +2003-09-17 Jakub Jelinek <jakub@redhat.com> + + * dirent/scandir.c: Include bits/libc-lock.h. + (struct scandir_cancel_struct): New type. + (cancel_handler): New function. + (SCANDIR): Add __libc_cleanup_{push,pop}, save state into + scandir_cancel_struct. + +2003-09-16 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c. + * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): + Add internal_statvfs. + * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs + instead of including "internal_statvfs.c". + * sysdeps/unix/sysv/linux/statvfs.c: Likewise. + * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function. + Add code to avoid the stat calls on all the reported mount points + when we can determine mismatch in advance. + * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and + USBDEVFS_SUPER_MAGIC. + +2003-09-16 Jakub Jelinek <jakub@redhat.com> + + * posix/Versions (sched_getaffinity, sched_setaffinity): Change + from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version. + +2003-09-16 Bruno Haible <bruno@clisp.org> + + * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after + invoking msgfmt, not before. + +2003-09-15 Jakub Jelinek <jakub@redhat.com> + + * argp/argp.h (argp_parse, __argp_parse): Remove __THROW. + * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add + $(uses-callbacks). + * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise. + * elf/Makefile (CFLAGS-dl-iterate-phdr.c, + CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks). + * elf/dl-iteratephdr.c (cancel_handler): New function. + (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}. + * elf/link.h (dl_iterate_phdr): Remove __THROW. + * io/Makefile (CFLAGS-fts.c): Merge into one assignment. + Add $(uses-callbacks). + (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks). + * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change + $(exceptions) to $(uses-callbacks). + * Makeconfig (uses-callbacks): Set to $(exceptions). + * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add + $(uses-callbacks). + * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c): + Likewise. - * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg. - Use prec not spec when sizing buffers. +2003-09-15 Andreas Schwab <schwab@suse.de> - * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings. - * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise. - * locale/loadlocale.c (_nl_intern_locale_data): Likewise. - * stdio-common/vfscanf.c (inchar): Likewise. - * misc/efgcvt_r.c (fcvt_r): Likewise. - * elf/dl-misc.c (_dl_debug_vdprintf): Likewise. - * elf/readlib.c (process_file): Likewise. - * elf/sprof.c (load_profdata): Likewise. - * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise. - * locale/programs/linereader.c (get_toplvl_escape): Likewise. - * locale/programs/charmap.c (charmap_read): Likewise. - * libio/fileops.c: Likewise. - * libio/fmemopen.c: Likewise. - * stdlib/strtod.c: Likewise. - * elf/dl-load.c: Likewise. - * iconv/iconvconfig.c: Likewise. - * iconv/iconv_prog.c (process_block): Likewise. - * elf/rtld.c (dl_main): Likewise. + * sysdeps/m68k/setjmp.c: Add hidden_def. - * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H - macro to calm down the compiler. +2003-09-14 Ulrich Drepper <drepper@redhat.com> - * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning. + * libio/memstream.c (open_memstream): Don't allow wide char operations. - * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string. + * dirent/dirent.h: Remove __THROW from scandir. - * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding - placement of errno definition. - * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise. - * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise. +2003-09-14 Philip Blundell <philb@gnu.org> - * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value - from 1024 to 65536, to avoid buffer overrun. + * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known + to be available. -2002-08-16 Paul Eggert <eggert@twinsun.com> + * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little. - * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value - from 1024 to 65536, to avoid buffer overrun. - * resolv/res_query.c (MAXPACKET): Likewise. + * sysdeps/arm/memset.S: Rewrite. -2002-08-24 Andreas Jaeger <aj@suse.de> +2003-09-12 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls. + * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New. + (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and + __SLONGWORD_TYPE otherwise. -2002-08-23 Ulrich Drepper <drepper@redhat.com> +2003-09-14 Ulrich Drepper <drepper@redhat.com> - * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize - two52 locally. - (log2): Likewise. - * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52. - Patch by Simon Gee <simong@agile.tv>. + * io/Makefile (CFLAGS-ftw.c): Add -fexceptions. + (CFLAGS-ftw64.c): Likewise. - * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): - Prefer reading /proc/stat since it is more uniform across - architectures. +2003-09-13 Ulrich Drepper <drepper@redhat.com> - * manual/texinfo.tex: Update to latest official version. + * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions. + (CFLAGS-nscd_getgr_r.c): Likewise. + (CFLAGS-nscd_gethst_r.c): Likewise. - * sysvipc/sys/shm.h: Remove SHMLBA definition. - * sysdeps/generic/bits/shm.h: Define SHMLBA here. - * sysdeps/gnu/bits/shm.h: Likewise. - * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise. - * sysdeps/unix/sysv/linux/bits/shm.h: Likewise. - * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise. - * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise. - * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise. - * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise. - * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise. - * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20 - since this is what the kernel says. - - * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h> - since ssize_t is needed as well. Replace const with __const. - -2002-08-23 Roland McGrath <roland@redhat.com> - - * malloc/hooks.c (__malloc_initialize_hook, __free_hook, - __malloc_hook, __realloc_hook, __memalign_hook, - __after_morecore_hook): Variable definitions moved to ... - * malloc/malloc.c: ... here, so as to be before all references. - - * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy - global variable reference in an unused asm parameter, to ensure the - compiler has set up the GOT register before we use it. - - * malloc/hooks.c: Move variable definitions ahead of uses. - * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t - initializers that make reference to variables they define. - -2002-08-23 Andreas Jaeger <aj@suse.de> - - * locale/loadarchive.c: Include <stdlib.h> for prototypes of - alloca, free, qsort. - - * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning. - - * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable. - * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise. - - * misc/sys/xattr.h: New file, contributed by Christoph Hellwig - <hch@lst.de>. - * sysdeps/generic/fgetxattr.c: New file. - * sysdeps/generic/flistxattr.c: New file. - * sysdeps/generic/fremovexattr.c: New file. - * sysdeps/generic/fsetxattr.c: New file. - * sysdeps/generic/getxattr.c: New file. - * sysdeps/generic/listxattr.c: New file. - * sysdeps/generic/lgetxattr.c: New file. - * sysdeps/generic/llistxattr.c: New file. - * sysdeps/generic/lremovexattr.c: New file. - * sysdeps/generic/lsetxattr.c: New file. - * sysdeps/generic/removexattr.c: New file. - * sysdeps/generic/setxattr.c: New file. - * misc/Makefile (headers): Add sys/xattr.h. - (routines): Add *xattr calls. - * misc/Versions: Add *xattr calls with version 2.3. - * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls. - * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise. - * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise. - * sysdeps/unix/sysv/linux/ia64/Versions: Likewise. - * sysdeps/unix/sysv/linux/alpha/Versions: Likewise. - * sysdeps/unix/sysv/linux/arm/Versions: Likewise. +2003-09-12 Ulrich Drepper <drepper@redhat.com> -2002-08-22 Steven Munroe <sjmunroe@us.ibm.com> + * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable + interfaces. - * sysdeps/powerpc/elf/libc-start.c - (__cache_line_size): Declare. - (__aux_init_cache): New function. - (__libc_start_main): Change type of `auxvec' parameter to - `ElfW(auxv_t) *'. Correct walking of aux vector. Call - __aux_init_cache. - * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c - (__cache_line_size): Declare. - (__aux_init_cache): New function. - (DL_PLATFORM_INIT): Define. - * sysdeps/powerpc/memset.S: Define __cache_line_size and use its - value to select the correct stride for dcbz. + * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c, + CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c, + CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions. + * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c, + CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise. + * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c): + Likewise. + * misc/Makefile (CFLAGS-err.c): Likewise. + * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c, + CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c, + CFLAGS-glob64.c): Likewise. + * pwd/Makefile (CFLAGS-getpw.c): Likewise. + * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c, + CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise. + * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise. + * sunrpc/Makefile (CFLAGS-openchild.c): Likewise. -2002-08-22 Andreas Jaeger <aj@suse.de> + * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition. - * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of - shmat. + * libio/stdio.h: Remove __THROW from cuserid prototype. -2002-08-22 Roland McGrath <roland@redhat.com> + * locale/loadarchive.c: Use only non-cancelable interfaces. + * resolv/herror.c (herror): Likewise. - * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file - position indicated by locrectab against file bounds before rounding to - page size. In mapping loop, always set TO before breaking out of - contiguous range coalescing loop. + * malloc/hooks.c: Before using IO stream mark stream so it uses + only non-cancelable interfaces. + * malloc/malloc.c: Likewise. + * posix/getopt.c: Likewise. - * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE - (or MAP_COPY if available) instead of MAP_SHARED. - - * scripts/firstversions.awk: When encountering a version newer than - the specified earliest version, be sure to emit the specified earliest - version first if any renaming of an older version to that has been. - -2002-08-21 Roland McGrath <roland@redhat.com> - - * configure.in: Make GCC version check require 3.[2-9]* and no others. - * manual/install.texi (Tools for Compilation): Say 3.2 is required. - (Configuring and compiling): Don't mention older GCC versions any more. - * INSTALL: Regenerated. - - * manual/install.texi (Configuring and compiling, Installation, - Running make install, Linux): Linux -> GNU/Linux where appropriate. - - * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can - be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP] - and with noinline otherwise. Remove hack alloca use to prevent - inlining, we can ask for it explicitly nowadays. - - * dlfcn/bug-dlsym1.c: New file. - * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files. - * dlfcn/Makefile (distribute): Add them. - (tests): Add bug-dlsym1 here. - (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here. - ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets. - ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise. - -2002-08-21 Ulrich Drepper <drepper@redhat.com> - - * elf/rtld.c (start_time): New global variable. Moved from _dl_start. - (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols - before relocation. - (_dl_start): Don't use local bootstrap_map variable if - DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't - pass bootstrap_map to _dl_start_final in this case either. Don't - pass start_time to _dl_start_final ever. - (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP. - - * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28. - This cripples the scope lists necessary to search for symbols in - dependencies which are not in the global scope. - - * include/setjmp.h (__libc_longjmp): Add declaration. - -2002-08-21 Andreas Jaeger <aj@suse.de> - - * sysdeps/x86_64/_mcount.S: Fix assembler. - - * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h - with biarch support. - -2002-08-21 Andreas Jaeger <aj@suse.de> - - * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it. - - * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount. - - * sysdeps/x86_64/machine-gmon.h: New file. - * sysdeps/x86_64/_mcount.S: New file. - -2002-08-20 Ulrich Drepper <drepper@redhat.com> - - * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set - bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called. - (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map). - (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized - to TL_INIT_TP. Otherwise pass 1. - * include/link.h (struct link_map): Add l_tls_tp_initialized. - * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP. - -2002-08-15 Jakub Jelinek <jakub@redhat.com> - - * locale/programs/localedef.c (add_to_readlist): Error about - circular dependencies only if the locale in question hasn't - been finished. - * locale/programs/linereader.c (get_string): Pass LC_CTYPE not - CTYPE_LOCALE to load_locale. - * locale/programs/locfile.c (locfile_read): Don't include - unneeded but available locales in locale_mask. - - * locale/programs/locarchive.c (enlarge_archive): If quiet, don't - print any messages about enlarging archive. - -2002-08-20 Brian Youmans <3diff@gnu.org> - - * manual/contrib.texi: Removed licenses, added acknowledgements - for contributions by Intel, IBM, Craig Metz. - * LICENSES: New file, contains the text of all non-FSF licenses in the - distribution that require putting the notice in the accompanying - documentation. - * README.template, README: Mention LICENSES. - - * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a - new one modelled on the modern BSD license, per recent letter - of permission from CMU. - * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise. - - * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder - from IBM to FSF, per the recent Software Letter. Changed the - distribution terms from GPL to LGPL. - - * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and - copying permission notice (Lesser GPL), per recent IBM Software Letter. - * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise. - * sysdeps/ieee754/dbl-64/root.tbl: Likewise. - * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise. - * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise. - * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise. - * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise. - * sysdeps/ieee754/dbl-64/upow.tbl: Likewise. - * sysdeps/ieee754/dbl-64/utan.tbl: Likewise. - - * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder - from IBM to FSF, per the recent Software Letter. Corrected the - text of the copying permission notice to say Lesser GPL instead - of GPL in warranty disclaimer paragraph. - * sysdeps/ieee754/dbl-64/atnat2.h: Likewise. - * sysdeps/ieee754/dbl-64/branred.h: Likewise. - * sysdeps/ieee754/dbl-64/dla.h: Likewise. - * sysdeps/ieee754/dbl-64/doasin.h: Likewise. - * sysdeps/ieee754/dbl-64/dosincos.h: Likewise. - * sysdeps/ieee754/dbl-64/mpa.h: Likewise. - * sysdeps/ieee754/dbl-64/mpa2.h: Likewise. - * sysdeps/ieee754/dbl-64/mpatan.h: Likewise. - * sysdeps/ieee754/dbl-64/mpexp.h: Likewise. - * sysdeps/ieee754/dbl-64/mplog.h: Likewise. - * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise. - * sysdeps/ieee754/dbl-64/mydefs.h: Likewise. - * sysdeps/ieee754/dbl-64/sincos32.h: Likewise. - * sysdeps/ieee754/dbl-64/uasncs.h: Likewise. - * sysdeps/ieee754/dbl-64/uexp.h: Likewise. - * sysdeps/ieee754/dbl-64/ulog.h: Likewise. - * sysdeps/ieee754/dbl-64/upow.h: Likewise. - * sysdeps/ieee754/dbl-64/urem.h: Likewise. - * sysdeps/ieee754/dbl-64/uroot.h: Likewise. - * sysdeps/ieee754/dbl-64/usncs.h: Likewise. - * sysdeps/ieee754/dbl-64/utan.h: Likewise. - - * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying - permission notice to say Lesser GPL instead of GPL in warranty - disclaimer paragraph. - * sysdeps/ieee754/dbl-64/doasin.c: Likewise. - * sysdeps/ieee754/dbl-64/dosincos.c: Likewise. - * sysdeps/ieee754/dbl-64/e_asin.c: Likewise. - * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise. - * sysdeps/ieee754/dbl-64/e_exp.c: Likewise. - * sysdeps/ieee754/dbl-64/e_log.c: Likewise. - * sysdeps/ieee754/dbl-64/e_pow.c: Likewise. - * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise. - * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise. - * sysdeps/ieee754/dbl-64/halfulp.c: Likewise. - * sysdeps/ieee754/dbl-64/mpa.c: Likewise. - * sysdeps/ieee754/dbl-64/mpatan.c: Likewise. - * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise. - * sysdeps/ieee754/dbl-64/mpexp.c: Likewise. - * sysdeps/ieee754/dbl-64/mplog.c: Likewise. - * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise. - * sysdeps/ieee754/dbl-64/mptan.c: Likewise. - * sysdeps/ieee754/dbl-64/s_atan.c: Likewise. - * sysdeps/ieee754/dbl-64/s_sin.c: Likewise. - * sysdeps/ieee754/dbl-64/s_tan.c: Likewise. - * sysdeps/ieee754/dbl-64/sincos32.c: Likewise. - * sysdeps/ieee754/dbl-64/slowexp.c: Likewise. - * sysdeps/ieee754/dbl-64/slowpow.c: Likewise. - -2002-08-20 Roland McGrath <roland@redhat.com> - - Fix ABI compatibility with libc compiled with old tools on powerpc. - Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com> - and Jack Howarth <howarth@bromo.med.uc.edu>. - * sysdeps/powerpc/Makefile [$(have-protected) = yes] - (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables, - pass -DHAVE_DOT_HIDDEN for these files. - * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf, - __floatdisf. - * sysdeps/powerpc/divdi3.c: New file. - * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ... - * sysdeps/powerpc/libgcc-compat.c: ... this, file removed. - -2002-08-20 Jakub Jelinek <jakub@redhat.com> - - * locale/loadarchive.c (_nl_load_locale_from_archive): Handle - partially overlapping mappings. Remove unneeded (char *) casts. - Never allow duplication of ranges in mapped areas. - -2002-08-20 Roland McGrath <roland@redhat.com> - - * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors - can be detected by make. Reported by H.J. Lu <hjl@gnu.org>. - -2002-08-20 Ulrich Drepper <drepper@redhat.com> - - * include/unistd.h: Don't hide _exit. - - * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP. - (dl_main): Pass extra argument 0 to TLS_INIT_TP. - * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra - argument 1 to TLS_INIT_TP. - * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter. - - * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit. - - * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info. - * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv - memory allocation to... - (allocate_dtv): ...here. New function. - (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL - call allocate_dtv instead of _dl_allocate_tls_storage. - (_dl_deallocate_tls): New parameter. Deallocate TCB only if true. - (_dl_get_tls_static_info): New function. - * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls - and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info. - -2002-08-19 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return - immediately if result == NULL. - -2002-08-16 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/alpha/fpu/libm-test-ulps: Regenerate. - -2002-08-18 Roland McGrath <roland@frob.com> - - * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split - instead of __file_name_split. - * sysdeps/mach/hurd/unlink.c (__unlink): Likewise. - - * sysdeps/mach/hurd/dl-sysdep.c - [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable. - [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW. - -2002-08-16 Jakub Jelinek <jakub@redhat.com> - - * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix - in change before last: MAX -> MIN. - -2002-08-15 Roland McGrath <roland@redhat.com> - - * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF - if seek would go past it. - (mmap_remap_check): If file position is at or past EOF after check, - leave read pointers at EOF and don't seek. - * libio/tst-mmap-offend.c: New file. - * libio/Makefile (tests): Add it. +2003-09-11 Jakub Jelinek <jakub@redhat.com> - * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of - the name as passed, rather than the name in the archive dictionary. + * Makerules (LDFLAGS-c.so): Remove -u __register_frame. -2002-08-15 Ulrich Drepper <drepper@redhat.com> +2003-09-12 Ulrich Drepper <drepper@redhat.com> - * csu/Makefile: Define elide-routines.os not static-only-routines. + * stdio-common/stdio_ext.h: Mark most functions with __THROW. - * include/sched.h (__clone): Add varargs at the end. + * misc/err.h: Remove __THROW from all prototypes. - * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that - case. - (TLS_INIT_HELPER): If defined, use it. - * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise. + * posix/getopt.h (__THROW): Define if not already defined. Add + __THROW to the getopt functions. -2002-08-15 Roland McGrath <roland@redhat.com> +2003-09-11 Ulrich Drepper <drepper@redhat.com> - * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check - on L->l_prev; it can happen under rtld --verify too. + * io/Makefile (CFLAGS-lockf.c): Add -fexceptions. + (CFLAGS-fts.c): Likewise. + * io/fcntl.h: Remove __THROW from lockf prototypes. + * io/fts.h: Remove most __THROW. - * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the - header separately, just map an initial window of 2MB from the file - and remap if that is not large enough to cover the whole header. +2003-09-11 H.J. Lu <hongjiu.lu@intel.com> -2002-08-15 Andreas Jaeger <aj@suse.de> + * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64. + (TLS_LD): Likewise. + (TLS_GD): Likewise. - * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with - version 2.3. - * sysdeps/unix/sysv/linux/arm/Versions: Likewise. - * sysdeps/unix/sysv/linux/alpha/Versions: Likewise. - * sysdeps/unix/sysv/linux/ia64/Versions: Likewise. - * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise. - * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise. - * sysdeps/unix/sysv/linux/mips/Versions: Likewise. - Patch by Andreas Gruenbacher <agruen@suse.de>. +2003-09-11 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls. + * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to + _IO_free_backup_area call. -2002-08-14 Roland McGrath <roland@redhat.com> +2003-09-10 Chris Demetriou <cgd@broadcom.com> - * locale/locarchive.h (struct locale_category_data): Give this name to - the type of locale_data_t's elements. - * locale/programs/locarchive.c (cmpcategorysize): New static function. - (add_locale): Use that to sort the categories by size and put all - those that fit into two pages into the LC_ALL block, instead of - hard-coding it to do everything but LC_CTYPE and LC_COLLATE. - (show_archive_content): Detect categories inside LC_ALL block - directly, instead of hard-coding. - (oldlocrecentcmp): Compare just on file locations used. + * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix + syscall invocation. + * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise. + * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise. + Also, only assert off_t size is 4 for N32 and O32, and clean up + white space. + * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise. -2002-08-14 Jakub Jelinek <jakub@redhat.com> +2003-09-10 Roland McGrath <roland@redhat.com> - * locale/programs/locarchive.c (struct oldlocrecent): New type. - (oldlocrecentcmp): New function. - (enlarge_archive): Re-add locales in the order they were added - to the archive. - (add_locale): Put all the small locale files together, if the small - locale file block would occupy less pages if page size aligned, align - it. - (show_archive_content): Adjust for locale archives optimized for speed. + * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): + Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED]. + Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED]. + * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise. + Reported by Daniel Jacobowitz <drow@mvista.com>. -2002-08-14 Roland McGrath <roland@frob.com> +2003-09-10 Jakub Jelinek <jakub@redhat.com> - * configure.in: Use "MISSING" as not-found value for MIG. - * sysdeps/mach/configure.in: Fatal if mig not found. - * configure, sysdeps/mach/configure: Regenerated. + * string/Makefile (strop-tests): Add memccpy. + * string/test-memccpy.c: New test. -2002-08-13 Jakub Jelinek <jakub@redhat.com> +2003-09-09 Jakub Jelinek <jakub@redhat.com> - * locale/loadarchive.c (archfname): Add missing slash. + * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add + siginfo_t * argument before, change into struct ucontext *. + (SIGCONTEXT_EXTRA_ARGS): Define to _si,. + (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer + instead of structure. + * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP): + Likewise. - * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def. - * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def. +2003-09-09 Ulrich Drepper <drepper@redhat.com> -2002-08-12 Roland McGrath <roland@redhat.com> + * string/stratcliff.c (main): Check memccpy. - * include/sys/wait.h (__waitpid): Add libc_hidden_proto. - * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def. - * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak. - * sysdeps/unix/sysv/linux/waitpid.c: Likewise. - * sysdeps/unix/sysv/aix/waitpid.c: Likewise. - * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise. - * sysdeps/generic/waitpid.c: Likewise. - - * include/net/if.h: New file. Use libc_hidden_proto - for if_nametoindex and if_indextoname. - * sysdeps/generic/if_index.c: Add libc_hidden_def. - * sysdeps/mach/hurd/if_index.c: Likewise. - * sysdeps/unix/sysv/linux/if_index.c: Likewise. - - * include/grp.h (setgroups): Add libc_hidden_proto. - * sysdeps/generic/setgroups.c: Add libc_hidden_def. - * sysdeps/mach/hurd/setgroups.c: Likewise. - * sysdeps/unix/sysv/irix4/setgroups.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise. +2003-04-11 Jes Sorensen <jes@wildopensource.com> -2002-08-13 Jakub Jelinek <jakub@redhat.com> - - * include/unistd.h (seteuid, setegid): Add libc_hidden_proto. - * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def. - * sysdeps/generic/setegid.c (setegid): Likewise. - * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise. - * sysdeps/mach/hurd/setegid.c (setegid): Likewise. - * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise. - * sysdeps/unix/bsd/setegid.c (setegid): Likewise. - * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise. - * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise. - * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise. - * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise. - * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise. - * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise. - Remove fallback if __ASSUME_SETRESUID_SYSCALL. - - * include/sys/stat.h (__fxstat_internal, __fxstat64_internal, - __lxstat_internal, __lxstat64_internal): Remove. - (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64): - Add hidden_proto. - * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def. - Remove INTDEF where present, remove #undef at the beginning. - * sysdeps/generic/fxstat64.c (__fxstat64): Likewise. - * sysdeps/generic/lxstat.c (__lxstat): Likewise. - * sysdeps/generic/lxstat64.c (__lxstat64): Likewise. - * sysdeps/generic/xstat.c (__xstat): Likewise. - * sysdeps/generic/xstat64.c (__xstat64): Likewise. - * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise. - * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise. - * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise. - * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise. - * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise. - * sysdeps/mach/hurd/xstat.c (__xstat): Likewise. - * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise. - * sysdeps/unix/fxstat.c (__fxstat): Likewise. - * sysdeps/unix/common/lxstat.c (__lxstat): Likewise. - * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise. - * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise. - * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise. - * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise. - * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise. - * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise. - * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise. - * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise. - * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise. - * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise. - * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise. - * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise. - * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise. - * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise. - * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise. - * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise. - * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise. - * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise. - * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise. - * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise. - * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise. - * sysdeps/unix/xstat.c (__xstat): Likewise. - - * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto. - * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def. - * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise. - * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise. - * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise. - * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise. - * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise. - - * include/unistd.h (tcgetpgrp): Add libc_hidden_proto. - * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise. - * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def. - * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise. - * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise. - * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise. - * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise. - * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed): - Likewise. - * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise. - * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise. - * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise. - * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise. - * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise. - * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise. - * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise. - * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise. + * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the + character is found during recovery, use correct register when + determining the position of the found character. - * include/string.h (strcoll): Add libc_hidden_proto. - * string/strcoll.c (strcoll): Add libc_hidden_def. +2003-04-01 Jes Sorensen <jes@wildopensource.com> - * misc/err.c (vwarn): Fix pasto in libc_hidden_def. + * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to + avoid segfaults when reading from unmapped pages. For aligned + reload and continue, for misaligned, roll back and use byte copy. + Save ar.ec on entry and restore on exit. -2002-08-11 Philip Blundell <philb@gnu.org> +2003-09-09 Chris Demetriou <cgd@broadcom.com> - * sysdeps/arm/Makefile: New file. + * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining. -2002-08-08 Jakub Jelinek <jakub@redhat.com> +2003-09-08 Chris Demetriou <cgd@broadcom.com> - * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed - by another '|', end of regex or enclosing ')', clear branch. - * posix/bug-regex9.c: New test. - * posix/Makefile (tests): Add bug-regex9. + * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to + the top of the list. + * sysdeps/mips/mips64/n64/Implies: Likewise. -2002-08-12 Roland McGrath <roland@redhat.com> +2003-09-08 Roland McGrath <roland@frob.com> - * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop - start count condition, use TOTAL instead of variable that was never - set. Fix outer loop termination condition to TOTAL >= after update. + * sysdeps/unix/sysv/linux/speed.c + (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED]. + (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED]. + * sysdeps/unix/sysv/linux/bits/termios.h + (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define. + * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise. + * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise. - * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize - dl_tls_static_align and dl_tls_static_nelem. +2003-09-08 Ulrich Drepper <drepper@redhat.com> -2002-08-11 Roland McGrath <roland@redhat.com> + * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change. + * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise. - * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use - of the TLS macros, otherwise the compiler might not have initialized - the PIC register yet when we use the PLT via asm. - * elf/tst-tlsmod3.c (in_dso2): Likewise. - * elf/tst-tlsmod2.c (in_dso): Likewise. +2003-09-08 Jakub Jelinek <jakub@redhat.com> - * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!). + * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit. + (__u_quad_t): Make unsigned long int if 64-bit. + (__SQUAD_TYPE): Make long int if 64-bit. + (__UQUAD_TYPE): Make unsigned long int if 64-bit. + * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove. - * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64): - Evaluate argument exactly once. Remove __volatile__ from asm's. +2003-09-08 Ulrich Drepper <drepper@redhat.com> - * include/unistd.h: Use libc_hidden_proto for getdomainname - and getlogin_r. - * sysdeps/generic/getdomain.c: Add libc_hidden_def. - * sysdeps/mach/hurd/getdomain.c: Likewise. - * sysdeps/unix/getlogin_r.c: Likewise. - * sysdeps/mach/hurd/getlogin_r.c: Likewise. - * sysdeps/generic/getlogin_r.c: Likewise. + * Makefile (tests): Run check-c++-types.sh if possible. + * scripts/check-c++-types.h: New file. + * scripts/data/c++-types-i386-linux-gnu.data: New file. - * include/rpc/auth_des.h: Use libc_hidden_proto for rtime. - * sunrpc/rtime.c: Add libc_hidden_def. +2003-09-08 Andreas Jaeger <aj@suse.de> - * include/string.h: Use libc_hidden_proto for basename. - * string/basename.c [_LIBC]: Add libc_hidden_def. + * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump): + Use struct sigcontext. - * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket. + * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): + Use struct sigcontext. + (GET_PC): Adopt. + (GET_FRAME): Likewise. + (GET_STACK): Likewise. - * locale/loadarchive.c: munmap -> __munmap throughout. +2003-09-08 Wolfram Gloger <wg@malloc.de> - * include/netdb.h: Use libc_hidden_proto for gai_strerror. - * sysdeps/posix/gai_strerror.c: Add libc_hidden_def. - * sysdeps/generic/gai_strerror.c: Likewise. + * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into + contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>. + (mALLOPt): Avoid requirement of C99. - * include/sys/errno.h: New file. +2003-09-08 Ulrich Drepper <drepper@redhat.com> - * include/signal.h: No libc_hidden_proto for raise, - __libc_current_sigrtmin, __libc_current_sigrtmax. - These need to be overridden by linuxthreads. - * sysdeps/posix/raise.c: Reverted. - * sysdeps/generic/raise.c: Reverted. - * signal/allocrtsig.c: Reverted. + * libio/bug-ftell.c: Include <sys/types.h>. + (main): Mark cp as const. - * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops. +2003-09-07 Jakub Jelinek <jakub@redhat.com> -2002-08-10 Roland McGrath <roland@redhat.com> + * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove. + * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove. - * locale/loadarchive.c (_nl_archive_subfreeres): New function. - * locale/localeinfo.h: Declare it. - * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the - current locale if it's not in the file list. - Call _nl_archive_subfreeres. +2003-09-05 Roland McGrath <roland@redhat.com> -2002-08-10 Andreas Jaeger <aj@suse.de> + * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed + and c_ospeed fields. + * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field. + (cfsetispeed): Set c_ispeed field. + * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally + to match corresponding speed.c code. - * sysdeps/i386/strchr.S: Add comment. +2003-09-06 Ulrich Drepper <drepper@redhat.com> -2002-08-10 Roland McGrath <roland@redhat.com> + * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the + narrow character buffer. + * libio/Makefile: Add rules to build and run bug-ftell. + * libio/bug-ftell.c: New file. - * include/wchar.h (putwc): Use libc_hidden_proto. - * include/stdio.h (dprintf, fprintf, vfprintf, sprintf, - sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise. - * stdio-common/dprintf.c: Add libc_hidden_def. - * stdio-common/fprintf.c: Likewise. - * stdio-common/sprintf.c: Likewise. - * stdio-common/sscanf.c: Likewise. - * libio/iofwrite.c: Likewise. - * libio/memstream.c: Likewise. - * libio/putwc.c: Likewise. - * stdio-common/perror.c: Likewise. - * sysdeps/posix/remove.c: Likewise. - * sysdeps/generic/remove.c: Likewise. - * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h". - * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>. - -2002-08-09 Jakub Jelinek <jakub@redhat.com> - - * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit, - towlower, towupper): Add prototypes here too. Add libc_hidden_proto. - * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit, - towlower, towupper): Add libc_hidden_weak. - - * include/bits/dlfcn.h: New file. - * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def. - - * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto. - * include/netinet/ether.h (_nss_files_parse_etherent): Likewise. - * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise. - * include/pwd.h (_nss_files_parse_pwent): Likewise. - * include/shadow.h (_nss_files_parse_spent): Likewise. - * include/netdb.h (_nss_files_parse_protoent, - _nss_files_parse_servent, _nss_files_parse_netent): Likewise. - * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define. - (LINE_PARSER): Use it. - * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto. - * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def. - - * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT - #endif. - - * manual/debug.texi (%MENU%): Remove trailing dot. - Reported by <hayastan132@hotmail.com>. - - * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek - aliases. - (lseek): Dummy. - * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek): - Likewise. + * stdio-common/vfprintf.c: Don't use the first grouping number twice. -2002-08-09 Roland McGrath <roland@redhat.com> - - * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale - name to find codeset name (if any) and normalize it. If the - normalized name differs, look up only that in the archive. - * locale/programs/locarchive.c (add_locale_to_archive): If the name - contains a codeset, normalize the codeset store only the normalized - name in the archive. If not, add an alias containing the locale's - normalized codeset name. Apply codeset name normalization when - matching entries in the alias file. - - * locale/programs/locarchive.c (delete_locales_from_archive): Don't - decrement HEAD->namehash_used here. - (add_locale): Only need to insert name string when name_offset != 0. - - * locale/programs/localedef.c (options): Add -A/--alias-file. - (alias_file): New variable. - (parse_opt): Grok -A, set that. - * locale/programs/localedef.h: Declare it. - - * locale/locarchive.h (struct locrecent): Add `refs' member. - * locale/programs/locarchive.c (insert_name): New function, broken out - of ... - (add_locale_to_archive): ... here. Call that. - (add_alias): New function. - (add_locale): New static function, add_locale_to_archive renamed. - (add_locale_to_archive): Call that and use add_alias to add an alias - for the name with codeset if the given name lacks it. - (enlarge_archive): Call add_locale instead of add_locale_to_archive. - - * locale/Makefile (routines): Add loadarchive. - * locale/loadarchive.c: New file, started from code by Ulrich Drepper. - (_nl_load_locale_from_archive): New function. - * locale/localeinfo.h: Declare it. - * locale/findlocale.c (_nl_find_locale): If using default locale path, - try _nl_load_locale_from_archive first. - - * locale/loadlocale.c (_nl_intern_locale_data): New function, - broken out of _nl_load_locale. - (_nl_load_locale): Call that. - * locale/localeinfo.h: Declare it. - (struct locale_data): Replace member `mmaped' with `alloc', an enum. - (struct locale_data): Remove unused member `options'. - * locale/findlocale.c (_nl_remove_locale): Update uses. - * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise. - * locale/C-collate.c: Update initializer. - * locale/C-identification.c: Likewise. - * locale/C-measurement.c: Likewise. - * locale/C-telephone.c: Likewise. - * locale/C-address.c: Likewise. - * locale/C-name.c: Likewise. - * locale/C-paper.c: Likewise. - * locale/C-time.c: Likewise. - * locale/C-numeric.c: Likewise. - * locale/C-monetary.c: Likewise. - * locale/C-messages.c : Likewise. - * locale/C-ctype.c: Likewise. + * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters + matching the decimal point and possibly leading the thousands + separator. This caused the recognition of thousands separators to + always fail. - * locale/hashval.h [! LONGBITS]: Include <limits.h> here and - use CHAR_BIT instead of BITSPERBYTE. +2003-09-05 Ulrich Drepper <drepper@redhat.com> - * locale/localeinfo.h (_nl_find_locale, _nl_load_locale, - _nl_unload_locale): Add `internal_function attribute_hidden' to decls. - * locale/findlocale.c (_nl_find_locale): Add internal_function to defn. - (_nl_remove_locale): Likewise. - * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise. + * libio/fileops.c (_IO_new_file_overflow): Handle switching to + write mode from read in backup buffer. + * libio/Makefile (tests): Add bug-ungetc2. + * libio/bug-ungetc2.c: New file. - * locale/findlocale.c (_nl_default_locale_path): New variable. - (_nl_find_locale): If LOCALE_PATH is null, default to that. - * locale/localeinfo.h: Declare it. - * locale/setlocale.c (setlocale): Use _nl_default_locale_path - in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale. - * locale/newlocale.c (__newlocale): Likewise. +2003-09-05 Roland McGrath <roland@redhat.com> - * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses. - * inet/rexec.c (rexec_af): Add libc_hidden_def. - * sysdeps/generic/morecore.c: Likewise. - * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise. - (__libc_current_sigrtmax): Likewise. + * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable. -2002-08-08 Roland McGrath <roland@redhat.com> +2003-09-04 Roland McGrath <roland@frob.com> - * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT. - * catgets/open_catalog.c (__open_catalog): Likewise. + * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID, + EOPNOTSUPP, or ENOSYS, change it to ENODEV. - * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed - from typo INITIAL_NUM_NANES. - (create_archive): Update use. +2003-09-04 H.J. Lu <hongjiu.lu@intel.com> -2002-08-08 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): + Fix a typo. - * sysdeps/unix/sysv/linux/sigwait.c: New file. +2003-09-05 Andreas Jaeger <aj@suse.de> -2002-08-08 Roland McGrath <roland@frob.com> + * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler + to make it conforming C. + * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise. - * resolv/netdb.h: Don't declare h_errno as a plain global any more. + * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change + prototype to use variable argument lists and get the possible one + argument via va_arg. + * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise. + * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New. -2002-08-08 Jakub Jelinek <jakub@redhat.com> +2003-09-04 Ulrich Drepper <drepper@redhat.com> - * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something - else and undefine after including wcstol_l.c. - * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly. + * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf. -2002-08-08 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max): + Report correct value for vxfs. + * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC. - * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available. + * gmon/gmon.c: Use only not-cancelable syscalls to write profiling + data. -2002-08-08 Alexandre Oliva <aoliva@redhat.com> + * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all + over the place. It would be allowed to have these functions as + cancellation points but the cleanup would be ugly and a lot of + work. - * configure.in: Make the test for broken_alias_attribute stricter. + * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define. + * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define. -2002-05-24 Robert Love <rml@tech9.net> + * include/fcntl.h (__fcntl_nocancel): Declare. + * sysdeps/unix/sysv/linux/fcntl.c: New file. + * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable + cancellation if absolutely needed. + (__fcntl_nocancel): Define. - * posix/Makefile (routines): Add sched_getaffinity and - sched_setaffinity. - * posix/sched.h: Add declarations for sched_getaffinity and - sched_setaffinity. - * sysdeps/generic/sched_getaffinity.c: New file. - * sysdeps/generic/sched_setaffinity.c: New file. - * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and - sched_setaffinity. + * posix/unistd.h (gethostid): Remove __THROW. Clarify comment. + * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add + -fexceptions. + * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use + extend_alloca. -2002-08-06 Andreas Schwab <schwab@suse.de> + * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status + instead of __close. - * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes. + * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove + unnecessary errno handling. -2002-08-07 Ulrich Drepper <drepper@redhat.com> + * nss/getXXbyYY_r.c (INTERNAL): Use better variable name. + Initialize it in all cases. Change it to be a bit more like the + code we had before. - * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error - message. +2003-09-04 Jakub Jelinek <jakub@redhat.com> - * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special. - It is known to be defined. + * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add + __builtin_expect. + (_IO_file_open): Likewise. Use close_not_cancel. + +2003-09-04 Ulrich Drepper <drepper@redhat.com> + + * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL. + * libio/fileops.c [_LIBC]: Remove close macro. + (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel. + (_IO_new_file_open): Recognize 'c' flag in mode string. + (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel. + (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use + write_not_cancel. + * iconv/gconv_conf.c: Use fopen with 'c' mode flag. + * inet/rcmd.c: Likewise. + * inet/ruserpass.c: Likewise. + * intl/localealias.c: Likewise. + * malloc/mtrace.c: Likewise. + * misc/getpass.c: Likewise. + * misc/getttyent.c: Likewise. + * misc/mntent_r.c: Likewise. + * misc/getusershell.c: Likewise. + * nss/nsswitch.c: Likewise. + * resolv/res_hconf.c: Likewise. + * resolv/res_init.c: Likewise. + * sysdeps/unix/sysv/linux/getsysstats.c: Likewise. + * time/getdate.c: Likewise. + * time/tzfile.c: Likewise. + * misc/fstab.h: Undo last change. + * misc/mntent.h: Likewise. + * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and + CFLAGS-fstab.c definition. + +2003-09-04 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype. + +2003-09-03 Ulrich Drepper <drepper@redhat.com> + + * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid + returning ERANGE if this wasn't intended. + +2003-09-03 Jakub Jelinek <jakub@redhat.com> + + * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as + function-like macros. + +2003-09-03 Ulrich Drepper <drepper@redhat.com> + + * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions. + (CFLAGS-getgrent.c): Likewise. + * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions. + (CFLAGS-getpwent.c): Likewise. + * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions. + (CFLAGS-getspent.c): Likewise. + + * inet/Makefile: Add -fexceptions to CFLAGS for the various + getXXent and getXXbyYY functions. + + * locale/loadlocale.c: Use not-cancelable variants of open, close, + and read. + +2003-09-02 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove + rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and + rt_sigpending. + * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction): + New prototype. + * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove + unused __syscall_ stubs. + * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove + rt_*. + * sysdeps/unix/sysv/linux/cris/Makefile: Removed. + * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list + (__syscall_recvfrom, __syscall_sendto): Remove unused aliases. + * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove + unused __syscall_ stubs. + * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list + (__syscall_*): Remove unused __syscall_ stubs. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list + (__syscall_*): Likewise. + * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove + rt_*. + * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*): + Remove unused __syscall_ stubs. + * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*. + * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed. + * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed. + * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed. + * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed. + * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed. + * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed. + * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed. + * sysdeps/unix/sysv/linux/s_pread64.c: Removed. + * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed. + * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused + __syscall_* prototypes. + * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise. + * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise. + * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise. + * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise. + * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise. + * sysdeps/unix/sysv/linux/i386/chown.c: Likewise. + * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise. + * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. + * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise. + * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise. + * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise. + * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise. + * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise. + * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise. + * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise. + * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise. + * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise. + * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise. + * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise. + * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise. + * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise. + * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise. + * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise. + * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise. + * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise. + * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise. + * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise. + * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise. + * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise. + * sysdeps/unix/sysv/linux/mips/pread.c: Likewise. + * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise. + * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise. + * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. + * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise. + * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise. + * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise. + * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise. + * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise. + * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise. + * sysdeps/unix/sysv/linux/pwrite.c: Likewise. + * sysdeps/unix/sysv/linux/execve.c: Likewise. + * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise. + * sysdeps/unix/sysv/linux/reboot.c: Likewise. + * sysdeps/unix/sysv/linux/_exit.c: Likewise. + * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise. + * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. + * sysdeps/unix/sysv/linux/fxstat64.c: Likewise. + * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise. + * sysdeps/unix/sysv/linux/readahead.c: Likewise. + * sysdeps/unix/sysv/linux/getcwd.c: Likewise. + * sysdeps/unix/sysv/linux/sigwait.c: Likewise. + * sysdeps/unix/sysv/linux/getdents.c: Likewise. + * sysdeps/unix/sysv/linux/readv.c: Likewise. + * sysdeps/unix/sysv/linux/getpriority.c: Likewise. + * sysdeps/unix/sysv/linux/sigaction.c: Likewise. + * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise. + * sysdeps/unix/sysv/linux/llseek.c: Likewise. + * sysdeps/unix/sysv/linux/sysctl.c: Likewise. + * sysdeps/unix/sysv/linux/lxstat64.c: Likewise. + * sysdeps/unix/sysv/linux/mmap64.c: Likewise. + * sysdeps/unix/sysv/linux/ustat.c: Likewise. + * sysdeps/unix/sysv/linux/poll.c: Likewise. + * sysdeps/unix/sysv/linux/pread64.c: Likewise. + * sysdeps/unix/sysv/linux/writev.c: Likewise. + * sysdeps/unix/sysv/linux/pread.c: Likewise. + * sysdeps/unix/sysv/linux/ptrace.c: Likewise. + * sysdeps/unix/sysv/linux/sigpending.c: Likewise. + * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise. + * sysdeps/unix/sysv/linux/sigqueue.c: Likewise. + * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. + * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. + * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. + * sysdeps/unix/sysv/linux/truncate64.c: Likewise. + * sysdeps/unix/sysv/linux/xmknod.c: Likewise. + * sysdeps/unix/sysv/linux/xstat64.c: Likewise. - * include/string.h: Define index and rindex only if _ISOMAC is not - defined. +2003-09-02 Jakub Jelinek <jakub@redhat.com> - * elf/rtld.c: Include <errno.h>. - * sysdeps/generic/libc-tls.c: Likewise. + * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change. + * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file. + * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file. -2002-08-07 Roland McGrath <roland@redhat.com> +2003-09-02 Ulrich Drepper <drepper@redhat.com> - * resolv/res_debug.c (latlon2ul): Add const to argument type, and use - it internally. - (precsize_aton): Likewise. + * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions. - * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call - the static symbols added in the last change (doofus is me). + * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of + open, close, and read. - * locale/newlocale.c (__newlocale): Use a bit mask instead of a second - loop to notice missing categories in a composite name. + * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define + *_nocancel name. - * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK, - LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK, - LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK, - LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros. + * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid. -2002-08-07 Ulrich Drepper <drepper@redhat.com> + * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions. + * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove. + * libio/oldtmpfile.c (__old_tmpfile): Likewise. - * malloc/tst-calloc.c: Add tests for one or both parameters being zero. + * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions. -2002-08-07 Roland McGrath <roland@redhat.com> + * io/Makefile (CFLAGS-statfs.c): Add -fexceptions. + (CFLAGS-fstatfs.c): Likewise. + (CFLAGS-statvfs.c): Likewise. + (CFLAGS-fstatvfs.c): Likewise. - * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber, - unrelocated initial value for DTPOFF32 and TPOFF32 relocs. - Reported by Jakub Jelinek <jakub@redhat.com>. +2003-09-01 Ulrich Drepper <drepper@redhat.com> -2002-08-07 Jakub Jelinek <jakub@redhat.com> + * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions. + * posix/unistd.h: Remove __THROW from pathconf, fpathconf, + sysconf. + * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions. + (CFLAGS-pathconf.c): Likewise. + (CFLAGS-fpathconf.c): Likewise. - * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before - division. + * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions. + * misc/fstab.h: Remove all __THROW. + * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions. + (CFLAGS-mntent_r.c): Likewise. + * misc/mntent.h: Remove most __THROW. -2002-08-06 Roland McGrath <roland@redhat.com> + * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions. + (CFLAGS-mkstemp64.c): Likewise. - * include/getopt.h: Put private decls inside [_GETOPT_H]. - Use libc_hidden_proto for getopt_long, getopt_long_only. - * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h". - Add libc_hidden_def. + * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation + around call to exec_comm. + * posix/wordexp.h: Remove __THROW from wordexp. + * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions. - * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr): - Define as a macro for __dl_iterate_phdr. + * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use + not-cancelable functions. - * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name, - made static. Add __ name as a strong alias. - (internal_endnetgrent): Likewise. - (internal_getnetgrent_r): Likewise. + * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions. + (CFLAGS-iofopen.c): Likewise. + (CFLAGS-iofopen64.c): Likewise. - * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions - with no __ prefix. - * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l. - * ctype/ctype.h [__USE_GNU]: Add declarations and macros for - all *_l functions with no __ prefix. - * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns. - * ctype/ctype_l.c: Likewise. - * locale/nl_langinfo.c: Likewise. - * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __. - * stdlib/stdlib.h [__USE_GNU]: Likewise. - * wcsmbs/wchar.h [__USE_GNU]: Likewise. - * wctype/wctype.h [__USE_GNU]: Likewise. - * string/strcoll_l.c (strcoll_l): Define as weak alias. - * string/strxfrm_l.c (strxfrm_l): Define as weak alias. - * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias. - * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias. - * stdlib/strtod_l.c (strtod_l): Define as weak alias. - * stdlib/strtof_l.c (strtof_l): Define as weak alias. - * stdlib/strtold_l.c (strtold_l): Define as weak alias. - * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias. - (__wcscasecmp_l): Add libc_hidden_def. - * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias. - (__wcsncasecmp_l): Add libc_hidden_def. - * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias. - * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias. - * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias. - * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias. - * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias. - * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias. - * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias. - * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias. - * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias. - * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias. - * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias. - * wctype/wctrans_l.c (wctrans_l) Define as weak alias. - * wctype/towctrans_l.c (towctrans_l) Define as weak alias. - * wctype/wctype_l.c (wctype_l) Define as weak alias. - -2002-08-05 Roland McGrath <roland@redhat.com> - - * include/rpc/auth.h: Use libc_hidden_proto for getnetname, - netname2user, host2netname, user2netname, key_gendes. - * sunrpc/netname.c: Add libc_hidden_def. - * sunrpc/key_call.c: Likewise. + * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output + functions. + * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions. + * stdlib/fmtmsg.h: Remove __THROW from fmtmsg. - * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo, - freeaddrinfo. - * inet/getnameinfo.c: Add libc_hidden_def. - * sysdeps/generic/getaddrinfo.c: Likewise. - * sysdeps/posix/getaddrinfo.c: Likewise. + * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt. + * login/Makefile (CFLAGS-getpt.c): Add -fexceptions. - * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset. - * wcsmbs/wmemchr.c: Add libc_hidden_def. - * wcsmbs/wmemset.c: Add libc_hidden_def. +2003-09-01 Thorsten Kukuk <kukuk@suse.de> - * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H. - (index, rindex): Define as macros for strchr, strrchr. + * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return + NSS_STATUS_SUCCESS if entry was found. + (getspent_next_file): Store user in blacklist after entry + was found, use innetgr. - * string/envz.c (envz_strip): index -> strchr +2003-09-01 Jakub Jelinek <jakub@redhat.com> - * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply. - * sunrpc/rpc_prot.c: Add libc_hidden_def. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New. - * include/wchar.h: Use libc_hidden_proto for mbrtowc. - * wcsmbs/mbrtowc.c: Add libc_hidden_weak. + * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset + computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for + DTV_AT_TP, optimize. - * include/stdlib.h: Use libc_hidden_proto for wctomb. - * stdlib/wctomb.c: Add libc_hidden_def. +2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp> - * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af, - rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror. - * resolv/herror.c: Likewise. - * inet/rcmd.c: Add libc_hidden_def. - * inet/ruserpass.c: Likewise. - * inet/getnetgrent_r.c: Likewise. + * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and + posix_fallocate64 at GLIBC_2.3.3. + * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define. + (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise. - * include/rpc/svc.h: Use libc_hidden_proto for svc_register, - svc_unregister, remove *_internal decls. Use libc_hidden_proto - for svcerr_auth, svcerr_noprog, svcerr_progvers. - * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to - libc_hidden_def. - (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def. - * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register. +2003-08-08 H.J. Lu <hongjiu.lu@intel.com> - * sysdeps/posix/system.c (do_system): New function, guts broken out of - __libc_system. - (__libc_system): Call it, putting just the line == NULL test here. + * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_ + functions. - * include/libc-symbols.h (__hidden_proto): Add extern keywords so - variables work right. +2003-08-31 Ulrich Drepper <drepper@redhat.com> - * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext. - * elf/dl-close.c (_dl_close): Likewise. + * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function. + Code by Richard Henderson. - * include/netinet/in.h: Use libc_hidden_proto for bindresvport, - in6addr_any, in6addr_loopback. Remove decls for - bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal. - * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport. - * sunrpc/svc_tcp.c (svctcp_create): Likewise. - * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise. - * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def. - * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def. - * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for - in6addr_loopback. - * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any. - - * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r, - ether_aton_r. - * inet/ether_aton_r.c: Add libc_hidden_def. - * inet/ether_ntoa_r.c: Likewise. - - * include/rpc/svc.h: Use libc_hidden_proto for xprt_register, - xprt_unregister. - * sunrpc/svc.c: Add libc_hidden_def. - * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport, - pmap_set, pmap_unset. - * sunrpc/pmap_clnt.c: Add libc_hidden_def. - * sunrpc/pm_getport.c: Likewise. - * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey. - * sunrpc/publickey.c: Add libc_hidden_def. - -2002-08-05 Ulrich Drepper <drepper@redhat.com> - - * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for - the other memset call in this function. - - * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer - at correct index. Clear BSS region now that memalign is used. - -2002-08-05 Roland McGrath <roland@redhat.com> - - * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname. - * sysdeps/generic/uname.c: Add libc_hidden_def. - * sysdeps/mach/hurd/uname.c: Likewise. - -2002-08-05 Jakub Jelinek <jakub@redhat.com> - - * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll, - wcspbrk): Add libc_hidden_proto. - * time/strftime.c (my_strftime): Add libc_hidden_def. - (strftime): Remove libc_hidden_def. - * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def. - * wcsmbs/wcspbrk.c (wcspbrk): Likewise. - * wcsmbs/wcsspn.c (wcsspn): Likewise. - * wcsmbs/wcscmp.c (wcscmp): Likewise. - * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak. - * wcsmbs/wcscoll.c (wcscoll): Likewise. - - * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd, - __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset, - __rpc_thread_createerr): Add libc_hidden_proto. - * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd, - __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset, - __rpc_thread_createerr): Add libc_hidden_def. - - * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror, - clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto. - * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror, - clnt_perror, clnt_sperror): Add libc_hidden_def. - * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise. - - * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add - libc_hidden_proto. - * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto. - * sunrpc/des_soft.c (des_setparity): Likewise. +2003-08-31 Philip Blundell <philb@gnu.org> - * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk): - Add libc_hidden_proto. - * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk): - Add libc_hidden_def. + * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and + posix_fallocate64 at GLIBC_2.3.3. -2002-08-05 Roland McGrath <roland@redhat.com> +2003-08-31 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member - `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'. - * elf/rtld.c (dl_main): Set it to the new dtv for the main thread. - * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the - dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the - old data, abandoning the original memory allocated by rtld at startup, - instead of calling realloc normally. + * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET. + * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp. -2002-08-05 Ulrich Drepper <drepper@redhat.com> +2003-08-30 Jakub Jelinek <jakub@redhat.com> - * po/fr.po: Update from translation team. + * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define. + * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be + included multiple times. + * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass + ptid, tls, ctid arguments to the kernel. + * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize): + Use INTERNAL_SYSCALL instead of __syscall_getpagesize. + * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c + (__libc_sigaction): Use INLINE_SYSCALL instead of + __syscall_rt_sigaction. + * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list + (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek, + __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid, + __syscall_setgroups, __syscall_setregid, __syscall_setreuid, + __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction, + __syscall_rt_sigpending, __syscall_rt_sigprocmask, + __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend, + __syscall_rt_sigtimedwait): Remove unneeded syscall stubs. + * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines): + Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, + rt_sigqueueinfo, rt_sigaction and rt_sigpending. + * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h + (__CLONE_SYSCALL_STRING): Define. + * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add + CFI directives. + * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h + (__CLONE_SYSCALL_STRING): Define. + * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL): + Define. + * sysdeps/unix/sysv/linux/sparc/system.c: New file. -2002-08-04 Roland McGrath <roland@redhat.com> +2003-08-30 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/make-syscalls.sh: If the syscall name field is - - then generate a dummy module under the given name, obeying the - normal rules for the "caller" field. + * sunrpc/rpc/clnt.h: Remove a few __THROW. + * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions. + (CFLAGS-key_call.c): Likewise. + (CFLAGS-pmap_rmt.c): Likewise. + (CFLAGS-clnt_perr.c): Likewise. + * sunrpc/rpc/auth.h: Remove serveral __THROW. - * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop - actually iterate over the elements. Fix typo p_type -> p_vaddr. + * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions. + (CFLAGS-gethstbynm_r.c): Likewise. + (CFLAGS-gethstbynm2_r.c): Likewise. + (CFLAGS-rcmd.c): Likewise. + * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions. - * include/pthread.h: Don't declare __pthread_initialize_minimal as - weak here; we declare it weak or strong in the one place we use it. - * sysdeps/generic/libc-start.c: ... which is here. - Don't make the decl weak if [USE_TLS], since static programs need TLS - setup even when single-threaded. + * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions. + (CFLAGS-argp-fmtstream.c): Likewise. + * argp/argp.h: Remove a number of __THROW. - * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command. + * misc/sys/syslog.h (vsyslog): Remove __THROW. - * elf/Makefile (test-srcs): Add $(modules-names) to it. - (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c, - CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove - all these variables. + * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions. + * misc/getpass.c (getpass): Add cleanup handler to ensure the + stream is closed even if the thread is canceled. + (call_fclose): New function. + * posix/unistd.h: Remove __THROW from getpass prototype. -2002-08-04 Ulrich Drepper <drepper@redhat.com> + * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions. - * include/stdio.h: Don't define macro magic to redirect function - calls if _ISOMAC is defined. + * signal/signal.h (psignal): Remove __THROW. + * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions. - * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined - ldouble asin tests. + * misc/Makefile (CFLAGS-error.c): Define. + * misc/error.c (error): Disable cancellation handling around the + actual output. The message should in any case be printed. + (error_at_line): Likewise. -2002-08-04 Roland McGrath <roland@redhat.com> + * misc/error.h: Protect parameter names with leading __. - * stdlib/lrand48_r.c: Add libc_hidden_def. +2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca> - * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the - TCB with __libc_memalign instead of mmap. - (_dl_deallocate_tls): Free it with free instead of munmap. + * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop. - * Makerules (cpp-srcs-left): When setting this to run - cppflags-iterator.mk, must append .c to $(tests) and $(xtests) - words. Combine the two loops into one on the concatenated list, - including those as well as $(test-srcs). +2003-08-29 Jakub Jelinek <jakub@redhat.com> - * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here, - since we align here with optimally minimal waste anyway. - (malloc): Just call that. + * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the + end. - * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to - the right variable. +2003-08-29 Ulrich Drepper <drepper@redhat.com> - * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset, - to compute memory location for l_tls_initimage. - * elf/rtld.c (_dl_start): Likewise. - * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise. + * libio/stdio.h: Remove a few more __THROW. - * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT, - because the .d file is generated in the non-shared case and - so fails to catch them otherwise. - - * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function, - split out of _dl_allocate_tls. - (_dl_allocate_tls_init): Likewise. - (_dl_allocate_tls): Call those. - * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden. - * elf/rtld.c (dl_main): Call them separately instead of calling - _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation - is finished, so that the initializer data has been relocated before we - copy it into the main thread's TLS block. - - * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in - loop conditions, prevented the last used module from being initialized. - -2002-08-04 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def - if glob resp. globfree are not macros. - * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def. - * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64): - Add libc_hidden_ver. - * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add - libc_hidden_def. - * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver - instead of libc_hidden_weak. - * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use - libc_hidden_ver instead of libc_hidden_def. - * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use - libc_hidden_ver instead of libc_hidden_def. - (wcstoll, wcstoq): Remove libc_hidden_weak. - * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add - libc_hidden_ver. - * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add - libc_hidden_ver. - * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add - libc_hidden_ver. - * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add - libc_hidden_ver. - -2002-08-04 Ulrich Drepper <drepper@redhat.com> - - * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT - to access _sys_siglist. - * string/strsignal.c: Likewise. - * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias. - * sysdeps/gnu/siglist.c: Likewise. - * sysdeps/unix/siglist.c: Likewise. - * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise. - - * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps. - - * libio/wfileops.c: Add missing INTUSE for _IO_file_close. - - * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden - alias and use it. - * intl/bindtextdom.c: Use _nl_default_dirname_internal. - - * include/netinet/in.h: Add declaration of in6addr_loopback_internal. - * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback. - * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access. - - * include/time.h: Add libc_hidden_proto for __gmtime_r. - * time/gmtime.c (__gmtime_r): Add libc_hidden_def. - - * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db, - and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db, - and __gconv_get_cache respectively. - * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and - defined static. Change all users. - (__gconv_get_cache): New function. - * iconv/gconv_db.c (__gconv_get_modules_db): New function. - (__gconv_get_alias_db): New function. - * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden. - (__conv_modules_db): Likewise. - Add prototypes for __gconv_get_cache, __gconv_get_modules_db, - and __gconv_get_alias_db. - * iconv/iconv_prog.c: Use the new functions instead of accessing the - variables. +2003-08-29 Jakub Jelinek <jakub@redhat.com> - * include/stdlib.h: Add prototype and libc_hidden_proto for - __default_morecore. - * sysdeps/generic/morecore.c: Include <stdlib.h>. - - * malloc/obstack.c: Remove fputs macro. - - * malloc/mtrace.c: Remove fopen macro. - -2002-08-04 Jakub Jelinek <jakub@redhat.com> - - * manual/debug.texi: Fix spelling to programmatically. - Reported by <hayastan132@hotmail.com>. - -2002-08-04 Ulrich Drepper <drepper@redhat.com> - - * include/libio.h: Add libc_hidden_proto for __uflow. - * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and - fgetpos to _IO_* names. - Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked, - fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked. - * include/wchar.h: Add libc_hidden_proto for fputws_unlocked, - putwc_unlocked, vswscanf. - * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs. - * libio/fileno.c: Use <stdio.h> and libc_hidden_def. - * libio/fseek.c: Likewise. - * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and - not fopencookie. - * libio/genops.c (__uflow): Add libc_hidden_def. - * libio/iofflush_u.c (fflush_unlocked): Likewise. - * libio/iofgets_u.c (fgets_unlocked): Likewise. - * libio/iofputs_u.c (fputs_unlocked): Likewise. - * libio/iofputws_u.c (fputws_unlocked): Likewise. - * libio/iofread_u.c (fread_unlocked): Likewise. - * libio/iofwrite_u.c (fwrite_unlocked): Likewise. - * libio/iovswscanf.c (vswscanf): Likewise. - * libio/putwc_u.c (putwc_unlocked): Likewise. - * libio/iofputs.c: Use libc_hidden_def instead of INTDEF. - * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite. - * malloc/mtrace.c: Likewise. + * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c, + fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c, + getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c, + iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c, + iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c, + iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c, + ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c, + oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c, + oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c, + putwchar.c and rewind.c with exceptions. + * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock, + _IO_release_lock): Define. + * libio/fileops.c (_IO_new_file_underflow): Use it. + * libio/fputc.c (fputc): Likewise. + * libio/fputwc.c (fputwc): Likewise. + * libio/freopen64.c (freopen64): + * libio/freopen.c (freopen): Likewise. + * libio/fseek.c (fseek): Likewise. + * libio/fseeko64.c (fseeko64): Likewise. + * libio/fseeko.c (fseeko): Likewise. + * libio/ftello64.c (ftello64): Likewise. + * libio/ftello.c (ftello): Likewise. + * libio/fwide.c (fwide): Likewise. + * libio/getc.c (_IO_getc): Likewise. + * libio/getchar.c (getchar): Likewise. + * libio/getwc.c (_IO_getwc): Likewise. + * libio/getwchar.c (getwchar): Likewise. + * libio/iofclose.c (_IO_new_fclose): + * libio/iofflush.c (_IO_fflush): Likewise. + * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise. + * libio/iofgetpos.c (_IO_new_fgetpos): Likewise. + * libio/iofgets.c (_IO_fgets): Likewise. + * libio/iofgetws.c (fgetws): Likewise. + * libio/iofputs.c (_IO_fputs): Likewise. + * libio/iofputws.c (fputws): Likewise. + * libio/iofread.c (_IO_fread): Likewise. + * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise. + * libio/iofsetpos.c (_IO_new_fsetpos): Likewise. + * libio/ioftell.c (_IO_ftell): Likewise. + * libio/iofwrite.c (_IO_fwrite): Likewise. + * libio/iogetdelim.c (_IO_getdelim): Likewise. + * libio/iogets.c (_IO_gets): Likewise. + * libio/ioputs.c (_IO_puts): Likewise. + * libio/ioseekoff.c (_IO_seekoff): Likewise. + * libio/ioseekpos.c (_IO_seekpos): Likewise. + * libio/iosetbuffer.c (_IO_setbuffer): Likewise. + * libio/iosetvbuf.c (_IO_setvbuf): Likewise. + * libio/ioungetc.c (_IO_ungetc): Likewise. + * libio/ioungetwc.c (ungetwc): Likewise. + * libio/oldiofclose.c (_IO_old_fclose): Likewise. + * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise. + * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise. + * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise. + * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise. + * libio/peekc.c (_IO_peekc_locked): Likewise. + * libio/putc.c (_IO_putc): Likewise. + * libio/putchar.c (putchar): Likewise. + * libio/putwc.c (putwc): Likewise. + * libio/putwchar.c (putwchar): Likewise. + * libio/rewind.c (rewind): Likewise. + * libio/wfileops.c (_IO_wfile_underflow): Likewise. + +2003-08-29 Ulrich Drepper <drepper@redhat.com> + + * signal/signal.h: sighold, sigrelse, sigignore, sigset were + available in XPG4.2. + +2003-08-27 Phil Knirsch <pknirsch@redhat.com> + Jakub Jelinek <jakub@redhat.com> - * sunrpc/clnt_perr.c: Remove fputs macro. - * sunrpc/svc_simple.c: Likewise. - * sunrpc/svc_tcp.c: Likewise. - * sunrpc/svc_udp.c: Likewise. - * sunrpc/xdr_rec.c: Likewise. - * sunrpc/xdr_ref.c: Likewise. - - * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for - iconv_prog, linereader, and charmap-dir. - * locale/Makefile: Likewise for locale and charmap-dir. - * malloc/Makefile: Likewise for memusagestat. - * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log. - * sunrpc/Makefile: Likewise for rpc_main. - * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4. - * timezone/Makefile: Likewise for zic. - - * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked. - - * elf/dl-addr.c (_dl_addr): Add libc_hidden_def. - * elf/dl-close.c (_dl_close): Add libc_hidden_def. - * elf/dl-open.c (_dl_open): Add libc_hidden_def. - * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open, - _dl_close. - - * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow, - __wunderflow. - * libio/genops.c (__underflow): Add libc_hidden_def. - * libio/wgenops.c (__wuflow): Likewise. - (__wunderflow): Likewise. - - * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk. - * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def. - - * include/stdio.h: Add libc_hidden_proto for __vfscanf. - * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def. - - * include/string.h: Add libc_hidden_proto for __strverscmp. - * string/strverscmp.c (__strverscmp): Add libc_hidden_def. - - * include/unistd.h: Add libc_hidden_proto for __sysconf. - * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def. - * sysdeps/posix/sysconf.c: Likewise. - * sysdeps/unix/sysv/irix4/sysconf.c: Likewise. - * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise. - - * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l, - __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l, - __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l, - __iswxdigit_l, __towlower_l, __towupper_l. - * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def. - * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions. - - * include/sys/wait.h: Add libc_hidden_proto for __xmknod. - * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def. - * sysdeps/mach/hurd/xmknod.c: Likewise. - * sysdeps/unix/xmknod.c: Likewise. - * sysdeps/unix/sysv/linux/xmknod.c: Likewise. - * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise. - * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise. + * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit + big endian arches. Don't read beyond end of fds_bits array. - * sunrpc/svc.c: Add missing INTUSE for _authenticate. - -2002-08-03 Roland McGrath <roland@redhat.com> - - * include/sys/resource.h: Use libc_hidden_proto for getpriority, - setpriority. - * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def. - * sysdeps/unix/sysv/irix4/getpriority.c: Likewise. - * sysdeps/unix/sysv/irix4/setpriority.c: Likewise. - * sysdeps/mach/hurd/setpriority.c: Likewise. - * sysdeps/mach/hurd/getpriority.c: Likewise. - * sysdeps/generic/setpriority.c: Likewise. - * sysdeps/generic/getpriority.c: Likewise. - - * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all. - * malloc/mcheck.c: Add libc_hidden_def. - - * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r. - * misc/hsearch_r.c: Add libc_hidden_def. - - * include/fnmatch.h: Use libc_hidden_proto for fnmatch. - * posix/fnmatch.c: Add libc_hidden_weak. - - * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr, - execl, execle, execlp, execvp, getpid, getsid. - * sysdeps/generic/alarm.c: Add libc_hidden_def. - * sysdeps/unix/alarm.c: Likewise. - * posix/confstr.c: Likewise. - * posix/execvp.c: Likewise. - * posix/execlp.c: Likewise. - * posix/execle.c: Likewise. - * posix/execl.c: Likewise. - * sysdeps/generic/getsid.c: Likewise. - * sysdeps/mach/hurd/getsid.c: Likewise. - * sysdeps/generic/getpid.c: Add libc_hidden_weak. - * sysdeps/mach/hurd/getpid.c: Likewise. - - * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r, - qecvt_r, qfcvt_r, lrand48_r. - * misc/efgcvt_r.c: Add libc_hidden_def. - - * include/wordexp.h: Use libc_hidden_proto for wordfree. - * sysdeps/generic/wordexp.c: Add libc_hidden_def. - - * include/langinfo.h: Use libc_hidden_proto for nl_langinfo. - * locale/nl_langinfo.c: Add libc_hidden_def. - - * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64. - * sysdeps/generic/glob.c: Add libc_hidden_def. - * sysdeps/generic/glob64.c: Likewise. - * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak. - - * locale/nl_langinfo.c: Use _NL_CURRENT_DATA. - - * elf/Makefile (CFLAGS-vismod2.c): New variable. - - * locale/setlocale.c (_nl_current_names): Variable moved ... - * locale/localename.c (_nl_current_names): ... here, new file. - Make it global, with attribute_hidden. - * locale/localeinfo.h: Declare it. - * locale/Makefile (aux): Add localename. - * locale/localename.c (__current_locale_name): New function. - * include/locale.h (__current_locale_name): Declare it. - * intl/dcigettext.c (guess_category_value): Use that instead of - calling setlocale. - - * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t. - [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls. - [__USE_GNU] (LC_GLOBAL_LOCALE): New macro. - * locale/newlocale.c: Add alias to __ name. - * locale/duplocale.c: Likewise. - * locale/freelocale.c: Likewise. - * locale/uselocale.c: New file. - * locale/Makefile (routines): Add it. - * locale/Versions (libc: GLIBC_2.3): New set. - Add newlocale, duplocale, freelocale, uselocale. - (libc: GLIBC_PRIVATE): Add __uselocale. - - * locale/localeinfo.h [SHARED] - (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value. - (_NL_CURRENT_DATA): Define using that. - (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that. - (_NL_CURRENT_DEFINE): Define to empty. - [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current - conditionalized on this. - * locale/xlocale.c (NL_C_INTIIALIZER): New macro, - taking initializer of _nl_C_locobj. - [SHARED] (_nl_global_locale): New variable, using that initializer. - (_nl_C_locobj): Use new macro for initialzier. - * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this. - [! SHARED] (CATEGORY_USED): New macro. - [SHARED] (CATEGORY_USED, _nl_C): New macros. - (setdata, setlocale): Use that macro instead of examining _nl_current. - (setdata): Set the slot in _nl_global_locale. - Conditionalize setting of _nl_current on [! SHARED]. - * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of - declaration as an extern. - * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C. - - * include/locale.h: Use libc_hidden_proto for setlocale. - * locale/setlocale.c: Add libc_hidden_def. - - * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA. - - * include/search.h: Use libc_hidden_proto for hsearch_r, lfind. - * misc/hsearch_r.c: Add libc_hidden_def. - * misc/lsearch.c: Likewise. - - * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent, - endttyent. - * misc/getttyent.c: Add libc_hidden_def. - - * include/mcheck.h: Use libc_hidden_proto for mcheck. - * malloc/mcheck.c: Add libc_hidden_def. - - * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove. - * include/argz.h: Use libc_hidden_proto for argz_delete. - * string/argz-delete.c: Add libc_hidden_def. - * string/envz.c: Likewise. Use <envz.h>, not "envz.h". - - * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use - HIDDEN_JUMPTARGET for _exit. - * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise. - * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise. - * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise. - * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def. - - * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__]. - [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty. - [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro. - * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit. - - * include/stdlib.h: Use libc_hidden_proto for abort, - __strtof_internal, __strtod_internal, __strtold_internal, - __strtol_internal, __strtoll_internal, __strtoul_internal, - __strtoull_internal. __strtof_l_internal, __strtod_l_internal, - __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal, - __strtoul_l_internal, __strtoull_l_internal. - * include/wchar.h: Use libc_hidden_proto for __wcstof_internal, - __wcstod_internal, __wcstold_internal, __wcstol_internal, - __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal, - ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal, - ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l, - __wcsncasecmp_l. - * sysdeps/generic/abort.c: Add libc_hidden_def. - * stdlib/strtod.c: Likewise. - * sysdeps/generic/strtol.c: Likewise. - * sysdeps/wordsize-64/strtol.c: Likewise. - * sysdeps/wordsize-64/wcstol.c: Likewise. - * sysdeps/wordsize-64/wcstol_l.c: Likewise. - - * include/stdlib.h: Use libc_hidden_proto for qsort. - * stdlib/msort.c: Add libc_hidden_def. - - * include/utime.h: Use libc_hidden_proto for utime. - * sysdeps/generic/utime.c: Add libc_hidden_def. - * sysdeps/unix/utime.c: Likewise. - - * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset - * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset - * sysdeps/posix/sprofil.c (__sprofil): Likewise. - * shadow/lckpwdf.c (__lckpwdf): Likewise (both). - * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember - - * include/signal.h: Use libc_hidden_proto for raise, sigemptyset, - sigfillset, sigismember, __sigpause, __libc_current_sigrtmin, - and __libc_current_sigrtmax. - * signal/sigismem.c: Add libc_hidden_def. - * signal/sigfillset.c: Likewise. - * signal/sigempty.c: Likewise. - * sysdeps/generic/sigpause.c (__sigpause): Likewise. - * sysdeps/posix/sigpause.c (__sigpause): Likewise. - * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise. - * sysdeps/posix/raise.c: Likewise. - * sysdeps/generic/raise.c: Likewise. - -2002-08-03 Ulrich Drepper <drepper@redhat.com> - - * include/string.h: Use libc_hidden_proto for __stpcpy. - * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def. - * sysdeps/alpha/alphaev67/stpcpy.S: Likewise. - * sysdeps/generic/stpcpy.c: Likewise. - * sysdeps/i386/stpcpy.S: Likewise. - * sysdeps/i386/i586/stpcpy.S: Likewise. - * sysdeps/powerpc/stpcpy.S: Likewise. - * sysdeps/sparc/sparc32/stpcpy.S: Likewise. - * sysdeps/sparc/sparc64/stpcpy.S: Likewise. +2003-04-27 Bruno Haible <bruno@clisp.org> - * include/string.h: Use libc_hidden_proto for __strcasecmp_l, - __strncasecmp_l, __strdup, __strndup, __strerror_r. - * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add - libc_hidden_def. - * string/strdup.c (__strdup): Likewise. - * string/strndup.c (__strndup): Likewise. - * sysdeps/generic/_strerror.c (__strerror_r): Likewise. - * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise. - -2002-08-03 Jakub Jelinek <jakub@redhat.com> - - * include/libio.h: New file. - * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto. - * libio/iolibio.h: #include <libio.h>, not "libio.h". - * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto. - * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases. - * sysdeps/unix/common/syscalls.list: Likewise. - * sysdeps/unix/inet/syscalls.list: Likewise. - * sysdeps/unix/sysv/irix4/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/syscalls.list: Likewise. - * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise. - * sysdeps/unix/syscalls.list: Likewise. + * manual/message.texi (Advanced gettext functions): Add information + about Korean, Portuguese, Latvian. Gaeilge is also known as Irish. + Add section about Lithuanian, reported by Ricardas Cepas + <rch@richard.eu.org>. + Add information about Croatian. + Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>. + Remove remark about continuation lines that is not true for PO files. + Fix formula for Slovenian, reported by Roman Maurer + <roman.maurer@amis.net>. -2002-08-03 Jakub Jelinek <jakub@redhat.com> - Ulrich Drepper <drepper@redhat.com> +2003-08-27 Ulrich Drepper <drepper@redhat.com> - * malloc/malloc.c (public_cALLOc): Only divide if at least one of - the arguments is big enough to cause an overflow. + * math/math_private.h: Declare __copysignf. + * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of + copysignf. -2002-08-03 Ulrich Drepper <drepper@redhat.com> + * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf, + __signbit, and __signbitl inline functions. - * assert/assert.c: Use hidden_def not INTDEF. + * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use + HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit(). -2002-08-03 Jakub Jelinek <jakub@redhat.com> + * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp. + * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp. - * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is - not defined. +2003-08-27 Jakub Jelinek <jakub@redhat.com> -2002-08-03 Roland McGrath <roland@redhat.com> + * inet/inet_mkadr.c (inet_makeaddr): Optimize. - * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog. - * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn, - verr, verrx. - * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch. - * misc/syslog.c: Add libc_hidden_def. - * misc/err.c: Likewise. - * stdlib/exit.c: Likewise. - * stdlib/bsearch.c: Likewise. - * sysdeps/generic/getenv.c: Likewise. +2003-08-27 Ulrich Drepper <drepper@redhat.com> - * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__]. + * include/stdio.h: Add declarations for __builtin_fwrite and + __builtin_fwrite_unlocked. - * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or - libc_hidden_weak for every system call symbol defined. +2003-08-27 Jakub Jelinek <jakub@redhat.com> - * include/time.h: Use libc_hidden_proto for time, asctime, mktime, - timelocal, localtime, strftime. - * time/asctime.c: Add libc_hidden_def. - * time/mktime.c: Likewise. - * time/localtime.c: Likewise. - * time/strftime.c: Likewise. - * time/strptime.c: Likewise. - * sysdeps/generic/time.c: Likewise. - * sysdeps/unix/time.c: Likewise. - * sysdeps/unix/sysv/i386/time.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise. + * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64 + fits into allocation. Add padding on 32-bit arches so that + dirp->data is enough aligned for struct dirent64. + Avoid clearing of the buffer, just clear DIR structure. - * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton. - inet_makeaddr, inet_netof, inet_addr, __inet_addr. - * resolv/inet_ntop.c: Likewise. - * resolv/inet_pton.c: Likewise. - * inet/inet_mkadr.c: Add libc_hidden_def. - * inet/inet_netof.c: Likewise. - * resolv/inet_addr.c: Likewise. +2003-08-26 Ulrich Drepper <drepper@redhat.com> - * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE' - clauses from conditionals for now. Will have to be fixed later - for older compilers. + * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function. + * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function. - * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn. +2003-08-26 Steven Munroe <sjmunroe@us.ibm.com> -2002-08-02 Ulrich Drepper <drepper@redhat.com> + * sysdeps/powerpc/powerpc64/elf/Makefile: New file. - * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for - broken alias attribute handling. - * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add. +2003-08-26 Jakub Jelinek <jakub@redhat.com> -2002-08-02 Roland McGrath <roland@frob.com> + * login/programs/utmpdump.c (print_entry): Cast tv_usec to long + to match format string. + * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add + __old_buf. + (__new_semctl): Shut up warning. + * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h + (_dl_string_hwcap): Add __attribute__ ((always_inline)). - * elf/Makefile ($(objpfx)interp.os): Depend on config.make, - since it sets the variables we use in a -D switch. +2003-08-26 Jakub Jelinek <jakub@redhat.com> -2002-08-02 Roland McGrath <roland@redhat.com> + * elf/ldconfig.c (search_dir): When checking for GNU-style .so + link file use the real file name, not the resolved name we got by + following the symlinks. - * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX. - On 32-bit platforms they are the same; on 64-bit platforms ssize_t - matches long int, not int. +2003-08-25 Ulrich Drepper <drepper@redhat.com> - * locale/localeinfo.h (_NL_CURRENT_DATA): New macro. - * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it. - * locale/lc-ctype.c (_nl_postload_ctype): Likewise. - * wctype/wctrans.c (wctrans): Likewise. - * wctype/wctype.c (__wctype): Likewise. - * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT. + * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field + if the object size is large enough. -2002-08-02 Ulrich Drepper <drepper@redhat.com> +2003-08-25 Jakub Jelinek <jakub@redhat.com> - * assert/assert.c (__assert_fail): Fix typo in comment. + * elf/ldconfig.c (search_dir): Treat symlink as regular file + if it won't point to itself unless it is .so symlink for the linker. - * include/rpc/rpc.h: Declare RPC_VARS tsd as extern. - * sunrpc/rpc_thread.c: Define it without static. - * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS. +2003-08-25 Ulrich Drepper <drepper@redhat.com> -2002-08-02 Jakub Jelinek <jakub@redhat.com> + * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't + use _mode if _IO_fwide_maybe_incompatible. + * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after + the compatibility test. - * assert/assert.c (__assert_fail): Remove undef. - Replace INTDEF with libc_hidden_def. - * assert/__assert.c (__assert): Remove INTUSE. - * elf/dl-minimal.c (__assert_fail): Replace INTDEF with - libc_hidden_weak. - * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak, - hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak, - libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak, - rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak, - libm_hiden_ver): Define. - * include/assert.h (__assert_fail_internal): Remove. - (__assert_fail): Add prototype. Add hidden_proto. - * include/libc-internal.h (__libc_freeres, __profile_frequency): Add - libc_hidden_proto. - * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove. - (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros. - * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp): - Add libc_hidden_proto. - * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open, - __fcntl): Add libc_hidden_proto. Remove macros. - (__open_internal, __fcntl_internal): Remove. - * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl. - * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def. - * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add - libc_hiden_proto. - * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add - libc_hidden_def. - * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef. - Add libc_hidden_def. - * sysdeps/generic/open64.c (__open64): Add libc_hidden_def. - * sysdeps/generic/open.c (__open): Remove undef. - Add libc_hidden_def. Remove INTDEF. - * sysdeps/generic/fcntl.c (__fcntl): Remove undef. - Add libc_hidden_def. - * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise. - * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def. - * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise. - * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef. - (__fcntl): Remove INTDEF2. Add libc_hidden_weak. - (__libc_fcntl): Add libc_hidden_def. - * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef. - (__open): Remove INTDEF2. Add libc_hidden_weak. - (__libc_open): Add libc_hidden_def. - * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak. - * sysdeps/standalone/open.c (__open): Add libc_hidden_def. - * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef. - Add libc_hidden_def. - * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef. - Add libc_hidden_def. - * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove - undef. - (__fcntl): Remove INTDEF2. Add libc_hidden_weak. - (__libc_fcntl): Add libc_hidden_def. - * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal, - __getpgid_internal, __chown_internal): Remove. - (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe, - __GI___sched_setscheduler, __GI___select, __GI___setpgid, - __GI___chown): Add. - * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal, - __getpid_internal, __open_internal, __write_internal): Remove. - (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open, - __GI___chown, __GI___close, __GI___dup2, __GI___getpid, - __GI___libc_open, __GI___open, __GI___read, __GI___libc_read, - __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add. - * wcsmbs/mbrlen.c (__mbrlen): Remove undef. - Replace INTDEF with libc_hidden_def. - * wcsmbs/mbrtowc.c (__mbrtowc): Likewise. - * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto. - * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def. - * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto. - * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr): - Add libc_hidden_proto. - * include/sys/poll.h (__poll): Add libc_hidden_proto. - * include/sys/select.h (__select): Likewise. - * include/sys/socket.h (__send): Likewise. - * include/sys/statfs.h (__statfs): Likewise. - * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2, - __getpid, __getpgid, __setpgid, __close, __read, __write, - __getpagesize, __sbrk): Likewise. - (__chown_internal, __dup2_internal, __getpid_internal, - __getpgid_internal, __close_internal, __write_internal, - __getpagesize_internal): Remove. - (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write): - Remove macros. - * include/printf.h (__printf_fp): Add libc_hidden_proto. - * include/sched.h (__sched_setscheduler): Likewise. - * include/resolv.h (__res_ninit, __res_randomid): Likewise. - * include/stdlib.h (__secure_getenv): Likewise. - * include/signal.h (__sigaction, __sigsuspend): Likewise. - * inet/getaliasent_r.c (NSS_attribute_hidden): Remove. - * inet/getaliasname_r.c (NSS_attribute_hidden): Remove. - * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove. - * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove. - * inet/getnetent_r.c (NSS_attribute_hidden): Remove. - * inet/getproto_r.c (NSS_attribute_hidden): Remove. - * inet/getprtent_r.c (NSS_attribute_hidden): Remove. - * inet/getprtname_r.c (NSS_attribute_hidden): Remove. - * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove. - * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove. - * inet/getrpcent_r.c (NSS_attribute_hidden): Remove. - * inet/getservent_r.c (NSS_attribute_hidden): Remove. - * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove. - * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove. - * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE. - * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise. - * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise. - * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise. - * libio/genops.c (__overflow): Add libc_hidden_def. - * libio/iovdprintf.c: Remove libio.h include. - * libio/libioP.h (libc_hidden_proto, libc_hidden_def, - libc_hidden_weak): Define to nothing if not defined. - (__overflow, __woverflow): Add libc_hidden_proto. - * libio/wgenops.c (__woverflow): Add libc_hidden_def. - * nss/getXXent_r.c (NSS_attribute_hidden): Remove. - (DB_LOOKUP_FCT): Add libc_hidden_proto. - * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove. - (DB_LOOKUP_FCT): Add libc_hidden_proto. - * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto - and libc_hidden_def. - * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF. - * posix/bsd-getpgrp.c (__getpgid_internal): Remove. - (__getpgid): Add libc_hidden_proto. - (__bsd_getpgrp): Remove INTUSE. - * resolv/res_init.c (__res_ninit, __res_randomid): Add - libc_hidden_def. - * shadow/getspent_r.c (NSS_attribute_hidden): Remove. - * shadow/getspnam_r.c (NSS_attribute_hidden): Remove. - * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def. - * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto. - * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def. - * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset, - __rpc_thread_createerr): Add libc_hidden_def. - * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add - libc_hidden_def. - * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise. - * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise. - * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise. - * sysdeps/generic/chown.c (__chown): Likewise. - * sysdeps/generic/close.c (__close): Likewise. - * sysdeps/generic/dup2.c (__dup2): Likewise. - * sysdeps/generic/pipe.c (__pipe): Likewise. - * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise. - * sysdeps/generic/pwrite64.c (__pwrite64): Likewise. - * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise. - * sysdeps/generic/read.c (__libc_read): Likewise. - (__read): Add libc_hidden_weak. - * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def. - * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise. - * sysdeps/generic/select.c (__select): Likewise. - * sysdeps/generic/send.c (__send): Likewise. - * sysdeps/generic/setpgid.c (__setpgid): Likewise. - * sysdeps/generic/sigaction.c (__sigaction): Likewise. - * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise. - * sysdeps/generic/statfs.c (__statfs): Likewise. - * sysdeps/generic/stpncpy.c (__stpncpy): Likewise. - * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise. - * sysdeps/generic/getpagesize.c (__getpagesize): Likewise. - Remove undef and INTDEF. - * sysdeps/generic/getpgid.c (__getpgid): Likewise. - * sysdeps/generic/getpid.c (__getpid): Likewise. - * sysdeps/generic/write.c (__libc_write): Likewise. - (__write): Add libc_hidden_weak. Remove undef and INTDEF. - * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def. - * sysdeps/i386/stpncpy.S (__stpncpy): Likewise. - * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise. - * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF. - * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def. - Remove undef and INTDEF. - * sysdeps/mach/hurd/dup2.c (__dup2): Likewise. - * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise. - * sysdeps/mach/hurd/getpid.c (__getpid): Likewise. - * sysdeps/mach/getpagesize.c (__getpagesize): Likewise. - * sysdeps/mach/hurd/write.c (__libc_write): Likewise. - (__write): Add libc_hidden_weak. Remove undef and INTDEF. - * sysdeps/mach/hurd/pipe.c: Include unistd.h. - (__pipe): Add libc_hidden_def. - * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add - libc_hidden_weak. - * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def. - * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise. - * sysdeps/mach/hurd/read.c (__libc_read): Likewise. - (__read): Add libc_hidden_weak. - * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise. - (__libc_pwrite64): Add libc_hidden_def. - * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise. - * sysdeps/mach/hurd/select.c (__select): Likewise. - * sysdeps/mach/hurd/send.c (__send): Likewise. - * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise. - * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise. - * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise. - * sysdeps/mach/hurd/statfs.c (__statfs): Likewise. - * sysdeps/posix/dup2.c: Likewise. - Remove undef and INTDEF. - * sysdeps/posix/getpagesize.c (__getpagesize): Likewise. - * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def. - (__pwrite64): Add libc_hidden_weak. - * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def. - * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise. - * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise. - * sysdeps/standalone/close.c (__close): Likewise. - * sysdeps/standalone/write.c (__libc_write): Likewise. - (__write): Add libc_hidden_weak. - * sysdeps/standalone/read.c (__read): Likewise. - (__libc_read): Add libc_hidden_def. - * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE. - * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def. - * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise. - * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise. - * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise. - * sysdeps/unix/bsd/poll.c (__poll): Likewise. - * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise. - * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise. - * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid, - __GI___sigaction): Add. - * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def. - * sysdeps/unix/inet/syscalls.list (__GI___send): Add. - * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def. - * sysdeps/unix/sparc/pipe.S (__pipe): Likewise. - * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid, - __GI___setpgid): Add. - * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def. - Remove undef and INTDEF. - * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise. - * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise. - * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def. - * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise. - * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise. - * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise. - * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise. - * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise. - * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise. - * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise. - * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise. - * sysdeps/unix/sysv/aix/select.c (__select): Likewise. - * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise. - * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise. - * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64, - __GI___statfs, __GI___send): Add. - * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add - libc_hidden_ver resp. libc_hidden_def. - * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add - libc_hidden_def. - * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize): - Likewise. Remove undef and INTDEF. - * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def. - * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64, - __GI___statfs, __GI___send): Add. - * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add - libc_hidden_def. - * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): +2003-08-25 Jakub Jelinek <jakub@redhat.com> + + * elf/cache.c (save_cache): Don't write beyond end of file_entries + buffer. + Duplicate last old cache entry if the count would be odd. + +2003-08-25 Andreas Jaeger <aj@suse.de> + + * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of + __LONG_LONG_PAIR to long. + +2003-08-25 Philip Blundell <philb@gnu.org> + + * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define. + (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise. + +2003-08-18 Alfred M. Szmidt <ams@kemisten.nu> + + * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine + and use __libc_cleanup_region_end instead. + +2003-08-25 Ulrich Drepper <drepper@redhat.com> + + * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21. + +2003-08-22 Ulrich Drepper <drepper@redhat.com> + + * io/fcntl.h (posix_fallocate): Change type of third parameter to + off_t. + (posix_fallocate64): Change type of third parameter to off64_t. + * sysdeps/generic/posix_fallocate.c: Adjust for type change. + * sysdeps/posix/posix_fallocate.c: Likewise. + * sysdeps/generic/posix_fallocate64.c: Likewise. + * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility + code for 32-bit platforms. + * sysdeps/unix/sysv/linux/i386/Versions: Add new version for + posix_fallocate64. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise. + +2003-08-19 Ulrich Drepper <drepper@redhat.com> + + * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to + the type, not to name. + + * stdio-common/test-vfprintf.c (main): Don't write temporary file + into source directory. + + * malloc/malloc.c (_int_free): Add cheap test for some invalid + block sizes. + + * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in + syscall name. + +2003-08-18 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error + into EINVAL. + +2003-08-18 H.J. Lu <hongjiu.lu@intel.com> + + * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type. + (elf_machine_lazy_rel): Likewise. + +2003-08-18 Art Haas <ahaas@airmail.net> + + * malloc/malloc.h: Remove unneeded ';' where closing the C++ + extern block. + +2003-08-18 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support + loading big binaries where @gprel(sym) cannot be handled in 'add' + but instead has to be used with 'movl'. + +2003-08-17 Juergen Kreileder <jk@blackdown.de> + Andreas Jaeger <aj@suse.de> + + * sysdeps/x86_64/bits/byteswap.h: New file. + +2003-08-17 Andreas Jaeger <aj@suse.de> + + * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo. + +2003-08-16 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL, + PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define. + * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL, + PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define. + * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL, + ret_ERRVAL, PSEUDO_END_ERRVAL): Define. + * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL, + ret_ERRVAL, PSEUDO_END_ERRVAL): Define. + * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL, + ret_ERRVAL): Define. + * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL, + PSEUDO_END_ERRVAL, ret_ERRVAL): Define. + * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL, + PSEUDO_END_ERRVAL, ret_ERRVAL): Define. + * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL): + Define. + * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL, + PSEUDO_END_ERRVAL, ret_ERRVAL): Define. + * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define. + + * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64, + posix_fadvise64_64): Remove. + * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add + V flag. + * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64): Likewise. - * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise. - * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add - libc_hidden_ver resp. libc_hidden_def. - * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64, - __GI___send): Add. - * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction): - Add libc_hidden_weak. - * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend): - Add libc_hidden_def. - * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add. - * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add - libc_hidden_weak. - * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver - resp. libc_hidden_def. - * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add - libc_hidden_weak. - * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove - INTDEF. - * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize): - Likewise. Remove undef. - * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add - libc_hidden_weak. - * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add. - * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add - libc_hidden_weak. - * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add - libc_hidden_def. - * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize): - Likewise. Remove undef and INTDEF. - * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add - libc_hidden_def. - * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add - libc_hidden_weak. - * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add - libc_hidden_def. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list + (posix_fadvise64): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list + (posix_fadvise64): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list - (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add. - * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add - libc_hidden_weak. - * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend): + (posix_fadvise64): Likewise. + * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64): + Likewise. + * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to... + * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here. + (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation. + (__posix_fadvise64_l32): New function. + * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export + posix_fadvise64@@GLIBC_2.3.3. + * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise. + * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return + error value. + * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file. + + * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h + (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD. + +2003-08-15 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove. + (elf_machine_matches_host): Remove weak extern stuff. + Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED. + (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern + stuff. Use GL(dl_hwcap) unconditionally. + +2003-08-16 Alan Modra <amodra@bigpond.net.au> + + * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after + __libc_start_main branch. + +2003-08-16 Jakub Jelinek <jakub@redhat.com>, + Andreas Jaeger <aj@suse.de> + + * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS + instead of setting errno. + * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise. + +2003-08-16 Andreas Jaeger <aj@suse.de> + + * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype. + * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise. + +2003-08-15 Ulrich Drepper <drepper@redhat.com> + + * io/fcntl.h (posix_fadvise64): Change type of third parameter to + off_t. + * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition. + * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter + description indicating the error value is returned, not -1. + * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of + __ASSUME_FADVISE64_64_SYSCALL. + * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and + posix_madvise in one file. Have posix_madvise defined with error + value returned. + Define posix_fadvise64_64 entry. Add version info to posix_fadvise64 + entry. + * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file. + * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL, + PSEUDO_END_ERRVAL, and ret_ERRVAL. + * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add + posix_fadvise64. + + * posix/Makefile (routines): Add posix_madvise. + * sysdeps/generic/madvise.c: Don't define posix_madvise. + * sysdeps/generic/posix_madvise.c: New file. + * sysdeps/unix/sysv/aix/posix_madvise.c: New file. + * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines): + Add posix_fadvise64_64. + +2003-08-15 Jakub Jelinek <jakub@redhat.com> + + * assert/assert.h (assert_perror): Use __builtin_expect for gcc >= + 3.0, not for !gcc or gcc < 3.0. + +2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca> + + * dlfcn/default.c (main): Cast dlsym loaded value to same type as main. + Address passed to test_in_mod1 and test_in_mod2 without casting. + * dlfcn/defaultmod1.c: Change prototype of test_in_mod1. + (test_in_mod1): Cast dlsym loaded value to same type as mainp. + * dlfcn/defaultmod2.c: Change prototype of test_in_mod2. + (test_in_mod2): Cast dlsym loaded value to same type as mainp. + +2003-08-15 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls): + Change quotes before using []. + + * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file. + + * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock): + Renamed to... + (__sparc32_atomic_locks): ...this. Change into 64-byte array. + (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr + argument. Select one of 64 locks from address bits. + (atomic_compare_and_exchange_val_acq, + atomic_compare_and_exchange_bool_acq): Pass memory address to + __sparc32_atomic_do_{,un}lock. + +2003-08-14 Ulrich Drepper <drepper@redhat.com> + + * assert/assert.h (assert): Use !! in front of expression to allow + use of pointers. + + * iconvdata/cp932.c: Fixed checking of a few border of code areas. + Changed conversion of JIS X 0201 from using a table to calculating. + * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote + conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to + EUC-JP-MS. + * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS. + * iconvdata/CP932.irreversible: New file. + * iconvdata/EUC-JP-MS.irreversible: New file. + Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>. + +2003-08-13 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall. + + * elf/Makefile: Use LC_ALL=C in a few cases where we call external + text processing tools. + + * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid + element unless BROKEN_THREAD_SIGNALS is defined. + (struct requestlist): Likewise. + * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in + caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined. + * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise. + * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid + parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers. + Pass current PID to __aio_sigqueue. + * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only + call. Don't initialize caller_pid field of waitlist element. + +2003-08-12 Jakub Jelinek <jakub@redhat.com> + + * libio/libioP.h (_IO_vtable_offset): Define. + * libio/freopen.c (freopen): Use it. + * libio/ioputs.c (_IO_puts): Likewise. + * libio/freopen64.c (freopen64): Likewise. + * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp): + Likewise. + * libio/iofclose.c (_IO_new_fclose): Likewise. + * libio/iofputs.c (_IO_fputs): Likewise. + * libio/ioftell.c (_IO_ftell): Likewise. + * libio/iofwrite.c (_IO_fwrite): Likewise. + * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise. + * libio/iosetbuffer.c (_IO_setbuffer): Likewise. + * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise. + * stdio-common/vfscanf.c (ORIENT): Likewise. + +2003-08-11 Ulrich Drepper <drepper@redhat.com> + + * assert/assert.h: Use __builtin_expect in assert and + assert_perror definitions if possible. + +2003-08-07 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/generic/ldsodefs.h (_rtld_global): Add + _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive. + * elf/rtld.c (rtld_lock_default_lock_recursive, + rtld_lock_default_unlock_recursive): New functions. + (dl_main): Initialize _dl_rtld_lock_recursive and + _dl_rtld_unlock_recursive. + +2003-08-05 Jakub Jelinek <jakub@redhat.com> + + * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to + config_file directories instead of prepending. + +2003-08-02 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/kernel-features.h: Define + __ASSUME_CLONE_STOPPED. + +2003-08-01 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/generic/bits/libc-lock.h + (__libc_cleanup_push,__libc_cleanup_pop): Define even here. + +2003-08-01 Roland McGrath <roland@frob.com> + + * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c. + +2003-07-31 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE + instead of __SWORD_TYPE. + * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define. + * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define. + * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE): + Define. + * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE): + Define. + * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE): + Define. + * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file. + + * dlfcn/dlerror.c (once): New. + (dlerror): Call __libc_once. + (_dlerror_run): Remove once. + + * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext): + Sync with 2.5.7 and 2.5.73 kernel changes. + + * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings. + * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd + formats to size_t. + * elf/dl-lookup.c (_dl_debug_bindings): Likewise. + * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid. + * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2. + * gmon/tst-sprofil.c (main): Add parens to shut up warning. + * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer + difference argument. + * stdio-common/tst-wc-printf.c (main): Cast arguments with %C + format to wint_t. + * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use + %d format and cast expected value to int. + * sysdeps/generic/libc-start.c (STATIC): Add + __attribute__((always_inline) if LIBC_START_MAIN is already defined. + * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t + to ieee_float_shape_type. + (__sqrt): Avoid type punning. + * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t + to ieee_float_shape_type. + (__sqrtf): Avoid type punning. + * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define + refsym if in dl-conflict.c. + * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise. + * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf. + (__new_semctl): Shut up warning. + * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf. + (__new_semctl): Shut up warning. + * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines. + Change old into union of __old_shmid_ds and __old_shminfo structs. + Adjust all users. + * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t. + + * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and + modtime computation. + * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise. + * sysdeps/posix/utimes.c (__utimes): Likewise. + +2003-07-30 Jakub Jelinek <jakub@redhat.com> + + * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value, + call dl_signal_error directly. If already relocated, call + GL(dl_init_static_tls) directly, otherwise queue it for later. + (CHECK_STATIC_TLS): Undo 2003-07-24 change. + * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls). + * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls + for all static TLS initializations delayed in _dl_allocate_static_tls. + * elf/dl-support.c (_dl_init_static_tls): New variable. + * include/link.h (struct link_map): Add l_need_tls_init. + * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls. + (_dl_nothread_init_static_tls): New prototype. + (_dl_allocate_static_tls): Adjust prototype. + + * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive. + +2003-07-31 Alexandre Oliva <aoliva@redhat.com> + + * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela, + elf_machine_rel_relative, elf_machine_rela_relative): Don't assume + reloc_addr is aligned. + * sysdeps/alpha/dl-machine.h (elf_machine_rela, + elf_machine_rela_relative): Adjust. + * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela, + elf_machine_rel_relative, elf_machine_rela_relative): Adjust. + * sysdeps/cris/dl-machine.h (elf_machine_rela, + elf_machine_rela_relative): Adjust. + * sysdeps/hppa/dl-machine.h (elf_machine_rela, + elf_machine_rela_relative): Adjust. + * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela, + elf_machine_rel_relative, elf_machine_rela_relative): Adjust. + * sysdeps/ia64/dl-machine.h (elf_machine_rela, + elf_machine_rela_relative): Adjust. + * sysdeps/m68k/dl-machine.h (elf_machine_rela, + elf_machine_rela_relative): Adjust. + * sysdeps/mips/dl-machine.h (elf_machine_rela, + elf_machine_rela_relative): Adjust. + * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela, + elf_machine_rela_relative): Adjust. + * sysdeps/powerpc/powerpc64/dl-machine.h + (elf_machine_rela_relative, elf_machine_rela): Adjust. + * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela, + elf_machine_rela_relative): Adjust. + * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela, + elf_machine_rela_relative): Adjust. + * sysdeps/sh/dl-machine.h (elf_machine_rela, + elf_machine_rela_relative): Adjust. + * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela, + elf_machine_rela_relative): Adjust. + * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela, + elf_machine_rela_relative): Adjust. + * sysdeps/x86_64/dl-machine.h (elf_machine_rela, + elf_machine_rela_relative): Adjust. + +2003-07-29 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore + alignment of TCB used before the last change so that it matches + ld's output for IE code. + +2003-07-29 Jakub Jelinek <jakub@redhat.com> + + * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc, + __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will + break strict-aliasing rules" warnings. + +2003-07-29 Roland McGrath <roland@redhat.com> + + * elf/Makefile: Revert accidental changes in last commit. + * elf/dl-support.c: Likewise. + + * rt/tst-timer2.c: New file. + * rt/Makefile (tests): Add it. + +2003-07-25 Jakub Jelinek <jakub@redhat.com> + + * elf/dl-support.c (_dl_hwcap): Add nocommon attribute. + +2003-07-29 Roland McGrath <roland@redhat.com> + + * elf/Makefile (tests) [$(build-shared) = yes]: + Depend on $(test-modules). + * dlfcn/Makefile: Likewise. + +2003-07-28 Roland McGrath <roland@redhat.com> + + * sysdeps/generic/bits/types.h (__STD_TYPE): New macro. + Use that instead of `typedef' when using __*_TYPE macros in rhs. + + * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this. + * elf/tst-tlsmod14a.c: Likewise. + + * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h> + before <linux/sysctl.h>. + +2003-07-27 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/syscalls.list: time syscall never fails. + * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails. + * sysdeps/unix/sysv/i386/time.S: time syscall never fails. + * sysdeps/unix/syscalls.list: umask syscall never fails. + +2003-07-27 Andreas Jaeger <aj@suse.de> + + * sysdeps/unix/sysv/linux/init-first.c: Mark init as used. + +2003-07-25 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version. + Include bits/a.out.h. + * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add + bits/a.out.h. + * sysdeps/unix/sysv/linux/bits/a.out.h: New file. + * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file. + * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file. + * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file. + * sysdeps/unix/sysv/linux/alpha/a.out.h: New file. + * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file. + * sysdeps/unix/sysv/linux/sparc/a.out.h: New file. + * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file. + +2003-07-24 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE + if aiocbp != NULL and has already completed. Return -1/EINVAL if + aiocbp->aio_fildes does not match fildes. + +2003-07-24 Ulrich Drepper <drepper@redhat.com> + + * timezone/zic.c (rpytime): Replace cheap overflow check with a + functioning one. + + * include/link.h (struct link_map): Add l_tls_firstbyte_offset field. + * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset): + Fix calculation of offsets to take misalignment of first byte in + file into account. + * elf/dl-load.c (_dl_map_object_from_fd): Initialize + l_tls_firstbyte_offset field. + * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise. + * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int. + Take l_tls_firstbyte_offset information into account. + (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now. + * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype. + * elf/Makefile: Add rules to build and run tst-tls14. + * elf/tst-tls14.c: New file. + * elf/tst-tlsmod14a.c: New file. + * elf/tst-tlsmod14b.c: New file. + +2003-07-23 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define. + (lio_listio): Use it. + * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of + after few defines to avoid duplication. + +2003-07-22 Jakub Jelinek <jakub@redhat.com> + + * include/stdio.h (__libc_fatal): Add libc_hidden_proto. + * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose): + Likewise. + * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose): Add libc_hidden_def. - * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64, - __GI___statfs): Add. - * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add - libc_hidden_weak. - * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise. - * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def. - Remove undef and INTDEF. - * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def. - * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add - libc_hidden_def. - * sysdeps/unix/sysv/linux/send.S (__send): Likewise. - * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add - libc_hidden_weak. - * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add - libc_hidden_def. - * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise. - * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise. - * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction): - Add. - * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add - libc_hidden_def. Remove undef and INTDEF. - * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise. - * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add - libc_hidden_def. - * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise. - * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise. - * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise. - * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def. - Remove undef and INTDEF. - * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for - broken visibility attribute handling. - * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add. + * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise. + * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise. + * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise. + * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE, + __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE. + * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE. + * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last + change. + * sysdeps/generic/unwind.inc: Removed. + + * include/resolv.h (__resp): Declare. Define to __libc_resp + if in libc.so. + (_res): If USE___THREAD, define to (*__resp). + * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol + even if USE___THREAD. + (__resp): New __thread variable. + (__libc_resp): New alias. + * resolv/Versions (libc): Export _res@GLIBC_2.0 even if + USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE. + * sysdeps/generic/res-state.c (__res_state): Return __resp + if USE___THREAD. + +2003-07-22 H.J. Lu <hongjiu.lu@intel.com> + + * elf/dl-support.c (_dl_hwcap): New variable. + (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries. + + * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h> + and <dl-procinfo.h>. + (__feclearexcept): Clear MXCSR if needed. + * sysdeps/i386/fpu/fsetexcptflg.c: Likewise. + + * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document + that newer hardware needs more than these macros. + + * sysdeps/i386/setfpucw.c: New file. + +2003-07-22 Jakub Jelinek <jakub@redhat.com> + + * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig. + * elf/ldconfig.c: Include dl-procinfo.c. + (PROCINFO_CLASS): Define. + * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define. + * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file. + * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file. + * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS): + Define if not yet defined. Use it instead of EXTERN. Undefine + at the end of the file. + * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS): + Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c + (PROCINFO_CLASS): Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c + (PROCINFO_CLASS): Likewise. + +2003-07-22 H.J. Lu <hongjiu.lu@intel.com> + + * elf/ldconfig.c (main): Issue a fatal error if relative path + is used to build cache. + +2003-07-22 Ulrich Drepper <drepper@redhat.com> + + * elf/readlib.c (process_file): Avoid possible overflow in assignment. -2002-08-02 Ulrich Drepper <drepper@redhat.com> +2003-07-21 Art Haas <ahaas@airmail.net> - * locale/iso-639.def: Add entries for Venda and Nothern Sotho. - Reported by Dwayne Bailey <dwayne@obsidian.co.za>. + * manual/charset.texi (Converting a Character): Fix example code so a + valid pointer is returned. - * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt - previous patch. +2003-07-22 Andreas Jaeger <aj@suse.de> -2002-06-29 Todd Fries <todd@openbsd.org> + * elf/readlib.c (process_file): Check that file is a shared + object. + + * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc + will not optimize it away. + (__DTOR_END__): Likewise. + (__CTOR_END__): Likewise. + + * include/libc-symbols.h (_elf_set_element): Use attribute used so + that gcc will not optimize it away. + (link_warning): Likewise. + +2003-07-22 Ulrich Drepper <drepper@redhat.com> + + * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling. + * wcsmbs/Makefile (tests): Add tst-wcpncpy. + * wcsmbs/tst-wcpncpy.c: New file. + +2003-07-21 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define. - * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails. + * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of + stmxcsr and ldmxcsr. -2002-08-02 Jakub Jelinek <jakub@redhat.com> + * Makerules (build-module-helper): Add -z defs unless explicitly said + not to do it. + * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs + which has undefined symbols. + * elf/Makefile: Likewise. - * include/errno.h: Don't include tls.h if _ISOMAC is defined. + * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask. + * sysdeps/i386/fpu/feenablxcpt.c: Likewise. + * sysdeps/i386/fpu/feholdexcpt.c: Likewise. + * sysdeps/i386/fpu/fesetround.c: Likewise. + * sysdeps/i386/fpu/ftestexcept.c: Likewise. -2002-07-30 Roland McGrath <roland@redhat.com> +2003-07-21 HJ Lu <hongjiu.lu@intel.com> - * resolv/resolv.h (_res): Define macro unconditionally. - [! _LIBC_REENTRANT] (_res): Move this conditional decl to ... - * include/resolv.h: ... here. - [USE_TLS && HAVE___THREAD] (_res): #undef it and declare - as a __thread variable. - * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as - a __thread variable instead of a global. - * resolv/res_data.c [_LIBC]: Don't #undef _res. + * elf/ldconfig.c (search_dir): Treat symlink as regular file + if it won't point to itself. - * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the - time we test it. +2003-07-20 Ulrich Drepper <drepper@redhat.com> - * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it. + * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int. - * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local - decls of memset and memcpy. +2003-07-20 Andreas Jaeger <aj@suse.de> - * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__]. - * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise. + * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called + STANDARD_TO_LOOP_ERR_HANDLER. + * iconvdata/euc-jp-ms.c (BODY): Likewise. - * elf/dl-load.c (_dl_map_object_from_fd): Comment fix. +2003-07-19 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD] - (__libc_tsd_define): Define using __thread. + * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo. - * sunrpc/rpc_thread.c: Use __libc_tsd_define. - (__rpc_thread_variables): Use __libc_tsd_get. - (__rpc_thread_destroy): Use __libc_tsd_get instead of calling - __rpc_thread_variables, which might allocate what we're about to free. + * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls. - * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a - thread-local variable. - * resolv/netdb.h (h_errno): Define macro unconditionally. - [_LIBC] (__set_h_errno): Macro moved to ... - * include/netdb.h: ... here. - [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable. - [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that. - [! _LIBC_REENTRANT]: #undef h_errno here. +2003-07-16 Daniel Jacobowitz <drow@mvista.com> + Andreas Jaeger <aj@suse.de> - * include/errno.h: Protect from multiple inclusion. + * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to + 256K, remove unneeded declaration of __getpagesize. - * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these - before defining them, since Linux's <linux/posix_types.h> might have - defined them. +2003-07-16 Andreas Schwab <schwab@suse.de> -2002-08-02 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>. - * malloc/malloc.c (public_cALLOc): Check for overflow on - multiplication. - * sunrpc/xdr_array.c (xdr_array): Likewise. - * sunrpc/rpc/types.h (mem_free): Add comment. - Patch by Solar Designer <solar@openwall.com>. +2003-07-15 Ulrich Drepper <drepper@redhat.com> -2002-08-02 Jakub Jelinek <jakub@redhat.com> + * io/test-utime.c (main): Make test yet more robust. + +2003-07-14 Ulrich Drepper <drepper@redhat.com> + + More cancellation handling fixups. + * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel. + * sysdeps/generic/not-cancel.h: Likewise. + * catgets/open_catalog.c: Use not-cancelable syscalls. + * time/Makefile (CFLAGS-getdate.c): Add -fexceptions. + * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable. + * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable. + * dlfcn/dlfcn.h: Mark dlopen with __THROW again. + * io/fcntl.h: Don't mark posix_fallocate with __THROW. + * libio/fileops.c: Use not-cancelable syscalls for fclose. + * libio/iopopen.c: Use no-cancelable syscalls. + * libio/stdio.h: Mark popen and pclose with __THROW again. + * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions. + * misc/syslog.c: Fix locking and cancellation cleanup handling. + * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW. + * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c, + CFLAGS-tempname.c): Add -fexceptions. + * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions. + * string/string.h: Mark strerror and strerror_r with _THROW again. + * sysdeps/generic/unwind.inc: New file. Copied from gcc. + * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove + #ifs since we now need all the code compiled. + * sysdeps/posix/spawni.c: Use close_not_cancel instead of close. + * sysdeps/unix/closedir.c: Use not-cancelable syscalls. + * sysdeps/unix/opendir.c: Likewise. + + * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS. + Add rule for EUC-JP-MS dependency. + * iconvdata/cp932.c: New file. + * iconvdata/eucjp-ms.c: New file. + * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS. + Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>. + +2003-07-15 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add + cfi directives. + +2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * sysdeps/unix/sysv/linux/kernel-features.h - (__ASSUME_SET_THREAD_AREA_SYSCALL): Define. + (__ASSUME_FIXED_CLONE_SYSCALL): New macro. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it. -2002-08-01 Roland McGrath <roland@redhat.com> + * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h. - * libio/fileops.c (_IO_file_sync_mmap): New function. - (_IO_file_jumps_mmap): Use it. - (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush, - repeat the stat check and resize the mapped buffer as necessary. +2003-07-14 Ulrich Drepper <drepper@redhat.com> -2002-07-31 Roland McGrath <roland@redhat.com> + * sysdeps/unix/sysv/linux/kernel-features.h: Define + __ASSUME_TGKILL for Alpha appropriately. - * libio/fileops.c (decide_maybe_mmap): New static function. - Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to - mmap the file contents. Then switch the jump tables to the mmap - tables if it worked, or the vanilla file tables if not. - (_IO_file_underflow_maybe_mmap): New function. - (_IO_file_seekoff_maybe_mmap): New function. - (_IO_file_xsgetn_maybe_mmap): New function. - (_IO_file_jumps_maybe_mmap): New variable, jump table using those. - * libio/libioP.h: Declare those. - * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function. - (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that. - * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here. - If the stream is read-only, set its jump tables to those new ones. - * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial - jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap. - We need the tables set before _IO_file_attach. +2003-07-12 Ulrich Drepper <drepper@redhat.com> - * libio/tst-mmap-eofsync.c: New file. - * libio/tst-mmap-fflushsync.c: New file. - * libio/bug-mmap-fflush.c: New file. - * libio/tst-mmap2-eofsync.c: New file. - * libio/Makefile (tests): Add them. + * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define. + * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE): + Likewise. + * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE): + Likewise. - * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when - _IO_file_underflow_mmap fails, it already set the appropriate bit. + * sysdeps/unix/sysv/linux/kernel-features.h: Define + __ASSUME_UTIMES for x86 and kernels > 2.5.75. -2002-07-31 Jeff Bailey <jbailey@gnu.org> + * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with + second parameter == NULL. + * sysdeps/unix/sysv/linux/utimes.c: New file. - * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr): - Declarations moved to <bits/sys_errlist.h>. Include that file. - * libio/Makefile (headers): Add bits/sys_errlist.h to the list. - * sysdeps/generic/bits/sys_errlist.h: New file. This does *not* - declare sys_errlist and sys_nerr. - * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does - provide declarations. +2003-07-12 Jakub Jelinek <jakub@redhat.com> -2002-07-31 Roland McGrath <roland@redhat.com> + * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h. + * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix + a typo. - * elf/rtld.c (dl_main): Fix typo in error message. +2003-07-12 Ulrich Drepper <drepper@redhat.com> -2002-07-31 Roland McGrath <roland@frob.com> + * time/sys/time.h: Namespace cleanup. + * sysdeps/unix/sysv/linux/kernel-features.h: Define + __ASSUME_UTIMES for the architectures which always had the syscall. + * sysdeps/unix/sysv/linux/futimes.c: New file. - * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64, - __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09 - sysdeps/mach/hurd/dl-sysdep.c change. +2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp> -2002-07-28 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR + register across CENABLE and CDISABLE. - * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname - -r`/build/include for kernel headers. +2003-07-11 Jakub Jelinek <jakub@redhat.com> - * po/fi.po: New file. + * sysdeps/unix/sysv/linux/sigwait.c: Include string.h. + * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. + * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. + * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned + int before assigning to max to avoid warnings. -2002-07-15 Alexandre Oliva <aoliva@redhat.com> +2003-07-11 Jakub Jelinek <jakub@redhat.com> - * configure.in (static_nss): Set to `yes' if --disable-shared. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add + cfi directives. + * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise. -2002-07-23 Bruno Haible <bruno@clisp.org> +2003-07-10 Jakub Jelinek <jakub@redhat.com> - * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN - is set. + * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of + .data.rel.ro.local to "aw". -2002-07-25 Jakub Jelinek <jakub@redhat.com> +2003-07-10 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file. - * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter - arguments. + * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition. + * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag. + (PIC-ccflag): Define. -2002-07-25 Jakub Jelinek <jakub@redhat.com> +2003-07-04 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add - alias. + * sysdeps/s390/s390-32/elf/start.S: Emit position independent code + if PIC. + * sysdeps/s390/s390-64/elf/start.S: Likewise. -2002-07-21 Bruno Haible <bruno@clisp.org> - - * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro. - * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments, - sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset, - trans_sysdep_tab_offset. - (struct sysdep_segment): New type. - (struct sysdep_string): New type. - (SEGMENTS_END): New macro. - * intl/gettextP.h (struct sysdep_string_desc): New type. - (struct loaded_domain): New fields malloced, n_sysdep_strings, - orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields - orig_tab, trans_tab, hash_tab to const pointers because they point - into read-only memory. - * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h. - (PRI*): Define fallback values. - (get_sysdep_segment_value): New function. - (_nl_load_domain): Distinguish major and minor revision parts. Add - support for minor revision 1 with system dependent strings. - (_nl_unload_domain): Also free the 'malloced' field. - * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size, - now done in loadmsgcat.c. Add support for system dependent strings. - -2002-07-16 Stepan Kasal <kasal@math.cas.cz> - - * posix/bug-regex7.c: New file. - * posix/bug-regex8.c: New file. - * posix/Makefile (tests): Add bug-regex7 and bug-regex8. - -2002-07-16 Stepan Kasal <kasal@math.cas.cz> - - * posix/bug-regex4.c (main): Fix typos. - * posix/bug-regex6.c (main): Likewise. - -2002-07-27 Ulrich Drepper <drepper@redhat.com> - - * posix/bug-regex6.c (main): Fix warnings. - - * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc. - - * iconv/iconv_prog.c (main): Improve error message for the cases - where -t and/or -f parameter are missing. - -2002-07-10 Stepan Kasal <kasal@math.cas.cz> - - * posix/regexec.c (re_match): Reorganize to remove duplicate code. - (re_search): Likewise. - (re_match_2): Likewise. - (re_search_2): Likewise. - (re_search_stub): New function. - (re_search_2_stub): New function. - * regcomp.c (re_compile_pattern): Typo in a comment fixed. - -2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com> - - * posix/regex_internal.h: Add new member STOP to struct re_string_t. - (re_string_eoi): Use STOP instead of LEN. - * posix/regex_internal.c (re_string_allocate): Initialize pstr->len. - (re_string_construct): Likewise. - (re_string_reconstruct): Adjust pstr->stop like pstr->len. - * posix/regexec.c (re_search_internal): Add a new argument STOP - so that it can handle the argument STOP of re_search_2 and re_match_2 - correctly. - (regexec): Adapt to new I/F of re_search_internal. - (re_search_stub): Likewise. +2003-07-07 Jakub Jelinek <jakub@redhat.com> -2002-07-25 Ulrich Drepper <drepper@redhat.com> + * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address) + into .data.rel.ro.local section if PIC to avoid DT_TEXTREL. - * sunrpc/clnt_gen.c: Don't include <sys/errno.h>. +2003-07-07 Ulrich Drepper <drepper@redhat.com> - * elf/dl-minimal.c: Remove definition of __assert_perror_fail. + * sysdeps/unix/sysv/linux/kernel-features.h: Version + __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible. - * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal. - * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead - of __divdi3. + * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for + compilation with HAVE_AUX_SECURE defined. - * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal. - * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise. - * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal - alias for adjtimex syscall. +2003-07-05 Richard Henderson <rth@redhat.com> - * elf/dl-minimal.c: Define __assert_fail_internal. - * assert/assert.c: Likewise. - * include/assert.h: Define __assert_file macro if !SHARED and not - NOT_IN_libc. + * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end. - * iconv/Makefile: Define NOT_IN_libc for objects in standalone - programs. - * locale/Makefile: Likewise. - * nscd/Makefile: Likewise. - * catgets/Makefile: Likewise. +2003-07-03 Ulrich Drepper <drepper@redhat.com> -2002-07-24 Ulrich Drepper <drepper@redhat.com> + * configure.in: Also check for .cfi_rel_offset pseudo-op. - * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to - compute current position. +2003-07-03 Jakub Jelinek <jakub@redhat.com> - * stdio-common/tst-fseek.c (main): Improve error messages. + * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a + typo. - * libio/tst-freopen.c (main): Remove unused variable. +2003-07-03 Ulrich Drepper <drepper@redhat.com> - * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after - succesful seek call. Simplify error checking. + * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK): + Define. + * sysdeps/unix/sysv/linux/prof-freq.h: New file. -2002-07-25 Jakub Jelinek <jakub@redhat.com> +2003-07-02 Jakub Jelinek <jakub@redhat.com> - * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER. - * sysdeps/ia64/fpu/libm_support.h: Likewise. + * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo + decl and use with #ifdef NEED_DL_SYSINFO. -2002-07-19 Roland McGrath <roland@frob.com> +2003-07-02 Ulrich Drepper <drepper@redhat.com> - * hurd/hurdsig.c (_hurdsig_getenv): Always return null if - __libc_enable_secure is set. + * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set + GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set. + * sysdeps/unix/sysv/linux/kernel-features.h: Define + __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the + vsyscall DSO was added. -2002-07-24 Roland McGrath <roland@frob.com> + * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0 + depending on selected standard. + (NGROUPS_MAX): Define to 8 if not defined. - Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'. - This implementation supports only IPv4. - * inet/ifaddrs.h: New file. - * sysdeps/generic/ifaddrs.c: New file. - * sysdeps/gnu/ifaddrs.c: New file. - * inet/test-ifaddrs.c: New file. - * inet/Makefile (routines): Add ifaddrs. - (headers): Add ifaddrs.h here. - (tests): Add test-ifaddrs. - * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs. +2003-07-02 Andreas Jaeger <aj@suse.de> - * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit - socket call to get an AF_INET socket, instead of using __opensock. - The SIOCGIFNETMASK ioctl will work only with a PF_INET socket. + * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file. - * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD, - if not -1 use it instead of calling __opensock. - * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise. - * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it. - * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument. +2003-05-04 H.J. Lu <hongjiu.lu@intel.com> - * sysdeps/mach/hurd/ifreq.h: New file. - * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS. - * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise. - * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller. + * malloc/arena.c (arena_get2): Add atomic_write_barrier. + * malloc/thread-m.h: Include <atomic.h>. + (atomic_full_barrier): Provide default. + (atomic_read_barrier): Likewise. + (atomic_write_barrier): Likewise. + * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define. - * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset, - which gets moved around. Calculate size of mmap'd buffer instead. +2003-06-30 Ulrich Drepper <drepper@redhat.com> -2002-07-24 Philip Blundell <philb@gnu.org> + * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET. - * sysdeps/unix/arm/brk.S: Improve schedule. - * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more - efficient instruction. - (__socket): Optimize return sequence. +2003-06-30 Richard Henderson <rth@redhat.com> -2002-07-24 Ulrich Drepper <drepper@redhat.com> + * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int): + Invert the sense of the return value. + (__arch_exchange_16_int): Fix paste-o. + (__arch_exchange_{32,64}_int): Fix think-o. - * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet - sockets on old kernels. + * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly. -2002-07-22 Philip Blundell <philb@gnu.org> +2003-06-30 Richard Henderson <rth@redhat.com> - * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias - definiton of _old_sys_nerr. Define _old_sys_errlist as strong - alias. + * include/sys/resource.h (__getrusage): Mark hidden. + * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise. + * include/sys/wait.h (__wait4): Likewise. -2002-07-24 Ulrich Drepper <drepper@redhat.com> +2003-06-17 Guido Guenther <agx@sigxcpu.org> - * locale/hashval.h: Make more self-contained by defining LONG_BITS. - * locale/programs/simple-hash.c: Remove LONG_BITS definition. + * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT + case. + (xstat_conv): Rename to __xstat_conv and remove static inline. + (xstat64_conv): Likewise. - * locale/programs/locarchive.c (add_locale_to_archive): Correct - test to detect duplicate locales. +2003-06-29 Ulrich Drepper <drepper@redhat.com> - * libio/fileops.c (_IO_new_file_seekoff): Fail if relative - position would be before beginning of file. - (_IO_file_seekoff_mmap): Likewise. - * libio/Makefile (tests): Add bug-fseek. - * libio/bug-fseek.c: New file. + * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter + values which cannot be handled in one nanosleep call. - * intl/explodename.c: Remove support for CEN-style locale variables. - It was never used and shouldn't be since it's not portable. - * intl/finddomain.c: Likewise. - * intl/l10nflist.c: Likewise. - * intl/loadinfo.h: Likewise. - * locale/findlocale.c: Likewise. +2003-06-25 Alfred M. Szmidt <ams@kemisten.nu> -2002-07-24 Roland McGrath <roland@frob.com> + * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros. + (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them. - * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the - position, calculate it to take into account an active pushback buffer. + * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix. - * libio/Makefile (tests): Add bug-ungetc. - * libio/bug-ungetc.c: New file. +2003-06-04 Thorsten Kukuk <kukuk@suse.de> -2002-07-23 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header, + fix typo. - * sysdeps/generic/libc-tls.c: New file. - * csu/Makefile (routines): Add libc-tls. - (static-only-routines): Add libc-tls. - * elf/dl-support.c (_dl_phdr): New variable. - (_dl_phnum): New variable. - (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector. - * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code - for !SHARED. First look through auxiliary vector. If TLS always - call __pthread_initialize_minimal. +2003-06-26 Steven Munroe <sjmunroe@us.ibm.com> - * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument - in mmap call is never zero. + * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]: + Conditionalize function definitions that use struct kernel_stat. + * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern. + * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern. + * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern. -2002-07-23 Andreas Jaeger <aj@suse.de> +2003-06-28 Ulrich Drepper <drepper@redhat.com> - * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version. - * sysdeps/x86_64/fpu/s_copysignf.S: Likewise. + * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real + implementation. -2002-07-22 Ulrich Drepper <drepper@redhat.com> +2003-06-07 Thorsten Kukuk <kukuk@suse.de> - * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with - creation and removal of the temp file. + * nis/nss_compat/compat-grp.c: Remove unused nis_first variable. + (getgrent_next_file): Don't store group name to early in blacklist. - * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for - file creation. - * test-skeleton.c (create_temp_file): New function. + * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result + and use memcpy instead of strcpy. -2002-07-22 Andreas Jaeger <aj@suse.de> +2003-06-28 Ulrich Drepper <drepper@redhat.com> - * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use - local label. + * nis/nss_compat/compat-grp.c: Optimize several little things. Use + stream unlocked. + * nis/nss_compat/compat-initgroups.c: Likewise. + * nis/nss_compat/compat-pwd.c: Likewise. + * nis/nss_compat/compat-spwd.c: Likewise. -2002-07-21 Roland McGrath <roland@frob.com> +2003-06-27 Thorsten Kukuk <kukuk@suse.de> - * wcsmbs/Makefile (strtox-CFLAGS): New variable, - put -I../include before -I../stdlib so we get the right errno.h et al. - (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib. - (CFLAGS-wcstof.c): Likewise. - (CFLAGS-wcstold.c): Likewise. - (CFLAGS-wcstod_l.c): Likewise. - (CFLAGS-wcstof_l.c): Likewise. - (CFLAGS-wcstold_l.c): Likewise. + * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+ + functions, dlopen corresponding NSS module instead. -2002-07-19 Roland McGrath <roland@frob.com> +2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx> - * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output. + * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init. + * sysdeps/mach/hurd/i386/init-first.c: Likewise. + * sysdeps/mach/hurd/mips/init-first.c: Likewise. + * sysdeps/mach/hurd/powerpc/init-first.c: Likewise. -2002-07-20 Ulrich Drepper <drepper@redhat.com> +2003-06-27 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if - __ASSUME_AT_XID is defined. - * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define - for 2.4.1 and up. - * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling - of AT_UID, AT_EUID, AT_GID, and AT_EGID. + * rt/Makefile (CFLAGS-librt-cancellation.c): Define. - * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib. - (CFLAGS-wcstof.c): Likewise. - (CFLAGS-wcstold.c): Likewise. - (CFLAGS-wcstod_l.c): Likewise. - (CFLAGS-wcstof_l.c): Likewise. - (CFLAGS-wcstold_l.c): Likewise. +2003-06-26 Roland McGrath <roland@frob.com> -2002-07-18 Jakub Jelinek <jakub@redhat.com> + * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME. + * sysdeps/mach/configure: Regenerated. + * sysdeps/mach/hurd/times.c (times_init): Function removed. + (__times): Assume `creation_time' field is available. + * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines): + Don't append set-init. + * sysdeps/mach/hurd/set-init.c: File removed. + +2003-06-26 Roland McGrath <roland@redhat.com> + + * elf/elf.h (AT_SECURE): New macro. + * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it, + set __libc_enable_secure. + (_dl_show_auxv): Add AT_SECURE to name table. + * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set + __libc_enable_secure and __libc_enable_secure_decided. + * sysdeps/unix/sysv/linux/ldsodefs.h + [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it. + * sysdeps/unix/sysv/linux/kernel-features.h + [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it. - * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t, - __priority_which_t): Always typedef to int for C++. +2003-06-26 Ulrich Drepper <drepper@redhat.com> -2002-07-19 Ulrich Drepper <drepper@redhat.com> + * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower + boundary test to take rounding of nanoseconds into account. - * configure.in: Add test for __thread support in compiler. - * config.h.in: Add HAVE___THREAD. - * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h. - * include/sys/errno.h: Moved to... - * stdlib/sys/errno.h: ...here. New file. - * stdlib/errno.h: New file. Moved from... - * include/errno.h: ...here. Changed into an internal header defining - libc-local things like __set_errno. - * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and - bits/errno.h. - * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local - variable if USE_TLS && HAVE___THREAD. Don't define __errno_location - either. - * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so - from... - (_dl_start_final): ...here. Add code to initialize tls elements from - bootstrap_map. - * sysdeps/generic/errno-loc.c: Define errno as thread-local variable - if USE_TLS && HAVE___THREAD. - * sysdeps/generic/bits/errno.h: Remove __set_errno definition. - * sysdeps/mach/hurd/bits/errno.h: Likewise. - * sysdeps/standalone/arm/bits/errno.h: Likewise. - * sysdeps/standalone/bits/errno.h: Likewise. - * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise. - * sysdeps/unix/sysv/aix/bits/errno.h: Likewise. - * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise. - * sysdeps/unix/sysv/linux/bits/errno.h: Likewise. - * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise. - * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise. - * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise. - * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't - use GL(dl_rtld_map), use map parameter. - * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise. - * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if - USE_TLS && HAVE___THREAD. - * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG - definitions. If USE_TLS && HAVE___THREAD store errooor value using - TLS code sequence. - * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise. - - * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno. - * sysdeps/unix/sysv/linux/grantpt.c: Likewise. - * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise. - * sysdeps/unix/sysv/linux/msgctl.c: Likewise. - * sysdeps/unix/sysv/linux/readv.c: Likewise. - * sysdeps/unix/sysv/linux/writev.c: Likewise. + * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC. + * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise. + * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise. + * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise. + * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise. + * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise. -2002-07-17 Ulrich Drepper <drepper@redhat.com> +2003-06-26 Andreas Schwab <schwab@suse.de> - * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and - MS_INVALIDATE values. + * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp. + * sysdeps/m68k/fpu/s_frexp.c: Put implementation here. + * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers. -2002-07-17 Andreas Schwab <schwab@suse.de> - Ulrich Drepper <drepper@redhat.com> +2003-06-17 Thorsten Kukuk <kukuk@suse.de> - * sysdeps/unix/sysv/linux/pread.c: Sign extend offset. - * sysdeps/unix/sysv/linux/pwrite.c: Likewise. - * sysdeps/unix/sysv/linux/mips/pread.c: Likewise. - * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. + * nis/Makefile: Remove NIS/NIS+ files from nss_compat module. + * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions, + dlopen corresponding NSS module instead. + * nis/nss_compat/compat-pwd.c: Likewise. + * nis/nss_compat/compat-spwd.c: Likewise. + * nis/nss_compat/compat-initgroups.c: Disabled for now. + * nss/Versions: Export __nss_lookup_function. -2002-07-01 H.J. Lu <hjl@gnu.org> +2003-06-19 Daniel Jacobowitz <drow@mvista.com> - * elf/circleload1.c (load_dso): Call "circlemod1" and check - return value. + * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features + for the SH architecture. - * elf/circlemod1.c (circlemod1): Return int. - * elf/circlemod2.c (circlemod2): Likewise. - * elf/circlemod2a.c (circlemod2): Likewise. - * elf/circlemod3.c (circlemod3): Likewise. - (circlemod3a): A new function. +2003-06-25 Thorsten Kukuk <kukuk@suse.de> -2002-07-16 Ulrich Drepper <drepper@redhat.com> + * csu/Makefile: Use CPPFLAGS to find correct linux/version.h. - * catgets/tst-catgets.c (main): Don't expect results for - untranslated messages. +2003-06-25 Andreas Jaeger <aj@suse.de> - * glibcbug.in: Fix little typo. Remove STDIO. + * stdlib/tst-strtod.c (main): Declare constant long double as + suggested by Jakub Jelinek and Andreas Schwab. - * config.h.in: Fail if __FAST_MATH__ is defined. - * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH. - (CPPFLAGS-test-idouble.c): Likewise. - (CPPFLAGS-test-ildouble.c): Likewise. + * posix/tst-nanosleep.c: Include <time.h> for nanosleep + declaration. -2002-07-15 Ulrich Drepper <drepper@redhat.com> + * stdio-common/tst-fphex.c: Fix format string. - * intl/tst-gettext.sh: Pass -f option to msgfmt. - * intl/tst-gettext.c: Correctly handle untranslated messages in - positive tests. + * posix/transbug.c: Include <string.h> for memset and strlen + declarations. - * po/de.po: Update from translation team. + * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration. -2002-07-02 H.J. Lu <hjl@gnu.org> + * stdlib/tst-strtod.c (main): Pass long double value. - * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always - use ll/sc. - * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise. + * test-skeleton.c: Include <time.h> for nanosleep declaration. - * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel - to 2.4.0 for mips. +2003-06-25 Ulrich Drepper <drepper@redhat.com> -2002-07-15 Ulrich Drepper <drepper@redhat.com> + * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is + defined. - * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses - TLS fail if USE_TLS is not defined. +2003-06-11 Jakub Jelinek <jakub@redhat.com> - * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers - and adjust state for seek position. [PR libc/4070] - * libio/Makefile (tests): Add bug-rewind. - * libio/bug-rewind.c: New file. + * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE. + * elf/dl-libc.c (struct dl_open_hook): New. + (_dl_open_hook): New variable. + (do_dlsym_private): New function. + (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE + and initialize it if found. + (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL, + call dlopen_mode hook. + (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL, + call dlsym hook. + (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL, + call dlclose hook. -2002-07-12 Philip Blundell <philb@gnu.org> +2003-06-25 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro. - (__backtrace): Use it. - * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632] + * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast + result to long int so that extensions to long long int work. + Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>. -2002-07-12 Philip Blundell <philb@gnu.org> +2003-06-19 Jakub Jelinek <jakub@redhat.com> - * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle - R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check - for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined. - (elf_machine_rela): Remove unused variable. + * elf/ldconfig.c (main): Use add_system_dir instead of add_dir. + * sysdeps/generic/dl-cache.h (add_system_dir): Define. + * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc + dl-cache.h. + * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file. + * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file. + * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file. + * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file. - * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf] - (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't - define. +2003-06-19 Jakub Jelinek <jakub@redhat.com> -2002-07-12 Ulrich Drepper <drepper@redhat.com> - - * iconvdata/gconv-modules: Add aliases for ISO-8859-11. - -2002-07-14 Andreas Jaeger <aj@suse.de> - - * sysdeps/x86_64/bits/link.h: Add biarch support. - -2002-07-13 Andreas Jaeger <aj@suse.de> - - * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump): - Use correct indices. - Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>. - -2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com> - - * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h. - * sysdeps/s390/s390-32/bits/byteswap.h: Remove. - * sysdeps/s390/s390-64/bits/byteswap.h: Remove. - * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h. - * sysdeps/s390/s390-32/bits/link.h: Remove. - * sysdeps/s390/s390-64/bits/link.h: Remove. - * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h. - * sysdeps/s390/s390-32/bits/setjmp.h: Remove. - * sysdeps/s390/s390-64/bits/setjmp.h: Remove. - * sysdeps/s390/bits/wordsize.h: New file. - * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit - elfclass.h. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove. - * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h. - * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove. - * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove. - * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h. - * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove. - * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h. - * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove. - * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit - resource.h. - * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove. - * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove. - * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove. - * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit - sigaction.h. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove. - * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit - siginfo.h. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove. - * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit - socket.h. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove. - * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h. - * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove. - * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove. - * sysdeps/unix/sysv/linux/s390/net/route.h: New file. - * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit - procfs.h. - * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove. - * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove. - * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit - ucontext.h. - * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove. - * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove. - -2002-07-11 Ulrich Drepper <drepper@redhat.com> - - * Versions.def (libc): Add GLIBC_2.3. - * stdlib/Versions [libc] (GLIBC_2.3): Add realpath. - * stdlib/canonicalize.c: Add compatibility version for realpath - and make new code available in GLIBC_2.3. - -2002-07-06 Bruno Haible <bruno@clisp.org> - - * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_. - -2002-07-11 Ulrich Drepper <drepper@redhat.com> - - * resolv/res_hconf.c (_res_hconf_init): Move code into new - function do_init. Use __libc_once. - (do_init): New function. - - * iconvdata/iso8859-11.h: Removed. - * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11. - (distribute): Remove iso8859-11.h. - * iconvdata/tst-tables.sh: Add ISO-8859-11. - - * stdio-common/vfscanf.c (inchar): Restore errno from previous - underflow operation if c == (W)EOF. - -2002-07-03 Jakub Jelinek <jakub@redhat.com> - - * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is - non-zero, adjust exponent. - * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl): - Remove NO_LONG_DOUBLE aliases. - * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise. - * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise. - (__log1pl): Raise divide by zero and invalid exceptions when needed. - * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case - 1**y and -1**+-Inf. - * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double): - Fix BITS_PER_MP_LIMB 32 extraction. - * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise - exceptions for qNaNs. - * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise. - * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r): - Raise exceptions when needed. Don't recurse unnecessarily. - Special case 1.0L and 2.0L arguments to avoid -0.0L as result. - * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise - exceptions for qNaNs. - * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit - to fix *quo return value sign. - * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special - case -Inf argument. - * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto. - -2002-07-01 Jakub Jelinek <jakub@redhat.com> - - * libio/tst-eof.c (do_test): Remove unused ch and tm variables. - * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if - -DNDEBUG. - -2002-07-10 Ulrich Drepper <drepper@redhat.com> - - * malloc/hooks.c (realloc_check): If mremap succeeds actually use - the result. - - * sysdeps/i386/i486/bits/string.h: Add early clobber for "a" - output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>. - - * Versions.def (libthread_db): Add GLIBC_2.3. - -2002-07-09 Jakub Jelinek <jakub@redhat.com> - - * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the - new stream if possible. - * libio/freopen64.c (freopen64): Likewise. - * libio/Makefile (tests): Add tst-freopen. - * libio/tst-freopen.c: New file. + * test-skeleton.c (timeout_handler): If waitpid returned 0, + retry once after a second. If killed == 0, assume + WTERMSIG (status) == SIGKILL. -2002-07-03 Jakub Jelinek <jakub@redhat.com> +2003-06-18 Roland McGrath <roland@redhat.com> - * libio/stdio.h (obstack_printf): Add format attribute. - (obstack_vprintf): Likewise. + * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized + elements in the table instead of printing an empty name string. -2002-07-04 Jakub Jelinek <jakub@redhat.com> +2003-06-05 Roland McGrath <roland@redhat.com> - * posix/regex_internal.h (re_token_t): Shrink the structure to 8 - resp. 16 bytes on 32-bit resp. 64-bit platforms. - (re_charset_t, re_string_t): Reorder structure members for 64-bit - architectures. + * elf/elf.h (PT_GNU_STACK): New macro. -2002-07-04 Jakub Jelinek <jakub@redhat.com> +2003-06-24 Ulrich Drepper <drepper@redhat.com> - * posix/regcomp.c (re_compile_internal): Move clearing of dfa... - (init_dfa): ...here. + * include/time.h: Define CLOCK_IDFIELD_SIZE. + * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs. + * sysdeps/unix/clock_gettime.c: Likewise. + * sysdeps/unix/clock_settime.c: Likewise. + * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new + clock id for thread CPU clocks. -2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com> + * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support + for the fstatfs64 syscall. + * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for + the statfs64 syscall. - * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and - OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP - nodes in parse trees. - (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP - and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP. - (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the - nodes which can epsilon transit. - * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP - to IS_EPSILON_NODE macro. - * posix/regexec.c (update_regs): New function to update registers - by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes. - (proceed_next_node): Use the entities of the nodes to determine - whether the node can transit to. - (set_regs): Use update_regs function to update registers. + * sysdeps/unix/sysv/linux/kernel-features.h: Define + __ASSUME_STATFS64 appropriately. -2002-07-03 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field + from statfs structure if it has been filled in. - * posix/bug-regex4.c (main): Remove duplicate setlocale. - * posix/bug-regex6.c: New file. - * posix/Makefile (tests): Add bug-regex6. - (bug-regex6-ENV): Set LOCPATH. + * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize + field. + (struct statfs64): Likewise. + * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise. + * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise. -2002-07-10 Ulrich Drepper <drepper@redhat.com> +2003-06-24 Richard Henderson <rth@redhat.com> - * Versions.def [libpthread]: Add GLIBC_2.2.6. - * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep. + * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use + the 64-bit syscall name. -2002-07-06 Bruno Haible <bruno@clisp.org> + * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue. - * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value. + * sysdeps/alpha/fpu/bits/mathinline.h: Honor + __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit. -2002-07-06 Bruno Haible <bruno@clisp.org> + * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET. + * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use + libc_hidden_def. + * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto + on them. - * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New - declarations. + * sysdeps/alpha/bits/atomic.h: New file. - * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7. - - * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build. - - * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H, - not _UTSNAME_H. - * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise. - - * sysdeps/generic/bits/stropts.h: Protect against direct inclusion. - * sysdeps/generic/bits/ustat.h: Likewise. - - * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048. - -2002-07-08 Andreas Jaeger <aj@suse.de> - - * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start. - -2002-07-08 Andreas Jaeger <aj@suse.de> - - * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name. - -2002-07-06 Andreas Jaeger <aj@suse.de> - - * sysdeps/x86_64/fpu/bits/mathinline.h: New file. - * sysdeps/x86_64/fpu/s_copysign.S: New file. - * sysdeps/x86_64/fpu/s_copysignf.S: New file. - * sysdeps/x86_64/fpu/s_copysignl.S: New file. - * sysdeps/x86_64/fpu/s_finitel.S: New file. - * sysdeps/x86_64/fpu/s_fmax.S: New file. - * sysdeps/x86_64/fpu/s_fmaxf.S: New file. - * sysdeps/x86_64/fpu/s_fmaxl.S: New file. - * sysdeps/x86_64/fpu/s_fmin.S: New file. - * sysdeps/x86_64/fpu/s_fminf.S: New file. - * sysdeps/x86_64/fpu/s_fminl.S: New file. - -2002-06-05 Brian Youmans <3diff@gnu.org> - - * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license. - * sysdeps/ia64/fpu/e_acosf.S: Likewise. - * sysdeps/ia64/fpu/e_acosl.S: Likewise. - * sysdeps/ia64/fpu/e_asin.S: Likewise. - * sysdeps/ia64/fpu/e_asinf.S: Likewise. - * sysdeps/ia64/fpu/e_asinl.S: Likewise. - * sysdeps/ia64/fpu/e_atan2.S: Likewise. - * sysdeps/ia64/fpu/e_atan2f.S: Likewise. - * sysdeps/ia64/fpu/e_cosh.S: Likewise. - * sysdeps/ia64/fpu/e_coshf.S: Likewise. - * sysdeps/ia64/fpu/e_coshl.S: Likewise. - * sysdeps/ia64/fpu/e_exp.S: Likewise. - * sysdeps/ia64/fpu/e_expf.S: Likewise. - * sysdeps/ia64/fpu/e_fmod.S: Likewise. - * sysdeps/ia64/fpu/e_fmodf.S: Likewise. - * sysdeps/ia64/fpu/e_fmodl.S: Likewise. - * sysdeps/ia64/fpu/e_hypot.S: Likewise. - * sysdeps/ia64/fpu/e_hypotf.S: Likewise. - * sysdeps/ia64/fpu/e_hypotl.S: Likewise. - * sysdeps/ia64/fpu/e_log.S: Likewise. - * sysdeps/ia64/fpu/e_logf.S: Likewise. - * sysdeps/ia64/fpu/e_pow.S: Likewise. - * sysdeps/ia64/fpu/e_powf.S: Likewise. - * sysdeps/ia64/fpu/e_powl.S: Likewise. - * sysdeps/ia64/fpu/e_remainder.S: Likewise. - * sysdeps/ia64/fpu/e_remainderf.S: Likewise. - * sysdeps/ia64/fpu/e_remainderl.S: Likewise. - * sysdeps/ia64/fpu/e_scalb.S: Likewise. - * sysdeps/ia64/fpu/e_scalbf.S: Likewise. - * sysdeps/ia64/fpu/e_scalbl.S: Likewise. - * sysdeps/ia64/fpu/e_sinh.S: Likewise. - * sysdeps/ia64/fpu/e_sinhf.S: Likewise. - * sysdeps/ia64/fpu/e_sinhl.S: Likewise. - * sysdeps/ia64/fpu/e_sqrt.S: Likewise. - * sysdeps/ia64/fpu/e_sqrtf.S: Likewise. - * sysdeps/ia64/fpu/e_sqrtl.S: Likewise. - * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise. - * sysdeps/ia64/fpu/libm_error.c: Likewise. - * sysdeps/ia64/fpu/libm_frexp4.S: Likewise. - * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise. - * sysdeps/ia64/fpu/s_frexpl.c: Likewise. - * sysdeps/ia64/fpu/s_ilogb.S: Likewise. - * sysdeps/ia64/fpu/s_ilogbf.S: Likewise. - * sysdeps/ia64/fpu/s_ilogbl.S: Likewise. - * sysdeps/ia64/fpu/s_ldexp.S: Likewise. - * sysdeps/ia64/fpu/s_ldexpf.S: Likewise. - * sysdeps/ia64/fpu/s_ldexpl.S: Likewise. - * sysdeps/ia64/fpu/s_log1p.S: Likewise. - * sysdeps/ia64/fpu/s_log1pf.S: Likewise. - * sysdeps/ia64/fpu/s_log1pl.S: Likewise. - * sysdeps/ia64/fpu/s_logb.S: Likewise. - * sysdeps/ia64/fpu/s_logbf.S: Likewise. - * sysdeps/ia64/fpu/s_logbl.S: Likewise. - * sysdeps/ia64/fpu/s_modf.S: Likewise. - * sysdeps/ia64/fpu/s_modff.S: Likewise. - * sysdeps/ia64/fpu/s_modfl.S: Likewise. - * sysdeps/ia64/fpu/s_nearbyint.S: Likewise. - * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise. - * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise. - * sysdeps/ia64/fpu/s_rint.S: Likewise. - * sysdeps/ia64/fpu/s_rintf.S: Likewise. - * sysdeps/ia64/fpu/s_rintl.S: Likewise. - * sysdeps/ia64/fpu/s_round.S: Likewise. - * sysdeps/ia64/fpu/s_roundf.S: Likewise. - * sysdeps/ia64/fpu/s_roundl.S: Likewise. - * sysdeps/ia64/fpu/s_scalbn.S: Likewise. - * sysdeps/ia64/fpu/s_scalbnf.S: Likewise. - * sysdeps/ia64/fpu/s_scalbnl.S: Likewise. - * sysdeps/ia64/fpu/s_significand.S: Likewise. - * sysdeps/ia64/fpu/s_significandf.S: Likewise. - * sysdeps/ia64/fpu/s_significandl.S: Likewise. - * sysdeps/ia64/fpu/s_tan.S: Likewise. - * sysdeps/ia64/fpu/s_tanf.S: Likewise. - * sysdeps/ia64/fpu/s_tanl.S: Likewise. - * sysdeps/ia64/fpu/s_trunc.S: Likewise. - * sysdeps/ia64/fpu/s_truncf.S: Likewise. - * sysdeps/ia64/fpu/s_truncl.S: Likewise. - * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to - reflect IBM donation of math library to FSF - * sysdeps/ieee754/dbl-64/dosincos.c: Likewise. - * sysdeps/ieee754/dbl-64/e_asin.c: Likewise. - * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise. - * sysdeps/ieee754/dbl-64/e_exp.c: Likewise. - * sysdeps/ieee754/dbl-64/e_log.c: Likewise. - * sysdeps/ieee754/dbl-64/e_pow.c: Likewise. - * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise. - * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise. - * sysdeps/ieee754/dbl-64/halfulp.c: Likewise. - * sysdeps/ieee754/dbl-64/mpa.c: Likewise. - * sysdeps/ieee754/dbl-64/mpatan.c: Likewise. - * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise. - * sysdeps/ieee754/dbl-64/mpexp.c: Likewise. - * sysdeps/ieee754/dbl-64/mplog.c: Likewise. - * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise. - * sysdeps/ieee754/dbl-64/mptan.c: Likewise. - * sysdeps/ieee754/dbl-64/s_atan.c: Likewise. - * sysdeps/ieee754/dbl-64/s_sin.c: Likewise. - * sysdeps/ieee754/dbl-64/s_tan.c: Likewise. - * sysdeps/ieee754/dbl-64/sincos32.c: Likewise. - * sysdeps/ieee754/dbl-64/slowexp.c: Likewise. - * sysdeps/ieee754/dbl-64/slowpow.c: Likewise. - * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice - * sysdeps/vax/__longjmp.c: Likewise. - * sysdeps/vax/setjmp.c: Likewise. - * libio/filedoalloc.c: Fixed BSD copying permission notice to - remove advertising clause - * sysdeps/vax/htonl.s: Likewise. - * sysdeps/vax/htons.s: Likewise. - * libio/wfiledoalloc.c: Likewise. - * stdlib/random.c: Likewise. - * stdlib/random_r.c: Likewise. - * sysdeps/mach/sys/reboot.h: Likewise. - * inet/getnameinfo.c: Deleted advertising clause from Inner Net License - * sysdeps/posix/getaddrinfo.c: Likewise. - * sunrpc/des_impl.c: Updated license permission notice to Lesser - GPL and corrected pointer to point to the correct license. +2003-06-24 Andreas Schwab <schwab@suse.de> -2002-07-04 Andreas Jaeger <aj@suse.de> + * sysdeps/m68k/fpu/libm-test-ulps: Update. - * scripts/config.guess: New upstream version. - * scripts/config.sub: Likewise. +2003-06-24 Andreas Jaeger <aj@suse.de> -2002-07-02 Andreas Schwab <schwab@suse.de> + * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid + redeclaration with 32-bit code. - * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen - in parallel to bumping up the buffer pointer. +2003-05-19 Ed Connell <ed.connell@sas.com> -2002-07-01 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain + floating point mask. + * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise. - * math/libm-test.inc (acos_test): Add missing L suffix for - expected result. - (cpow_test): Likewise. - * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove - error for acos (0.0625). +2003-06-23 Ulrich Drepper <drepper@redhat.com> -2002-06-30 Ulrich Drepper <drepper@redhat.com> + * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex, + __aio_enqueue_request, __aio_find_req, __aio_find_req_fd, + __aio_free_request, __aio_notify, and __aio_sigqueue as hidden. - * locale/iso-639.def: Add entry for Ganda. - * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New - definition. - (address_finish): Handle entries with two letter ISO 639 code. - - * iconvdata/Makefile: Recreate gconv-modules.cache file in target - directory if it existed before. - * iconv/iconvconfig.c: Implement --prefix option. - - * math/libm-test.inc (cexp_test): Add missing L suffix for - expected result. Reported by Stephen L Moshier <steve@moshier.net>. - * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 + - 1.25 i). - -2002-05-29 H.J. Lu <hjl@gnu.org> - - * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug - is turned on. - -2002-05-28 H.J. Lu <hjl@gnu.org> - - * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which - are not dlopened on the dependency list of a dlopened object. - -2002-06-30 Ulrich Drepper <drepper@redhat.com> - - * elf/dl-lookup.c (add_dependency): It is not necessary to add - dependencies if they are created between objects which are created - while processing RTLD_NOW for objects loaded as part of the same - dlopen call. - -2002-06-14 H.J. Lu <hjl@gnu.org> - - * elf/Makefile (tests): Add circleload1. - (modules-names): Add circlemod1, circlemod2, circlemod3, - circlemod1a, circlemod2a and circlemod3a. - ($(objpfx)circleload1): New target. - ($(objpfx)circleload1.out): Likewise. - ($(objpfx)circlemod1.so): Likewise. - ($(objpfx)circlemod2.so): Likewise. - ($(objpfx)circlemod1a.so): Likewise. - ($(objpfx)circlemod2a.so): Likewise. - * elf/circleload1.c: New file. - * elf/circlemod1.c: New file. - * elf/circlemod1a.c: New file. - * elf/circlemod2.c: New file. - * elf/circlemod2a.c: New file. - * elf/circlemod3.c: New file. - * elf/circlemod3a.c: New file. - -2002-06-18 Amos Waterland <apw@us.ibm.com> - - * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid - file descriptor. - * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd; - add check for fd not open for writing. - - * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for - completed element(s) and do not suspend thread if so. Patch - heavily modified by drepper. - - * rt/tst-aio7.c: New file. Regression test for problems which the - above three changes fix. - * rt/Makefile (tests): Add tst-aio7. - -2002-06-29 Ulrich Drepper <drepper@redhat.com> - - * rt/tst-aio6.c: Fix comment. - - * catgets/gencat.c (read_input_file): Handle more than one slash - at end of line correctly [PR libc/3926]. - Based on a patch by Steven Kim <steven.kim@peregrine.com>. - - * catgets/sample.SJIS: Add test case for above bug. - * catgets/test-gencat.c: Adjust test code. - * catgets/test-gencat.sh: Adjust expected results. - - * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation - to skip relative relocations. - Patch by Geoff Keating <geoffk@redhat.com>. - -2002-05-26 Bruno Haible <bruno@clisp.org> - - * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro. - (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER. - All callers changed. - * iconv/gconv_simple.c (ascii_internal_loop): For error handling use - STANDARD_FROM_LOOP_ERR_HANDLER. - (utf8_internal_loop): Likewise. - (ucs2_internal_loop): Likewise. - (internal_ucs2_loop): Perform error handling like in - STANDARD_FROM_LOOP_ERR_HANDLER. - * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like - in STANDARD_FROM_LOOP_ERR_HANDLER. - (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error - handling. - * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like - in STANDARD_FROM_LOOP_ERR_HANDLER. - (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error - handling. - * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like - in STANDARD_FROM_LOOP_ERR_HANDLER. - (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error - handling. - * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use - STANDARD_FROM_LOOP_ERR_HANDLER. - * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise. - * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise. - * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise. - * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise. - * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise. - * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise. - * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise. - * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise. - * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise. - * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise. - * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise. - * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise. - * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise. - * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise. - * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise. - * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise. - * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise. - * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise. - * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise. - * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise. - * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise. - * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise. - * iconvdata/johab.c (BODY for FROM_LOOP): Likewise. - * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise. - * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise. - * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise. - * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise. - * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise. - * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring - an error, still set result = __GCONV_ILLEGAL_INPUT. - (BODY for TO_LOOP): Likewise. - * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use - STANDARD_FROM_LOOP_ERR_HANDLER. - (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER. - * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>. - (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error - handling. - (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER. - * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use - STANDARD_FROM_LOOP_ERR_HANDLER. - (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER. - * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use - STANDARD_FROM_LOOP_ERR_HANDLER. - (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER. - * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use - STANDARD_FROM_LOOP_ERR_HANDLER. - (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER. - * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use - STANDARD_FROM_LOOP_ERR_HANDLER. - (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER. - * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>. - (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error - handling. - (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER. - * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update. - * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update. - * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update. + * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result + of pthread_cond_wait if there was an error. Use pthread_cleanup_* + instead of __libc_cleanup_region_*. -2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp> +2003-06-20 Richard Henderson <rth@redhat.com> - * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local - labels in assembler instructions. + * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases. + * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New. -2002-06-25 Ulrich Drepper <drepper@redhat.com> +2003-06-20 Richard Henderson <rth@redhat.com> - * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if - not enough content is available. - * libio/tst-eof.c: New file. - * libio/Makefile (tests): Add tst-eof. + * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect. + * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT) + Unset for alpha. + (__ASSUME_TIMEVAL64): Set for alpha. + * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove + adjtimex, osf_sigprocmask, old_adjtimex. + * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL, + __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable. + * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64. + * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/select.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline + PIC code sequence. + * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file. + * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL. + * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise. + * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise. + * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask, + sys_ustat, sys_mknod, adjtimex, old_adjtimex. + * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't + defer to __syscall_name; error for rt_sigaction. + * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h. - * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to - update atime. - * libio/tst-atime.c: New file. - * libio/Makefile (tests): Add tst-atime. +2003-06-18 Ulrich Drepper <drepper@redhat.com> - * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in - handling of overly long words. + * malloc/malloc.c (public_mALLINFo): Initialize malloc if it + hasn't happened yet. -2002-06-25 Andreas Jaeger <aj@suse.de> + * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump): + Fix completely broken implementation. The second parameter is of + type struct ucontext*. - * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite - to not use 32-bit pc relative relocations. - (elf_machine_dynamic): Likewise. + * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always + inline. -2002-06-21 Ulrich Drepper <drepper@redhat.com> + * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash. + * sysdeps/generic/dl-hash.h: Likewise. - * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL] - (__GETDENTS): Check for failed getdents64 syscall. - * dirent/Makefile (tests): Add bug-readdir1. - * dirent/bug-readdir1.c: New file. + * sysdeps/generic/memcmp.c: Remove inline from + memcmp_common_alignment and memcmp_not_common_alignment definition. -2002-06-17 Jakub Jelinek <jakub@redhat.com> + * intl/localealias.c (read_alias_file): Determine whether line is + read incompletely early, before we modify the line. - * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS - lookups. - * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING - code. Print TLS modid and offset for modules containing PT_TLS - segments. +2003-06-17 Jakub Jelinek <jakub@redhat.com> -2002-06-09 Jakub Jelinek <jakub@redhat.com> + * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela) + <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols. - * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move... - * sysdeps/unix/sysv/linux/dl-brk.c: ...here. - * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move... - * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here. +2003-06-17 Paul Mackerras <paulus@samba.org> -2002-06-07 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file. + * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust. - * nss/getXXbyYY_r.c (NEW, NEW1): Define. - (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME). - (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME). - * nss/getXXent_r.c (NEW, NEW1): Define. - (NEW (REENTRANT_GETNAME)): Strong alias to - INTERNAL (REENTRANT_GETNAME). - (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME). +2003-06-17 Jakub Jelinek <jakub@redhat.com> -2002-06-21 Ulrich Drepper <drepper@redhat.com> + * posix/regcomp.c (build_word_op): Use alnum instead of alpha class. - * libio/fileops.c (_IO_file_setbuf_mmap): New function. - (_IO_file_jumps_mmap): Use it. - * libio/iosetvbuf.c: Don't call _IO_WSETBUF. - * libio/libioP.h: Remove _IO_wdefault_setbuf and - _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap - prototype. - * libio/wfileops.c (_IO_wfile_setbuf): Removed. - (_IO_wfile_jumps_mmap): Don't use it anymore. - * libio/wgenops.c (_IO_wdefault_setbuf): Removed. - * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not - _IO_wdefault_setbuf. - * libio/vswprintf.c (_IO_wstrn_jumps): Likewise. - * libio/wstrops.c (_IO_wstr_jumps): Likewise. - * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise. +2003-06-17 Ulrich Drepper <drepper@redhat.com> -2002-06-05 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep + takes care of enabling cancellation. - * libio/Makefile (tests): Add tst-mmap-setvbuf. - * libio/tst-mmap-setvbuf.c: New test. + * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend + cancelable. It's not correct to disable cancellation. Instead of + a cleanup handler. -2002-06-21 Andreas Jaeger <aj@suse.de> + * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined + and part of the incoming set, create a temporary set without this + signal. + * sysdeps/unix/sysv/linux/sigwait.c: Likewise. + * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. - * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3. + * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before + returning because seconds==0. Add __builtin_expect. -2002-06-18 Jakub Jelinek <jakub@redhat.com> +2003-06-16 Ulrich Drepper <drepper@redhat.com> - * include/unistd.h (__fork_internal): Remove. - (__fork): Don't define to __fork_internal. - * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF. - * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise. - * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias. - * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise. - * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise. + * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information. -2002-06-20 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result + variable. - * po/hr.po: New file. +2003-06-16 Thorsten Kukuk <kukuk@suse.de> -2002-06-11 Wolfram Gloger <wg@malloc.de> + * include/libc-symbols.h: Add static_link_warning macro. + * grp/initgroups.c: Print linker warning if this function + is called in a static linked binary. + * nss/getXXbyYY.c: Likewise. + * nss/getXXbyYY_r.c: Likewise. + * nss/getXXent.c: Likewise. + * nss/getXXent_r.c: Likewise. + * sysdeps/posix/getaddrinfo.c: Likewise. - * malloc/malloc.c: Fix error path when new_heap() returns NULL. - Reported by Michael Meissner <meissner@redhat.com>. +2003-06-16 Bruno Haible <bruno@clisp.org> -2002-06-20 Ulrich Drepper <drepper@redhat.com> + * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15, + LATIN-9. + (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16. + (IBM1047): Add alias IBM-1047. + (GBK): Add aliases MS936, WINDOWS-936. - * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo. - Patch by Hans Boehm <hans_boehm@hp.com>. +2003-06-16 Jakub Jelinek <jakub@redhat.com> -2002-06-20 Andreas Jaeger <aj@suse.de> + * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if + defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64. + (__xstat64_conv): Change xstat_conv to __xstat_conv. - * math/libm-test.inc: Use exact values as input parameters, - compute output parameters with 36 digits for 128-bit long doubles. - * sysdeps/i386/fpu/libm-test-ulps: Regenerated. - * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated. - * sysdeps/ia64/fpu/libm-test-ulps: Regenerated. +2003-06-16 Ulrich Drepper <drepper@redhat.com> -2002-06-13 Stephen L Moshier <steve@moshier.net> + * locale/iso-639.def: Update from current official ISO 639. - * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which - argument or result is subnormal. + * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed. -2002-06-19 Ulrich Drepper <drepper@redhat.com> +2003-06-15 Andreas Jaeger <aj@suse.de> - * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the - quotient. - * sysdeps/i386/fpu/s_remquof.S: Likewise. - * sysdeps/i386/fpu/s_remquol.S: Likewise. + * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting + of MXCSR. + * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise. + * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise. + Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>. - * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals. + * math/tgmath.h (carg): Handle real arguments. + (conj): Likewise. + (cproj): Likewise. + (cimag): Likewise. + (creal): Likewise. -2002-06-17 David Mosberger <davidm@hpl.hp.com> + * math/Makefile (CFLAGS-test-tgmath-ret.c): New. + (tests): Add test-tgmath-ret. + * math/test-tgmath-ret.c: New file. - * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix - typo: corresponding sigcontext field is called sc_mask, not sc_sigmask. - Reported by Peter A. Buhr. + * math/tgmath.h (ilogb): Return always an int. -2002-06-15 Roland McGrath <roland@frob.com> +2003-06-16 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a - warning. + * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr + computation so that prelinking works. - * sysdeps/mach/hurd/getcwd.c - (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t +2003-06-15 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ... - * sysdeps/generic/bits/ustat.h: ... here (was almost identical). + * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic + linker's map. + * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the + dynamic linker's map. - * sysdeps/alpha/divrem.h: Use local label instead of global one for - jump to local subroutine. + Fix cancellation point handling wrt exception based cleanup. + * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions. + * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c + with exceptions. + * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c, + sleep.c, wait.c, waitid.c, and waitpid.c with exceptions. + * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with + exceptions. + * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c, + sigwait.c, and sigwaitinfo.c with exceptions. + * stdlib/Makefile: Compile system.c with exceptions. + * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions. + * termios/Makefile: Compile tcdrain.c with exceptions. + * sysdeps/generic/lockf.c: Add comment explaining the cancellation + situation. + * sysdeps/generic/pselect.c: Likewise. + * sysdeps/posix/sigpause.c: Likewise. + * sysdeps/posix/system.c: Likewise. + * sysdeps/posix/waitid.c: Likewise. + * sysdeps/unix/sysv/linux/sleep.c: Likewise. + * sysdeps/unix/sysv/linux/usleep.c: Likewise. + * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of + INTERNAL_SYSCALL to not use push inside asm statement so that + unwind info is correct around the syscall. + * sysdeps/unix/clock_nanosleep.c: Add cancellation support. + * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise. -2002-06-14 Roland McGrath <roland@frob.com> +2003-06-15 Andreas Jaeger <aj@suse.de> - * sysdeps/mach/hurd/i386/Makeconfig: File moved to ... - * sysdeps/mach/hurd/Makeconfig: ... here. + * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): + Add CFI directives. -2002-06-13 Andreas Schwab <schwab@suse.de> +2003-06-15 Guido Guenther <agx@sigxcpu.org> - * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF. - * sysdeps/m68k/fpu/s_finitef.c: Likewise. - * sysdeps/m68k/fpu/s_finitel.c: Likewise. + * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and + create $(objpfx). -2002-06-13 Roland McGrath <roland@frob.com> +2003-06-14 Ulrich Drepper <drepper@redhat.com> - * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type. - * hurd/hurdstartup.c (_hurd_startup): Likewise. - Use intptr_t instead of int for argc in stack layout. - * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type. - (_dl_init_first): Likewise. - (_hurd_stack_setup): Likewise. - (init1): Add a cast. - * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type. + * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close, + not close. - * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT - argument to pfinet_siocgifconf RPC. + * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def. + * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto + definition. -2002-06-13 Andreas Schwab <schwab@suse.de> + * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define. + * inet/netinet/in.h: Add prototypes for inet6_option_* functions. + * inet/Makefile (routines): Add inet6_option. + * inet/inet6_option.c: New file. + * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space, + inet6_option_init, inet6_option_append, inet6_option_alloc, + inet6_option_next, and inet6_option_find. + +2003-06-13 Ulrich Drepper <drepper@redhat.com> + + * inet/netinet/ip6.h (struct ip6_ext): Define. + + * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc. + + Fixing gcc 3.3 warnings, part II. + * argp/argp-help.c (hol_entry_long_iterate): Always inline. + * elf/dl-load.c (cache_rpath): Don't inline. + * iconvdata/cns11642l2.h: Always inline all functions. + * iconvdata/iso-ir-165.h: Likewise. + * locale/Makefile (aux): Add coll-lookup. + * locale/coll-lookup.c: New file. + * locale/coll-lookup.h (collidx_table_lookup): Do not define here. + (collseq_table_lookup): Likewise. + * locale/weightwc.h: Adjust collidx_table_lookup calls for name change. + * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name + change. + * posix/regcomp.c: Likewise. + * posix/regexec.c: Likewise. + * locale/programs/3level.h (*_get): Always inline. + * locale/programs/locfile.h: Move definition of handle_copy to... + * locale/programs/locfile.c: ...here. + * locale/programs/ld-collate.c (obstack_int32_grow): Always inline. + (obstack_int32_grow_fast): Likewise. + (utf8_encode): Likewise. + (find_element): Avoid aliasing problems. + (insert_value): Likewise. + (collate_read): Likewise. + * nss/getent.c (print_hosts): Don't inline + (print_networks): Likewise. + (print_shadow): Likewise. + (build_doc): Likewise. + * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't + inline. + * posix/regcomp.c (re_set_fastmap): Always inline. + (seek_collating_symbol_entry): Likewise. + (lookup_collation_sequence_value): Likewise. + (build_range_exp): Likewise. + (build_collating_symbol): Likewise. + * posix/regexec.c (acquire_init_state_context): Don't inline. + (clean_state_log_if_need): Likewise. + * resolv/res_send.c (eConsIovec): Rewrite to not return struct and + adjust all callers. + (evConsTime): Likewise. + (evAddTime): Likewise. + (evSubTime): Likewise. + (evNowTime): Likewise. + (evTimeSpec): Removed. + (__libc_res_nsend): Avoid aliasing problem. + * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to.. + * sysdeps/unix/sysv/linux/ifreq.c: ...here. + * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap): + Always inline. + (_dl_string_platform): Likewise. + * wctype/wchar-lookup.h (wctype_table_lookup): Always inline. + (wcwidth_table_lookup): Likewise. + (wctrans_table_lookup): Likewise. - * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct - expansion order. + * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>. -2002-06-12 Roland McGrath <roland@frob.com> +2003-06-12 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define - if already defined. - [USE_IN_LIBIO]: Conditionalize versioned_symbol use on - [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it. + * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034]. -2002-06-11 Roland McGrath <roland@frob.com> +2003-05-29 Jim Meyering <jim@meyering.net> - * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the - file on [!RTLD_STAT64]. - * sysdeps/mach/hurd/fxstat64.c: Likewise. + * time/strftime.c (my_strftime) [!defined _NL_CURRENT + && HAVE_STRFTIME]: Use underlying_strftime for %r. + Suggested by Daniel Yacob <locales@geez.org>. - * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile. - (__fdopen): Use INTUSE. - * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder. +2003-06-12 Steven Munroe <sjmunroe@us.ibm.com> - * stdio-common/tmpfile64.c: File removed. - * sysdeps/generic/tmpfile64.c: New file. - * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE - if not already defined. - (tmpfile): Use it in place of __GT_FILE. + * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace + @got notation with @toc. + * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise. - * include/unistd.h: Declare __chown_internal. +2003-06-12 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here. - * sysdeps/mach/hurd/sendfile.c (sendfile): Call that. + * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also + if only PF_INET address is needed. -2002-06-09 Roland McGrath <roland@frob.com> + * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in + case of an error. - Update to new Hurd RPC interfaces supporting 64-bit file sizes. - * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with - value of HURD_INTERFACE_VERSION >= 20020609. - * sysdeps/mach/hurd/configure: Regenerated. - * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3. - * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to - convert a struct stat64 into a struct stat and return 0 or -1 - with errno set to EOVERFLOW. - * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise - for struct statfs64 to struct statfs. - * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ... - * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here. - * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise. - * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise. - * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise. - * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise. - * sysdeps/mach/hurd/statfs.c (__statfs): Likewise. - * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise. - * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise. - * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise. - * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here. - * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that. - * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here. - * sysdeps/mach/hurd/pread.c (__libc_pread): Call that. - * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here. - * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that. - * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here. - * sysdeps/mach/hurd/readdir.c (__readdir): Call that. - * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here. - * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that. - * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): - Use struct stat64 for io_stat argument. - * sysdeps/mach/hurd/readlink.c (__readlink): Likewise. - * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly - to io_seek. - * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument. - * hurd/fd-write.c (_hurd_fd_write): Likewise. - * hurd/hurd/fd.h: Update decls. - * sysdeps/mach/hurd/getcwd.c - (_hurd_canonicalize_directory_name_internal): Use ino64_t - and struct dirent64. - * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64. - (__xstat): Renamed to __xstat64, use struct stat64 for argument. - (__fxstat): Renamed to __fxstat64, use struct stat64 for argument. - (__lseek): Renamed to __libc_lseek64, use off64_t for argument. - -2002-06-08 Roland McGrath <roland@frob.com> - - * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t - instead of unsigned long int for __allocation and __size members. - -2002-06-09 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move... - * sysdeps/unix/sysv/linux/dl-brk.c: ...here. - * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move... - * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here. - -2002-06-07 Roland McGrath <roland@frob.com> - - * sysdeps/mach/hurd/bits/environments.h: File removed. - -2002-06-07 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file. - * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file. - * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file. - * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA. - (sendfile64): Likewise. - * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise. - * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile): - Likewise. - * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise. + * scripts/config.guess: Update from upstream version. + * scripts/config.sub: Likewise. - * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not - already defined. +2003-06-12 Jakub Jelinek <jakub@redhat.com> + + * locale/programs/ld-time.c (time_output): Also copy the era format, + not only the name. + +2003-06-12 H.J. Lu <hongjiu.lu@intel.com> + + * posix/transbug.c (run_test): Return 1 for failure. + (do_test): Compare only if run_test is successful. + +2003-06-12 Simon Josefsson <jas@extundo.com> + + * argp/argp.h [!__THROW]: Define if undefined. + +2003-06-12 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with + more than four parameters. + Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>. + +2003-06-12 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file. + * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file. + * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file. + + * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h. + +2003-06-12 Roland McGrath <roland@redhat.com> + + * Makerules ($(objpfx)stubs): Rewrite sed magic. + +2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com> + + * posix/regcomp.c (parse_expression): Deliver translation to + build_word_op, and build_charclass. + (build_charclass): Apply translation for character classes too. + (build_word_op): Deliver translation to build_charclass. + * posix/transbug.c: New file. + * posix/Makefile (tests): Add transbug. + +2003-06-04 Paolo Bonzini <bonzini@gnu.org> + + * posix/regexec.c (group_nodes_into_DFAstates): Check for + NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a + 'continue' before the others. + +2003-06-11 Ulrich Drepper <drepper@redhat.com> + + * dirent/scandir.c (SCANDIR): Reset errno after calling selector + function [PR libc/5045]. + + * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction + also for P4. + + * time/tzfile.c: Add a couple of __builtin_expect. + + Remove warnings gcc 3.3 shows. + * argp/argp-help.c (hol_entry_short_iterate): Don't inline. + * elf/dl-load.c (fillin_rpath): Likewise. + (add_path): Likewise. + * elf/dl-version.c (find_needed): Always inline. + * elf/do-lookup.c (FCT): Don't inline. + * iconv/Makefile: Extend vpath to intl subdir. + (iconvconfig-modules): Add hash-string. + * iconv/gconv_charset.h (strip): Don't inline. + (upstr): Always inline. + Move __gconv_compare_alias prototype to... + * iconv/gconv_int.h: ...here. + * iconv/gconv_db.c: Don't include gconv_charset.h. + * iconv/gconv_conf.c (add_alias): Don't inline. + (insert_module): Likewise. + * iconv/gconv_simple.c (internal_ucs4_loop): Always inline. + (internal_ucs4_loop_unaligned): Likewise. + (internal_ucs4_loop_single): Likewise. + (ucs4_internal_loop): Likewise. + (ucs4_internal_loop_unaligned): Likewise. + (ucs4_internal_loop_single): Likewise. + (internal_ucs4le_loop): Always inline. + (internal_ucs4le_loop_unaligned): Likewise. + (internal_ucs4le_loop_single): Likewise. + (ucs4le_internal_loop): Likewise. + (ucs4le_internal_loop_unaligned): Likewise. + (ucs4le_internal_loop_single): Likewise. + * iconv/loop.c: Always inline the defined functions. + * iconvdata/cns11642.h: Likewise. + * iconvdata/cns11642l1.h: Likewise. + * iconvdata/euc-kr.c: Likewise. + * iconvdata/gb2312.h: Likewise. + * iconvdata/jis0201.h: Likewise. + * iconvdata/jis0208.h: Likewise. + * iconvdata/jis0212.h: Likewise. + * iconvdata/jisx0213.h: Likewise. + * iconvdata/ksc5601.h: Likewise. + * iconvdata/utf-7.c (base64): Don't inline. + * include/libc-symbols.h (symbol_set_first_element): Add cast + (symbol_set_end_p): Likewise. + * include/set-hooks (RUN_HOOK): Likewise. + * inet/Makefile (aux): Add ifreq. + * intl/Makefile (aux): Add some entries from routines. Add + hash-string. + * intl/hash-string.c: New file. + * intl/hash-string.h: Remove hash_string definition. Declare + __hash_string. + * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller. + * iconv/iconvconfig.c (new_name): Likewise. + * intl/dcigettext.c (_nl_find_msg): Likewise. + * intl/loadmsgcat.c (_nl_load_domain): Likewise. + * io/ftw.c (open_dir_stream): Always inline. + (process_entry): Don't inline. + * locale/findlocale.c: Include gconv_int.h. + * locale/setlocale.c (new_composite_name): Don't inline. + * locale/weight.h (findidx): Always inline. + * locale/weightwc.h (findidx): Likewise. + * locale/programs/linereader.c (lr_ignore_rest): Define here. + * locale/programs/linereader.h (lr_ignore_rest): Don't define here, + just declare it. + (lr_getc): Always inline. + (lr_ungetc): Likewise. + * nss/nss_files/files-parse.c (parse_list): Likewise. + * stdio-common/Makefile (aux): Add printf-parsemb and + printf-parsewc. + * stdio-common/_itoa.h (_itoa_word): Always inline. + (_fitoa_word, _fitoa): Don't define here, only declare. + * stdio-common/_itoa.c (_iftoa_word): Add here. + (_fitoa): Likewise. + * stdio-common/_itowa.h (_itowa_word): Always inline. + * stdio-common/printf-parse.h (read_int): Don't inline. + (find_spec): Don't define. + Declare __find_specmb and __find_specwc. + (parse_one_spec): Don't define. + Declare __parse_one_specmb and __parse_one_specwc. + * stdio-common/printf-parsemb.c: New file. + * stdio-common/printf-parsewc.c: New file. + * stdio-common/vfprintf.c: Update calls to find_spec and + parse_one_spec for new names. + * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT. + * stdlib/Makefile (aux): Add grouping and groupingwc. + * stdlib/grouping.c: New file. + * stdlib/groupingwc.c: New file. + * stdlib/grouping.h (correctly_grouped_prefix): Don't define here. + Just prototype. + * stdlib/rpmatch.c (try): Don't inline. + * stdlib/strtod.c (round_and_return): Don't line. + (str_to_mpn): Likewise. + (__mpn_lshift_1): Always inline. Optimize only for constant count. + Adjust for name change of correctly_grouped_prefix. + * sysdeps/generic/strtol.c: Adjust for name change of + correctly_grouped_prefix. + * string/strxfrm.c (utf8_encode): Don't inline. + * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp. + * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp. + * sysdeps/generic/ifreq.c: New file. + * sysdeps/unix/sysv/linux/ifreq.c: New file. + * sysdeps/generic/ifreq.h (__ifreq): Only declare here. + * sysdeps/unix/sysv/linux/ifreq.h: Likewise. + * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline. + * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline. + (fde_split): Likewise. + (fde_merge): Likewise. + (end_fde_sort): Likewise. + (init_object): Likewise. + (binary_search_unencoded_fdes): Likewise. + (binary_search_single_encoding_fdes): Likewise. + (binary_search_mixed_encoding_fdes): Likewise. + * sysdeps/generic/wordexp.c (w_addchar): Don't inline. + * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline. + * sysdeps/posix/sprofil.c (profil_count): Don't inline. + * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): + Add xstatconv. + * sysdeps/unix/sysv/linux/xstatconv.h: New file. + * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function. + Export them. Prepend __ to name. + * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h. + * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of + conversion functions. + * sysdeps/unix/sysv/linux/fxstat64.c: Likewise. + * sysdeps/unix/sysv/linux/lxstat.c: Likewise. + * sysdeps/unix/sysv/linux/lxstat64.c: Likewise. + * sysdeps/unix/sysv/linux/xstat.c: Likewise. + * sysdeps/unix/sysv/linux/xstat64.c: Likewise. + * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise. + * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise. + * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise. + * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max, + __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended + to name. Change callers. + * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max, + __statfs_filesize_max, __statfs_symlinks): Don't define here, just + declare. + * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers. + * time/tzfile.c (decode): Always inline. + * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*. + Remove cast in tomb function call. + * wcsmbs/wcsrtombs.c Likewise. + * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in + tomb function call. -2002-06-04 Bruno Haible <bruno@clisp.org> +2003-06-10 Ulrich Drepper <drepper@redhat.com> - * sysdeps/cris/stackinfo.h: New file. + * po/zh_CN.po: Update from translation team. - * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr - to an integer type before performing bit operations on it. +2003-06-10 Jakub Jelinek <jakub@redhat.com> -2002-06-05 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST, + IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define. - * sysdeps/generic/sendfile.c: Include <errno.h>. - * sysdeps/generic/sendfile64.c: Likewise. +2003-06-10 Ulrich Drepper <drepper@redhat.com> - * io/Makefile (routines): Add sendfile and sendfile64. - (headers): Add sys/sendfile.h to the list. - * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here. - * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ... - * io/sys/sendfile.h: ... here. - * sysdeps/generic/sendfile.c: New file. - * sysdeps/generic/sendfile64.c: New file. + * inet/Makefile (aux): Add check_pf. + * include/ifaddrs.h: Add prototype for __check_pf. + * sysdeps/generic/check_pf.c: New file. + * sysdeps/unix/sysv/linux/check_pf.c: New file. + * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed + from no_netlink_support. Export. + * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs, + call __check_pf. - * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3): - Move sendfile, sendfile64 to ... - * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here. - * sysdeps/mach/hurd/sendfile.c: New file. - * sysdeps/mach/hurd/sendfile64.c: New file. + * sysdeps/generic/ifaddrs.h: Add libc_hidden_def. - * sysdeps/mach/nanosleep.c: New file. + * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory + from getifaddr calls. -2002-06-04 Roland McGrath <roland@frob.com> +2003-06-09 Jakub Jelinek <jakub@redhat.com> - * sysdeps/alpha/elf/configure.in: New file. Check for TLS support. - * sysdeps/alpha/elf/configure: New file (generated). + * sysdeps/unix/sysv/linux/kernel-features.h + (__ASSUME_SETRESGID_SYSCALL): Define. + * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL + instead of __ASSUME_SETRESUID_SYSCALL. + (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is + defined. + * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32 + inline syscall if __NR_setresuid32 is defined. + * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use + __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL. + * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes. + * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect + code handling non-existant setresgid32 syscall with + #if __ASSUME_SETRESGID_SYSCALL == 0. -2002-06-02 Roland McGrath <roland@frob.com> +2003-06-09 Andreas Schwab <schwab@suse.de> - * include/link.h: Include <tls.h> to make sure USE_TLS is defined. + * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d. + ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on + $(objpfx)rpc-proto.d. + (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include + $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d. + ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules. -2002-06-01 Roland McGrath <roland@frob.com> +2003-06-08 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from - i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>. + * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32 + syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is + defined drop compatibility code. + * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32 + syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is + defined drop compatibility code. + * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use + setresuid32 syscall directly if possible. + * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use + setresgid32 syscall directly if possible. + * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX + compliant. Don't change sgid. + * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX + compliant. Don't change suid. -2002-05-19 Ulrich Drepper <drepper@redhat.com> + * config.h.in: Add have-forced-unwind. + * configure.in: Add AC_SUBST(libc_cv_forced_unwind). - * resolv/resolv.h (struct __res_state): Remove unused nstimes. - Add nsmap. - * resolv/res_init.c (__res_vinit): Initialize nsmap array. - Remove nstimes setting. - (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs. - * resolv/res_send.c (res_nsend): Don't close unconditionally if - there is mix of IPv6 and IPv4 nameservers. - Use nsmap array to find free slots and preserve nameserver ordering. - Fix RES_ROTATE. +2003-06-07 Ulrich Drepper <drepper@redhat.com> -2002-05-30 Ulrich Drepper <drepper@redhat.com> + * test-skeleton.c (main): If EXPECTED_STATUS is defined check that + returned status from child matches. - * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to - use this header with LFS. + * Makeconfig (gnulib): Add -lgcc_eh once again. - * po/sk.po: Update from translation team. +2003-06-06 Ulrich Drepper <drepper@redhat.com> -2002-05-28 Andreas Schwab <schwab@suse.de> + * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid. - * sysdeps/generic/readelflib.c (process_elf_file): Give correct - message when finding object of wrong class. + * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow + %edx for first parameter. This means no pushl and therefore the + unwind info isn't screwed up. -2002-05-28 Jakub Jelinek <jakub@redhat.com> +2003-06-04 Richard Henderson <rth@redhat.com> - * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto. - Patch by <radu@netsoft.ro>. + * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace. + * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise. + * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation. + * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp + entry sequence and explicit relocs. Add unwind info for sigreturn + and rt_sigreturn. + * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state. -2002-05-30 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New. + Annotate some parameters. + * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New. - * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines): - Add readahead. - * sysdeps/unix/sysv/linux/readahead.c: New file. - * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall. - * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64. - * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall. - Add sendfile64 alias to sendfile syscall. - * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead - syscall. + * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion. - * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX - special section for PIC register loading. - * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise. + * include/libc-symbols.h (symbol_set_declare): Use arrays + of unspecified size. - * config.h.in: Define HAVE_HIDDEN. - * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined. +2003-06-04 Jakub Jelinek <jakub@redhat.com> - * elf/elf.h: Correct Alpha TLS relocations according to last spec. + * config.make.in (ASFLAGS-config): New. + * Makeconfig (ASFLAGS): Append $(ASFLAGS-config). + * configure.in (libc_cv_as_noexecstack): New check. + (ASFLAGS_config): Substitute. -2002-05-28 Roland McGrath <roland@frob.com> +2003-06-04 Jakub Jelinek <jakub@redhat.com> - * sysdeps/mach/alpha/setfpucw.c: New file. + * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh, + hypot, logb): Protect with #ifdef __FAST_MATH__. -2002-05-26 Roland McGrath <roland@frob.com> +2003-06-04 Thorsten Kukuk <kukuk@suse.de> - * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS. - Use integer_t instead of int for IOC_VOID case. + * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with + #ifdef __FAST_MATH__. -2002-05-27 Alexandre Oliva <aoliva@redhat.com> +2003-06-03 Ulrich Drepper <drepper@redhat.com> - * configure.in (DO_STATIC_NSS): Define if --disable-shared. + * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow + DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043]. + * posix/globtest.sh: Adjust for this change. -2002-05-26 Bruno Haible <bruno@clisp.org> + * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname + to get the actual PID value used in the records passed up. + (getifaddrs): Don't initialize nh.pid here. - * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the - end of the ISO-8859-7 from idx table. +2003-06-02 Ulrich Drepper <drepper@redhat.com> -2002-05-27 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor + optimization. - * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649]. + * po/zh_CN.po: Update from translation team. -2002-05-24 David S. Miller <davem@redhat.com> + * posix/getconf.c (main): Also recognize names without the + _POSIX_ prefix. - * string/bits/string2.h (memset): Do not try to optimize when - not _STRING_ARCH_unaligned if GCC will do the right thing. + * elf/Makefile (CFLAGS-dl-lookup.c): Define. -2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com> +2003-06-02 Bernd Schmidt <bernds@redhat.com> - * posix/regex.c: Define `inline' as a macro into nothing for the - compilers which lack the keyword. - * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS - for the compatibility of gawk. - * posix/regcomp.c: Add fake implementation of isblank() for the - environments which lack the function. - Don't use free_charset() in case of non-i18n envs. - (build_range_exp): Don't use i18n related code in case of non-i18n - envs. - (build_collating_symbol): Likewise. - (build_equiv_class): Likewise. - (build_charclass): Likewise. - (re_compile_fastmap_iter): Likewise. - (parse_bracket_exp): Likewise. - (build_word_op): Likewise. - (regfree): Don't use free_charset() in case of non-i18n envs. - * posix/regex_internal.h: Remove COMPLEX_BRACKET from - re_token_type_t in case of non-i18n envs. - Don't define re_charset_t in case of non-i18n envs. - Change the type of wcs of re_string_t from wchar_t to wint_t, - since we store also WEOF. - * posix/regex_internal.c: (re_string_realloc_buffers): Change - the type of wcs of re_string_t from wchar_t to wint_t. - (re_string_reconstruct): Likewise. - (create_ci_newstate): Don't use i18n related code in case of - non-i18n envs. - (create_cd_newstate): Likewise. + * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp, + ldexpf, ldexpl): Only define if __FAST_MATH__. -2002-05-24 Ulrich Drepper <drepper@redhat.com> +2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca> - * iconv/loop.c: Fix typo. + Replace hard-coded offsets into struct sigcontext with generated file. + * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file. + * sysdeps/unix/sysv/linux/ia64/Makefile + [$(subdir) = stdlib] (gen-as-const-headers): Add it. + * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of + defining SC_* macros here. -2002-05-23 Jakub Jelinek <jakub@redhat.com> +2003-06-02 Jakub Jelinek <jakub@redhat.com> - * inet/ether_line.c (ether_line): Fix a typo causing only - lower 4 bits of each ethernet address byte being assigned. - Don't modify what line points to. - * inet/tst-ether_aton.c (main): Add ether_line tests. + * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove. -2002-05-23 Marcus Brinkmann <marcus@gnu.org> +2003-06-01 Jakub Jelinek <jakub@redhat.com> - * manual/filesys.texi: Don't make readlink example leak memory - when readlink fails. + * sysdeps/i386/dl-machine.h: Include <sysdep.h>. -2002-05-20 Ulrich Drepper <drepper@redhat.com> +2003-06-01 Ulrich Drepper <drepper@redhat.com> - * iconv/loop.c: Fix condition for defining unaligned loop. Add - some more security checks. + * test-skeleton.c (main): Request getopt to not reorder the + command line. -2002-05-17 David S. Miller <davem@redhat.com> + * elf/Makefile (CFLAGS-dl-runtime.c): Define. - * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases. + * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match + stpncpy. -2002-05-16 David S. Miller <davem@redhat.com> +2003-05-31 Ulrich Drepper <drepper@redhat.com> - * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define. - (elf_machine_dynamic): Use it to force PIC register to be loaded. - (elf_machine_load_address): Likewise. - * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes. + * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define. - * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer - is unaligned, do not forget to fully initialize %g1 magic value. +2003-05-31 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf - register definitions and provide 32-bit variants of structures - during 64-bit builds. + * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict): + New function. + (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid + RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined, + call elf_machine_plt_conflict instead of elf_machine_fixup_plt. - * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define. - * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define. - * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define. - * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if - _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it. - (_FP_FROM_INT): Perform right shifts on unsigned integer type. - Do not clear implicit one bit here, it must be done post-rounding. - Only pad to the left using left shift if value uses less than the - available fractional bits. +2003-05-31 Ulrich Drepper <drepper@redhat.com> -2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> + * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add + CFI directives. - * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat - instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir. - (shared-only-routines): Likewise. - * sysdeps/powerpc/libgcc-compat.c: New file. - * sysdeps/wordsize-32/cmpdi2.c: Removed. - * sysdeps/wordsize-32/fixdfdi.c: Removed. - * sysdeps/wordsize-32/fixsfdi.c: Removed. - * sysdeps/wordsize-32/shdi3.c: Removed. + * csu/Makefile: Fix Makefile warnings regarding Scrt1.o. -2002-05-16 Bruno Haible <bruno@clisp.org> + * libio/fileops.c (_IO_file_open): Don't mark as inline. - * MakeTAGS (libc.pot): Don't sort the output. - * po/header.pot: Update to match xgettext 0.11 output. + * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with + attribute used. -2002-05-16 Bruno Haible <bruno@clisp.org> +2003-05-30 Ulrich Drepper <drepper@redhat.com> - * MakeTAGS (subdirs): Remove duplicates. + * scripts/config.guess: Update from master copy. + * scripts/config.sub: Likewise. -2002-05-19 Ulrich Drepper <drepper@redhat.com> +2003-05-30 Guido Guenther <agx@sigxcpu.org> - * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias - definiton of _old_sys_nerr. Define _old_sys_errlist as strong - alias. + * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for + SETUP_GP64 and friends. + * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register + names in internal_syscall{6,7}. + * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix + number of syscall arguments. + * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. + * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise. + * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise. -2002-05-19 Andreas Jaeger <aj@suse.de> - - * sysdeps/unix/sysv/linux/configure.in: Warn against an - installation in /usr/local. - -2002-05-16 Bruno Haible <bruno@clisp.org> - - * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline - string as argument of #error. - -2002-05-15 Ulrich Drepper <drepper@redhat.com> - - * stdlib/canonicalize.c (canonicalize): Rename to __realpath and - don't define static. Remove old __realpath function. TC1 of - POSIX 2001 will allow the second parameter to be NULL. - * stdlib/test-canon.c: Comment out test for NULL as second - parameter of realpath. - - * time/offtime.c (__offtime): Set errno if overflow is detected. - - * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk. - * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add - dl-brk and dl-sbrk. - - * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW. - (fdimf): Likewise. - -2002-05-15 Roland McGrath <roland@frob.com> - - * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg. - -2002-05-12 Bruno Haible <bruno@clisp.org> - - * iconvdata/testdata/EUC-JISX0213: New file. - * iconvdata/testdata/EUC-JISX0213..UTF8: New file. - * iconvdata/testdata/SHIFT_JISX0213: New file. - * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file. - * iconvdata/testdata/ISO-2022-JP-3: New file. - * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file. - * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3. - * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap - contains comments indicating precomposed characters. - -2002-04-21 Bruno Haible <bruno@clisp.org> - - * iconvdata/iso-2022-jp-3.c: New file. - * iconvdata/gconv-modules (ISO-2022-JP-3): New module. - * iconvdata/Makefile (modules): Add ISO-2022-JP-3. - (LDFLAGS-ISO-2022-JP-3.so): New variable. - (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so. - (distribute): Add iso-2022-jp-3.c. - -2002-05-12 Bruno Haible <bruno@clisp.org> - - * iconvdata/tst-table-to.c (main): Restore handling of - transliterations, broken by last patch. - -2002-05-12 Bruno Haible <bruno@clisp.org> - - * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129. - -2002-05-12 Bruno Haible <bruno@clisp.org> - - * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr - when there is not enough room in the output buffer. - * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise. - -2002-04-20 Bruno Haible <bruno@clisp.org> - - * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New - macros. - (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}. - Also make this macro work if FROM_DIRECTION evaluates to 0. - (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}. - (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and - of consume_incomplete. - * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} - instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to - 4, not 8. - * iconvdata/cp1258.c: Likewise. - * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} - instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3, - not 2. - * iconvdata/ibm933.c: Likewise. - * iconvdata/ibm935.c: Likewise. - * iconvdata/ibm937.c: Likewise. - * iconvdata/ibm939.c: Likewise. - * iconvdata/iso-2022-cn.c: Define - {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of - {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4. - * iconvdata/iso-2022-cn-ext.c: Likewise. - * iconvdata/iso-2022-jp.c: Define - {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of - {MIN,MAX}_NEEDED_{FROM,TO}. - * iconvdata/tcvn5712-1.c: Define - {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of - {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2. - * iconvdata/euc-jisx0213.c: Define - {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of - {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4. - * iconvdata/shift_jisx0213.c: Likewise. - -2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> - - * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2, - shdi3, fixdfdi, fixsfdi in csu dir. - (shared-only-routines): Likewise. - * sysdeps/wordsize-32/cmpdi2.c: New file. - * sysdeps/wordsize-32/shdi3.c: New file. - * sysdeps/wordsize-32/fixdfdi.c: New file. - * sysdeps/wordsize-32/fixsfdi.c: New file. - * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3, - __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi, - __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0. - - * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl): - Only use va_arg if the argument will be used [PR libc/3259]. - -2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com> - - * catgets/catgets.c (catopen): Free buffer if internal catalog - open fails. - -2002-05-14 Ulrich Drepper <drepper@redhat.com> - - * debug/xtrace.sh: Make more robust. For realtime tracking use - non-buffering methods. - * debug/pcprofiledump.c: Implement -u option. - Patch by Roger Luethi <rl@hellgate.ch>. - -2002-05-11 Jakub Jelinek <jakub@redhat.com> - - * include/netinet/in.h (bindresvport_internal): Add prototype. - * include/rpc/auth.h (authunix_create_internal, - authunix_create_default_internal, authnone_create_internal, - authdes_pk_create_internal): Add prototypes. - * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal, - clntudp_create_internal, clntudp_bufcreate_internal, - clntunix_create_internal): Add prototypes. - * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal, - svc_getreq_internal, svc_getreq_common_internal, - svc_getreqset_internal, svc_getreq_poll_internal, - svc_register_internal, svc_unregister_internal, - svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes. - * include/rpc/svc_auth.h (_authenticate_internal): Add prototype. - * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg, - __setsockopt, __getsockname, __bind, __listen): Add prototypes. - * inet/rexec.c (rexec_af): Use __listen and __getsockname. - * inet/rcmd.c (rcmd_af): Use __listen. - (rresvport_af): Use __bind. - * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport, - authunix_create, authunix_create_default, authnone_create, - authdes_pk_create, clnt_create, clnttcp_create, clntudp_create, - clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode, - svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll, - svc_register, svc_unregister, svcudp_create, svcudp_bufcreate, - _authenticate, add INTDEF after such function definitions. - Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg, - __setsockopt, __getsockname instead of non-__ variants. - * sunrpc/pmap_rmt.c: Likewise. - * sunrpc/rtime.c: Likewise. - * sunrpc/svc_udp.c: Likewise. - * sunrpc/clnt_unix.c: Likewise. - * sunrpc/svc_unix.c: Likewise. - * sunrpc/bindrsvprt.c: Likewise. - * sunrpc/svc_tcp.c: Likewise. - * sunrpc/auth_none.c: Likewise. - * sunrpc/clnt_raw.c: Likewise. - * sunrpc/clnt_tcp.c: Likewise. - * sunrpc/auth_unix.c: Likewise. - * sunrpc/key_call.c: Likewise. - * sunrpc/clnt_gen.c: Likewise. - * sunrpc/pm_getmaps.c: Likewise. - * sunrpc/clnt_simp.c: Likewise. - * sunrpc/pmap_clnt.c: Likewise. - * sunrpc/svc_run.c: Likewise. - * sunrpc/svc.c: Likewise. - * sunrpc/svc_simple.c: Likewise. - * sunrpc/pm_getport.c: Likewise. - * sunrpc/auth_des.c: Likewise. - * sunrpc/svc_auth.c: Likewise. - * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases, - __register_frame_info_table_bases, __deregister_frame_info_bases): - Add INTDEF. - (__register_frame_info_bases_internal, - __register_frame_info_table_bases_internal, - __deregister_frame_info_bases_internal): Add prototypes. - (__register_frame_info, __register_frame): Use INTUSE in call to - __register_frame_info_bases. - (__register_frame_info_table): Similarly. - (__deregister_frame_info, __deregister_frame): Similarly. - * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add - sendto as weak alias. - * sysdeps/mach/hurd/sendto.c: Likewise. - * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add - recvfrom as weak alias. - * sysdeps/mach/hurd/recvfrom.c: Likewise. - * sysdeps/unix/sysv/aix/recvfrom.c: Likewise. - * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add - recvmsg as weak alias. - * sysdeps/unix/sysv/aix/recvmsg.c: Likewise. - * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add - sendmsg as weak alias. - * sysdeps/unix/sysv/aix/sendmsg.c: Likewise. - * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from - setsockopt, add setsockopt as weak alias. - * sysdeps/mach/hurd/setsockopt.c: Likewise. - * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as - weak alias. - * sysdeps/mach/hurd/bind.c: Likewise. - * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen - as weak alias. - * sysdeps/mach/hurd/listen.c: Likewise. - * sysdeps/generic/getsockname.c (__getsockname): Renamed from - getsockname, add getsockname as weak alias. - * sysdeps/mach/hurd/getsockname.c: Likewise. - * sysdeps/unix/sysv/aix/getsockname.c: Likewise. - * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias. - * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias. - * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg, - __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases. - * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg): - Add aliases. - * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias. - * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise. - * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise. - * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise. - * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise. - * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise. - * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise. - * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise. - -2002-05-10 Jakub Jelinek <jakub@redhat.com> - - * locale/programs/localedef.h (show_archive_content): Add verbose - argument. - * locale/programs/localedef.c (main): Adjust caller. - * locale/programs/locarchive.c (struct nameent, struct dataent): New - types. - (nameentcmp, dataentcmp): New functions. - (xstrcmp): Remove. - (show_archive_content): Print verbose listing with --list-archive -v. - -2002-05-14 Ulrich Drepper <drepper@redhat.com> - - * locale/programs/locarchive.c (open_archive): Take extra argument - readonly. If true open file with O_RDONLY and don't create the - archive if it doesn't exist. - Adapt all callers. - (close_archive): Don't do anything if fd element is -1. - * locale/programs/localedef.h (open_archive): Adjust prototype. - * locale/programs/locfile.c (write_all_categories): Adjust open_archive - call. +2003-05-30 Andreas Jaeger <aj@suse.de> - * malloc/malloc.c (__posix_memalign): Correct check for size of - alignment value [PR libc/3444]. + * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): + Add CFI directives. - * include/stdio.h: Remove references to old stdio implementation. + * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI + directives. - * libio/Makefile (bug-ungetwc2-ENV): Define. + * sysdeps/generic/sysdep.h: Add CFI_* macros for C files. -2002-05-13 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): + Add CFI directives. - * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning. +2003-05-30 Jakub Jelinek <jakub@redhat.com> - * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init. + * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with + SHARED. -2002-05-13 Marcus Brinkmann <marcus@gnu.org> +2003-05-11 Andreas Schwab <schwab@suse.de> - * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): - Allocate three, not two, more than LEN when appending '/.'. - * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check - if NAME ends with '/.' if it is shorter than 2 chars. + * Makerules: Always use -MP together with -MD. + (sed-remove-dotot): Substitute $(..) also at start of line. + ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES. + Generated defines with a single compiler call. + Use $(sed-remove-dotdot). + * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead + of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx). + * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h): + Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx). + * sysdeps/unix/sysv/linux/mips/Makefile + ($(objpfx)syscall-%.h): Likewise. -2002-05-12 Roland McGrath <roland@frob.com> +2003-05-28 Roland McGrath <roland@redhat.com> - * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated - files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>. + * malloc/malloc.h [! __GNUC__] (__const): Define if undefined. - * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in - file_exec to effect svuid=euid, svgid=egid if that is not a no-op. +2003-05-26 Aldy Hernandez <aldyh@redhat.com> -2002-05-10 Jakub Jelinek <jakub@redhat.com> + * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0. - * sysdeps/ia64/Makefile: Remove extra endif. - * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version. +2003-05-28 Roland McGrath <roland@redhat.com> -2002-05-10 Andreas Schwab <schwab@suse.de> + * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to + rt_sigprocmask system call. + * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value. + From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>. - * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias. +2003-05-28 Ulrich Drepper <drepper@redhat.com> -2002-05-09 Andreas Jaeger <aj@suse.de> + * include/libc-symbols.h: Define hidden attribute for real also if + LIBC_NONSHARED is defined. Patch by Jakub Jelinek. - * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file. - * sysdeps/unix/sysv/linux/x86_64/Dist: Add it. - * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it. + * csu/Makefile: Add rules to build Scrt1.o. + * sysdeps/i386/elf/start.S: Make code compilable with SHARED. + * sysdeps/x86_64/elf/start.S: Likewise. - * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ... - * sysdeps/wordsize-64/glob.c: ...here. - * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove. - * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove. - * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove. +2003-05-27 Jakub Jelinek <jakub@redhat.com> -2002-05-08 Roland McGrath <roland@frob.com> + * stdio-common/vfprintf.c (process_arg, process_string_arg): Use + pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char. + * stdio-common/printf-parse.h (union printf_arg): Remove pa_char, + pa_short_int, pa_u_short_int and pa_float. - * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use - O_NOTRANS flag in "." lookup. +2003-05-26 Jakub Jelinek <jakub@redhat.com> -2002-05-05 Ulrich Drepper <drepper@redhat.com> + * libio/strops.c (_IO_str_init_static): Change into a wrapper around + _IO_str_init_static_internal. + (_IO_str_init_static_internal): Moved from _IO_str_init_static, + change size argument to _IO_size_t, don't limit sprintf to 64M. + (_IO_str_init_readonly): Call _IO_str_init_static_internal. + * libio/wstrops.c (_IO_wstr_init_static): Change size argument to + _IO_size_t, don't limit swprintf to 256M. + (_IO_wstr_init_readonly): Remove. + * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static): + Adjust prototypes. + (_IO_wstr_init_readonly): Remove prototype. + * libio/iovsprintf.c (_IO_vsprintf): Use + _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static). + * libio/iovsscanf.c (_IO_vsscanf): Likewise. + * libio/memstream.c (open_memstream): Likewise. + * libio/obprintf.c (_IO_obstack_vfprintf): Likewise. + * libio/vasprintf.c (_IO_vasprintf): Likewise. + * libio/vsnprintf.c (_IO_vsnprintf): Likewise. + * stdio-common/tst-sprintf.c (main): Add new test. - * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len. +2003-05-26 Ulrich Drepper <drepper@redhat.com> -2002-05-04 Ulrich Drepper <drepper@redhat.com> + * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some + other implementation in respect of multiple uses of parameter with + different types. - * locale/duplocale.c (__duplocale): Update special members only - when allocation succeeded. +2003-05-25 Ulrich Drepper <drepper@redhat.com> -2002-05-03 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/kernel-features.h: Define + __ASSUME_FUTEX_REQUEUE for >= 2.5.70. - * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals; - we can only build libc.so.0.3(GLIBC_2.2.6) now. +2003-05-22 Andreas Jaeger <aj@suse.de> -2002-05-02 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI + directives. + * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise. + * sysdeps/x86_64/strtok.S: Likewise. - * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir. - * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3, - __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0. - * sysdeps/ia64/ia64libgcc.S: New file. +2003-05-20 Guido Guenther <agx@sigxcpu.org> -2002-05-02 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL + to -60 and define SI_TKILL. - * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf. +2003-05-21 H.J. Lu <hongjiu.lu@intel.com> - * malloc/memusage.c: Distinguish anonymous mmap. + * math/test-fenv.c (feexcp_nomask_test): Fix comment. + (feexcp_mask_test): Likewise. -2002-05-01 Roland McGrath <roland@frob.com> +2003-05-21 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mach/hurd/close.c: #undef __close before function defn, - and use INTDEF on it. - * sysdeps/mach/hurd/fcntl.c: Use INTDEF2. + * locale/programs/locale.c (main): Fix typo in last patch. - * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable. + * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end, + __init_array_start, __init_array_end, __fini_array_start, and + __fini_array_end as hidden. - * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished). +2003-05-21 Petter Reinholdtsen <pere@hungry.com> -2002-05-01 Ulrich Drepper <drepper@redhat.com> + * locale/programs/locale.c (main): Report an error if setlocale() + fails [PR libc/2254]. - * malloc/memusage.c: Add support for tracking mmap & friends. - * malloc/memusage.sh: Implement -m/--mmap option. +2003-05-21 Jakub Jelinek <jakub@redhat.com> -2002-04-30 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/s390/system.c: New file. - * locale/programs/locarchive.c (create_archive): Add archivefname - argument, create fname from it. - (enlarge_archive): Honour output_prefix. - (open_archive): Likewise. +2003-05-21 Jakub Jelinek <jakub@redhat.com> -2002-04-30 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0, + LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, + LOADARGS_6): Don't error if syscall argument is a string literal. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0, + LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, + LOADARGS_6): Likewise. - * locale/programs/locarchive.c (add_locales_to_archive): Don't nest - too many stpcpy macros. +2003-05-21 Andreas Jaeger <aj@suse.de> -2002-04-26 Bruno Haible <bruno@clisp.org> + * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc, + cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register, + cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define. - * locale/programs/ld-collate.c (collate_read): Cast first argument - for "%.*s" to int. + * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives. + (ENTRY): Likewise. + (END): Likewise. -2002-04-26 Bruno Haible <bruno@clisp.org> + * configure.in: Test for asm cfi directives. - * include/libintl.h (__ngettext, __dngettext, __dcngettext, - __dcngettext_internal): New declarations. - (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add - attribute declarations. + * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES. -2002-04-30 Roland McGrath <roland@frob.com> +2003-05-17 Andreas Jaeger <aj@suse.de> - Removed old GNU stdio implementation; GNU libio is now the only option. - * configure.in: Removed --enable-libio option and @stdio@ subst var. - Define USE_IN_LIBIO unconditionally. - * configure: Regenerated. - * Makeconfig (stdio): Set to libio by default. - * config.make.in (stdio): Variable removed. - * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio. - * sysdeps/unix/sysv/linux/configure: Regenerated. - * sysdeps/mach/hurd/configure.in: Don't test $stdio. - * sysdeps/mach/hurd/configure: Regenerated. - * stdio/.cvsignore: File removed. - * stdio/Makefile: File removed. - * stdio/Versions: File removed. - * stdio/__fbufsize.c: File removed. - * stdio/__flbf.c: File removed. - * stdio/__fpending.c: File removed. - * stdio/__fpurge.c: File removed. - * stdio/__freadable.c: File removed. - * stdio/__freading.c: File removed. - * stdio/__fsetlocking.c: File removed. - * stdio/__fwritable.c: File removed. - * stdio/__fwriting.c: File removed. - * stdio/clearerr.c: File removed. - * stdio/fclose.c: File removed. - * stdio/fcloseall.c: File removed. - * stdio/feof.c: File removed. - * stdio/ferror.c: File removed. - * stdio/fflush.c: File removed. - * stdio/fgetc.c: File removed. - * stdio/fgetpos.c: File removed. - * stdio/fgets.c: File removed. - * stdio/fileno.c: File removed. - * stdio/fmemopen.c: File removed. - * stdio/fopen.c: File removed. - * stdio/fopncook.c: File removed. - * stdio/fputc.c: File removed. - * stdio/fputs.c: File removed. - * stdio/fread.c: File removed. - * stdio/freopen.c: File removed. - * stdio/fseek.c: File removed. - * stdio/fsetpos.c: File removed. - * stdio/ftell.c: File removed. - * stdio/fwrite.c: File removed. - * stdio/getc.c: File removed. - * stdio/getchar.c: File removed. - * stdio/getdelim.c: File removed. - * stdio/gets.c: File removed. - * stdio/glue.c: File removed. - * stdio/internals.c: File removed. - * stdio/linewrap.c: File removed. - * stdio/linewrap.h: File removed. - * stdio/memstream.c: File removed. - * stdio/newstream.c: File removed. - * stdio/obstream.c: File removed. - * stdio/putc.c: File removed. - * stdio/putchar.c: File removed. - * stdio/puts.c: File removed. - * stdio/rewind.c: File removed. - * stdio/setbuf.c: File removed. - * stdio/setbuffer.c: File removed. - * stdio/setlinebuf.c: File removed. - * stdio/setvbuf.c: File removed. - * stdio/stdio.h: File removed. - * stdio/ungetc.c: File removed. - * stdio/vasprintf.c: File removed. - * stdio/vscanf.c: File removed. - * stdio/vsnprintf.c: File removed. - * stdio/vsprintf.c: File removed. - * stdio/vsscanf.c: File removed. - * sysdeps/generic/defs.c: File removed. - * sysdeps/generic/fdopen.c: File removed. - * sysdeps/generic/pipestream.c: File removed. - * sysdeps/generic/stdio_init.c: File removed. - * sysdeps/generic/sysd-stdio.c: File removed. - * sysdeps/generic/vdprintf.c: File removed. - * sysdeps/mach/hurd/defs.c: File removed. - * sysdeps/mach/hurd/fdopen.c: File removed. - * sysdeps/mach/hurd/pipestream.c: File removed. - * sysdeps/mach/hurd/stdio_init.c: File removed. - * sysdeps/mach/hurd/sysd-stdio.c: File removed. - * sysdeps/mach/hurd/vdprintf.c: File removed. - * sysdeps/posix/defs.c: File removed. - * sysdeps/posix/fdopen.c: File removed. - * sysdeps/posix/pipestream.c: File removed. - * sysdeps/posix/stdio_init.c: File removed. - * sysdeps/posix/vdprintf.c: File removed. - * sysdeps/unix/pipestream.c: File removed. - * sysdeps/unix/sysv/sysd-stdio.c: File removed. - * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed. - * sysdeps/unix/sysv/sysv4/pipestream.c: File removed. - -2002-04-29 Roland McGrath <roland@frob.com> - - * include/libc-symbols.h (link_warning): Use `unused' attribute. - -2002-04-28 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/generic/tls.h: Describe what must be defined. - - * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to - glob_in_dir [PR libc/3385]. - * posix/globtest.sh: Add test case. - - * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add - //TRANSLIT twice. - -2002-04-27 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the - _internal symbol handling. - * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise. + * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch. -2002-04-26 Ulrich Drepper <drepper@redhat.com> + * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep. - * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases. - * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise. +2003-05-16 Ulrich Drepper <drepper@redhat.com> -2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com> + * rt/Makefile (tests): Add tst-clock_nanosleep. + * rt/tst-clock_nanosleep.c: New file. + * posix/Makefile (tests): Add tst-nanosleep. + * posix/tst-nanosleep.c: New file. - * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of - not _LIBC and RE_ENABLE_I18N. - (build_range_exp): Implement for not _LIBC. - (build_collating_symbol): Likewise. - (parse_bracket_exp): Unify redundant error handlings. - Don't erase mbcset for non matching list in multibyte envs. - (build_word_op): Add '_' to matching list for \w operator. - * posix/regex_internal.c (re_string_construct): Invoke - build_upper_buffer in case of not RE_ENABLE_I18N. - (re_string_reconstruct): Don't touch cur_state in case of not - RE_ENABLE_I18N. - * posix/regex_internal.h (attribute_hidden): New macro in case of - not _LIBC. - (re_charset_t): Define range_starts/ends in case of not _LIBC. - * posix/regexec.c (sift_states_iter_mb): Hide in case of not - RE_ENABLE_I18N. - (transit_state_mb): Likewise. - (check_node_accept_bytes): Implement the code evaluating range - expression in case of not _LIBC. - (find_collation_sequence_value): Hide in case of not _LIBC. + * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition. -2002-04-26 Jakub Jelinek <jakub@redhat.com> + * include/features.h (__USE_XOPEN2K): Define also for + _POSIX_C_SOURCE>=200112L. - * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from - i386/semctl.c. - (__old_semctl, __new_semctl): Only use va_arg if the argument will - be used. + * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold + SI_TKILL code into SI_USER. + * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise. -2002-04-26 Ulrich Drepper <drepper@redhat.com> + * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all. - * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names. +2003-05-15 Jakub Jelinek <jakub@redhat.com> - * sysdeps/ia64/strncpy.S: Fix recovery code. - Patch by David Mosberger <davidm@hpl.hp.com>. + * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): + Remove sym argument, always use refsym. + (__process_machine_rela): Adjust callers. + * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow): + Likewise. + * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow): + Adjust prototype. + * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise. -2002-04-24 Ulrich Drepper <drepper@redhat.com> +2003-05-15 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for - GLIBC_2.2.6. + * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo + (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known + print numeric values. -2002-04-14 Bruno Haible <bruno@clisp.org> +2003-05-12 Thorsten Kukuk <kukuk@suse.de> - * posix/regex.c (re_max_failures): Add back symbol for binary - compatibility. + * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD. -2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com> +2003-05-14 Andreas Schwab <schwab@suse.de> - * posix/regcomp.c (re_compile_internal): Adapt it to new interface - of buffer building functions. - * posix/regex_internal.c (re_string_allocate): New function. - (re_string_realloc_buffers): New function. - (re_string_skip_chars): New function. - (re_string_reconstruct): New function. - (re_string_construct): Adapt it to new interface of buffer building - functions. - (re_string_construct_common): Likewise. - (build_wcs_buffer): Likewise. - (build_wcs_upper_buffer): Likewise. - (build_upper_buffer): Likewise. - (re_string_translate_buffer): Likewise. - (re_string_context_at): Adapt it to variable length buffers. - * posix/regex_internal.h (re_string_t): Add new fields to handle - variable length buffers. - (re_match_context_t): Likewise. - * posix/regexec.c (re_search_internal): Adapt it to new interface - of re_string_t and re_match_context_t. - (acquire_init_state_context): Likewise. - (check_matching): Likewise. - (check_halt_state_context): Likewise. - (proceed_next_node): Likewise. - (set_regs): Likewise. - (sift_states_backward): Likewise. - (clean_state_log_if_need): Likewise. - (sift_states_iter_mb): Likewise. - (sift_states_iter_bkref): Likewise. - (add_epsilon_backreference): Likewise. - (transit_state): Likewise. - (transit_state_sb): Likewise. - (transit_state_mb): Likewise. - (transit_state_bkref): Likewise. - (transit_state_bkref_loop): Likewise. - (check_node_accept): Likewise. - (match_ctx_init): Likewise. - (extend_buffers): New function. + * sysdeps/unix/sysv/linux/ia64/umount.c: New file. -2002-04-21 Bruno Haible <bruno@clisp.org> +2003-05-14 Jakub Jelinek <jakub@redhat.com> - * iconvdata/tst-table.sh: For the second check, use the truncated - GB18030 charmap table, like for the first check. + * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope + even if no DT_NEEDED is present. -2002-04-24 Ulrich Drepper <drepper@redhat.com> +2003-05-13 David Mosberger <davidm@hpl.hp.com> - * elf/dl-load.c (open_verify): Correct __lseek parameters. - Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354]. + * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from + 2003-03-27: setjmp is NOT a leaf-routine (due to the call to + __sigjmp_save) so we can't keep the saved unat value in a scratch + register (r16). Use loc2 instead. -2002-04-23 H.J. Lu <hjl@gnu.org> +2003-05-13 Ulrich Drepper <drepper@redhat.com> - * include/math.h (isfinite): Fix a typo. + * csu/Makefile: Do compile elf-init with PIC flag since in dynamic + binaries it has to be relocatable. -2002-04-24 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available. - * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale - which is created by the test suite. +2003-05-12 Steven Munroe <sjmunroe@us.ibm.com> -2002-04-20 Bruno Haible <bruno@clisp.org> + * sysdeps/powerpc/bits/atomic.h + (__arch_compare_and_exchange_bool_8_rel): Define. + (__arch_compare_and_exchange_bool_16_rel): Define. + (__ARCH_REL_INSTR): Define if not already defined. + (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list. + (__arch_atomic_decrement_if_positive_32): + Add "memory" to clobber list. + (__arch_compare_and_exchange_val_32_acq): Remove release sync. + (__arch_compare_and_exchange_val_32_rel): Define. + (__arch_atomic_exchange_32): Remove. + (__arch_atomic_exchange_32_acq): Define. + (__arch_atomic_exchange_32_rel): Define. + (atomic_compare_and_exchange_val_rel): Define. + (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms. + (atomic_exchange_rel): Define. + * sysdeps/powerpc/powerpc32/bits/atomic.h + (__arch_compare_and_exchange_bool_32_acq): Remove release sync. + (__arch_compare_and_exchange_bool_32_rel): Define. + (__arch_compare_and_exchange_bool_64_rel): Define. + (__arch_compare_and_exchange_val_64_rel): Define. + (__arch_atomic_exchange_64): Remove. + (__arch_atomic_exchange_64_acq): Define. + (__arch_atomic_exchange_64_rel): Define. + * sysdeps/powerpc/powerpc64/bits/atomic.h + (__arch_compare_and_exchange_bool_32_rel): Define. + (__arch_compare_and_exchange_bool_64_acq): Remove release sync. + (__arch_compare_and_exchange_bool_64_rel): Define. + (__arch_compare_and_exchange_val_64_acq): Remove release sync. + (__arch_compare_and_exchange_val_64_rel): Define. + (__arch_atomic_exchange_64): Remove. + (__arch_atomic_exchange_64_acq): Define. + (__arch_atomic_exchange_64_rel): Define. + (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list. + (__arch_atomic_decrement_if_positive_64): + Add "memory" to clobber list. + [!UP](__ARCH_REL_INSTR): Define as lwsync. - * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4. - (BODY for FROM_LOOP): Fix comparisons between inptr and inend. +2003-05-11 Andreas Schwab <schwab@suse.de> -2002-04-20 Bruno Haible <bruno@clisp.org> + * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names. - * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f, - to avoid gcc warning. +2003-05-11 Ulrich Drepper <drepper@redhat.com> -2002-04-20 Bruno Haible <bruno@clisp.org> + * time/tst-strftime.c (do_test): Add tests for - flag. - * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask - of data->__statep->__count. +2003-05-11 Jim Meyering <jim@meyering.net> -2002-04-20 Bruno Haible <bruno@clisp.org> + * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect + the space-padded-by-default conversion specifiers, %e, %k, %l. - * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode - tag characters. - * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise. +2003-05-11 Andreas Schwab <schwab@suse.de> -2002-04-24 Roland McGrath <roland@frob.com> + * sysdeps/generic/sched_setaffinity.c: Fix parameter name. - * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it; - use END macro instead of our own .end directive. - Use `callsys' insn mnemonic instead of `call_pal'. +2003-05-10 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro. + * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not + already defined and when really needed. + * sysdeps/unix/sysv/linux/bits/sched.h: Likewise. - * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New - macro; we need this for Hurd. +2003-05-09 Thorsten Kukuk <kukuk@suse.de> - Log entry was missing for 2002/03/24 commit of rev 1.8, - goes with 2002-03-17 changes. - * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc] - (sysdep_routines): Append ioperm here. - (sysdep_headers): Append sys/io.h here. + * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel + headers, add defines from kernel header, move it from here... + * inet/netinet/igmp.h: ... to here. + * inet/Makefile (headers): Add netinet/igmp.h. + * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h. + * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h. -2002-04-23 Roland McGrath <roland@frob.com> +2003-05-10 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mach/hurd/send.c: int -> size_t for WROTE. - * sysdeps/mach/hurd/sendto.c: Likewise. - * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN. - * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE. - * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE. + * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL, + use dummy sigevent structure with SIGEV_NONE [PR libc/5015]. -2002-04-22 Roland McGrath <roland@frob.com> +2003-05-09 Thorsten Kukuk <kukuk@suse.de> - * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID - failure from i386_io_perm_* RPCs to ENOSYS. + * libio/bits/stdio.h: Sync prototypes with libio/stdio.h + (remove __THROW from possible cancellation points). -2002-04-22 Andreas Jaeger <aj@suse.de> +2003-05-10 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file. + * posix/sched.h (CPU_SETSIZE): Define. - * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file. +2003-05-09 Ulrich Drepper <drepper@redhat.com> + + * Makeconfig (gnulib): Remove -lgcc_eh again. + + * posix/sched.h: Change prototypes of sched_getaffinity and + sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO. + * sysdeps/generic/sched_getaffinity.c: Adjust definition. + * sysdeps/generic/sched_setaffinity.c: Likewise. + * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS, + __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET, + __CPU_CLR, and __CPU_ISSET. + * sysdeps/unix/sysv/linux/bits/sched.h: Likewise. + * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file. + * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file. + + * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange. + (atomic_exchange_rel): New #define. + * sysdeps/ia64/bits/atomic.h: Likewise. + * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from + atomic_exchange. + * sysdeps/m68k/m68020/bits/atomic.h: Likewise. + * sysdeps/powerpc/bits/atomic.h: Likewise. + * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise. + * sysdeps/sparc/sparc64/bits/atomic.h: Likewise. + * sysdeps/x86_64/bits/atomic.h: Likewise. + * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange. - * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp - register instead of destroying %rbx. + * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file. -2002-04-21 Ulrich Drepper <drepper@redhat.com> +2003-05-08 Ulrich Drepper <drepper@redhat.com> - * string/string.h: Declare strerror_r also for XPG6. + * malloc/thread-m.h: Remove special handling of thread_atfork if + HAVE_register_atfork_malloc is defined. -2002-04-19 Roland McGrath <roland@frob.com> +2003-05-07 Andreas Jaeger <aj@suse.de> - * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen. + * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind + information. -2002-04-20 Ulrich Drepper <drepper@redhat.com> +2003-05-06 Ulrich Drepper <drepper@redhat.com> - * Makefile: Add handling of xtests and xcheck targets. - * MakeTAGS: Likewise. - * Makeconfig: Likewise. - * Makerules: Likewise. - * Rules: Likewise. - * manual/Makefile: Likewise. - * sunrpc/Makefile (xtests): Add thrsvc if thread library available. - * sunrpc/thrsvc.c: New file. By Zack Weinberg. + * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init. + * libio/oldiofopen.c (_IO_old_fopen): Likewise. + * libio/libioP.h: Declare _IO_old_init. + * libio/genops.c (_IO_no_init): Split in two. New function + _IO_old_init. -2002-04-11 Zack Weinberg <zack@codesourcery.com> +2003-05-05 Ulrich Drepper <drepper@redhat.com> - * include/rpc/rpc.h (struct rpc_thread_variables): Remove - authnone_private_s. - * sunrpc/auth_none.c: Include bits/libc-lock.h. - Delete #ifdef _RPC_THREAD_SAFE_ block. - (authnone_private): Make a struct, not a pointer to struct. - (authnone_private_guard): New once-control variable. - (authnone_create_once): New function, split out of - authnone_create. No need to allocate memory. - (authnone_create): Just call authnone_create_once via - __libc_once, then return &authnone_private->no_client. - (authnone_marshal): Access private data via CLIENT argument, - not authnone_private pointer. - Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE). - * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free - authnone_private_s. + * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New + variable. + (__libc_init_secure): Don't do anything if __libc_enable_secure_decided + is nonzero. + * include/unistd.h: Declare __libc_enable_secure_decided. + * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID, + and AT_EGID. If all found, set __libc_enable_secure and + __libc_enable_secure_decided. + + * sysdeps/generic/libc-start.c [!SHARED]: Call + __libc_check_standard_fds after __libc_init_first. + +2003-05-05 Roland McGrath <roland@redhat.com> + + * Makerules (common-before-compile): New variable. + ($(common-objpfx)%.make): Depend on that instead of $(before-compile). + ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule + to after all setting of before-compile. + +2003-05-05 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq, + __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type. + * sysdeps/powerpc/powerpc32/bits/atomic.h + (__arch_compare_and_exchange_val_64_acq): Likewise. + * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h + (__arch_compare_and_exchange_val_8_acq, + __arch_compare_and_exchange_val_16_acq, + __arch_compare_and_exchange_val_64_acq): Likewise. + * sysdeps/sparc/sparc64/bits/atomic.h + (__arch_compare_and_exchange_val_8_acq, + __arch_compare_and_exchange_val_16_acq): Likewise. + * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq, + __arch_compare_and_exchange_val_16_acq, + __arch_compare_and_exchange_val_64_acq): Likewise. + * sysdeps/unix/sysv/linux/sh/bits/atomic.h + (__arch_compare_and_exchange_val_64_acq): Likewise. + * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut + up warning. + * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise. + + * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h + (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0): + Return long instead of int. + (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace + 0xfffff001u with -4095UL. + +2003-05-05 Andreas Jaeger <aj@suse.de> + + * sysdeps/x86_64/fpu_control.h: New from i386. + + * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop): + Define if not defined. + + * sunrpc/Makefile (generated-dirs): New variable. + * resolv/Makefile (generated): New variable. + +2003-05-04 Roland McGrath <roland@redhat.com> + + * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file. + Depend on $(before-compile). + + * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static + pattern rule. The implicit rule could be ruled out when $(objpfx) + didn't exist at the time of its consideration (ugh!). + + * Makerules (+make-deps): Fix target matching. + Use $(sed-remove-dotdot). + +2003-05-03 Ulrich Drepper <drepper@redhat.com> + + * nscd/nscd.c (main): Parse config file right after parsing + parameters. Then, if get_stats is true, call receive_print_stats. + Drop parameter from nscd_init call. + (get_stats): New variable. + (parse_opt): Set get_stats, don't call receive_print_stats here. + * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init + prototype. + * nscd/connections.c (stat_user, stat_uid): New variables. + (dbs): Make global. + (nscd_init): Don't read configuration file here. Drop parameter. + (handle_request): Cleanup handling of non-database lookup requests. + * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry. + Get UID of the specified user. Use xstrdup instead of strdup. + * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero, + check stat_user. + * nscd/Makefile (nscd-modules): Add xstrdup. + * nscd/nscd.conf: Document stat-user entry. -2002-04-12 H.J. Lu <hjl@gnu.org> +2003-05-03 H.J. Lu <hongjiu.lu@intel.com> - * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client. + * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define + if not defined. -2002-04-18 Bruno Haible <bruno@clisp.org> +2003-04-22 Roland McGrath <roland@redhat.com> - * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for - FROM_DIRECTION): Make the FROM direction stateless. - * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for - FROM_DIRECTION): Likewise. + * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME. + * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove + dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead. + * elf/dl-support.c: Update defn. + * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases. + * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]: + Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR. + (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME. + * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is + set, set up a link_map for the preloaded, prelinked object. -2002-04-15 Bruno Haible <bruno@clisp.org> +2003-05-03 Roland McGrath <roland@redhat.com> - * iconvdata/JISX0213.TXT: New file. - * iconvdata/jisx0213.h: New file. - * iconvdata/jisx0213.c: New file. - * iconvdata/euc-jisx0213.c: New file. - * iconvdata/shift_jisx0213.c: New file. - * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules. - * iconvdata/EUC-JISX0213.precomposed: New file. - * iconvdata/SHIFT_JISX0213.precomposed: New file. - * iconvdata/SHIFT_JISX0213.irreversible: New file. - * iconvdata/tst-table-to.c (main): Make it work for encodings for - which the "to" direction is stateful. - * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213. - * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213, - SHIFT_JISX0213. - (libJISX0213-routines): New variable. - (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables. - (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so. - (LDFLAGS-libJISX0213.so): New variable. - (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed, - SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible, - jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c. + * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ... + * stdio-common/Makefile: ... not here. -2002-04-15 Bruno Haible <bruno@clisp.org> + * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile). + * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise. - * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to - uint32_t. Update to Unicode 3.2. - (from_ucs4, from_ucs4_idx): Update to Unicode 3.2. - (BODY for TO_LOOP): Handle the ASCII range specially. - * iconvdata/BIG5HKSCS.irreversible: Add one more entry. - * iconvdata/testdata/BIG5HKSCS: Remove a character. - * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated. +2003-05-02 Ulrich Drepper <drepper@redhat.com> -2002-04-15 Bruno Haible <bruno@clisp.org> + * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file. - * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs, - __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2. + * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define. -2002-04-15 Bruno Haible <bruno@clisp.org> + * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for + comparing ftab elements. + (_dl_unmap): Fix typo in test. + (_dl_make_fptr): Fix typos introduced in last change. - * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration. - (ucs4_to_cns11643): Update. - * iconvdata/cns11643.c: Update to Unicode 3.2. - (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab, - __cns11643_from_ucs4p2_tab): Regenerated. - (__cns11643_from_ucs4p2c_tab): New array. - * iconvdata/cvs11643l1.c: Update comments. - * iconvdata/EUC-TW.irreversible: Remove two entries. + * sysdeps/generic/dl-fptr.c: Put back one optimization from the + original patch. Use non-exported symbols. Mark translatable + strings. Pretty printing. -2002-04-15 Bruno Haible <bruno@clisp.org> +2003-05-02 Roland McGrath <roland@redhat.com> - * locale/C-translit.h.in: Update to Unicode 3.2. - Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>, - <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>. - -2002-04-15 Bruno Haible <bruno@clisp.org> - - * iconvdata/sjis.c (halfkana_to_ucs4): Remove array. - (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion. - -2002-04-15 Bruno Haible <bruno@clisp.org> - - * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an - invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip - always one byte, not 0 bytes in some cases and 2 bytes in others. - - * iconvdata/tst-table-from.c (main): Correct the usage message. - -2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com> - - * posix/regcomp.c (parse_expression): Fix incorrect error code. - (parse_dup_op): Fix error handling like "a{}". - (parse_bracket_exp): Add error handling. - (fetch_number): Add error handling for "a{<very_large_number>}". - -2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com> - - * posix/regcomp.c (parse_bracket_symbol): Add error handling - in case that the symbol name is too long. - (build_charclass): Handle [:lower:]/[:uppper:] correctly - in case of REG_ICASE. + * Makerules (do-stamp): Do $(make-target-directory). -2002-04-19 Andreas Jaeger <aj@suse.de> +2003-04-07 H.J. Lu <hjl@gnu.org> - * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner - <hartvige@mips.com>. + * sysdeps/generic/dl-fptr.c: Modify to remove the lock. -2002-04-15 H.J. Lu <hjl@gnu.org> +2003-04-03 H.J. Lu <hjl@gnu.org> - * include/math.h (__finitel_internal): Declare only if - __NO_LONG_DOUBLE_MATH is not defined. - (__isinfl_internal): Likewise. - (__isnanl_internal): Likewise. + * sysdeps/ia64/dl-fptr.c: Moved to ... + * sysdeps/generic/dl-fptr.c: Here. - * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal. - * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. + * sysdeps/generic/dl-fptr.h: New. + * sysdeps/ia64/dl-fptr.h: New. - * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and - __fcntl_internal. - - * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added. - * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added. - -2002-04-15 Bruno Haible <bruno@clisp.org> - - * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access. - (BODY for TO_LOOP): Likewise. - * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1. - * iconvdata/tst-table.sh: Add support for encodings which contain - precomposed Unicode characters, known to the iconv converter in both - directions but not listed in the charmap. - * iconvdata/IBM856.irreversible: New file. - * iconvdata/IBM922.irreversible: New file. - * iconvdata/IBM1132.irreversible: New file. - * iconvdata/IBM1133.irreversible: New file. - * iconvdata/IBM1160.irreversible: New file. - * iconvdata/IBM1161.irreversible: New file. - * iconvdata/IBM1163.irreversible: New file. - * iconvdata/IBM1164.irreversible: New file. - * iconvdata/ARMSCII-8.irreversible: New file. - * iconvdata/TCVN5712-1.precomposed: New file. - * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129, - IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164, - ARMSCII-8, TCVN5712-1. - * iconvdata/Makefile (distribute): Add IBM856.irreversible, - IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible, - IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible, - IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed. - -2002-04-17 Jakub Jelinek <jakub@redhat.com> - - * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format - for EVENING69. Include offsets in TZ environment variable. - -2002-04-18 Ulrich Drepper <drepper@redhat.com> - - * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to - avoid compiler warnings. - - * locale/programs/localedef.c (main): Always call - construct_output_path. - - * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h. - - * locale/programs/locfile.c (to_archive): New variable. To collect - data which has to be added to the locale archive. - (write_all_categories): Take new third parameter with locale name. - Unless no_archive flag set add new locale data to the archive - (write_locale_data): Unless no-archive flag set store generated data - in to_archive data structure instead of generation output file. - Add new parameter with locale category index. - * locale/programs/locfile.h: Add new parameters in declaractions of - write_all_categories and write_locale_data. - * locale/programs/localedef.c: Recognize --no-archive, --list-archive, - --add-to-archive, and --delete-from-archive options. Pass extra - parameter to write_all_categories. - * locale/programs/localedef.h: Add prototypes for functions in - locarchive.c. - * locale/locarchive.h: New file. - * locale/programs/locarchive.c: New file. - * locale/Makefile (distribute): Add programs/locarchive.c and - locarchive.h. - (localedef-modules): Add md5 and locarchive. - Add vpath to crypt subdir for md5.c. - - * locale/programs/ld-address.c: Pass locale category ID as new second - parameter to write_locale_data. - * locale/programs/ld-collate.c: Likewise. - * locale/programs/ld-ctype.c: Likewise. - * locale/programs/ld-identification.c: Likewise. - * locale/programs/ld-measurement.c: Likewise. - * locale/programs/ld-messages.c: Likewise. - * locale/programs/ld-monetary.c: Likewise. - * locale/programs/ld-name.c: Likewise. - * locale/programs/ld-numeric.c: Likewise. - * locale/programs/ld-paper.c: Likewise. - * locale/programs/ld-telephone.c: Likewise. - * locale/programs/ld-time.c: Likewise. - - * locale/simple-hash.c: Move compute_hashval function from here... - * locale/hashval.h: ...to here. New file. - * locale/simple-hash.h: Add prototype for compute_hashval. - - * include/libintl.h: Minor cleanups. - -2002-04-16 Ulrich Drepper <drepper@redhat.com> - - * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname. - -2002-04-15 Ulrich Drepper <drepper@redhat.com> - - * include/sys/stat.h: Fix typo. Patch by HJ Lu. - -2002-04-14 Bruno Haible <bruno@clisp.org> - - * locale/programs/charmap.c (charmap_read): Don't access result if - result == NULL. - -2002-02-17 Andreas Schwab <schwab@suse.de> - - * elf/reldep7.c: New file. - * elf/reldep7mod1.c: New file. - * elf/reldep7mod2.c: New file. - * elf/Makefile: Add rules to build and run reldep7. - -2002-04-14 Jakub Jelinek <jakub@redhat.com> - - * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to - the end of the function. Pass original flags to recursive call if - add_dependency failed. - (_dl_lookup_versioned_symbol): Likewise. + * sysdeps/ia64/dl-symaddr.c: Moved to ... + * sysdeps/generic/dl-symaddr.c: here. -2002-04-13 Jakub Jelinek <jakub@redhat.com> + * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>. + (IA64_BOOT_FPTR_TABLE_LEN): Removed. + (ia64_fdesc): Likewise. + (ia64_fdesc_table): Likewise. + (__ia64_make_fptr): Likewise. + (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table + with _dl_boot_fptr_table. + (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with + `struct fdesc'. + (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr. - * time/mktime.c (__mktime_internal): If year is 69, don't bail out - early, but check whether it overflowed afterwards. - * time/tst-mktime.c (main): Add new tests. +2003-05-01 Roland McGrath <roland@redhat.com> -2002-04-14 Ulrich Drepper <drepper@redhat.com> + * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__]. + * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise. - * debug/xtrace.sh: Fix program name in help message. - Patch by Roger Luethi <rl@hellgate.ch>. + * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h): + Use $(make-target-directory). + * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise. - * include/sys/stat.h: Add prototypes for __lxstat_internal and - __lxstat64_internal. Add macros __lxstat and __lxstat64 if not - NOT_IN_libc. - * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat. - * sysdeps/mach/hurd/lxstat.c: Likewise. - * sysdeps/unix/common/lxstat.c: Likewise. - * sysdeps/unix/sysv/aix/lxstat.c: Likewise. - * sysdeps/unix/sysv/linux/lxstat.c: Likewise. - * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise. - * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise. - * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64. - * sysdeps/mach/hurd/lxstat64.c: Likewise. - * sysdeps/unix/sysv/aix/lxstat64.c: Likewise. - * sysdeps/unix/sysv/linux/lxstat64.c: Likewise. + * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d. + (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags). + (compile-command.s, compile-command.c): Likewise. + ($(objpfx)%.d): All such pattern rules removed. + ($(+sysdir_pfx)sysd-rules): Don't generate them. + ($(common-objpfx)dummy.d): Target removed. + (make-dummy-dep): Variable removed. + (generate-md5): Likewise. + (%.d: %.dt): New pattern rule. + (+depfiles): Use $(wildcard) function to get just existing *.d files + and .d files for existing *.dt files. + (common-clean): Remove all *.d and *.dt files. + (before-compile): Add $(objpfx). when it doesn't exist, + regardless of $(no_deps). + * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed. + (rtld-depfiles): Use .os.d instead of .d names. + Include existing *.d files and .d files for existing *.dt files. + + * Makerules ($(common-objpfx)%.make): Protect with [! subdir]. + Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable. + + * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack. + Do s-*.d includes only if we have some syscall routines in this subdir. + + * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of + @nobits. The former is accepted by gas on any ELF platform. + +2003-05-01 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/semtimedop.c: New file. + + * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary. + +2003-04-29 Andreas Schwab <schwab@suse.de> + + * string/test-strcat.c (do_one_test): Fix attribute name. + +2003-04-30 Alexandre Oliva <aoliva@redhat.com> + + * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make + uc_flags long for all ABIs. + +2003-04-30 Andreas Jaeger <aj@suse.de> + + * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h + (DR_CONTROL_RESERVED): Use correct value for 64-bit. + Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>. + Add bi-arch support. + +2003-04-30 Ulrich Drepper <drepper@redhat.com> + + * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal. + (__posix_memalign): Use __memalign_internal instead of memalign. + +2003-04-29 Roland McGrath <roland@redhat.com> + + * configure.in: Search for AUTOCONF unconditionally. + Just don't complain about missing it under --without-cvs. + + * include/libc-symbols.h (__symbol_set_attribute): New macro, + give hidden for [SHARED] and weak for [! SHARED]. + (symbol_set_declare): Use that. Never need weak_extern these days. + * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE. + Depend on $(..)Makerules. + +2003-04-29 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected + variants of socket, bind, recvmsg, and sendto. + + * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word. + + * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset. + * signal/sigaddset.c: Add libc_hidden_def. + * signal/sigdelset.c: Likewise. + +2003-04-29 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move + to the end of the file. + + * configure.in: Change __oline__ to $LINENO. + (HAVE_BUILTIN_REDIRECTION): New check. + * config.h.in (HAVE_BUILTIN_REDIRECTION): Add. + * include/libc-symbols.h (libc_hidden_builtin_proto, + libc_hidden_builtin_def, libc_hidden_builtin_weak, + libc_hidden_builtin_ver): Define. + * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr, + strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr, + strspn, strstr): Add libc_hidden_builtin_proto. + * intl/plural.y: Include string.h. + * sysdeps/alpha/alphaev6/memchr.S (memchr): Add + libc_hidden_builtin_def. + * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise. + * sysdeps/alpha/alphaev6/memset.S (memset): Likewise. + * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise. + * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise. + * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise. + * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise. + * sysdeps/alpha/memchr.S (memchr): Likewise. + * sysdeps/alpha/memset.S (memset): Likewise. + * sysdeps/alpha/strcat.S (strcat): Likewise. + * sysdeps/alpha/strchr.S (strchr): Likewise. + * sysdeps/alpha/strcmp.S (strcmp): Likewise. + * sysdeps/alpha/strcpy.S (strcpy): Likewise. + * sysdeps/alpha/strlen.S (strlen): Likewise. + * sysdeps/alpha/strncmp.S (strncmp): Likewise. + * sysdeps/alpha/strncpy.S (strncpy): Likewise. + * sysdeps/alpha/strrchr.S (strrchr): Likewise. + * sysdeps/arm/memset.S (memset): Likewise. + * sysdeps/arm/strlen.S (strlen): Likewise. + * sysdeps/generic/memchr.c (memchr): Likewise. + * sysdeps/generic/memcpy.c (memcpy): Likewise. + * sysdeps/generic/memmove.c (memmove): Likewise. + * sysdeps/generic/memset.c (memset): Likewise. + * sysdeps/generic/strcat.c (strcat): Likewise. + * sysdeps/generic/strchr.c (strchr): Likewise. + * sysdeps/generic/strcmp.c (strcmp): Likewise. + * sysdeps/generic/strcpy.c (strcpy): Likewise. + * sysdeps/generic/strcspn.c (strcspn): Likewise. + * sysdeps/generic/strlen.c (strlen): Likewise. + * sysdeps/generic/strncmp.c (strncmp): Likewise. + * sysdeps/generic/strncpy.c (strncpy): Likewise. + * sysdeps/generic/strpbrk.c (strpbrk): Likewise. + * sysdeps/generic/strrchr.c (strrchr): Likewise. + * sysdeps/generic/strspn.c (strspn): Likewise. + * sysdeps/generic/strstr.c (strstr): Likewise. + * sysdeps/i386/i486/strcat.S (strcat): Likewise. + * sysdeps/i386/i486/strlen.S (strlen): Likewise. + * sysdeps/i386/i586/memcpy.S (memcpy): Likewise. + * sysdeps/i386/i586/memset.S (memset): Likewise. + * sysdeps/i386/i586/strchr.S (strchr): Likewise. + * sysdeps/i386/i586/strcpy.S (strcpy): Likewise. + * sysdeps/i386/i586/strlen.S (strlen): Likewise. + * sysdeps/i386/i686/memcpy.S (memcpy): Likewise. + * sysdeps/i386/i686/memmove.S (memmove): Likewise. + * sysdeps/i386/i686/memset.S (memset): Likewise. + * sysdeps/i386/i686/strcmp.S (strcmp): Likewise. + * sysdeps/i386/memchr.S (memchr): Likewise. + * sysdeps/i386/memset.c (memset): Likewise. + * sysdeps/i386/strchr.S (strchr): Likewise. + * sysdeps/i386/strcspn.S (strcspn): Likewise. + * sysdeps/i386/strlen.c (strlen): Likewise. + * sysdeps/i386/strpbrk.S (strpbrk): Likewise. + * sysdeps/i386/strrchr.S (strrchr): Likewise. + * sysdeps/i386/strspn.S (strspn): Likewise. + * sysdeps/ia64/memchr.S (memchr): Likewise. + * sysdeps/ia64/memcpy.S (memcpy): Likewise. + * sysdeps/ia64/memmove.S (memmove): Likewise. + * sysdeps/ia64/memset.S (memset): Likewise. + * sysdeps/ia64/strcat.S (strcat): Likewise. + * sysdeps/ia64/strchr.S (strchr): Likewise. + * sysdeps/ia64/strcmp.S (strcmp): Likewise. + * sysdeps/ia64/strcpy.S (strcpy): Likewise. + * sysdeps/ia64/strlen.S (strlen): Likewise. + * sysdeps/ia64/strncmp.S (strncmp): Likewise. + * sysdeps/ia64/strncpy.S (strncpy): Likewise. + * sysdeps/m68k/memchr.S (memchr): Likewise. + * sysdeps/m68k/strchr.S (strchr): Likewise. + * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise. + * sysdeps/mips/mips64/memset.S (memset): Likewise. + * sysdeps/mips/memcpy.S (memcpy): Likewise. + * sysdeps/mips/memset.S (memset): Likewise. + * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise. + * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise. + * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise. + * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise. + * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise. + * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise. + * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise. + * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise. + * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise. + * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise. + * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise. + * sysdeps/powerpc/strcat.c (strcat): Likewise. + * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise. + * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise. + * sysdeps/sparc/sparc32/memset.S (memset): Likewise. + * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise. + * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise. + * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise. + * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise. + * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise. + * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise. + * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise. + * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise. + * sysdeps/sparc/sparc64/memset.S (memset): Likewise. + * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise. + * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise. + * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise. + * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise. + * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise. + * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise. + * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise. + * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise. + * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise. + * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise. + * sysdeps/sh/memcpy.S (memcpy): Likewise. + * sysdeps/sh/memset.S (memset): Likewise. + * sysdeps/sh/strlen.S (strlen): Likewise. + * sysdeps/s390/s390-32/memchr.S (memchr): Likewise. + * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise. + * sysdeps/s390/s390-32/memset.S (memset): Likewise. + * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise. + * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise. + * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise. + * sysdeps/s390/s390-64/memchr.S (memchr): Likewise. + * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise. + * sysdeps/s390/s390-64/memset.S (memset): Likewise. + * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise. + * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise. + * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise. + * sysdeps/x86_64/memcpy.S (memcpy): Likewise. + * sysdeps/x86_64/memset.S (memset): Likewise. + * sysdeps/x86_64/strcat.S (strcat): Likewise. + * sysdeps/x86_64/strchr.S (strchr): Likewise. + * sysdeps/x86_64/strcmp.S (strcmp): Likewise. + * sysdeps/x86_64/strcpy.S (strcpy): Likewise. + * sysdeps/x86_64/strcspn.S (strcspn): Likewise. + * sysdeps/x86_64/strlen.S (strlen): Likewise. + * sysdeps/x86_64/strspn.S (strspn): Likewise. + * string/string-inlines.c: Move... + * sysdeps/generic/string-inlines.c: ...here. + (__memcpy_g, __strchr_g): Remove. + (__NO_INLINE__): Define before including <string.h>, + undefine after. Include bits/string.h and bits/string2.h. + * sysdeps/i386/i486/string-inlines.c: New file. + * sysdeps/i386/string-inlines.c: New file. + * sysdeps/i386/i486/Versions: Remove. + All GLIBC_2.1.1 symbols moved... + * sysdeps/i386/Versions (libc): ...here. + +2003-04-29 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/i386/fpu/Makefile: New file. + * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word. + * sysdeps/i386/fpu/feenablxcpt.c: Likewise. + * sysdeps/i386/fpu/feholdexcpt.c: Likewise. + * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode + [PR libc/4987]. + +2003-04-28 Ulrich Drepper <drepper@redhat.com> + + * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect. + * nscd/nscd_getpw_r.c: Likewise. + * nscd/nscd_gethst_r.c: Likewise. + +2003-04-27 Ulrich Drepper <drepper@redhat.com> + + * nscd/pwdcache.c: Initialize .version element in result. + * nscd/grpcache.c: Likewise. + * nscd/pwdcache.c: Likewise. - * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal - prototypes. Add __mbrlen and __mbrtowc macros. - * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen. - * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc. - - * include/unistd.h: Add prototype for __write_internal and add - __libc_write macro is SHARED. - * sysdeps/generic/write.c: Use INTDEF for __write. - * sysdeps/mach/hurd/write.c: Likewise. - * sysdeps/unix/sysv/aix/write.c: Likewise. - * sysdeps/unix/syscalls.list: Add __libc_write alias. - - * assert/assert.c: Replace STR_N_SIZE with something usable in - macro arguments. - * assert/assert-perr.c: Likewise. - - * include/sys/socket.h: Declare __libc_sa_len_internal and define - SA_LEN macro to use it if not NOT_IN_libc. - * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len. - - * include/fcntl.h: Declare __open_internal and define __open and - __libc_open macros if not NOT_IN_libc. - * sysdeps/generic/open.c: Use INTDEF for __open. - * sysdeps/mach/hurd/open.c: Likewise. - * sysdeps/unix/sysv/aix/open.c: Likewise. - * sysdeps/unix/syscalls.list: Add __open_internal alias. - - * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor - has correct number. - - * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc. - * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well. - * sysdeps/unix/sysv/aix/fcntl.c: Likewise. - * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. +2003-04-27 Andreas Schwab <schwab@suse.de> - * include/wctype.h: Declare __iswalpha_l_internal, - __iswdigit_l_internal, __iswspace_l_internal, - __iswxdigit_l_internal, and __iswctype_internal. Define - __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and - __iswxdigit_l macros if not NOT_IN_libc. - * wctype/iswctype.c: Use INTDEF for __iswctype. - * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l. - - * include/math.h: Declare __isinf_internal, __isinfl_internal, - __isnan_internal, and __isnanl_internal. - * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl, - __isnan, and __isnanl. - * stdio-common/printf_size.c: Likewise. - * sysdeps/generic/printf_fphex.c: Likewise. - * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias. - * sysdeps/i386/fpu/s_isnanl.c: Likewise. - * sysdeps/ia64/fpu/s_isinf.S: Likewise. - * sysdeps/ia64/fpu/s_isnan.S: Likewise. - * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise. - * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise. - * sysdeps/ieee754/flt-32/s_isinff.c: Likewise. - * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise. - * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise. - * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise. - * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise. - * sysdeps/m68k/s_isinfl.c: Likewise. - * sysdeps/m68k/fpu/s_isinf.c: Likewise. - * sysdeps/powerpc/fpu/s_isnan.c: Likewise. - - * include/sys/time.h: Declare __gettimeofday_internal and define - __gettimeofday macro if not NOT_IN_libc. - * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday. - * sysdeps/mach/gettimeofday.c: Likewise. - * sysdeps/posix/gettimeofday.c: Likewise. - * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise. - * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias. - * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise. - - * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal - and define __fxstate and __fxstat64 macros if not NOT_IN_libc. - Remove __lstat and __fstat inline functions. - * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat. - * sysdeps/mach/hurd/fxstat.c: Likewise. - * sysdeps/unix/fxstat.c: Likewise. - * sysdeps/unix/sysv/aix/fxstat.c: Likewise. - * sysdeps/unix/sysv/linux/fxstat.c: Likewise. - * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise. - * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise. - * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64. - * sysdeps/mach/hurd/fxstat64.c: Likewise. - * sysdeps/unix/sysv/aix/fxstat64.c: Likewise. - * sysdeps/unix/sysv/linux/fxstat64.c: Likewise. + * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in + subdirectory. - * include/unistd.h: Declare __getpid_internal and define - __getpid macro if not NOT_IN_libc. - * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid. - * sysdeps/generic/getpid.c: Likewise. - * sysdeps/unix/syscalls.list: Add __getpid_internal alias. - * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call. - - * include/unistd.h: Declare __getpgid_internal and define - __getpgid macro if not NOT_IN_libc. - * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid. - * sysdeps/mach/hurd/getpgid.c: Likewise. - * sysdeps/unix/sysv/aix/getpgid.c: Likewise. - * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise. - * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise. - * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias. - - * include/unistd.h: Declare __getpagesize_internal and define - __getpagesize macro if not NOT_IN_libc. - * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for - __getpagesize. - * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize. - * sysdeps/mach/getpagesize.c: Likewise. - * sysdeps/posix/getpagesize.c: Likewise. - * sysdeps/unix/getpagesize.c: Likewise. - * sysdeps/unix/sysv/linux/getpagesize.c: Likewise. - * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise. - * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise. - -2002-04-13 Andreas Jaeger <aj@suse.de> - - * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory - as clobber to reduce register pressure. - (__strpbrk_cg): Likewise. - (__mempcpy_by4): Likewise. - (__strstr_cg): Likewise. - Add prototype for __memrchr. - -2002-04-13 Andreas Schwab <schwab@suse.de> - - * sysdeps/m68k/fpu/s_finite.c: Add internal alias. - * sysdeps/m68k/fpu/s_finitef.c: Likewise. - * sysdeps/m68k/fpu/s_finitel.c: Likewise. - -2002-04-13 Ulrich Drepper <drepper@redhat.com> - - * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to - check whether the caller prefers getting the most recent version of - a symbol of the earliest version. - * elf/dl-lookup.c: Adjust all callers of do_lookup. Change - _dl_do_lookup to also take the new parameter and pass it on. - Change 'explicit' parameter of _dl_lookup_symbol and - _dl_lookup_versioned_symbol to flags. Adjust tests. - * sysdeps/generic/ldsodefs.h: Adjust prototypes. - * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and - _dl_lookup_versioned_symbol. - * elf/dl-reloc.c: Likewise. - * elf/dl-runtime.c: Likewise. - * elf/dl-sym.c: Likewise. - * sysdeps/mips/dl-machine.h: Likewise. +2003-04-27 Andreas Schwab <schwab@suse.de> -2002-04-11 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file. - * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste - in a token. - * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise. +2003-04-27 Ulrich Drepper <drepper@redhat.com> -2002-04-10 Andreas Jaeger <aj@suse.de> + * nscd/connections.c (client_queued): New variable. + (nscd_run): Revamp the loop. Don't call poll except for cleanup + threads. Keep track of the number of delays caused because of busy + worker threads. + * nscd/nscd.h: Declare client_queued. + * nscd/nscd_stat.c: Transmit and print client_queued information. - * sysdeps/unix/sysv/linux/x86_64/glob.c: New file. + * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX. - * include/argz.h: Remove extra char from last patch. + * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to + define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs. -2002-04-09 Ulrich Drepper <drepper@redhat.com> +2003-04-26 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown. - * sysdeps/unix/sysv/aix/chown.c: Likewise. - * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls. - * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise. - * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise. - * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define - __chown_internal. - * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise. + * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement + tracking of freed memory in static TLS block. + * elf/Makefile: Add rules to build and run tst-tls13. + * elf/tst-tls13.c: New file. + * elf/tst-tlsmod13.c: New file. + * elf/tst-tlsmod13a.c: New file. - * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext. - * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE. - * intl/ngettext.c: Likewise. + * elf/tst-tls8.c: Adjust types of variables to avoid warnings. - * include/sys/socket.h: Declare __connect_internal and define - __connect macro if not NOT_IN_libc. - * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect. - * sysdeps/unix/sysv/aix/connect.c: Likewise. - * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias. - - * include/unistd.h: Declare __close_internal and define __close macro - if not NOT_IN_libc. - * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2, - WJUMP3): Add extra parenthesis to avoid expanding element names with - macors like __close. - * sysdeps/unix/syscalls.list: Add __close_internal alias. - - * include/unistd.h: Declare __dup2_internal and define __dup2 macro - if not NOT_IN_libc. - * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2. - * sysdeps/posix/dup2.c: Use INTDEF for __dup2. - * sysdeps/unix/syscalls.list: Add __dup2_internal alias. - - * include/unistd.h: Declare __fork_internal and define __fork macro - if not NOT_IN_libc. - * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork. - * sysdeps/unix/sysv/aix/fork.c: Likewise. - * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias. - - * include/stdio_ext.h: Declare __fsetlocking_internal and define - __fsetlocking macro to use it if not NOT_IN_libc. - * libio/__fsetlocking.c: Use INTDEF for __fsetlocking. - - * libio/__fbufsize.c: Correct copyright. - * libio/__flbf.c: Likewise. - * libio/__fpending.c: Likewise. - * libio/__fpurge.c: Likewise. - * libio/__freadable.c: Likewise. - * libio/__freading.c: Likewise. - * libio/__fsetlocking.c: Likewise. - * libio/__fwritable.c: Likewise. - * libio/__fwriting.c: Likewise. - - * include/stdio.h: Declare __asprintf_internal and define __asprintf - macro to use it if not NOT_IN_libc. - * stdio-common/asprintf.c: Use INTDEF for __asprintf. - - * include/mntent.h: Declare __setmntent_internal, - __getmntent_r_internal, __endmntent_internal. Define __setmntent, - __getmntent_r, and __endmntent macros to use these functions if not - NOT_IN_libc. - * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and - __endmntent. - - * include/math.h: Declare __finite_internal, __finitef_internal, and - __finitel_internal. Redefine isfinite macro if in libc or libm using - these functions. - * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls. - * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls. - * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls. - * sysdeps/i386/fpu/s_finite.S: Define _internal alias. - * sysdeps/i386/fpu/s_finitef.S: Likewise. - * sysdeps/i386/fpu/s_finitel.S: Likewise. - * sysdeps/ieee754/dbl-64/s_finite.c: Likewise. - * sysdeps/ieee754/flt-32/s_finitef.c: Likewise. - * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise. - * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise. - - * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro - to use this function if not NOT_IN_libc. - * libio/iofdopen.c (_IO_fcntl): Use INTUSE. - * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl. - * sysdeps/mach/hurd/fcntl.c: Likewise. - * sysdeps/unix/sysv/aix/fcntl.c: Likewise. - * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. + * elf/dl-reloc.c: Pretty printing. - * include/argz.h: Declare __argz_count_internal and - __argz_stringify_internal. - * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and - __argz_stringify. - * string/argz-count.c: Use INTDEF for __argz_count. - * string/argz-stringify.c: Use INTDEF for __argz_stringify. +2003-04-26 Roland McGrath <roland@redhat.com> + + * Makerules ($(common-objpfx)shlib.lds): New target. + (common-generated): Add it. + (build-shlib, build-module): Use that instead of generating every time. + ($(common-objpfx)libc.so): Depend on it. + (lib%.so rule): Likewise. + (build-module-helper-objlist): Remove %.lds. + (LDSEDCMD-c.so): Variable removed. + * iconvdata/extra-module.mk ($(objpfx)$(mod).so): + Depend on $(common-objpfx)shlib.lds. + * dlfcn/Makefile ($(test-modules)): Likewise. + +2003-04-26 Roland McGrath <roland@frob.com> + + * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals. + +2003-04-26 Andreas Schwab <schwab@suse.de> + + * elf/dl-close.c (remove_slotinfo): Fix missing parens. + +2003-04-25 Ulrich Drepper <drepper@redhat.com> + + * nscd/cache.c (cache_search): Keep track of how many chain links + we searched and update table statistics. + (cache_add): Keep track of how many values are in the table. + (prune_cache): Likewise. Keep track of locking success. + Print messages about removed entries in separate pass. + * nscd/connections.c (handle_request): Don't print debug message here. + The caller will do it. Keep track of locking success. + (nscd_run): Print debug message. Also print PID of the client process. + * nscd/nscd.c (start_time): New variable. + (main): Remember start time. + * nscd/nscd.h: Declare start_time. + (struct database): Add more members for new statistics. + * nscd/nscd_stat.c: Add support for sending, receiving, and printing + of new statistics. + + * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>. + +2003-04-22 Jakub Jelinek <jakub@redhat.com> + + * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined. + * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET. + * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to + NO_TLS_OFFSET. + * elf/rtld.c (_dl_start_final, _dl_start): Likewise. + * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET. + * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise. + * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract + TLS_TCB_SIZE. + +2003-04-24 Ulrich Drepper <drepper@redhat.com> + + * nss/getent.c: Implement alternative host database lookup via + getaddrinfo. + + * include/ifaddrs.h: New file. + * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and + AI_ADDRCONFIG... + * resolv/netdb.h: ...here. + * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate. + * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise. + * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and + AI_ADDRCONFIG. + +2003-04-24 Roland McGrath <roland@redhat.com> + + * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function. + +2003-04-24 Jakub Jelinek <jakub@redhat.com> + + * elf/dl-reloc.c (allocate_static_tls): Rename to... + (_dl_allocate_static_tls): ... this function. No longer static. + (CHECK_STATIC_TLS): Adjust. + * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype. + * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela): + Add SYM_MAP argument. + (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally. + Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit + TLS relocs here. #ifdef out relocs which never appear in + .gnu.conflict section from dl-conflict.c processing. + * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): + Add SYM_MAP argument. Handle 16-bit TLS relocs here. + + * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef + out relocs which never appear in .gnu.conflict section from + dl-conflict.c processing. + * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise. + * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise. + * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise. + Use r_type in RESOLVE macro. + +2003-04-23 Ulrich Drepper <drepper@redhat.com> + + * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be != + NULL. Remove code made redundant by this assumption. + (__yp_unbind): Add call to free. Adjust all callers. + + * nis/ypclnt.c (yp_all): Free the dom_binding object after + unbinding it. + + * grp/initgroups.c (getgrouplist): Don't copy too much into the + user buffer if more groups are found than fit into it. + + * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use + extend_alloca. + +2003-04-23 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE, + not rc == errno. Use extend_alloca. + + * elf/tst-tls12.c (main): Fix declaration. + * elf/tst-tls10.c (dummy): Make hidden instead of static. + * elf/tst-tlsmod7.c (dummy): Likewise. + * elf/tst-tlsmod8.c (dummy): Likewise. + * elf/tst-tlsmod9.c (dummy): Likewise. + +2003-04-22 Roland McGrath <roland@redhat.com> + + * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args. + (open_not_cancel): Make last argument non-optional. + * sysdeps/generic/check_fds.c (check_one_fd): Update caller. + * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise. + * iconv/gconv_cache.c (__gconv_load_cache): Likewise. - * include/stdlib.h: Declare __cxa_atexit_internal and define - __cxa_atexit macro if not NOT_IN_libc. - * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit. - * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c. + * include/tls.h: Protect against multiple inclusion. - * assert/assert.c: Use INTDEF for __assert_fail. - * assert/__assert.c: Use INTUSE for call to __assert_fail. - * include/assert.h: Declare __assert_fail_internal. +2003-04-22 Ulrich Drepper <drepper@redhat.com> - * extra-lib.mk: Mark assignment to lib with override. + * nscd/nscd-client.h: Add declaration for __nscd_open_socket. + * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from + open_socket. Not static anymore. + (nscd_gethst_r): Use __nscd_open_socket. + * nscd/nscd_getgr_r.c (open_socket): Removed. + (nscd_getgr_r): Use __nscd_open_socket. + * nscd/nscd_getpw_r.c (open_socket): Removed. + (nscd_getpw_r): Use __nscd_open_socket. -2002-04-08 Ulrich Drepper <drepper@redhat.com> + * nscd/nscd.c (main): Change type of fdn to long int and use strtol. + * nscd/connections.c (handle_request): Add cast to avoid warning. - * Makerules: Use cppflags-iterator.mk to add defines for all test - source files. +2003-04-21 Ulrich Drepper <drepper@redhat.com> -2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp> + * signal/sigfillset.c: Moved to... + * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined + do not set the corresponding bit. - * elf/elf.h: Define R_SH_TLS_xxx macros. - * elf/rtld.c: Remove an extra parenthesis. - * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and - TLS_GD macros. - * sysdeps/generic/dl-tls.c: Add a missing semi-colon. - * sysdeps/sh/dl-lookupcfg.h: New file. - * sysdeps/sh/dl-tls.h: New file. - * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set - ELF_RTYPE_CLASS_PLT also for the three TLS relocations. - (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and - R_SH_TLS_TPOFF32 relocations. + * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for + SIGCANCEL. + * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL. + * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL. + * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL. + * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL. + * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL. -2002-04-08 Ulrich Drepper <drepper@redhat.com> +2003-04-20 Ulrich Drepper <drepper@redhat.com> - * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead - of NOT_IN_LIBC. - * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC. - * include/stdlib.h: Likewise. + * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast + first syscall parameter to const char*. -2002-04-08 Jakub Jelinek <jakub@redhat.com> +2003-04-19 Ulrich Drepper <drepper@redhat.com> - * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld - instead of _RTLD_LOCAL. - * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL. - * include/unistd.h: Likewise. - * sysdeps/generic/ldsodefs.h: Likewise. + * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run. - * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays - if in libc or ld.so. + * configure.in: Add AC_PROG_CXX. + * config.make.in (CXX): Define. -2002-04-08 Andreas Jaeger <aj@suse.de> + * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of + __len to size_t to avoid warnings. - * elf/cache.c (print_entry): Support x86-64. +2003-04-18 Jes Sorensen <jes@wildopensource.com> -2002-04-08 Ulrich Drepper <drepper@redhat.com> + * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux + 2.5.67. + * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise. - * include/stdlib.h: For libc itself replace MB_CUR_MAX definition - with one accessing the locale data structures directly. - * stdio-common/printf-prs.c: Include localeinfo.h for new - MB_CUR_MAX definition. +2003-04-19 Ulrich Drepper <drepper@redhat.com> - * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename> - is the name of the source file without extension. - * Makefile (distribute): Add cppflags-iterator.mk. - * cppflags-iterator.mk: New file. - * extra-lib.mk: For the sources of the library run - cppflags-iterator.mk. + * stdlib/cxa_finalize.c (__cxa_finalize): Don't call + UNREGISTER_ATFORK if d == NULL. - * include/libintl.h: Declare __dcgettext_internal and - _libc_intl_domainname_internal. Define __dcgettext using these - two symbols if used in libc itself. - * argp/argp-help.c: Define dgettext using __dcgettext_internal and - _libc_intl_domainname_internal. - * argp/argp-parse.c: Likewise. - * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias. - * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext. - * intl/gettext.c: Likewise. - * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define - alias. - * posix/regcomp.c (gettext): Use __dcgettext_internal instead of - __dcgettext. - * posix/regex_internal.c (gettext): Likewise. + * catgets/nl_types.h: Remove __THROW marker from cancellation points. + * dirent/dirent.h: Likewise. + * dlfcn/dlfcn.h: Likewise. + * grp/grp.h: Likewise. + * iconv/iconv.h: Likewise. + * io/fcntl.h: Likewise. + * io/ftw.h: Likewise. + * libio/stdio.h: Likewise. + * misc/sys/mman.h: Likewise. + * misc/sys/select.h: Likewise. + * misc/sys/syslog.h: Likewise. + * misc/sys/uio.h: Likewise. + * posix/spawn.h: Likewise. + * posix/unistd.h: Likewise. + * posix/sys/wait.h: Likewise. + * pwd/pwd.h: Likewise. + * resolv/netdb.h: Likewise. + * rt/aio.h: Likewise. + * shadow/shadow.h: Likewise. + * signal/signal.h: Likewise. + * socket/sys/socket.h: Likewise. + * stdlib/stdlib.h: Likewise. + * streams/stropts.h: Likewise. + * string/string.h: Likewise. + * sysdeps/gnu/utmpx.h: Likewise. + * sysvipc/sys/msg.h: Likewise. + * termios/termios.h: Likewise. + * time/time.h: Likewise. + * wcsmbs/wchar.h: Likewise. + * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable + functions. + * misc/daemon.c: Likewise. + * sysdeps/generic/backtracesymsfd.c: Likewise. + * sysdeps/generic/check_fds.c: Likewise. + * sysdeps/unix/sysv/linux/gethostid.c: Likewise. + * sysdeps/unix/sysv/linux/not-cancel.h: New file. + * sysdeps/generic/not-cancel.h: New file. + * csu/Makefile (distribute): Add not-cancel.h. + * sysdeps/unix/sysv/linux/fatal-prepare.h: New file. + * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE + for assert.c and assert-perr.c to include <fatal-prepare.h>. + * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h. + + * sysdeps/posix/remove.c (remove): Rewrite. No need to restore + errno and unlink first. + + * io/ftw.c (ftw_dir): In all places assume fchdir is available. + +2003-04-18 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use + INTERNAL_SYSCALL instead of INLINE_SYSCALL. + +2003-04-17 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling. + + * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k. + * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not + replace. + + * signal/Makefile (tests): Add tst-sigsimple. + * signal/tst-sigsimple.c: New file. + +2003-04-16 Jakub Jelinek <jakub@redhat.com> + + * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and + tst-tls10.h. + (tests): Add tst-tls1[0-2]. + (modules-names): Add tst-tlsmod{[7-8],1[0-2]}. + ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so. + ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so. + ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so. + ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so. + ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so. + ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so. + * elf/tst-tls10.c: New test. + * elf/tst-tls11.c: New test. + * elf/tst-tls12.c: New test. + * elf/tst-tls10.h: New file. + * elf/tst-tlsmod7.c: New file. + * elf/tst-tlsmod8.c: New file. + * elf/tst-tlsmod9.c: New file. + * elf/tst-tlsmod10.c: New file. + * elf/tst-tlsmod11.c: New file. + * elf/tst-tlsmod12.c: New file. + +2003-04-15 Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ... + * sysdeps/powerpc/powerpc32/bits/atomic.h: New file. + * sysdeps/powerpc/powerpc64/bits/atomic.h: New file. + +2003-04-17 Ulrich Drepper <drepper@redhat.com> + + * posix/regex.h: Include <sys/types.h>. + + * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset. + The signal number must be checked. + * signal/sighold.c (sighold): Use sigaddset and not __sigaddset. + The signal number must be checked [PR libc/5004]. + + * sysdeps/unix/sysv/linux/system.c: If compiled without threads + don't do anything fancy. + + * sysdeps/generic/bits/libc-lock.h: Define + __rtld_lock_define_initialized_recursive. + + * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry + contacting nscd if NOT_USENSCD_NAME > 0. + * nss/nsswitch.c (__nss_disable_nscd): New function. + * nss/nsswitch.h: Declare it. + * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd. + * nscd/nscd.c (main): Call __nss_disable_nscd. + +2003-04-16 Ulrich Drepper <drepper@redhat.com> + + * stdio-common/perror.c (perror): We don't need to set the offset + to _IO_pos_bad, this is how streams are initialized. + + * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned. + (time_output): If necessary, allocate new buffer for .name string if + padding is required. + + * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths + before copying. This might leave holes in the list. Adjust + pointers if necessary. + (netlink_receive): Allocate only one block. + (free_netlink_handle): Adjust appropriately. + (getifaddrs): Lots of cleanups. + + * string/test-strncpy.c (do_one_test): Mark start and stop as + possibly unused. + * string/test-memchr.c: Likewise. + * string/test-memcmp.c: Likewise. + * string/test-memcpy.c: Likewise. + * string/test-memmove.c: Likewise. + * string/test-memset.c: Likewise. + * string/test-strcat.c: Likewise. + * string/test-strchr.c: Likewise. + * string/test-strcmp.c: Likewise. + * string/test-strcpy.c: Likewise. + * string/test-strlen.c: Likewise. + * string/test-strncmp.c: Likewise. + * string/test-strpbrk.c: Likewise. + * string/test-strrchr.c: Likewise. + * string/test-strspn.c: Likewise. + +2003-04-15 Roland McGrath <roland@redhat.com> + + * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning. + + * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for + INTUSE(__register_frame_info_bases). + +2003-04-15 Ulrich Drepper <drepper@redhat.com> + + * elf/elf.h: Define AT_SYSINFO_EH_FRAME. + * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle + AT_SYSINFO_EH_FRAME. Adjust string width. + (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value. + * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global): + Add _dl_sysinfo_eh_frame field. + * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame. + * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj + variable. + [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases + if _dl_sysinfo_eh_frame is non-NULL. -2002-04-08 Andreas Jaeger <aj@suse.de> + * Makeconfig (gnulib): Add -lgcc_eh. - * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule. + * config.h.in: Define HAVE_FORCED_UNWIND. - * sysdeps/x86_64/fpu/s_llrint.S: New file. - * sysdeps/x86_64/fpu/s_llrintf.S: New file. - * sysdeps/x86_64/fpu/s_llrintl.S: New file. - * sysdeps/x86_64/fpu/s_lrint.S: New file. - * sysdeps/x86_64/fpu/s_lrintf.S: New file. - * sysdeps/x86_64/fpu/s_lrintl.S: New file. +2003-04-15 Steven Munroe <sjmunroe@us.ibm.com> -2002-04-08 Roland McGrath <roland@frob.com> + * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit. + * sysdeps/powerpc/powerpc64/strcpy.S: Likewise. - * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of - widening __hurd_fail value. +2003-04-15 Jakub Jelinek <jakub@redhat.com> -2002-04-07 Roland McGrath <roland@frob.com> + * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid + checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is + against local symbol in conflict processing. - * sysdeps/mach/hurd/alpha/trampoline.c: Don't include - <mach/machine/alpha_instruction.h>. - (_hurd_setup_sighandler): Take proper arguments for current decls. - Update code to use _hurdsig_catch_fault. - Use `callsys' instruction instead of `call_pal'. - * sysdeps/mach/hurd/alpha/intr-msg.h: New file. +2003-04-15 Steven Munroe <sjmunroe@us.ibm.com> - * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>. - (ALIGN, at, AT, fp): New macros. + * sysdeps/powerpc/bits/atomic.h + [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define. + [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined + as abort stub. + (__arch_compare_and_exchange_val_32_acq): Define. + (atomic_compare_and_exchange_val_acq): Define. -2002-04-06 Roland McGrath <roland@frob.com> +2003-04-15 Ulrich Drepper <drepper@redhat.com> - * mach/setup-thread.c (__mach_setup_thread): int -> natural_t + * include/atomic.h: Pretty printing. - * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE. - (__mmap): Use MAP_FAILED instead of widening __hurd_fail value. +2003-04-14 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mach/hurd/bind.c: Use prototype definition. - * sysdeps/mach/hurd/connect.c: Likewise. - * sysdeps/mach/hurd/getsockopt.c: Likewise. - * sysdeps/mach/hurd/setsockopt.c: Likewise. + * stdio-common/vfscanf.c: Add casts to avoid warnings. - * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to - __msg_sig_post RPC. +2003-04-14 Jakub Jelinek <jakub@redhat.com> - * hurd/catch-exc.c: Use integer_t instead of int. - * hurd/hurdfault.c: Likewise. + * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX. + * sysdeps/x86_64/bits/atomic.h: Likewise. - * sysdeps/mach/hurd/alpha/exc2signal.c - (_hurd_exception2signal): Rewritten. - * sysdeps/mach/hurd/alpha/longjmp-ts.c - (_hurd_longjmp_thread_state): Rewritten. +2003-04-14 Ulrich Drepper <drepper@redhat.com> -2002-04-07 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and + POPARGS_1 to emit labels for the mov instructions. - * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the - DB_LOOKUP_FCT prototype. - * nss/getXXent_r.c: Likewise. - * inet/getaliasent_r.c: Define NSS_attribute_hidden. - * inet/getaliasname_r.c: Likewise. - * inet/getnetbyad_r.c: Likewise. - * inet/getnetbynm_r.c: Likewise. - * inet/getnetent_r.c: Likewise. - * inet/getproto_r.c: Likewise. - * inet/getprtent_r.c: Likewise. - * inet/getprtname_r.c: Likewise. - * inet/getrpcbyname_r.c: Likewise. - * inet/getrpcbynumber_r.c: Likewise. - * inet/getrpcent_r.c: Likewise. - * inet/getservent_r.c: Likewise. - * inet/getsrvbynm_r.c: Likewise. - * inet/getsrvbypt_r.c: Likewise. - * shadow/getspent_r.c: Likewise. - * shadow/getspnam_r.c: Likewise. - - * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static. - - * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access. - Use i686-friendly PIC code. - * sysdeps/i386/elf/setjmp.S: Likewise. +2003-04-14 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code. + * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define. - * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export - list. - * elf/Versions: Remove it here. +2003-04-14 Roland McGrath <roland@redhat.com> -2002-04-06 Ulrich Drepper <drepper@redhat.com> + * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence + compiler warning. - * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from - direction. Reported by H . J . Lu <hjl@lucon.org>. + * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge. -2002-04-05 Ulrich Drepper <drepper@redhat.com> +2003-04-14 Ulrich Drepper <drepper@redhat.com> - * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the - test just before the test runs. - * intl/tst-translit.sh: Likewise. - * intl/tst-codeset.sh: Likewise. + * string/strxfrm.c (STRXFRM): Terminate rulearr at correct + position. Reported by jreiser@BitWagon.com. - * timezone/zic.c: Update from tzcode2002c. - * timezone/asia: Update from tzdata2002c. - * timezone/backward: Likewise. - * timezone/europe: Likewise. - * timezone/northamerica: Likewise. - * timezone/northamerica: Likewise. - * timezone/northamerica: Likewise. - * timezone/southamerica: Likewise. - * timezone/zone.tab: Likewise. +2003-04-13 Ulrich Drepper <drepper@redhat.com> -2002-03-23 Jakub Jelinek <jakub@redhat.com> + * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version. + * sysdeps/generic/unwind-dw2-fde.h: Likewise. + * sysdeps/generic/unwind-dw2.c: Likewise. + * sysdeps/generic/unwind-pe.h: Likewise. - * sysdeps/generic/brk.c (__curbrk): Declare. - * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk. - * sysdeps/generic/dl-sbrk.c: Likewise. - * sysdeps/unix/arm/dl-brk.S: New file. - * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file. - * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file. - * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file. - * sysdeps/unix/bsd/vax/dl-brk.S: New file. - * sysdeps/unix/i386/dl-brk.S: New file. - * sysdeps/unix/mips/dl-brk.S: New file. - * sysdeps/unix/sparc/dl-brk.S: New file. - * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file. - * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file. - * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file. - * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file. +2003-04-13 Alexandre Oliva <aoliva@redhat.com> -2002-04-03 Andreas Schwab <schwab@suse.de> + * sysdeps/unix/sysv/linux/mips/profil-counter: New. + * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64. + * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New. + * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64. + (mcontext_t): Make it match the 32-bit mips kernel in o32. + * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from + the mips and mips64 headers. + (struct user): Port to n32/n64. - * Makefile (headers): Add gnu/lib-names.h here instead of - install-others. - ($(inst_includedir)/gnu/lib-names.h): Remove explicit - installation rule. - (install-headers): Add dependency on install-headers-nosubdir. - * stdio-common/Makefile (headers): Add bits/stdio_lim.h here - instead of install-others. - ($(inst_includedir)/bits/stdio_lim.h): Remove explicit - installation rule. +2003-04-12 Ulrich Drepper <drepper@redhat.com> -2002-04-05 Ulrich Drepper <drepper@redhat.com> + * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to + avoid warning. - * manual/users.tex (Enable/Disable Setuid): Fix typo in example. - Reported by Sam Roberts <sroberts@uniserve.com>. + * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If + __ASSUME_VSYSCALL is defined don't add restorer. + * sysdeps/unix/sysv/linux/kernel-features.h: Define + __ASSUME_VSYSCALL for 2.5.53. -2002-04-03 Jakub Jelinek <jakub@redhat.com> +2003-04-11 Ulrich Drepper <drepper@redhat.com> - * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if - l_addr == 0 and ELF_MACHINE_REL_RELATIVE. - * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define. - * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define. + * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling. + Remove HAVE_CANCELBUF code. Replace with code using the new + initializers for unwind-based cleanup handling. + * sysdeps/generic/unwind.h: Update from latest gcc version. + * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few + places to allow unwind data generation. + * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times. + * sysdeps/x86_64/bits/setjmp.h: Likewise. + * sysdeps/sh/bits/setjmp.h: Likewise. + * sysdeps/powerpc/bits/setjmp.h: Likewise. + * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise. + * sysdeps/alpha/bits/setjmp.h: Likewise. -2002-04-03 David Mosberger <davidm@hpl.hp.com> +2003-04-11 Roland McGrath <roland@redhat.com> - * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info. - (RTLD_START): Ditto. - (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW - dependency violation. + * csu/tst-empty.c: New file. + * csu/Makefile (tests, tests-static): Add it. -2002-04-05 Jakub Jelinek <jakub@redhat.com> +2003-04-11 Jakub Jelinek <jakub@redhat.com> - * time/mktime.c (__mktime_internal): Move check for year < 70 below - all variable declarations. + * string/test-strcmp.c (do_random_tests): Test whether return value + has been promoted to wordsize if the ABI requires caller to do so. + * string/test-strncmp.c (do_random_tests): Likewise. + * string/test-memcmp.c (do_random_tests): Likewise. -2002-04-04 Andreas Schwab <schwab@suse.de> + * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN + before returning. - * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c + (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL + is not defined, but the prctl constants are. -2002-04-04 Andreas Jaeger <aj@suse.de> + * string/tester.c (test_strcmp): Fix a typo. - * sysdeps/x86_64/fpu/e_sqrt.c: New file. - * sysdeps/x86_64/fpu/e_sqrtf.c: New file. +2003-04-09 Ulrich Drepper <drepper@redhat.com> - * sysdeps/x86_64/fpu/s_fabs.c: New file. - * sysdeps/x86_64/fpu/s_fabsf.c: New file. - * sysdeps/x86_64/fpu/s_fabsl.c: New file. + * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition. + * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise. - * sysdeps/unix/sysv/linux/x86_64/time.S: New file. +2003-04-08 Alexandre Oliva <aoliva@redhat.com> - * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file. + * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on + NewABI. + (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on + NewABI. + * sysdeps/mips/mips64/memcpy.S: Adjust register naming + conventions. + * sysdeps/mips/mips64/memset.S: Likewise. + * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]: + Use t0 instead of t4 as temporary. - * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed. - * sysdeps/unix/sysv/linux/x86_64/time.c: Removed. +2003-04-07 Ulrich Drepper <drepper@redhat.com> - * configure.in: Handle all mips entries the same. + * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use + feof_unlocked instead of feof. + (add_dir): Ignore trailing whitespace. - * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported. - * sysdeps/mips/mips3/*: Likewise. - * sysdeps/mips/p40/bits/endian.h: Likewise. +2003-04-07 Jakub Jelinek <jakub@redhat.com> -2002-04-04 Ulrich Drepper <drepper@redhat.com> + * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to + sum of SIZE1 and SIZE2 arguments. - * misc/dirname.c (dirname): Ignore trailing slashes at end of - non-null result [PR libc/2600]. +2003-04-06 Ulrich Drepper <drepper@redhat.com> - * misc/tst-dirname.c: Add more tests. + * iconv/iconv_prog.c (process_block): Don't print message about + invalid input if the -c option is used. + (main): Correctly append IGNORE string for -c option. -2002-04-03 Ulrich Drepper <drepper@redhat.com> +2003-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp> - * locale/programs/charmap.c (charmap_read): If the charmap doesn't - define a code_set_name provide one based on the filename. + * sysdeps/sh/bits/atomic.h: Moved to ... + * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments. + (__arch_compare_and_exchange_val_*_acq): Add parens around macro + arguments. + (atomic_bit_set, atomic_bit_test_set): Likewise. + (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument + twice. + (atomic_add, atomic_add_negative, atomic_add_zero): Likewise. - * malloc/hooks.c: Define weak_variable correctly for _LIBC. +2003-04-06 Roland McGrath <roland@redhat.com> -2001-12-28 Andreas Jaeger <aj@suse.de> + * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register + restoration as done for setcontext yesterday. - * time/mktime.c (__mktime_internal): Check for year < 70 - [PR libc/2738]. +2003-04-06 Jakub Jelinek <jakub@redhat.com> -2002-04-03 Andreas Jaeger <aj@suse.de> + * elf/rtld.c: Revert 2003-03-14 change. + * elf/dl-conflict.c (_dl_resolve_conflicts): Move + #if ! ELF_MACHINE_NO_RELA conditional into the routine. - * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for - shmat. - Reported by Andi Kleen <ak@suse.de>. +2003-04-05 Ulrich Drepper <drepper@redhat.com> -2002-04-03 Ulrich Drepper <drepper@redhat.com> + * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999]. - * sysdeps/generic/w_lgamma.c: Initialized local_signgam. - * sysdeps/generic/w_lgammaf.c: Likewise. - * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854]. + * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): + Always initialize *signgamp before returning an error. - * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902]. - Adjust for new output format of the backtrace functions. +2003-04-05 Roland McGrath <roland@redhat.com> - * misc/syslog.c (vsyslog): Only use cleanup handler if - _LIBC_REENTRANT is defined [PR libc/2924]. + * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing + below the stack pointer even if switching to the same context we are + running right now. - * libio/Makefile (tests): Add bug-ungetwc2. - * libio/bug-ungetwc2.c: New file. +2003-04-05 Ulrich Drepper <drepper@redhat.com> - * manual/install.texi: Typographical and grammatical cleanup. - Patch by Dennis Grace <dgrace@us.ibm.com>. + * catgets/gencat.c (read_input_file): Make sure that \n is not + alone on the line before testing for continuation. - * sunrpc/rpc_svcout.c (write_real_program): Write "result, " - parameter if mtflag. Patch by <jeongyun@innovay.com>. + * math/test-tgmath.c (compile_test): Initialize c. - * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was - always "&". Adjust callers. - Add "_" prefix to several generated definitions. - Patch by paul@serice.net [PR libc/3158]. +2003-04-05 Alexandre Oliva <aoliva@redhat.com> -2002-04-02 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New. + * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New. + * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available + on mips n32. + * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why + XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data + structure on n32 as well. + * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant + data types on n32 and n64. - * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify - size of _dl_arm_cap_flags. - Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155]. +2003-04-05 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT): - Define as 8. + * libio/fileops.c (_IO_new_file_fopen): Don't free step data right + after getting them. -2002-03-22 H.J. Lu <hjl@gnu.org> + * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If + HAVE_register_atfork_malloc is defined use __register_atfork_malloc + instead of __register_atfork. - * scripts/firstversions.awk: Check the first version. +2003-04-05 Jakub Jelinek <jakub@redhat.com> -2002-04-02 Ulrich Drepper <drepper@redhat.com> + * stdio-common/reg-printf.c (__register_printf_function): Calloc + instead of malloc __printf_arginfo_table and __printf_function_table. + Reported by John Reiser <jreiser@BitWagon.com>. - * elf/dl-deps.c (_dl_map_object_deps): The sorting of the - dependencies must be stable to work correctly. - Reported by martin.lubich@datacon.at. +2003-04-04 Steven Munroe <sjmunroe@us.ibm.com> - * libio/bug-ungetwc1.c: New file. - * libio/Makefile (tests): Add bug-ungetwc1. + * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations. + * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations. - * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush - if stream was last used for writing. + * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before + defining. - * elf/do-lookup.h (do_lookup): 2 is the first user-defined version - number [PR libc/3111]. +2003-04-04 Alexandre Oliva <aoliva@redhat.com> - * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer - to ... - * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190]. + * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust + for n64 abi. -2002-04-02 Jakub Jelinek <jakub@redhat.com> +2003-04-03 Roland McGrath <roland@redhat.com> - * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function. - * inet/ether_hton.c (__nss_ethers_lookup): Likewise. - * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise. - * sunrpc/netname.c (__nss_publickey_lookup): Likewise. - * sunrpc/publickey.c (__nss_publickey_lookup): Likewise. + * configure.in: Fix up use of compilation flags to match the build: + For .s files, $ASFLAGS; + For .S files, $CPPFLAGS $ASFLAGS; + For .c files, $CFLAGS $CPPFLAGS; + when linking, add $LDFLAGS. + * configure: Regenerated. -2002-03-30 Jakub Jelinek <jakub@redhat.com> +2003-04-03 Jakub Jelinek <jakub@redhat.com> - * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown - dynamic tags. + * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test + for atomic_compare_and_exchange_bool_acq failure. -2002-03-29 Jakub Jelinek <jakub@redhat.com> +2003-04-03 Ulrich Drepper <drepper@redhat.com> - * sysdeps/i386/fpu/s_fabs.S: New file. - * sysdeps/i386/fpu/s_fabsf.S: New file. - * sysdeps/i386/fpu/s_fabsl.S: New file. - * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file. - * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file. - * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file. + * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION, + _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and + _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION. + Remove declaration of pthread_atfork. -2002-04-02 Ulrich Drepper <drepper@redhat.com> +2003-04-02 Ulrich Drepper <drepper@redhat.com> - * rt/tst-shm.c (do_test): Add one more test for size of shared - memory object. + * locale/iso-639.def: Add many more languages from the current ISO 639. -2002-03-29 Wolfram Gloger <wg@malloc.de> + * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop. + * sysdeps/generic/semtimedop.c: New file. + * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file. + * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop. + * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. + * sysvipc/Makefile (routines): Add semtimedop. + * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop. + * sysvipc/sys/sem.h: Declare semtimedop. - * malloc/malloc.c: Add short description and prototypes for - malloc_get_state, malloc_set_state and posix_memalign, for - consistency and to avoid warnings with -Wstrict-prototypes. - Reported by Andreas Jaeger <aj@suse.de>. +2003-04-02 Daniel Jacobowitz <drow@mvista.com> -2002-04-02 Ulrich Drepper <drepper@redhat.com> + * configure.in: Check for __register_frame_info in both + -lgcc and -lgcc_eh. + * configure: Regenerated. - * po/gl.po: Update from translation team. +2003-04-01 Roland McGrath <roland@redhat.com> -2002-03-31 Roland McGrath <roland@frob.com> + * scripts/abilist.awk: Allow dots in soname suffix. - * hurd/hurdselect.c (_hurd_select): Fix - MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof. - Use a union rather than casts to compare mach_msg_type_t as int. + * scripts/abilist.awk (emit): Fix bailout condition. -2002-03-25 Roland McGrath <roland@frob.com> +2003-04-01 Jakub Jelinek <jakub@redhat.com> - * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't - check off the end of NAME when it's shorter than 2 chars. - Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>. + * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the + IA-64 version. -2002-03-17 Roland McGrath <roland@frob.com> + * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp + register as input to asm. - * sysdeps/mach/hurd/i386/sys/io.h: New file. - * sysdeps/mach/hurd/i386/ioperm.c: New file. - * sysdeps/mach/hurd/i386/Dist: Add them. - * sysdeps/mach/hurd/i386/Versions - (libc: GLIBC_2.2.6): New set, add ioperm. - * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY. - (mach_interface_list): Check for mach_i386.defs. - * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it. - * sysdeps/mach/configure: Regenerated. +2003-04-01 Jakub Jelinek <jakub@redhat.com> -2002-03-22 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo. - * po/fr.po: Update from translation team. +2003-04-01 Andreas Jaeger <aj@suse.de> -2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com> + * configure.in: Output as/ld as name if version is too old. - * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove - getpriority from syscalls list. +2003-03-31 Daniel Jacobowitz <drow@mvista.com> -2002-03-28 Andreas Jaeger <aj@suse.de> + * configure.in: Don't require an installed C library in the test + for ".set" assembler support. - * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file. - * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file. - * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file. - * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file. +2003-03-31 Roland McGrath <roland@redhat.com> -2002-03-27 Andreas Jaeger <aj@suse.de> + * signal/tst-sigset.c: New file. + * signal/Makefile (tests): Add it. - * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct - sigcontext): Follow further kernel change. +2003-03-31 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further - kernel change. + * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65. + * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise. + * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise. + * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise. + (__SIGRTMAX): Adjust accordingly. + * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define + second compatibility symbol set. + * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define. - * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK): - Change for struct sigcontext change. +2003-03-31 Andreas Schwab <schwab@suse.de> - * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump): - Follow changes in struct sigcontext. - - * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace - sysycall, use wrapper instead. - -2002-03-26 Andreas Jaeger <aj@suse.de> - - * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory - read and write accesses as detailed as possible. - (__memcpy_by2): Likewise. - (__memcpy_g): Likewise. - (memmove): Likewise. - (memcmp): Likewise. - (__memset_ccn_by4): Likewise. - (__memset_ccn_by2): Likewise. - (__memset_gcn_by4): Likewise. - (__memset_gcn_by2): Likewise. - (memchr): Likewise. - (__memrchr): Likewise. - (rawmemchr): Likewise. - (__strlen_g): Likewise. - (__strcpy_g): Likewise. - (__mempcpy_by4): Likewise. - (__mempcpy_by2): Likewise. - (__mempcpy_byn): Likewise. - (__stpcpy_g): Likewise. - (__strncpy_by4): Likewise. - (__strncpy_by2): Likewise. - (__strncpy_byn): Likewise. - (__strncpy_gg): Likewise. - (__strcat_c): Likewise. - (__strcat_g): Likewise. - (__strncat_g): Likewise. - (__strcmp_gg): Likewise. - (__strncmp_g): Likewise. - (__strchr_c): Likewise. - (__strchr_g): Likewise. - (__strchrnul_c): Likewise. - (__strchrnul_g): Likewise. - (__strrchr_c): Likewise. - (__strrchr_g): Likewise. - (__strrchr_c): Likewise. - (__strrchr_g): Likewise. - (__strcspn_c1): Likewise. - (__strcspn_cg): Likewise. - (__strcspn_g): Likewise. - (__strcspn_g): Likewise. - (__strspn_c1): Likewise. - (__strspn_cg): Likewise. - (__strspn_g): Likewise. - (__strspn_g): Likewise. - (__strpbrk_cg): Likewise. - (__strpbrk_g): Likewise. - (__strstr_cg): Likewise. - (__strstr_g): Likewise. - - * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by - Michal Ludvig <mludvig@suse.cz>. - - * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit - compatibilty, adjust for kernel changes. - - * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct - sigcontext): Adjust for kernel changes. - -2002-03-25 Andreas Jaeger <aj@suse.de> - - * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle - little endian. - Reported by Artur Zaprzala <zybi@talex.com.pl>. - -2002-03-24 Andreas Jaeger <aj@suse.de> - - * manual/memory.texi (Aligned Memory Blocks): Fix typo. - - * stdio-common/tst-fdopen.c (main): Remove unused variable. - - * iconv/tst-iconv3.c (main): Use correct printf strings. - -2002-03-18 Roland McGrath <roland@frob.com> - - * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type. - (CMGROUP_MAX): New macro. - -2002-03-23 Roland McGrath <roland@frob.com> - - * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm - * sysdeps/posix/shm_unlink.c: Likewise. - -2002-03-22 Roland McGrath <roland@frob.com> - - * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default. - * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6 - under --enable-libio. - * sysdeps/mach/hurd/configure: Regenerated. + * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test): + Define. + (atomic_decrement_and_test): Fix test. -2002-03-23 Roland McGrath <roland@frob.com> +2003-03-31 Jakub Jelinek <jakub@redhat.com> - * sysdeps/mach/hurd/i386/Makefile - (sysdep_routines, shared-only-routines): Don't add framestate, - reverting 2001-10-02 change. - * sysdeps/unix/sysv/linux/arm/Makefile: Likewise. - * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise. - * sysdeps/unix/sysv/linux/i386/Makefile: Likewise. - * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise. - * sysdeps/unix/sysv/linux/mips/Makefile: Likewise. - * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise. - * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise. - * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines): - Do it here instead, only if [$(unwind-find-fde) = yes]. + * sysdeps/sparc/sparc32/bits/atomic.h: New file. + * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file. + * sysdeps/sparc/sparc64/bits/atomic.h: New file. + * sysdeps/sparc/sparc32/atomicity.h: Removed. + * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed. + * sysdeps/sparc/sparc64/atomicity.h: Removed. -2002-03-23 Andreas Jaeger <aj@suse.de> +2003-03-30 Roland McGrath <roland@redhat.com> - * signal/signal.h: Fix typo. Patch by Steve Kemp - <skx@tardis.ed.ac.uk>. + * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone. -2002-03-22 Andreas Jaeger <aj@suse.de> + * intl/po2test.sed: Anchor substitution regexps to fix last change. - * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and - getresuid. +2003-03-29 Paolo Bonzini <bonzini@gnu.org> - * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct - _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg. - * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct - user_fpregs_struct): Rename fwd. + * intl/po2test.sed: Unify the transformations for msgid and msgstr + and remove a useless s/// command. - * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump): - Follow sigcontext changes. +2003-03-27 David Mosberger <davidm@hpl.hp.com> + + * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0" + directive into empty .prologue region to ensure that call-chain + is terminated even for the first instruction. -2002-03-22 Andreas Jaeger <aj@suse.de> + * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom + to terminate call-chain right from the get-go. - * sysdeps/mips/bits/nan.h: New file. Copy from generic one with - changes for NaNs on MIPS. - Patch by Hartvig Ekner <hartvige@mips.com>. + * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary + stop bit between compare & branch. + +2003-03-29 Ulrich Drepper <drepper@redhat.com> + + * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal + point correctly [PR libc/4993]. + + * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid + netlink_open calls if netlink is known to not be available. + +2003-03-29 Alexandre Oliva <aoliva@redhat.com> + + * configure.in: Add mips64* support. + * sysdeps/mips/bits/endian.h: Make it bi-endian. + * sysdeps/mips/mipsel/bits/endian.h: Removed. + * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed. + * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed. + * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32. + * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32. + * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64. + * sysdeps/mips/Implies: Moved wordsize-32 to... + * sysdeps/mips/mips32/Implies: New file. + * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO, + ret_NOERRNO): New. + (ret, PSEUDO_END): Moved past END. + (PSEUDO): Moved to... + * sysdeps/unix/mips/mips32/sysdep.h: New file. + * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO. + * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to... + * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file. + * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file. + + * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): + Re-introduce ENTRY. + +2003-03-28 Thorsten Kukuk <kukuk@suse.de> + + * sysdeps/unix/sysv/linux/ifaddrs.c: New file. + * inet/test-ifaddrs.c: Allow AF_PACKET. + * sysdeps/unix/sysv/linux/kernel-features.h: Add + __ASSUME_NETLINK_SUPPORT. + +2003-03-28 Ulrich Drepper <drepper@redhat.com> + + * elf/vismain.c (do_test): Comment out tests which fail in the moment. + +2003-03-26 H.J. Lu <hjl@gnu.org> + + * elf/vismod.h (getvarlocal1): Return const char **. + (getvarinmod1): Likewise. + (getvaritcpt1): Likewise. + (getvarlocal2): Likewise. + (getvarinmod2): Likewise. + (getvaritcpt2): Likewise. + (getvaritcpt3): Likewise. + * elf/vismain.c (do_test): Adjusted. + * elf/vismod1.c (getvarlocal1): Return address. + (getvarinmod1): Likewise. + (getvaritcpt1): Likewise. + * elf/vismod2.c (getvarlocal2): Likewise. + (getvarinmod2): Likewise. + (getvaritcpt2): Likewise. + * elf/vismod3.c (getvaritcpt3): Likewise. + +2003-03-28 Roland McGrath <roland@redhat.com> + + * elf/vismain.c (do_test): Print both addresses when they don't match. + + * scripts/abilist.awk: If given -v filename_regexp and/or -v + libname_regexp when parsing names, then produce output only + for those matching the given regexps. In combine mode, save all + stanzas for a final sorting by stanza header at the end. + Emit a blank line between stanzas. + + * scripts/abilist.awk: When given -v combine=1, do parse_names and + emit a single output stream with lib name in stanza header lines. + + * scripts/abilist.awk: Emit A for all *ABS* regardless of type. + +2003-03-27 Roland McGrath <roland@redhat.com> + + * sysdeps/powerpc/bits/atomic.h [! __powerpc64__] + (__arch_atomic_decrement_if_positive_64): Fix bogus definition. + +2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp> + + * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq): + Return old value. Make asm output reg constraint earlyclobber. + Renamed from... + (__arch_compare_and_exchange_8_acq): ... this. + (__arch_compare_and_exchange_val_16_acq): + Return old value. Make asm output reg constraint earlyclobber. + Renamed from... + (__arch_compare_and_exchange_16_acq): ... this. + (__arch_compare_and_exchange_val_32_acq): + Return old value. Make asm output reg constraint earlyclobber. + Renamed from... + (__arch_compare_and_exchange_32_acq): ... this. + (__arch_compare_and_exchange_val_64_acq): + Renamed from... + (__arch_compare_and_exchange_64_acq): ... this. + (atomic_exchange_and_add): Use local variables and + __arch_compare_and_exchange_val_64_acq. + (atomic_add): Likewise. + (atomic_add_negative, atomic_add_zero): Use local variables. -2002-03-21 Ulrich Drepper <drepper@redhat.com> +2003-03-28 Alexandre Oliva <aoliva@redhat.com> - * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca. - Use realloc if too large. - (addgrbyid): Likewise. - * nscd/hstcache.c (addhstbyname): Likewise. - (addhstbyaddr): Likewise. - (addhstbynamev6): Likewise. - (addhstbyaddrv6): Likewise. - * nscd/pwdcache.c (addpwbyname): Likewise. - (addpwbyuid): Likewise. + * sysdeps/unix/mips/sysdep.S: Include sys/asm.h. -2002-03-21 Andreas Jaeger <aj@suse.de> +2003-03-27 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct - _fpstate): Add separate struct for x86-64. + * Makefile: Remove libmd5crypt goal. - * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct - user_fpregs_struct): Change member names to follow kernel. +2003-03-25 Jakub Jelinek <jakub@redhat.com> -2002-03-20 Ulrich Drepper <drepper@redhat.com> + * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore + special handling of relocations against local symbols. - * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29. - Correctly close the UDP connection right away [PR libc/3120]. +2003-03-27 Steven Munroe <sjmunroe@us.ibm.com> -2002-03-20 Andreas Jaeger <aj@suse.de> + * sysdeps/powerpc/bits/atomic.h + (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__]. + [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq): + Define PPC64 specific version. + [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq): + Change (mem) constraint to "b". + [__powerpc64__] (__arch_atomic_exchange_and add_64): + Replace addi with add. Change (value) contraint to "r". + Change (mem) constraint to "b". + [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro. + (__arch_atomic_exchange_32): Change (mem) constraint to "b". + (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b". + (__arch_atomic_decrement_if_positive_32): New macro. + (atomic_decrement_if_positive): Use __arch* macros. - * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct - user_fpregs_struct): Fix for changed kernel struct. - (struct user_regs_struct): Likewise. - (struct user): Likewise. - Add 32-bit x86 compatibility. +2003-03-27 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers. + * sysdeps/ia64/fpu/libm-test-ulps: Update. -2002-03-19 Andreas Jaeger <aj@suse.de> +2003-03-27 Roland McGrath <roland@redhat.com> - * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types. + * scripts/rpm2dynsym.sh: New file. + * Makefile (distribute): Add it. -2002-03-18 Andreas Jaeger <aj@suse.de> +2003-03-27 David Mosberger <davidm@hpl.hp.com> - * iconvdata/Makefile: Only run tests when shared libs are - available. + * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's + ar.unat before returning. Add missing .mem.offset directives + to ensure file gets assembled without warnings. + * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise. -2002-03-17 Andreas Jaeger <aj@suse.de> +2003-03-27 Jakub Jelinek <jakub@redhat.com> - * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits. + * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>: + Return -1 instead of 0 if clock_getres failed. - * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment. +2003-03-27 Roland McGrath <roland@redhat.com> - * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause - bits. + * scripts/abilist.awk: If variable `parse_names' is set, grok the file + header lines and write out foo.symlist files for each foo.so.NN listed. - * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro. - (CAUSE_SHIFT): New macro. - Patch by Hartvig Ekner <hartvige@mips.com>. + * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden. + This symbol is exported, and we don't want to hide it. + Add libc_hidden_proto instead. + (_IO_file_jumps): Add libc_hidden_proto. + * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def. + Remove INTVARDEF. + * libio/fileops.c (_IO_file_jumps): Likewise. + * libio/stdfiles.c: Don't use INTUSE on them. + * libio/iofdopen.c (_IO_new_fdopen): Likewise. + * libio/iofopen.c (__fopen_internal): Likewise. + * libio/freopen.c (freopen): Likewise. + * libio/freopen64.c (freopen64): Likewise. + * libio/iovdprintf.c (_IO_vdprintf): Likewise. - * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes. - * sysdeps/generic/unwind-pe.h: Likewise. + * Makerules (check-abi) [$(enable-check-abi) = warn]: + Ignore exit status from diff. + * configure.in (enable_check_abi): Document possible value "warn". + Change default to no for now. + * configure: Regenerated. - * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct - type to _IO_setb. + * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning + macro calls and a #include <stub-tag.h> at the end. + * Makerules ($(objpfx)stubs): Tweak sed commands. - * libio/stdio.c (AL2): Define variant when visibility attribute is - not supported. + * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in + caller column for *xattr syscalls, since they are in sysdeps/generic. - * include/libc-symbols.h (_INTVARDEF): Define variant when - visibility attribute is not supported. + * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid + * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid -2002-03-16 Ulrich Drepper <drepper@redhat.com> +2003-03-26 Roland McGrath <roland@redhat.com> - * po/fr.po: Update from translation team. + * Makerules (check-abi-config): Use /thread instead of /tls when + use-thread and not just use-tls is set. -2002-02-25 Bruno Haible <bruno@clisp.org> + * Makerules (update-abi): Put quotes around $(update-abi-config). - * MakeTAGS (extract): Use --sort-by-file instead of --sort-output. + * elf/Makefile (check-abi): Depend on check-abi-ld. + (update-abi): Depend on update-abi-ld. -2002-03-15 Ulrich Drepper <drepper@redhat.com> +2003-03-26 GOTO Masanori <gotom@debian.or.jp> - * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate - buffers if _IO_file_attach failed. + * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and + do not check for errors (unless testing for 32bit variant). + * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise. - * libio/fileops.c (_IO_file_open): Close file descriptor if - _IO_SEEKOFF call failed. +2003-03-27 Philip Blundell <philb@gnu.org> -2002-03-15 H.J. Lu <hjl@gnu.org> - Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use + unconditional mov. Remove nop. - * configure.in: Check for availability of - init_array/fini_array/preinit_array handling in binutils. - * config.h.in (HAVE_INITFINI_ARRAY): New macro. - * config.make.in (have-initfini-array): New variable. + * sysdeps/unix/sysv/linux/kernel-features.h + (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm. + * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code + when __ASSUME_VFORK_SYSCALL is defined. + * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for + __ASSUME_MMAP2_SYSCALL. + * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for + __ASSUME_REALTIME_SIGNALS. -2002-03-15 Ulrich Drepper <drepper@redhat.com> +2003-03-26 Ulrich Drepper <drepper@redhat.com> - * stdio-common/tst-printf.c (main): Comment out one test which - checked the compiler's ability to fold floating-point constants - but not really printf. - (rfg3): Make s const. - * stdio-common/tst-printf.sh: Adjust for removed test. + * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2 + only if DL_NO_COPY_RELOCS is not defined. + * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS. - * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an - internal function. Adjust for internal_function calling convention. - * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal - as internal_function. +2003-03-26 Roland McGrath <roland@redhat.com> - * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as - hidden. + * sysdeps/unix/make-syscalls.sh: When an undefined syscall has + SOURCE=-, append its symbol names to make variable unix-stub-syscalls. + * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls] + (sysdep_routines): Add stub-syscalls. + ($(objpfx)stub-syscalls.c): New target. + (generated): Add stub-syscalls.c. - * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to - declaration and definition. - * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to - declaration. - * nss/getXXent_r.c: Likewise. - * nss/nsswitch.h (db_lookup_function): Add internal_function to - definition. + * tls.make.c: Also define use-tls according to USE_TLS macro. - * include/time.h: Declare __localtime_r as hidden. +2003-03-26 Ulrich Drepper <drepper@redhat.com> - * include/aliases.h: Declare __getaliasent_r as hidden. - * include/grp.h: Declare __getgrent_r as hidden. - * include/netdb.h: Declare __gethostent_r, __getnetent_r, - __getservent_r, and __getprotoent_r as hidden. - * include/pwd.h: Declare __getpwent_r as hidden. - * include/shadow.h: Declare __getspent_r as hidden. - * include/rpc/netdb.h: Declare __getrpcent_r as hidden. + * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid + no-op padding element. + * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise. + * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise. + * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise. - * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare, - and __gconv_transliterate as hidden. - Add internal_function to __gconv_get_path declaration. - * iconv/gconv_conf.c: Add internal_function to __gconv_get_path - definition. Add attribute_hidden to __gconv_read_conf definition. +2003-03-26 GOTO Masanori <gotom@debian.or.jp> -2002-03-14 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error + condition check for the return value of getgroups32. - * elf/rtld.c: Declare _environ as hidden. - * sysdeps/generic/dl-environ.c: Likewise. - * sysdeps/generic/dl-sysdep.c: Likewise. +2003-03-26 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO): + Fix a typo. + * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO, + PSEUDO_END_NOERRNO): Define. + * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo. + Define to PSEUDO_END. + +2003-03-26 Ulrich Drepper <drepper@redhat.com> + + * abilist/librt.abilist: Add new timer interfaces for 64-bit archs. + +2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com> + + * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP. + * iconvdata/bug-iconv4.c: New file. + * iconvdata/Makefile (tests): Add bug-iconv4. + +2003-03-25 H.J. Lu <hjl@gnu.org> + + * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected + symbols twice. + (_dl_lookup_versioned_symbol): Likewise. + +2003-03-26 Jakub Jelinek <jakub@redhat.com> + + * csu/tst-atomic.c (do_test): Add some new + atomic_compare_and_exchange_val_acq, atomic_add_zero, + atomic_compare_and_exchange_bool_acq and atomic_add_negative tests. + * include/atomic.h (atomic_add_negative, atomic_add_zero): + Prefix local variable so that it doesn't clash with the one + in atomic_exchange_and_add. + * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void * + pointers. + (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i. + * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force + value into register. + * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq): + Cast newval to long. + * sysdeps/x86_64/bits/atomic.h + (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to + long. + (atomic_exchange): Cast newvalue to long if sizeof == 8. + (atomic_exchange_and_add): Cast value to long if sizeof == 8. + (atomic_add, atomic_add_negative, atomic_add_zero): Likewise. + (atomic_bit_set): Shift 1L up in all cases to shut up warnings. + +2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com> + + * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order + bit from backtrace addresses. + +2003-03-21 Andreas Schwab <schwab@suse.de> + + * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned + __chown symbols. + +2003-03-25 Roland McGrath <roland@redhat.com> + + * config.make.in (enable-check-abi): New variable from configure. + * configure.in (enable_check_abi): New substituted variable, + controlled by --{enable,disable}-check-abi (default yes). + * configure: Regenerated. + * Makerules [$(enable-check-abi) = yes] (tests): Put this condition + on check-abi dependency. + +2003-03-26 Andreas Schwab <schwab@suse.de> + + * sysdeps/m68k/m68020/bits/atomic.h: Fix typos. + * include/atomic.h: Likewise. + + * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO. + +2003-03-25 Roland McGrath <roland@redhat.com> + + * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro. + (__arch_atomic_exchange_64): New macro. + (atomic_exchange): Use them. + (__arch_atomic_exchange_and_add_32): New macro. + (__arch_atomic_exchange_and_add_64): New macro. + (atomic_exchange_and_add): Use them. + Original patch from Steven Munroe <sjmunroe@us.ibm.com>. + +2003-03-25 Alexandre Oliva <aoliva@redhat.com> + + * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64): + Define. + * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all + ISA tests. + (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA. + (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG. + * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR + to decide whether to add padding. + * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR + to decide whether to add padding. + * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct + old_kernel_sigaction): Likewise. + +2003-03-25 Ulrich Drepper <drepper@redhat.com> + + * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and + atomic_add_zero were supposed to do. + * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero + to x86 behavior. + + * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*. + This matches the new timer implementation. + * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE): + Likewise. + * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE): + Likewise. + * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust + timer info for what the kernel provides these days. + (struct sigevent): Add _tid field. + Define SIGEV_THREAD_ID. + Remove struct __pthread_attr_s forward declaration. + * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise. + * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise. + * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise. + + * Versions.def (librt): Add GLIBC_2.3.3. + + * abilist/libpthread.abilist: Update for nptl. + +2003-03-24 Jon Grimm <jgrimm@us.ibm.com> + + * inet/netinet/in.h: Add IPPROTO_SCTP. + +2003-03-24 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define. + +2003-03-24 Philip Blundell <philb@gnu.org> + + * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL): + Remove a1 from clobber list. + +2003-03-24 Ulrich Drepper <drepper@redhat.com> + + * timezone/antarctica: Update from tzdata2003a. + * timezone/asia: Likewise. + * timezone/australasia: Likewise. + * timezone/europe: Likewise. + * timezone/iso3166.tab: Likewise. + * timezone/northamerica: Likewise. + * timezone/southamerica: Likewise. + * timezone/zone.tab: Likewise. - * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and - _dl_mcount_internal as hidden. - - * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk. - * sysdeps/generic/dl-brk.c: New file. - * sysdeps/generic/dl-sbrk.c: New file. - * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file. - * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file. - - * elf/dl-minimal.c (malloc): Declare _end as hidden. - (__errno_location): New function. Declare errno as hidden. - * elf/rtld.c (_dl_argc): Define as hidden. - (_dl_skip_args): Define as hidden. - (_begin, _end): Declare as hidden. - * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden. - * sysdeps/generic/entry.h (_start): Declare as hidden. - * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden. - * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare - _dl_runtime_resolve and _dl_runtime_profile as hidden. - (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini. - -2002-03-14 Roland McGrath <roland@frob.com> - - * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h. - - * Makeconfig (%.v.i, %.v): New implicit rules. - (preprocess-versions): Variable removed. - ($(common-objpfx)shlib-versions.v.i): New target giving just the - shlib-versions input files as dependencies. - ($(common-objpfx)soversions.i): Depend on that instead of the input - files. Use it as input instead of using a pipeline. - (postclean-generated): Append soversions.i, shlib-versions.v, and - shlib-versions.v.i here. - * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just - the Versions.def input files as dependencies. - ($(common-objpfx)Versions.v.i): Likewise for Versions files. - ($(common-objpfx)Versions.all): Depend on that instead of the input - files. Use it as input instead of using a pipeline. - ($(common-objpfx)sysd-versions): Likewise with Versions.v.i. - (postclean-generated): Append those .v and .v.i files here. - -2002-03-14 Jakub Jelinek <jakub@redhat.com> - - * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo. - * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE): +2003-03-24 Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo. + +2003-03-23 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid + unwanted expansion by definining to ret. Patch by Ian Wienand. + + * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of + the parameter description to denote no error checking. Generate + appropriate pseudo asm code. + * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'. + * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid, + getpgrp, and getppid with 'E'. + * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO, + PSEUDO_END_NOERRNO, and ret_NOERRNO. + * sysdeps/powerpc/powerpc64/sysdep.h: Likewise. + * sysdeps/unix/sysdep.h: Likewise. + * sysdeps/unix/alpha/sysdep.h: Likewise. + * sysdeps/unix/sparc/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise. + +2003-03-23 Roland McGrath <roland@redhat.com> + + * Makeconfig (+includes): Don't use $(last-includes). + +2003-03-22 Alexandre Oliva <aoliva@redhat.com> + + * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns. + * sysdeps/unix/sysv/linux/configure: Rebuilt. + +2003-03-23 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/alpha/fpu/libm-test-ulps: Update. + * sysdeps/arm/libm-test-ulps: Update. + * sysdeps/hppa/fpu/libm-test-ulps: Update. + * sysdeps/ia64/fpu/libm-test-ulps: Update. + * sysdeps/mips/fpu/libm-test-ulps: Update. + * sysdeps/powerpc/nofpu/libm-test-ulps: Update. + * sysdeps/powerpc/fpu/libm-test-ulps: Update. + * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update. + * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update. + * sysdeps/sh/sh4/fpu/libm-test-ulps: Update. + * sysdeps/s390/fpu/libm-test-ulps: Update. + * sysdeps/x86_64/fpu/libm-test-ulps: Update. + +2003-03-22 Roland McGrath <roland@redhat.com> + + * include/atomic.h: Put parens around all macro arguments. + (__atomic_val_bysize, __atomic_bool_bysize): New macros. + (atomic_compare_and_exchange_val_acq): Use it. + (atomic_compare_and_exchange_bool_acq): Likewise. + (atomic_increment_and_test): Invert sense of test. + (atomic_decrement_and_test): Likewise. + * csu/tst-atomic.c: Update those tests to match. + +2003-03-22 Jakub Jelinek <jakub@redhat.com> + + * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment. + Don't define if __arch_compare_and_exchange_val_32_acq is not defined. + (atomic_compare_and_exchange_bool_acq): Add comment. Don't use + __oldval variable in the macro, since it might be macro argument. + (atomic_decrement_if_positive): Initialize __memp, remove setting + of non-existent variable. + (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting. + * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement + using atomic_compare_and_exchange_val_acq. + (atomic_decrement_if_positive, atomic_bit_test_set): Define. + * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq): + Renamed from... + (__arch_compare_and_exchange_bool_8_acq): ... this. + (__arch_compare_and_exchange_val_16_acq): Renamed from... + (__arch_compare_and_exchange_bool_16_acq): ... this. + (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed + from... + (__arch_compare_and_exchange_bool_32_acq): ... this. + (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed + from... + (__arch_compare_and_exchange_bool_64_acq): ... this. + (__arch_compare_and_exchange_val_32_acq): Use __typeof for local + variables types instead of assuming int. + Change prefix of local variables to __arch. + * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq): Remove. + (atomic_compare_and_exchange_val_acq, + atomic_compare_and_exchange_bool_acq): Define. -2002-03-14 Jakub Jelinek <jakub@redhat.com> + * csu/tst-atomic.c: New test. + * csu/tst-atomic-long.c: New test. + * csu/Makefile (tests): Add tst-atomic and tst-atomic-long. - * sysdeps/generic/mp_clz_tab.c: New file. - * sysdeps/i386/mp_clz_tab.c: New file. - * sysdeps/hppa/mp_clz_tab.c: New file. - * sysdeps/powerpc/mp_clz_tab.c: New file. - * stdlib/Makefile (aux): Revert last patch. - * math/Makefile (gmp-objs): Likewise. + * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong. -2002-03-13 Paul Eggert <eggert@twinsun.com> + * sysdeps/s390/Versions: Add trailing newline. - * time/strftime.c: Comment fixes for references to obsolescent - standards, In most cases the simplest fix is to remove the - confusing comments. Cross-referencing all the standards properly - is a bit of a pain, and it should be enough to put that info in - the documentation as I did in my recent time.texi patch. + * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning + if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument. -2002-03-13 Paul Eggert <eggert@twinsun.com> +2003-03-22 Andreas Schwab <schwab@suse.de> - * manual/time.texi (Formatting Calendar Time): - ISO C99 also specifies the E and O modifiers. - %P is a GNU extension, and is not in ISO C99. - Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale. - %T is also in ISO C99. - The RFC 822 example is not valid in arbitrary locales. - Reword the POSIX.2 wording slightly, to make it a bit clearer - that POSIX.2 formats are also supported by later POSIX versions. - If a format was introduced in ISO C99 it is also required by - POSIX.1-2001. + * sysdeps/m68k/fpu/libm-test-ulps: Update. -2002-03-13 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and - _sys_nerr_internal with INTVARDEF2. - * include/libc-symbols.h (INTVARDEF2): New macro. - * include/stdio.h (_sys_errlist_internal): Declare as hidden. - (_sys_nerr_internal): Library. - - * sysdeps/posix/signal.c (_sigintr): Define as hidden. - * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden. - - * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c. - -2002-03-13 Wolfram Gloger <wg@malloc.de> - - * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed. - -2002-03-02 Andreas Schwab <schwab@suse.de> - - * stdio-common/vfprintf.c (process_arg): Fix decimal format with - 'h' flag and positional arg. - * stdio-common/tst-printf.c (rfg3): New function to test - positional arguments. - (main): Fix some warnings. - -2002-03-13 Jakub Jelinek <jakub@redhat.com> - - * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED. - * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise. - -2002-03-13 Ulrich Drepper <drepper@redhat.com> - - * grp/initgroups.c (__nss_group_data): Declare as hidden. - - * include/locale.h (_nl_C_locobj): Declare as hidden. - - * time/asctime.c (_nl_C_LC_TIME): Declare as hidden. - * time/strptime.c (_nl_C_LC_TIME): Likewise. - - * include/netinet/in.h (in6addr_any_internal): Mark as hidden. - - * include/sys/gmon.h: Declare _gmonparam as hidden. - - * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden. - (__ctype32_wctrans): Likewise. - (__ctype32_width): Likewise. - - * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and - use of __ttyname. - - * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid. - Define as hidden. - (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as - hidden. Change all users of these variables. - - * posix/regex_internal.h (__re_error_msgid): Renamed from - re_error_msgid. Declare as hidden. - (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as - hidden. - - * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden. - (__printf_function_table): Likewise. - * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as - hidden. - (__printf_function_table): Likewise. - - * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd, - __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden. - - * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden. - * nss/nsswitch.c: Declare _nss_*_database as hidden. - - * stdlib/wctomb.c (__no_r_state): Declare as hidden. - * stdlib/mbtowc.c (__no_r_state): Define as hidden. - -2002-03-12 Ulrich Drepper <drepper@redhat.com> - - * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class, - _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower, - _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower, - _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit, - _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space, - _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph, - _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl, - _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum, - _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and - _nl_C_LC_CTYPE_width: Declare as hidden. - * include/locale.h: Declare _nl_locale_file_list. - * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden. - * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden. - * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden. - * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden. - * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden. - * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden. - * locale/C-name.c: Define _nl_C_LC_NAME as hidden. - * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden. - * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden. - * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden. - * locale/C-time.c: Define _nl_C_LC_TIME as hidden. - * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class, - _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower, - _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower, - _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit, - _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space, - _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph, - _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl, - _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum, - _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, - _nl_C_LC_CTYPE_width, and as hidden. - * locale/findlocale.c: Declare _nl_C as hidden. - * locale/newlocale.c: Likewise. - * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of - _nl_locale_file_list. - * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class, - _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden. - Define _nl_C_locobj as hidden. - - * malloc/mtrace.c (_mtrace_file): Define as hidden. - (_mtrace_line): Likewise. - - * include/time.h: Declare __mon_yday as hidden. - * time/strptime.c [_LIBC] (__mon_yday): Remove declaration. - - * libio/libioP.h: Declare __libio_codecvt as hidden. - * libio/fileops.c: Declare __libio_translit as hidden. - * libio/iofwide.c: Define __libio_translit as hidden. - - * login/getutent_r.c: Define __libc_utmp_lock as hidden. - * login/getutid_r.c: Declare __libc_utmp_lock as hidden. - * login/getutline_r.c: Likewise. - * login/utmpname.c: Likewise. - - * login/utmp-private.h: Declare __libc_utmp_file_functions, - __libc_utmp_unknown_functions, __libc_utmp_jump_table, and - __libc_utmp_file_name as hidden. - - * locale/setlocale.c (__libc_setlocale_lock): Define as hidden. - * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden. - * locale/freelocale.c: Likewise. - * locale/lc-time.c: Likewise. - - * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden. - (__libc_ptyname2): Likewise. - * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as - hidden. - (__libc_ptyname2): Likewise. - - * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden. - * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden. - * sysdeps/generic/init-first.c: Likewise. - * sysdeps/i386/init-first.c: Likewise. - * sysdeps/mach/hurd/i386/init-first.c: Likewise. - * sysdeps/mach/hurd/mips/init-first.c: Likewise. - * sysdeps/mach/hurd/powerpc/init-first.c: Likewise. - * sysdeps/sh/init-first.c: Likewise. - * sysdeps/unix/sysv/aix/init-first.c: Likewise. - * sysdeps/unix/sysv/linux/init-first.c: Likewise. + * sysdeps/m68k/m68020/bits/atomic.h: New file. + * sysdeps/m68k/m68020/atomicity.h: Removed. - * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden. - (_itowa_upper_digits): Likewise. +2003-03-22 Alexandre Oliva <aoliva@redhat.com> - * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden. - * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare - as hidden. + * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation + data structures and macros. Protect from multiple inclusion. - * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps, - _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps, - _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal, - _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden. + * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless + typo in #if test. - * gmon/gmon.c (__bb_head): Define as hidden. - * gmon/bb_exit_func.c (__bb_head): Declare as hidden. +2003-03-21 Andreas Jaeger <aj@suse.de> - * argp/argp-parse.c (_argp_hang): Define as static. + * sysdeps/i386/fpu/libm-test-ulps: Update. - * include/libc-symbols.h (_INTVARDEF): Adjust for visibility - handling in latest compilers. + * math/libm-test.inc (tgamma_test): Recompute some constants with + 36 digits precision. + (lgamma_test): Likewise. + (ccos_test): Likewise. + (ccosh_test): Likewise. + (clog10_test): Likewise. + (csin_test): Likewise. + (csinh_test): Likewise. + (ctan_test): Likewise. + (ctanh_test): Likewise. - * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to - define alias. - * libio/fileops.c (_IO_file_jumps): Likewise. - * libio/stdfiles.c (_IO_list_all): Likewise. - * libio/wfileops.c (_IO_wfile_jumps): Likewise. - - * malloc/malloc.h: Move __libc_malloc_initialized declaration to - include/malloc.h. - * include/malloc.h: Add __libc_malloc_initialized declaration - here. Mark variable hidden. - * malloc/malloc.c: Include <malloc.h> not "malloc.h". - - * elf/dl-open.c (__libc_argc): Declare as hidden. - (__libc_argv): Likewise. - * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden. - (__libc_argv): Likewise. - * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and - __libc_argv as hidden. - * sysdeps/mach/hurd/mips/init-first.c: Likewise. - * sysdeps/mach/hurd/powerpc/init-first.c: Likewise. - * sysdeps/unix/sysv/aix/init-first.c: Likewise. - * sysdeps/unix/sysv/linux/init-first.c: Likewise. +2003-03-19 Jakub Jelinek <jakub@redhat.com> - * include/stdlib.h (__libc_drand48_data): Declare as hidden. - * stdlib/drand48.c: Remove declaration of __libc_drand48_data here. - * stdlib/erand48.c: Likewise. - * stdlib/jrand48.c: Likewise. - * stdlib/lcong48.c: Likewise. - * stdlib/lrand48.c: Likewise. - * stdlib/mrand48.c: Likewise. - * stdlib/nrand48.c: Likewise. - * stdlib/seed48.c: Likewise. - * stdlib/srand48.c: Likewise. - - * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden. - (_itoa_lower_digits_internal): New declaration. - (_itoa_upper_digits_internal): New declaration. - (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits. - * stdio-common.h (_itoa_lower_digits_internal): New declaration. - (_itoa_upper_digits_internal): New declaration. - (_itoa_word): Use INTUSE to acces _itoa_upper_digits and - _itoa_lower_digits. - * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits. - * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits. - - * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden. - * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise. - - * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden. - (_itowa_lower_digits): Likewise. - (_itowa_upper_digits): Likewise. - * stdio-common/_itowa.h (_itowa_lower_digits): Likewise. - (_itowa_upper_digits): Likewise. - - * intl/plural-exp.h (attribute_hidden): Define as empty macro if - not already defined. - (GERMANIC_PLURAL): Declare as hidden. - - * posix/getopt.c (__getopt_initialized): Declare as hidden. - (attribute_hidden): Define as empty macro if not already defined. + * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated. - * iconv/gconv_int.h (__gconv_path_elem): Declare hidden. - (__gconv_max_path_elem_len): Likewise. - (__gconv_path_envvar): Likewise. +2003-03-21 Roland McGrath <roland@redhat.com> - * math/Makefile (gmp-objs): Remove mp_clz_tab. - * stdlib/Makefile (aux): Remove mp_clz_tab. - * stdlib/mp_clz_tab.c: Removed. Not needed anywhere. + * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir" + constraint to permit non-constant BIT argument. + (atomic_bit_test_set): Likewise. + * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise. + (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32. + For quadword case, use "i" constraint if __builtin_constant_p and < 32 + or "r" constraint otherwise. - * stdlib/exit.h (__exit_funcs): Declare as hidden. + * configure.in: Move AC_PROG_CC and other program-finding before all + the version checks. + * configure: Regenerated. - * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT. +2003-03-21 Alexandre Oliva <aoliva@redhat.com> - * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX, - _nl_category_names, _nl_category_name_sizes, _nl_current, - _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX. + * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke + unaligned copying of 8-15 bytes. From Chris Demetriou + <cgd@broadcom.com>. Fix label names. + * sysdeps/mips/mips64/memset.S: Fix label names. Make similar + change as to memcpy.S. + * sysdeps/mips/memcpy.S: Formatting changes. + * sysdeps/mips/memset.S: Likewise. - * intl/dcigettext.c (_nl_default_default_domain): Define as hidden. - (_nl_current_default_domain): Likewise - (_nl_state_lock): Likewise. - * intl/textdomain.c (_nl_default_default_domain): Declare as hidden. - (_nl_current_default_domain): Likewise - (_nl_state_lock): Likewise. - * intl/bindtextdom.c (_nl_state_lock): Likewise. +2003-03-21 Roland McGrath <roland@redhat.com> - * stdlib/fpioconst.h (__tens): Add attribute_hidden. - (_fpioconst_pow10): Likewise. + * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon. - * include/time.h (_tmbuf): Add attribute_hidden. +2003-03-21 Alexandre Oliva <aoliva@redhat.com> - * time/tzset.c (tzstring_list): Define as static. + * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New. + * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments. - * include/time.h: Add attribute_hidden to __tzname_cur_max and - __use_tzfile declaration. +2003-03-21 Roland McGrath <roland@redhat.com> - * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts - and __wcsmbs_last_locale declaration. + * sysdeps/i386/i486/bits/atomic.h + (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling + version of the macro to avoid compile-time warnings. + [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above. + (atomic_exchange_and_add, atomic_add): Fix name and usage of it. + (atomic_increment, atomic_decrement): Likewise. -2002-02-25 Paul Eggert <eggert@twinsun.com> +2003-03-21 Ulrich Drepper <drepper@redhat.com> - * timezone/Makefile (tzbases): Move systemv from here... - (tzlinks): to here, since the entries in systemv were all changed - from Zone to Link lines in tz-2001a. Bug reported (and patch - tested) by Peter Breitenlohner. + * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints. + * sysdeps/i386/i486/bits/atomic.h: Likewise. -2002-03-07 Jakub Jelinek <jakub@redhat.com> +2003-03-21 Roland McGrath <roland@redhat.com> - * time/tst-posixtz.c (tests): Add new tests. - (main): Test whether tzset() sets daylight properly. + * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix. -2002-03-06 Jakub Jelinek <jakub@redhat.com> +2003-03-20 Ulrich Drepper <drepper@redhat.com> - * time/tzset.c (tz_compute): Move __daylight, __tzname and - __tzname_cur_max setting... - (tzset_internal): ...here. + * include/atomic.h: Define atomic_compare_and_exchange_val_acq, + atomic_compare_and_exchange_val_rel, + atomic_compare_and_exchange_bool_acq, and + atomic_compare_and_exchange_bool_rel instead of + atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel. + * sysdeps/i386/i486/bits/atomic.h: Define + __arch_compare_and_exchange_val_*_acq instead of + __arch_compare_and_exchange_*_acq. + * sysdeps/x86_64/bits/atomic.h: Likewise. + * sysdeps/ia64/bits/atomic.h: Define + __arch_compare_and_exchange_bool_*_acq instead of + __arch_compare_and_exchange_*_acq. + * sysdeps/powerpc/bits/atomic.h: Likewise. + * sysdeps/s390/bits/atomic.h: Likewise. + * gmon/mcount.c: Adjust for new form of compare&exchange macros. + * malloc/set-freeres.c: Likewise. + * nscd/cache.c: Likewise. + * stdlib/cxa_finalize.c: Likewise. + * sysdeps/unix/sysv/linux/getsysstats.c: Likewise. -2002-03-06 Jakub Jelinek <jakub@redhat.com> +2003-03-20 Alexandre Oliva <aoliva@redhat.com> - * time/tzset.c (compute_change): Don't return any value. - (tz_compute): Likewise. Don't handle southern hemisphere here. - (__tz_convert): But here. + * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs. + * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust. + * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise. -2002-03-11 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset + into high and low halves on n64. + * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise. + * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. + * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise. - * manual/examples/mkfsock.c: Include <string.h> as well. - Patch by Alain De Carolis <alaind@wseurope.com>. +2003-03-20 Ulrich Drepper <drepper@redhat.com> -2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com> + * include/atomic.h (atomic_decrement_if_positive): Adjust for the + correct atomic_compare_and_exchange_acq semantics. - * posix/regexec.c (re_match): Fix incorrect register sizes. - (re_search): Likewise. +2003-03-20 Alexandre Oliva <aoliva@redhat.com> -2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com> + * sysdeps/mips/ieee754.h: Remove excess #endif. - * posix/regcomp.c (regfree): Remove a disused condition. - * posix/regex_internal.c (re_acquire_state): Likewise. - (re_acquire_state_context): Likewise. - (register_state): Remove a redundant malloc invocation. - * posix/regex_internal.h: (re_state_table_entry): Simplify - the structure. +2003-03-20 Roland McGrath <roland@redhat.com> -2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com> + * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused + variable. Remove superfluous memory clobber. - * posix/regcomp.c (regcomp): Add __builtin_expect to error - handling conditions. - (regerror): Likewise. - (regfree): Likewise. - (re_compile_internal): Likewise. - (init_dfa): Likewise. - (init_word_char): Likewise. - (create_initial_state): Likewise. - (analyze): Likewise. - (analyze_tree): Likewise. - (duplicate_node): Likewise. - (calc_eclosure): Likewise. - (calc_eclosure_iter): Likewise. - (parse): Likewise. - (parse_reg_exp): Likewise. - (parse_branch): Likewise. - (parse_expression): Likewise. - (parse_subexp): Likewise. - (parse_dup_op): Likewise. - (parse_bracket_exp): Likewise. - (build_equiv_class): Likewise. - (build_charclass): Likewise. - (build_word_op): Likewise. - (fetch_number): Likewise. - (create_tree): Likewise. - (duplicate_tree): Likewise. - * posix/regex.c (BE): New macro. - * posix/regexec.c (re_match): Add __builtin_expect to error - handling conditions. - (re_match_2): Likewise. - (re_search): Likewise. - (re_search_internal): Likewise. - (check_matching): Likewise. - (proceed_next_node): Likewise. - (set_regs): Likewise. - (sift_states_backward): Likewise. - (add_epsilon_backreference): Likewise. - (transit_state): Likewise. - (transit_state_sb): Likewise. - (transit_state_mb): Likewise. - (transit_state_bkref): Likewise. - (transit_state_bkref_loop): Likewise. - (build_trtable): Likewise. - (group_nodes_into_DFAstates): Likewise. - (match_ctx_init): Likewise. - (match_ctx_add_entry): Likewise. - * posix/regex_internal.c (re_string_construct): Add __builtin_expect - to error handling conditions. - (re_string_construct_toupper): Likewise. - (build_wcs_buffer): Likewise. - (build_wcs_upper_buffer): Likewise. - (build_upper_buffer): Likewise. - (re_string_translate_buffer): Likewise. - (re_node_set_alloc): Likewise. - (re_node_set_init_1): Likewise. - (re_node_set_init_2): Likewise. - (re_node_set_init_copy): Likewise. - (re_node_set_intersect): Likewise. - (re_node_set_init_union): Likewise. - (re_node_set_merge): Likewise. - (re_node_set_insert): Likewise. - (re_dfa_add_node): Likewise. - (re_acquire_state): Likewise. - (re_acquire_state_context): Likewise. - (create_new_state_common): Likewise. - (register_state): Likewise. - (create_ci_new_state): Likewise. - (create_cd_new_state): Likewise. - (re_string_context_at): Remove redundant condition. + * include/atomic.h: Syntax braino fix. -2002-01-16 Roger Sayle <roger@eyesopen.com> + * posix/tst-nice.c (do_test): Use %m formats instead of printing errno + in decimal. Don't bail if niced at start. Just check that nice call + bumps the total at all. - * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret. +2003-03-20 Alexandre Oliva <aoliva@redhat.com> - * sysdeps/i386/i586/strlen.S: Fix typo in comment. + * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers, + including pc, gp, sp and fp, as long long. + * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux. + * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments. + Add gp argument, and set gp in the jmpbuf to it. + * sysdeps/mips/setjmp_aux.c: Revert to o32-only. -2002-03-11 Jakub Jelinek <jakub@redhat.com> +2003-03-20 Ulrich Drepper <drepper@redhat.com> - * sysdeps/i386/elf/configure.in: Fix comment. + * include/atomic.h: Define atomic_exchange and + atomic_decrement_if_positive if not already defined. Add some + __builtin_expect. + * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange. + * sysdeps/x86_64/bits/atomic.h: Likewise. + * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange. + * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define + atomic_exchange, atomic_exchange_and_add, and + atomic_decrement_if_positive + +2003-03-20 Alexandre Oliva <aoliva@redhat.com> + + * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend + with a single instruction. + + * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define + properly for n64. + (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr + type. + (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf + Word before comparing with gotsym. Take reloc_addr argument as + void*. Remove the code added for the compiler to drop any + alignment assumptions. + +2003-03-19 Ulrich Drepper <drepper@redhat.com> + + * Makefile (distribute): Add include/atomic.h and bits/atomic.h. + * include/atomic.h: New file. + * sysdeps/i386/i486/bits/atomic.h: New file. + * sysdeps/x86_64/bits/atomic.h: New file. + * sysdeps/s390/bits/atomic.h: New file. + * sysdeps/sh/bits/atomic.h: New file. + * sysdeps/ia64/bits/atomic.h: New file. + * sysdeps/powerpc/bits/atomic.h: New file. + * sysdeps/generic/bits/atomic.h: New file. + * sysdeps/i386/i486/atomicity.h: Removed. + * sysdeps/x86_64/atomicity.h: Removed. + * sysdeps/s390/s390-32/atomicity.h: Removed. + * sysdeps/s390/s390-64/atomicity.h: Removed. + * sysdeps/ia64/atomicity.h: Removed. + * sysdeps/powerpc/powerpc32/atomicity.h: Removed. + * sysdeps/powerpc/powerpc64/atomicity.h: Removed. + * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust + use of macros from atomicity.h to new names and semantics. + * gmon_mcount.c: Likewise. + * malloc/set-freeres.c: Likewise. + * nscd/cache.c: Likewise. + * stdlib/cxa_finalize.c: Likewise. + * sysdeps/unix/sysv/linux/getsysstats.c: Likewise. + +2003-03-19 Alexandre Oliva <aoliva@redhat.com> + + * sysdeps/mips/ieee754.h: New file, suitable to replace both + ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept + mips-specific for now. + +2003-03-19 Ulrich Drepper <drepper@redhat.com> + + * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle + hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>. + * stdlib/tst-strtod.c: Add test for the bug. + + * posix/tst-nice.c (do_test): Remove invalid of return value. + Don't run test if initial level != 0. + +2003-03-19 Amos Waterland <apw@us.ibm.com> + + * posix/tst-nice.c: New file. + * posix/Makefile (tests): Add tst-nice. + +2003-03-18 Roland McGrath <roland@redhat.com> + + * abilist: New directory of libfoo.abilist files maintained using + scripts/merge-abilist.awk and "make update-abi" rules. + * Makefile (distribute): Add abilist/*.abilist. + * Makerules [$(build-shared) = yes] [$(subdir)] (tests): + Depend on check-abi. + + * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER. + * configure: Regenerated. - * sysdeps/sparc/sparc64/configure.in: New file. - * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix - if .dynamic comes before .got. - * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add. + * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name. - * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF, - HP_TIMING_ACCUM): Fix typos. +2003-03-18 Ulrich Drepper <drepper@redhat.com> -2002-03-11 Ulrich Drepper <drepper@redhat.com> + * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK + correctly. - * string/strfry.c: Add some more randomness to the seed. - Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>. +2003-03-18 Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/powerpc/powerpc64/memcpy.S: New file. + +2003-03-18 Ulrich Drepper <drepper@redhat.com> + + * Versions.def: Add GLIBC_2.3.3 for libpthread. + +2003-03-17 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/generic/libc-start.c [!SHARED && + !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly. + +2003-03-17 Roland McGrath <roland@redhat.com> + + * include/ctype.h: Revert last change. + +2003-03-17 Ulrich Drepper <drepper@redhat.com> + + * argp/tst-argp1.c: Use test-skeleton.c. + * locale/tst-C-locale.c: Likewise. + +2003-03-17 Alexandre Oliva <aoliva@redhat.com> + + * sysdeps/mips/mips64/Implies: Move wordsize-64 to... + * sysdeps/mips/mips64/n64/Implies: New file. + * sysdeps/mips/mips64/n64/Makefile: New file. + * sysdeps/mips/mips64/n64/el/bits/endian.h: New file. + * sysdeps/mips/mips64/n32/Implies: New file. + * sysdeps/mips/mips64/n32/Makefile: New file. + * sysdeps/mips/mips64/n32/el/bits/endian.h: New file. + * sysdeps/unix/mips/mips64/n32/sysdep.h: New file. + * sysdeps/unix/mips/mips64/n64/sysdep.h: New file. + * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file. + * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file. + * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file. + * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file. + * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file. + * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file. + * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file. + * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file. + * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file. + * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file. + * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file. + + * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use + lib64 for mips64/n64 and lib32 for mips64/n32. + (ldd_rewrite_script): Needed for all mips64 configurations. + * sysdeps/unix/sysv/linux/configure: Rebuilt. + * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file. + * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file. + + * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as + well. + + * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process + asm/unistd.h into asm-unistd.h. + * sysdeps/unix/sysv/linux/mips/configure: Generated. + * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing + of syscall list. + * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file. + * sysdeps/unix/sysv/linux/mips/clone.S: Don't include + asm/unistd.h. + + * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file. + * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long + long type for registers on n32. + + * sysdeps/mips/bits/wordsize.h: New file, appropriate for all + 3 ABIs. + * sysdeps/mips/mips64/gmp-mparam.h: New file. Define + BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs. + * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros. + (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs. + * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs. + * sysdeps/unix/mips/brk.S: Likewise. + * sysdeps/unix/mips/sysdep.S: Likewise. + * sysdeps/unix/sysv/linux/mips/clone.S: Likewise. + * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise. + * sysdeps/mips/sys/ucontext.h: Likewise. + * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise. + * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise. + * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise. + * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise. + * sysdeps/mips/mips64/bsd-setjmp.S: Likewise. + * sysdeps/mips/mips64/setjmp.S: Likewise. + * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete. + * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for + 64-bit types. + +2003-03-16 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here, + not at function level. + * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise. + +2003-03-15 Roland McGrath <roland@redhat.com> + + * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t + * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise. + * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise. + * nis/nis_table.c (__create_ib_request): Likewise. + + * posix/fnmatch_loop.c: Add casts for signedness. + * nss/nss_files/files-hosts.c: Likewise. + * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise. + * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN. + * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT. + + * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND, + get errors into the log file. + (libc_cv_broken_visibility_attribute): Likewise. + (libc_cv_broken_alias_attribute): Likewise. + (libc_cv_asm_weak_directive): Likewise. + (libc_cv_need_minus_P): Likewise. + (libc_cv_dot_text): Likewise. + (libc_cv_asm_global_directive): Likewise. + (libc_cv_asm_type_prefix): Likewise. + * configure: Regenerated. - * po/es.po: Update from translation team. - * po/fr.po: Likewise. + * nscd/cache.c (cache_search): Give first arg type `request_type'. + * nscd/nscd.h: Update decl. - * stdio-common/tfformat.c (sprint_doubles): A test for %F format. + * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness. + * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise. + * elf/dl-close.c (_dl_close): Likewise. + * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t + * io/fts.c (fts_build): Likewise. + * elf/cache.c (add_to_cache): Likewise. + * locale/programs/locarchive.c (show_archive_content): Likewise. + + * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use. + + * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3 + happy. + (__ctype_toupper_loc, __ctype_tolower_loc): Likewise. + +2003-03-15 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux + code for most parts. + +2003-03-15 Roland McGrath <roland@redhat.com> + + * sysdeps/unix/sysv/linux/i386/system.c: Moved to ... + * sysdeps/unix/sysv/linux/system.c: ... here. + (FORK): Don't #define if already #define'd. + * sysdeps/unix/sysv/linux/s390/system.c: File removed. + * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]: + (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64. + + * dlfcn/tst-dlinfo.c: New file. + * dlfcn/Makefile (tests): Add tst-dlinfo. + ($(objpfx)tst-dlinfo): New target. + + * dlfcn/dlinfo.c: New file. + * dlfcn/Makefile (libdl-routines): Add it. + * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo. + * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo. + [__USE_GNU] (RTLD_DI_*): New enum constants. + [__USE_GNU] (Dl_serpath, Dl_serinfo): New types. + * elf/dl-load.c (cache_rpath): New inline function. + (_dl_map_object): Use it. + (_dl_rtld_di_serinfo): New function. + * sysdeps/generic/ldsodefs.h: Declare it. + * elf/Versions (ld: GLIBC_PRIVATE): Add it. + + * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it. + (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG) + (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>. + (__libc_start_main): Just call the generic one for most of the work. + + * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a + static function by that name instead of BP_SYM (__libc_start_main). + [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument. + [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN. + [INIT_MAIN_ARGS]: Give INIT the same args as MAIN. + + * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]: + Use this macro for extra AT_* cases. + * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV): + New macro, guts from ... + (__aux_init_cache): ... here, function removed. + (DL_PLATFORM_INIT): Don't define this. + + * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss. + * sysdeps/powerpc/powerpc64/memset.S: Likewise. + + * Versions.def (libthread_db): Add GLIBC_2.3.3 set. + +2003-03-14 Roland McGrath <roland@redhat.com> + + * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it. + +2003-03-14 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo. + + * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include + sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c. + +2003-03-14 Alexandre Oliva <aoliva@redhat.com> + + * sysdeps/mips/fpu/bits/mathdef.h: New. + (__NO_LONG_DOUBLE_MATH): Define for o32. + + * sysdeps/mips/sys/asm.h: Formatting changes. + (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs. + (CPADD): Define for all of them. + (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64, + SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP, + NARGSAVE): Define per ABI spec. + (END): Don't redefine. + (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA, + LONG_SRAV): Remove duplicate definitions. + (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI, + PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL, + PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32. + (PTR_LA): Define for all 3 ABIs. + + * sysdeps/mips/dl-machine.h: Include sys/asm.h. + (elf_machine_matches_host): Prevent linking of o32 and n32 + together. + (elf_machine_dynamic): Document assumption on $gp. + (STRINGXP, STRINGXV, STRINGV_): New macros. + (elf_machine_load_address): Use them to stringize PTR_LA and + PTR_SUBU. + (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS, + ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in... + (_dl_runtime_resolve): Adjust it for all 3 ABIs. + (__dl_runtime_resolve): Cast the symtab initializer to the + right type. + (RTLD_START): Use it. Adjust it for all 3 ABIs. + (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP. + Handle 64-bit R_MIPS_REL composite relocation and accept + R_MIPS_64 relocations to shift addend size to 64 bits. + Document assumption regarding local GOT entries. Document + backward-compatibility departing from the ABI behavior in + applying relocations that reference section symbols, no longer + used. Support relocations to mis-aligned offsets. + * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete. + + * sysdeps/unix/sysv/linux/mips/readelflib.c: New file. + + * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h + (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG. + * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and + restore_rt functions. Use them. + + * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't + .set mips2 on new abis. + +2003-03-13 Ulrich Drepper <drepper@redhat.com> + + * posix/getconf.c: Recognize POSIX2_SYMLINKS. + * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS. + * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS. + * sysdeps/posix/pathconf.c: Likewise. + * sysdeps/unix/sysv/linux/fpathconf.c: Likewise. + * sysdeps/unix/sysv/linux/pathconf.c: Likewise. + * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks. + + * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic + words. + +2003-03-14 Alexandre Oliva <aoliva@redhat.com> + + * include/gmp.h: Include/gmp-mparam.h. + * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and + gmp-impl.h. + + * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if + ELF_MACHINE_NO_RELA is set. + * elf/rtld.c (dl_main): No prelink support for REL-only. + + * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32, + FLAG_MIPS64_LIBN64): Define. + * elf/cache.c (print_entry): Handle mips64 n32 and n64. + + * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis. + * sysdeps/mips/memset.S: Likewise. + * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11 + depending on the ABI. + + * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add): + Don't .set mips2 on new abi. + (compare_and_swap): Likewise. Support 64-bit longs on n64. + + * stdlib/fpioconst.h: Include gmp.h with angle brackets. + +2003-03-13 Roland McGrath <roland@redhat.com> + + * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs + found. Reported by Alexandre Oliva <aoliva@redhat.com>. + +2003-03-13 Alexandre Oliva <aoliva@redhat.com> + + * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit + literals long long. + * stdlib/fpioconst.c: Likewise. + * stdlib/strtod.c: Likewise. - * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format - when determining type of format. - Patch by James Antill <james@anqd.org> [PR libc/2787]. + * sysdeps/mips/add_n.S: Use L macro for local labels. + * sysdeps/mips/addmul_1.S: Likewise. + * sysdeps/mips/lshift.S: Likewise. + * sysdeps/mips/memcpy.S: Likewise. + * sysdeps/mips/memset.S: Likewise. + * sysdeps/mips/mul_1.S: Likewise. + * sysdeps/mips/rshift.S: Likewise. + * sysdeps/mips/sub_n.S: Likewise. + * sysdeps/mips/submul_1.S: Likewise. + * sysdeps/mips/mips64/add_n.S: Likewise. + * sysdeps/mips/mips64/addmul_1.S: Likewise. + * sysdeps/mips/mips64/lshift.S: Likewise. + * sysdeps/mips/mips64/mul_1.S: Likewise. + * sysdeps/mips/mips64/rshift.S: Likewise. + * sysdeps/mips/mips64/sub_n.S: Likewise. + * sysdeps/mips/mips64/submul_1.S: Likewise. + * sysdeps/unix/mips/sysdep.h: Define L() according to ABI + conventions. Define END as in sys/asm.h. + * sysdeps/unix/mips/sysdep.S: Likewise. + * sysdeps/unix/mips/wait.S: Likewise. + * sysdeps/unix/sysv/linux/mips/clone.S: Likewise. + + * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double): + Cast shifted values that may be too narrow to mp_limb_t. + * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double): + Likewise. + * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float): + Likewise. + * sysdeps/ieee754/ldbl-128/ldbl2mpn.c + (__mpn_extract_long_double): Likewise. + * sysdeps/ieee754/ldbl-128/mpn2ldbl.c + (__mpn_construct_long_double): Likewise. + * sysdeps/ieee754/ldbl-96/ldbl2mpn.c + (__mpn_extract_long_double): Likewise. + * sysdeps/ieee754/ldbl-96/mpn2ldbl.c + (__mpn_construct_long_double): Likewise. -2002-03-04 Jakub Jelinek <jakub@redhat.com> +2003-03-13 Roland McGrath <roland@redhat.com> - * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm. + * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line + entries in the map file match too. -2002-03-11 Roland McGrath <roland@frob.com> +2003-03-13 Guido Guenther <agx@sigxcpu.org> - * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro. + * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local + label .Lthread_start since current binutils don't allow branches + to globally visible symbols. - * Versions.def (libc): Add GLIBC_2.2.6. - * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location. - * sysdeps/mach/hurd/errnos.awk: In generated macro, use - __errno_location instead of __hurd_errno_location, and don't inline it. - * sysdeps/mach/hurd/bits/errno.h: Regenerated. - * hurd/errno.c: New file. - * hurd/Makefile (routines): Add errno. +2003-03-13 Jakub Jelinek <jakub@redhat.com> -2002-03-11 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN, + ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3, + ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define. + (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments + clobbered by the syscall. + (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5, + ASM_ARGS_6): Change constraints from r to index of corresponding + output register. + * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap + ptid and ctid to match kernel. + * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise. - * stdio-common/vfprintf.c (vfprintf): Avoid crashing for - ridiculously large widths and precisions [PR libc/3026]. +2003-03-12 Steven Munroe <sjmunroe@us.ibm.com> -2002-03-11 Andreas Jaeger <aj@suse.de> + * sysdeps/powerpc/powerpc64/elf/configure.in: Remove + AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64. + * sysdeps/powerpc/powerpc64/elf/configure: Regenerated. - * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch - support. - Patch by Susanne Oberhauser <froh@SuSE.de>. +2003-03-11 Roland McGrath <roland@redhat.com> -2002-03-11 Ulrich Drepper <drepper@redhat.com> + * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): + Check SYM_MAP rather than SYM as definedness check. + Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs. + Don't handle R_PPC64_REL24 reloc. + Mostly from Steven Munroe <sjmunroe@us.ibm.com>. - * inet/rexec.c (ahostbuf): Define as static. + * sysdeps/powerpc/powerpc64/dl-machine.h + [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a + block, so we cover all the TPREL16* flavors without 6 ||s. + [USE_TLS] (elf_machine_tprel): New function. + (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc, + and handle TPREL16 relocs too. Return rather than break for DTPREL64. + Mostly from Steven Munroe <sjmunroe@us.ibm.com>. - * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden. - (__ctype32_wctrans): Likewise. - * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden. - * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden. - (__ctype32_wctrans): Likewise. - (__ctype32_width): Likewise. +2003-03-11 Ralf Baechle <ralf@linux-mips.org> - * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func. - They were never exported anyway. + * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal + instead of jalr to invoke subroutine so restoring the $gp register + will work properly. - * gmon/gmon.c (_gmonparam): Add attribute_hidden. - * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't - exported. - * include/sys/gmon.h: Declare _gmonparam. +2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com> - * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility - symbols for getdents64. They were never exported. + * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define + to __NR_pread if not defined. + (__NR_pwrite64): Define to __NR_pwrite if not defined. -2002-03-09 Roland McGrath <roland@frob.com> +2003-03-11 Jakub Jelinek <jakub@redhat.com> - * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link. - Reported by Jon Arney <jarney1@cox.net>. + * sysdeps/unix/sysv/linux/ia64/system.c: New file. + * sysdeps/unix/sysv/linux/kernel-features.h + (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with + kernel >= 2.5.64. + +2003-03-11 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1, + allocate space even for the trailing '/'. + Reported by John Reiser <jreiser@BitWagon.com>. + + * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6, + ASM_CLOBBERS_6): Define. + (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6. + * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments + to match IA-32 order. + * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment. + +2003-03-10 Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7. + Copy extra params for NPTL to registers used in clone syscall. + +2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com> + + * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system + call names for pread and pwrite. + +2003-03-10 Roland McGrath <roland@redhat.com> + + * dlfcn/Makefile (libdl-routines): Add dladdr1. + * dlfcn/dladdr1.c: New file. + * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1. + [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants. + * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and + a const ElfNN_Sym ** to fill in. + * include/dlfcn.h: Update decl. Include <link.h>. + * dlfcn/dladdr.c (dladdr): Update caller. + * malloc/mtrace.c (tr_where): Likewise. + * sysdeps/generic/elf/backtracesyms.c: Likewise. + * sysdeps/generic/elf/backtracesymsfd.c: Likewise. + * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1. + * Versions.def (libdl): Define GLIBC_2.3.3 set. + + * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for + assembler command. + * sysdeps/unix/Makefile (compile-syscall): New variable. + Pass -g0 to compiler for assembling syscall stubs from stdin. + + * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO] + (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END): + Define these to do nothing. + + * configure.in: New check for -g on .S files. + * configure: Regenerated. + * config.make.in (have-cpp-asm-debuginfo): New variable. + * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef. + * Makeconfig (ASFLAGS): New variable, if undefined and + $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS). + * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS). -2002-02-23 Roland McGrath <roland@frob.com> +2003-03-09 Roland McGrath <roland@redhat.com> - * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to - declaration. - (__hurd_errno_location): Function removed. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args + used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>. -2002-03-06 Andreas Jaeger <aj@suse.de> +2003-03-09 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for - 32-bit. + * po/fi.po: Update from translation team. + * po/ca.po: Likewise. + * po/da.po: Likewise. -2002-03-04 Andreas Jaeger <aj@suse.de> +2003-03-08 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file. + * rt/tst-aio7.c (do_test): Change BYTES into a #define. - * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for - x86-64. +2003-03-07 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file. + * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too. - * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file. + * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment. - * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file. +2003-03-07 Roland McGrath <roland@redhat.com> - * sysdeps/x86_64/bits/setjmp.h: New file. + * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo. + * sysdeps/s390/s390-64/sysdep.h (L): Likewise. - * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file. +2003-03-04 Guido Guenther <agx@sigxcpu.org> - * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file. + * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded + stubs, we have INLINE_SYSCALL. + * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE, + MAP_NONBLOCK. - * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty - for x86. - * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise. - * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise. +2003-03-06 Roland McGrath <roland@redhat.com> -2002-02-28 Bo Thorsen <bo@suse.de> + * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1 + permanent extent and add a comment about testing its implicit teardown. - * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386 - version. +2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com> -2002-03-03 Andreas Jaeger <aj@suse.de> + * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope. - * sysdeps/x86_64/bits/wordsize.h: New file. +2003-03-05 Ulrich Drepper <drepper@redhat.com> - * elf/nodlopenmod2.c: Provide prototype to avoid warning. - * elf/tst-tlsmod1.c: Likewise. + * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix + reversed __builtin_expect expectation. - * posix/regcomp.c: Get regex.h from include dir for internal - prototypes. +2003-03-05 Roland McGrath <roland@redhat.com> + + * stdio-common/sscanf.c: Use prototype defn with ... syntax. + * libio/swscanf.c: Likewise. + * libio/swprintf.c: Likewise. - * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype - to libc-internal.h and include it. - * include/libc-internal.h: Add __init_misc. +2003-03-04 Roland McGrath <roland@redhat.com> - * misc/init-misc.c: Include libc-internal.h for prototypes. + * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>. + (elf_machine_rela): Always use RESOLVE_MAP, needed for + R_PPC64_JMP_SLOT as well as TLS cases. + (BIT_INSERT): Move parenthesis where it ought to have been. + Reported by Steven Munroe <sjmunroe@us.ibm.com>. - * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings. + * posix/confstr.c (confstr): Correct STRING_LEN values for + _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing + break. Reported by Alexandre Julliard <julliard@winehq.com>. - * misc/error.c [_LIBC]: Include libioP.h for prototype of - _IO_putc_internal. +2003-03-04 Jakub Jelinek <jakub@redhat.com> -2002-03-03 Ulrich Drepper <drepper@redhat.com> + * sysdeps/ia64/fpu/libm-test-ulps: Regenerated. - * posix/regcomp.c: Compatibility changes to allow using the code - outside glibc. +2003-03-04 Ulrich Drepper <drepper@redhat.com> -2002-02-28 Hartvig Ekner <hartvige@mips.com> + * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new + clone parameters. - * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if - compiled non-PIC. + * po/sv.po: Update from translation team. -2002-03-02 Ulrich Drepper <drepper@redhat.com> +2003-03-04 Andreas Jaeger <aj@suse.de> + Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation - of .str elements in the returned data structure. + * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments. - * elf/elf.h: Add Alpha TLS bits. +2003-03-03 Ulrich Drepper <drepper@redhat.com> -2002-02-28 Jakub Jelinek <jakub@redhat.com> + * sysdeps/generic/dl-sysdep.h: Add double include protection. - * sysdeps/unix/sysv/linux/nice.c: New file. + * po/tr.po: Update from translation team. -2002-03-01 Ulrich Drepper <drepper@redhat.com> + * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there + are holes between the segments. Only call mprotect to set + proection to PROT_NONE if there are some. - * elf/Makefile (dl-routines): Add dl-origin. - (elide-routines.os): Add dl-origin. - * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin. - * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around - _dl_debug_state. - * include/libc-symbols.c: Define attribute_hidden depending on - HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF. + * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE. + Update comment. - * elf/dl-deps.c: Use INTUSE with __libc_enable_secure. - * elf/dl-load.c: Likewise. - * elf/rtld.c: Likewise. - * include/unistd.h: Declare __libc_enable_secure_internal. - * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure. - Use INTUSE with __libc_enable_secure. - * sysdeps/mach/hurd/dl-sysdep.c: Likewise. - - * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory. - * elf/dl-error.c: Likewise, - * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal. - - * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE. - * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before - function definition. Use INTDEF with _dl_get_origin. - * sysdeps/unix/sysv/linux/dl-origin.c: Likewise. + * include/sched.h (__clone2): Use ... instead of adding all the + new parameters. - * elf/dl-init.c: Use INTUSE with _dl_starting_up. - * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up. +2003-03-03 Roland McGrath <roland@redhat.com> - * elf/dl-profile.c: Use INTDEF for _dl_mcount. - * elf/dl-runtime.c: Use INTUSE with _dl_mcount. - * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal. + * elf/dl-load.c (struct filebuf): Fix typo in last change. - * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0]. - * elf/dl-deps.c: Likewise. - * elf/dl-error.c: Likewise. - * elf/dl-fini.c: Likewise. - * elf/dl-init.c: Likewise. - * elf/dl-load.c: Likewise. - * elf/dl-lookup.c: Likewise. - * elf/dl-reloc.c: Likewise. - * elf/dl-version.c: Likewise. - * elf/do-lookup.h: Likewise. - * sysdeps/arm/dl-machine.h: Likewise. - * sysdeps/cris/dl-machine.h: Likewise. - * sysdeps/hppa/dl-machine.h: Likewise. - * sysdeps/i386/dl-machine.h: Likewise. - * sysdeps/m68k/dl-machine.h: Likewise. - * sysdeps/powerpc/dl-machine.h: Likewise. - * sysdeps/s390/s390-32/dl-machine.h: Likewise. - * sysdeps/s390/s390-64/dl-machine.h: Likewise. - * sysdeps/sh/dl-machine.h: Likewise. - * sysdeps/sparc/sparc-32/dl-machine.h: Likewise. - * sysdeps/sparc/sparc-64/dl-machine.h: Likewise. - * sysdeps/x86_64/dl-machine.h: Likewise. - * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of - _dl_argv[0]. Use INTUSE with _dl_argv. - * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv. - * sysdeps/generic/ldsodefs.h: Define rtld_progname macro. - -2002-02-28 Jakub Jelinek <jakub@redhat.com> - - * elf/rtld.c (_rtld_global): Remove .protected. - (_rtld_local): Strong alias to _rtld_global. - * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld - only .os object. - * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use - _rtld_local instead of _rtld_global. - (_rtld_local): Add hidden extern, possibly in .sdata section. - * configure.in: Add tests for visibility attribute and .sdata. - * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION. - * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global. - * sysdeps/arm/dl-machine.h: Likewise. - * sysdeps/generic/ldsodefs.h: Likewise. - * sysdeps/hppa/dl-machine.h: Likewise. - * sysdeps/cris/dl-machine.h: Likewise. - * sysdeps/i386/dl-machine.h: Likewise. + * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define + PI_STATIC_AND_HIDDEN. + +2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au> + + * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone + flags. + * include/sched.h: Update clone2 prototype. + +2003-03-03 Andreas Jaeger <aj@suse.de> + + * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition. + (llrint): Use it to correct return type. + (lrint): Likewise. + (lround): Likewise. + (llround): Likewise. + +2003-03-03 Ulrich Drepper <drepper@redhat.com> + + * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640 + byte filebuf size. + + * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor + if ccs parameter isn't valid. Reported by Andreas Schwab. + +2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com> + + * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support + for system call numbers > 255. + * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL, + INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0, + INTERNAL_SYSCALL): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL, + INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0, + INTERNAL_SYSCALL): Likewise. + +2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com> + + * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv + array if it is the initial dtv. + +2003-03-03 Ulrich Drepper <drepper@redhat.com> + + * po/es.po: Update from translation team. + * po/fr.po: Likewise. + * po/gl.po: Likewise. + * po/sk.po: Likewise. + * po/sv.po: Likewise. + + * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry. + * misc/sys/mman.h: Add prototype for remap_file_pages. + * sysdeps/generic/remap_file_pages.c: New file. + * misc/Makefile (routines): Add remap_file_pages. + * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages. + + * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE + and MAP_NONBLOCK. + * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise + * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise. + * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise. + +2003-03-03 Roland McGrath <roland@redhat.com> + + * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change. * sysdeps/ia64/dl-machine.h: Likewise. - * sysdeps/m68k/dl-machine.h: Likewise. - * sysdeps/mips/mips64/dl-machine.h: Likewise. - * sysdeps/mips/dl-machine.h: Likewise. - * sysdeps/sparc/sparc32/dl-machine.h: Likewise. - * sysdeps/sparc/sparc64/dl-machine.h: Likewise. - * sysdeps/sh/dl-machine.h: Likewise. - * sysdeps/s390/s390-32/dl-machine.h: Likewise. - * sysdeps/s390/s390-64/dl-machine.h: Likewise. - * sysdeps/x86_64/dl-machine.h: Likewise. + * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from + argument type. + * sysdeps/ia64/dl-lookupcfg.h: Update decl. + + * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias. + * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias. + * locale/Versions (libc: GLIBC_2.3): Move those to ... + * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file. + * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise. + * Versions.def (libc): Add GLIBC_2.3.3 set. + + * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg. + * sysdeps/ia64/dl-machine.h: Update decl. + +2003-03-03 Andreas Jaeger <aj@suse.de> + + * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace. + +2003-03-02 Roland McGrath <roland@redhat.com> + + * scripts/abilist.awk: Reject data items with apparent 0 size. + + * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar + after foo.* as if it were a duplicate. + + * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk. + +2003-03-02 Ulrich Drepper <drepper@redhat.com> + + * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes. + + * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC. + * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only + if not already defined. Use SYSDEP_GETRES to allow other files to + provide alternative implementations. + * sysdeps/unix/sysv/linux/clock_getres.c: New file + * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only + if not already defined. Use SYSDEP_GETTIME to allow other files to + provide alternative implementations. + * sysdeps/unix/sysv/linux/clock_gettime.c: New file. + * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only + if not already defined. Use SYSDEP_GETTIME to allow other files to + provide alternative implementations. + * sysdeps/unix/sysv/linux/clock_settime.c: New file. + * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow + other files to provide alternative implementations. Rearrange + tests for invalid parameters. + * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file. + * sysdeps/unix/sysv/linux/sysconf.c: New file. + * sysdeps/unix/sysv/linux/kernel-features.h: Define + __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up. + * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define + _POSIX_MONOTONIC_CLOCK. + +2003-03-02 Roland McGrath <roland@redhat.com> + + * scripts/merge-abilist.awk: More checks for bogus input. + Uniquify duplicate config names. + + * scripts/abilist.awk: Don't distinguish weak symbols in normal output. + + * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed + from dl_reloc_overflow, make global. + (__process_machine_rela): Update callers. + * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow. + Add attribute_hidden to __process_machine_rela decl. + (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs. + + * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const + variable. -2002-02-28 Ulrich Drepper <drepper@redhat.com> + * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt): + Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED]. + (elf_machine_rela): Clean up. - * login/login.c (login): Always initialize ut_line field - [PR libc/2991]. + * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up. -2002-02-28 Jakub Jelinek <jakub@redhat.com> + PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>. + * sysdeps/powerpc/powerpc32/elf/configure.in: New file. + * sysdeps/powerpc/powerpc32/elf/configure: New generated file. + * elf/tls-macros.h [__powerpc__ && !__powerpc64__] + (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them. + * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support + new relocs for TLS. - * sysdeps/i386/Makefile (sysdep_routines): Add - divdi3 in csu dir. - (shared-only-routines): Likewise. - * sysdeps/m68k/Makefile (sysdep_routines): Likewise. - (shared-only-routines): Likewise. - * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise. - (shared-only-routines): Likewise. - * sysdeps/wordsize-32/divdi3.c: New file. + * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these + macros out of [SHARED]. + (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros. -2002-02-28 Ulrich Drepper <drepper@redhat.com> + * elf/elf.h: Define R_PPC_* relocs for TLS support. + Clean up R_PPC64_* macro definition comments. - * locale/iso-4217.def: Remove obsolete currencies for countries - with Euro. + * configure.in: In "running configure fragment for" message, + omit $srcdir from the name if we prepended it. + * configure: Regenerated. -2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com> + * elf/dl-reloc.c (allocate_static_tls): Fix calculations. + From Jakub Jelinek <jakub@redhat.com>. - * posix/regcomp.c (regcomp): Remove a redundant condition. - (init_word_char): Add a check on malloc failure. - (create_initial_state): Likewise. - (duplicate_node): Likewise. - (calc_eclosure): Likewise. - (calc_eclosure_iter): Likewise. - (parse_expression): Likewise. - (parse_bracket_exp): Remove unnecessary malloc invocations. - (build_equiv_class): Likewise. - (build_charclass): Likewise. - * posix/regex_internal.c (re_node_set_intersect): Add a check - on malloc failure. - (re_node_set_add_intersect): Likewise. - (re_node_set_merge): Likewise. - (re_acquire_state): Likewise. - (re_acquire_state_context): Likewise. - (create_newstate_common): Likewise. - (register_state): Likewise. - (create_ci_newstate): Likewise. - (create_cd_newstate): Likewise. - * posix/regex_internal.h: Fix prototypes of re_acquire_state - and re_acquire_state_context. - * posix/regexec.c (regexec): Suit it to the error handling of - re_search_internal. - (re_match): Likewise. - (re_search): Likewise. - (re_search_internal): Add a check on malloc failure. - (acquire_init_state_context): Likewise. - (check_matching): Likewise. - (proceed_next_node): Likewise. - (set_regs): Likewise. - (sift_states_backward): Likewise. - (sift_states_iter_bkref): Likewise. - (add_epsilon_backreference): Likewise. - (transit_state): Likewise. - (transit_state_sb): Likewise. - (transit_state_mb): Likewise. - (transit_state_bkref_loop): Likewise. - (build_trtable): Likewise. - (group_nodes_into_DFAstates): Likewise. - (match_ctx_init): Likewise. - (match_ctx_add_entry): Likewise. + * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change, + which duplicated the O_DIRECT defn. -2002-02-27 Ulrich Drepper <drepper@redhat.com> +2003-03-01 GOTO Masanori <gotom@debian.or.jp> - * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to - l_libname if profiling is enabled [PR libc/2916]. + * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived + random functions. - * sysdeps/ia64/dl-tls.h: New file. +2003-03-01 Andreas Schwab <schwab@suse.de> -2002-02-27 Jakub Jelinek <jakub@redhat.com> + * resolv/Makefile (tests): Don't depend on + $(objpfx)mtrace-tst-leaks when cross compiling. - * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START): - Work around an Alpha gas bug. + * sysdeps/m68k/dl-machine.h (_dl_start_user): Access + __libc_stack_end through GOT since it is a global symbol. -2002-02-27 Ulrich Drepper <drepper@redhat.com> +2003-03-01 GOTO Masanori <gotom@debian.or.jp> - * catgets/open_catalog.c (__open_catalog): Fix typo in code which - uses read to load the catalog. - Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011]. + * argp/argp.h: Fix a typo. + Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>. -2002-02-26 Ulrich Drepper <drepper@redhat.com> + * manual/terminal.texi: Fix cfmakeraw() definition from int to void. - * posix/Makefile (distribute): Add regcomp.c, regexec.c, - regex_internal.c, and regex_internal.h. - (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N. - * posix/regex.c: Complete rewrite. - * posix/regexec.c: New file. - * posix/regcomp.c: New file. - * posix/regex_internal.c: New file. - * posix/regex_internal.h: New file. - * posix/regex.h (RE_ICASE): New macro. - Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>. +2003-02-27 Pat Rankin <rankin@pactechdata.com> - * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never - ungetwc. It's a macro. - * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf - implementation. - Reported by Jason Merrill <jason@redhat.com>. - -2002-02-25 Jakub Jelinek <jakub@redhat.com> - - * libio/iofopen.c (__fopen_maybe_mmap): Set the initial - position to fp->_offset if it is set. - * stdio-common/Makefile (tests): Add tst-fdopen. - * stdio-common/tst-fdopen.c: New test. - -2002-02-25 Jakub Jelinek <jakub@redhat.com> - - * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup. - * stdio-common/tst-ungetc.c (main): Add another test. - -2002-02-25 Ulrich Drepper <drepper@redhat.com> - - * assert/assert-perr.c: Use INTUSE to reference functions and variables - inside libc itself. Use INTDEF and INTDEF2 to define appropriate - aliases. Add prototypes for the new aliases. - * assert/assert.c: Likewise. - * include/libc-symbols.h: Likewise. - * include/stdio.h: Likewise. - * include/netinet/in.h: Likewise. - * include/rpc/auth.h: Likewise. - * include/rpc/auth_unix.h: Likewise. - * include/rpc/key_prot.h: Likewise. - * include/rpc/pmap_prot.h: Likewise. - * include/rpc/pmap_rmt.h: Likewise. - * include/rpc/rpc_msg.h: Likewise. - * include/rpc/xdr.h: Likewise. - * inet/gethstbyad_r.c: Likewise. - * inet/gethstbynm2_r.c: Likewise. - * inet/gethstbynm_r.c: Likewise. - * inet/gethstent_r.c: Likewise. - * inet/in6_addr.c: Likewise. - * libio/__fpurge.c: Likewise. - * libio/filedoalloc.c: Likewise. - * libio/fileops.c: Likewise. - * libio/ftello.c: Likewise. - * libio/ftello64.c: Likewise. - * libio/genops.c: Likewise. - * libio/iofclose.c: Likewise. - * libio/iofdopen.c: Likewise. - * libio/iofflush.c: Likewise. - * libio/iofflush_u.c: Likewise. - * libio/iofgetpos.c: Likewise. - * libio/iofgetpos64.c: Likewise. - * libio/iofgets.c: Likewise. - * libio/iofgets_u.c: Likewise. - * libio/iofopen.c: Likewise. - * libio/iofopncook.c: Likewise. - * libio/iofputs.c: Likewise. - * libio/iofread.c: Likewise. - * libio/iofread_u.c: Likewise. - * libio/iofsetpos.c: Likewise. - * libio/iofsetpos64.c: Likewise. - * libio/ioftell.c: Likewise. - * libio/iofwrite.c: Likewise. - * libio/iogetline.c: Likewise. - * libio/iogets.c: Likewise. - * libio/iogetwline.c: Likewise. - * libio/iolibio.h: Likewise. - * libio/iopadn.c: Likewise. - * libio/iopopen.c: Likewise. - * libio/ioseekoff.c: Likewise. - * libio/ioseekpos.c: Likewise. - * libio/iosetbuffer.c: Likewise. - * libio/iosetvbuf.c: Likewise. - * libio/ioungetc.c: Likewise. - * libio/ioungetwc.c: Likewise. - * libio/iovdprintf.c: Likewise. - * libio/iovsprintf.c: Likewise. - * libio/iovsscanf.c: Likewise. - * libio/libioP.h: Likewise. - * libio/memstream.c: Likewise. - * libio/obprintf.c: Likewise. - * libio/oldfileops.c: Likewise. - * libio/oldiofclose.c: Likewise. - * libio/oldiofdopen.c: Likewise. - * libio/oldiofgetpos.c: Likewise. - * libio/oldiofgetpos64.c: Likewise. - * libio/oldiofopen.c: Likewise. - * libio/oldiofsetpos.c: Likewise. - * libio/oldiofsetpos64.c: Likewise. - * libio/oldiopopen.c: Likewise. - * libio/oldstdfiles.c: Likewise. - * libio/putc.c: Likewise. - * libio/setbuf.c: Likewise. - * libio/setlinebuf.c: Likewise. - * libio/stdfiles.c: Likewise. - * libio/stdio.c: Likewise. - * libio/strops.c: Likewise. - * libio/vasprintf.c: Likewise. - * libio/vscanf.c: Likewise. - * libio/vsnprintf.c: Likewise. - * libio/vswprintf.c: Likewise. - * libio/wfiledoalloc.c: Likewise. - * libio/wfileops.c: Likewise. - * libio/wgenops.c: Likewise. - * libio/wstrops.c: Likewise. - * malloc/mtrace.c: Likewise. - * misc/error.c: Likewise. - * misc/syslog.c: Likewise. - * nss/getXXbyYY_r.c: Likewise. - * nss/getXXent_r.c: Likewise. - * nss/hosts-lookup.c: Likewise. - * stdio-common/getw.c - * stdio-common/printf-prs.c: Likewise. - * stdio-common/printf_fp.c: Likewise. - * stdio-common/printf_size.c: Likewise. - * stdio-common/putw.c: Likewise. - * stdio-common/scanf.c: Likewise. - * stdio-common/sprintf.c: Likewise. - * stdio-common/tmpfile64.c: Likewise. - * stdio-common/vfprintf.c: Likewise. - * stdio-common/vfscanf.c: Likewise. - * stdlib/strfmon.c: Likewise. - * sunrpc/auth_des.c: Likewise. - * sunrpc/auth_none.c: Likewise. - * sunrpc/auth_unix.c: Likewise. - * sunrpc/authdes_prot.c: Likewise. - * sunrpc/authuxprot.c: Likewise. - * sunrpc/clnt_perr.c: Likewise. - * sunrpc/clnt_raw.c: Likewise. - * sunrpc/clnt_tcp.c: Likewise. - * sunrpc/clnt_udp.c: Likewise. - * sunrpc/clnt_unix.c: Likewise. - * sunrpc/key_call.c: Likewise. - * sunrpc/key_prot.c: Likewise. - * sunrpc/openchild.c: Likewise. - * sunrpc/pm_getmaps.c: Likewise. - * sunrpc/pm_getport.c: Likewise. - * sunrpc/pmap_clnt.c: Likewise. - * sunrpc/pmap_prot.c: Likewise. - * sunrpc/pmap_prot2.c: Likewise. - * sunrpc/pmap_rmt.c: Likewise. - * sunrpc/rpc_cmsg.c: Likewise. - * sunrpc/rpc_prot.c: Likewise. - * sunrpc/svc_authux.c: Likewise. - * sunrpc/svc_raw.c: Likewise. - * sunrpc/svc_simple.c: Likewise. - * sunrpc/svc_tcp.c: Likewise. - * sunrpc/svc_udp.c: Likewise. - * sunrpc/svc_unix.c: Likewise. - * sunrpc/xdr.c: Likewise. - * sunrpc/xdr_array.c: Likewise. - * sunrpc/xdr_mem.c: Likewise. - * sunrpc/xdr_rec.c: Likewise. - * sunrpc/xdr_ref.c: Likewise. - * sunrpc/xdr_stdio.c: Likewise. - * sysdeps/generic/_strerror.c: Likewise. - * sysdeps/generic/printf_fphex.c: Likewise. - * sysdeps/generic/tmpfile.c: Likewise. - * sysdeps/gnu/errlist.awk: Likewise. - * sysdeps/gnu/errlist.c: Likewise. - - * libio/Makefile (routines): Remove iosprint. - * libio/iosprintf.c: Removed - - -2002-02-24 Ulrich Drepper <drepper@redhat.com> - - * elf/dl-support.c (_dl_non_dynamic_init): Renamed from - non_dynamic_init and exported now. - * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init. - * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for - !SHARED. - * sysdeps/mach/hurd/i386/init-first.c: Likewise. - * sysdeps/mach/hurd/powerpc/init-first.c: Likewise. - * sysdeps/mach/hurd/mips/init-first.c: Likewise. + * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to + char *. + (get_subexp): Likewise. -2002-02-23 Ulrich Drepper <drepper@redhat.com> +2003-03-01 GOTO Masanori <gotom@debian.or.jp> - * elf/dl-close.c (free_slotinfo): Check for end of list and return - true in this case. + * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define. - * locale/iso-639.def: Add language codes for Walloon. +2003-02-26 Steven Munroe <sjmunroe@us.ibm.com> - * elf/dl-fini.c (_dl_fini): Print some final statistics on the - total number of relocations performed. + * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define. - * elf/sprof.c (load_profdata): If do_test provide information as - to why loading failed. - * elf/dl-profile.c (_dl_start_profile): Initialize all of - hist_hdr.dimen. +2003-02-27 Roland McGrath <roland@redhat.com> - * csu/set-init.c: Moved to... - * sysdeps/mach/hurd/set-init.c: ...here. New file. - * csu/Makefile: Don't compile set-init. - * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu. - * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition - to __libc_init. - * sysdeps/mach/hurd/mips/init-first.c: Likewise. - * sysdeps/mach/hurd/powerpc/init-first.c: Likewise. - * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of - __libc_init. - * misc/init-misc.c: Always export __init_misc. Don't define hooks for - __libc_subinit. + * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove + special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to + repeat it and avoids the test for the common case. + Clean up and fix calculations for TLS relocs. -2002-02-22 Ulrich Drepper <drepper@redhat.com> + * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ... + * sysdeps/powerpc/dl-tls.h: ... here. + (TLS_TP_OFFSET): New macro. - * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls. - * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE. - * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls. - (_dl_deallocate_tls): New function. - * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and - _dl_deallocate_tls. + * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change. -2002-02-21 Jakub Jelinek <jakub@redhat.com> +2003-02-27 Ulrich Drepper <drepper@redhat.com> - * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END. - * stdio-common/tst-fseek.c (main): Add test for this. + * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to + code generation changes in recent gcc. -2002-02-19 Ulrich Drepper <drepper@redhat.com.> +2003-02-26 Steven Munroe <sjmunroe@us.ibm.com> - * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE. + * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW): + Rename argument to avoid symbol conflict. -2002-02-19 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h + [__USE_GNU] (O_DIRECT): New macro. - * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char - pointer before dereferencing. +2003-02-24 David Mosberger <davidm@hpl.hp.com> -2002-02-18 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix + unwind info. - * sysdeps/mach/hurd/times.c: Fix typo in last change. +2003-02-27 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]: - Use task_policy in place of task_priority. + * resolv/res_libc.c [USE___THREAD] (_res): Don't need the + initializer anymore now that res_thread_freeres is more careful. - * sysdeps/generic/bits/mman.h - (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros. - * sysdeps/mach/msync.c: New file. + * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages + except the PKTINFO. Reset interface in PKTINFO. + Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973]. - * sysdeps/mach/powerpc/syscall.S: New file. +2003-02-25 Steven Munroe <sjmunroe@us.ibm.com> - * mach/msg.c [MACH_MSG_OVERWRITE] - (__mach_msg_trap, __mach_msg_overwrite): New functions. - * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name. + * elf/elf.h: Add new R_PPC64_* relocs for TLS. + * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD): + Define. + * sysdeps/powerpc/powerpc64/elf/configure.in: New file. + * sysdeps/powerpc/powerpc64/elf/configure: New file (generated). + * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs. + * sysdeps/powerpc/powerpc64/dl-tls.h: New file. - * sysdeps/mach/configure.in: Check for clock.defs to put into - mach_interface_list. - * sysdeps/mach/configure: Regenerated. + * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): + Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file. - * mach/Makefile (mach-machine): New variable, set from $(base-machine). - ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine). - ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule): - Use <mach/machine/syscall_sw.h> instead of <sysdep.h>. - (mach-shortcuts): Add device_read_overwrite_request, - device_read_overwrite, vm_read_overwrite, thread_switch. +2003-02-25 Andreas Jaeger <aj@suse.de> - * configure.in (base_machine): Set to $machine by default. - * configure: Regenerated. + * manual/memory.texi (Malloc Tunable Parameters): Clarify + behaviour of M_MMAP_THRESHOLD. - * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h> - or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES. - * sysdeps/mach/configure: Regenerated. - * mach/mach_init.c [NDR_DEF_HEADER]: #include it. +2003-02-25 Roland McGrath <roland@redhat.com> - * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast. + * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is + zero, inidicating _res was not initialized yet. - * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl. +2003-02-24 Ulrich Drepper <drepper@redhat.com> - * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]: - Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE. + * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES + test. -2002-02-17 Roland McGrath <roland@frob.com> +2003-02-24 Roland McGrath <roland@redhat.com> - * sysdeps/mach/hurd/times.c - [NO_CREATION_TIME] (startup_time): New static variable. - [NO_CREATION_TIME] (times_init): New static function in __libc_subinit. - (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task - creation_time from task_basic_info. - (__times): Use __gettimeofday instead of __host_get_time. + * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED. - * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]: - Use untyped Mach IPC message format. +2003-02-23 Roland McGrath <roland@redhat.com> - * hurd/catch-exc.c: Include <assert.h>, missing from last change. + * sysdeps/posix/pause.c: New file. + * sysdeps/unix/common/pause.c: File removed. - * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state, - _S_catch_exception_raise_state_identity, - _hurdsig_fault_catch_exception_raise_state, - _hurdsig_fault_catch_exception_raise_state_identity. +2003-02-23 Ulrich Drepper <drepper@redhat.com> - * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "". + * sysdeps/generic/bits/confname.h: Remove #ifs. - * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use - __host_info with HOST_VM_INFO flavor instead of __vm_statistics. + * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition. + * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing. - * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find - `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo. + * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock + element to -1. - * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only. - (fmh, unfmh): Define these functions only #if FMH. Otherwise define - them as no-op macros. - [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero. - (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK. +2003-02-22 Ulrich Drepper <drepper@redhat.com> - * sysdeps/powerpc/dl-machine.h - (ELF_MACHINE_USER_ADDRESS_MASK): New macro. + * sysdeps/generic/dl-sysdep.c: Avoid warning. - * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]: - Use untyped Mach IPC message format. +2003-02-22 Roland McGrath <roland@redhat.com> - * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]: - Handle untyped Mach IPC message formats. + * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>. + * resolv/Makefile (tests): Add tst-leaks. + ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so. + (tst-leaks-ENV): New variable. + ($(objpfx)mtrace-tst-leaks): New target. + (tests): Depend on it. - * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]: - Expect different argument conventions when this is defined. - [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function. - [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise. - * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*. - [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t - for OSF Mach variant. - (faulted): Use mig_reply_error_t for REPLY. - (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY - in __thread_set_exception_ports call. - (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use - __mach_port_set_attributes in place of __mach_port_set_qlimit. + * include/libc-internal.h: Declare __libc_thread_freeres. - * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this - before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h> - on Darwin, which includes bogons. + * Makerules: Fix last change to use $($(subdir)-version) when set. - * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local - variable LOADBASE so it's not declared when it's not used. + * Makerules (install-lib-nosubdir): Depend on installed + libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed + regardless of the libfoo.so target's dependencies. -2002-02-16 Roland McGrath <roland@frob.com> + * MakeTAGS (sub-make-vars): New variable, includes generating=t. + Use that in $(MAKE) calls. - * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try - to use BI.creation_time. +2003-02-22 Ulrich Drepper <drepper@redhat.com> - * mach/Machrules (MIG): Add -x c to CPP value passed down. + * catgets/gencat.c (read_input_file): Collision between + auto-assigned numbers and user-defined nubmers is not fatal. + Handle it. + Patch by Michael M. Lampkin <michael.lampkin@ieee.org>. + * catgets/Makefile: Add rules to run test2.msg test. + * catgets/test2.msg: New file. - * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE. - * sysdeps/mach/configure.in: Check for host_page_size RPC to define it. - * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use - host_page_size instead of vm_statistics. + * catgets/gencat.c (main): Return 1 if messages have been printed. - * sysdeps/mach/Makefile (mach-before-compile): Don't include - mach_interface.h here, since not all variants use that name. + * iconv/iconv_prog.c (main): Unify messages. - * sysdeps/mach/configure.in: Add some checks for Mach headers - to ensure a sane installation. - (mach_interface_list): Define this variable by checking for .defs - files found in various variants. - * configure.in (mach_interface_list): AC_SUBST this. - * config.make.in (mach-interface-list): New substituted variable. - * mach/Makefile (user-interfaces): Define this using the value - of $(mach-interface-list) instead of mach, mach4. - Updated other references to mach_interface to use it as well. + * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word + when shifting retval. + * stdlib/tst-strtod.c (main): Add strtold test case. + Reported by Fred J. Tydeman <tydeman@tybor.com>. - * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings. +2003-02-21 Roland McGrath <roland@redhat.com> - * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as - mig_reply_error_t for OSF Mach variant. + * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT. + * sunrpc/rpc_thread.c: Likewise for text_set_element use. + (__rpc_thread_destroy): Add it to __libc_subfreeres too. - * mach/Makefile (routines): Remove bootprivport. - * mach/bootprivport.c: File removed. It has never been used. + * include/resolv.h: Add libc_hidden_proto for __res_nclose. + * resolv/res_init.c (__res_nclose): Add libc_hidden_def. + (res_thread_freeres): New function, on __libc_thread_subfreeres and + __libc_subfreeres. - * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]: - Grok the OSF flavor of message format. - (mach_msg_destroy_port): For MAKE_SEND and - MAKE_SEND_ONCE rights, create an destroy a right to ensure proper - no-senders notification. + * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres. + * malloc/thread-freeres.c: New file. + * malloc/Makefile (aux): Add it. + * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed. + * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section + "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set. -2002-02-06 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix. + * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix. - * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach - to here if 2.0 compatibility enabled ... - (libc: GLIBC_2.1.3): ... from here. +2003-02-21 Roland McGrath <roland@frob.com> -2002-02-15 Ulrich Drepper <drepper@redhat.com> + * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open. - * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS - generation counter. - * elf/dl-close.c (_dl_close): Likewise. + * iconvdata/Makefile (tests): Add bug-iconv3 only if + [$(have-thread-library) = yes]. -2002-02-14 Ulrich Drepper <drepper@redhat.com> +2003-02-21 Ulrich Drepper <drepper@redhat.com> - * elf/Makefile: Add rules to build and run tst-tls8. - * elf/tst-tls8.c: New file. - * elf/tst-tlsmod4.c: New file. + * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG. - * stdlib/test-a64l.c (tests): Add more test cases. + * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do + not chechk for errors (unless testing for 32bit variant). + * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise. + * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise. - * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t. - Reported by Walter Harms <WHarms@bfs.de>. +2003-02-21 Jakub Jelinek <jakub@redhat.com> -2002-02-11 Jes Sorensen <jes@trained-monkey.org> + * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>: + Check for signed overflow, not unsigned. - * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit - definitions for struct sigcontext. - Suggested by David Mosberger-Tang. + * sysdeps/sparc/sparc64/elf/configure.in: New file. + * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS): + Use -fcall-used-g6, not -fcall-used-g7. -2002-02-13 Ulrich Drepper <drepper@redhat.com> +2003-02-21 Andreas Jaeger <aj@suse.de> - * elf/dl-close.c (remove_slotinfo): New function. Handles everything - for removing reference of module in slotinfo list. - (_dl_close): Use remove_slotinfo. - * sysdeps/generic/dl-tls.c: General pretty printing. - (oom): Define only if SHARED. - (_dl_next_tls_modid): Correct starting point for the case we assume - there is a gap. Add missing instruction grouping (doh!). Correct - tests for reaching maximum index. - * elf/Makefile: Add rules to build and run tst-tls7. - * elf/tst-tls7.c: New file. - * elf/tst-tlsmod3.c: New file. + * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default + mode. - * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef - USE_TLS. - * elf/tst-tlsmod2.c: Likewise. + * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not + clear whole mxcsr but only exceptions. - * elf/dl-close.c (_dl_close): When closing an object using TLS - either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to - true. Increment dl_tls_generation only if we closed any TLS-using - object. - * elf/tst-tls6.c: New file. - * elf/Makefile: Add rules to build and run tst-tls6. +2003-02-21 Roland McGrath <roland@redhat.com> - * po/da.po: Update from translation team. + * Makerules: Filter $(install-lib-ldscripts) out of list of targets + for libfoo.so that need $(make-link) rules. - * locale/categories.def: Fix typo [PR libc/2948]. - * po/Makefile (BROKEN_LINGUAS): Works with current gettext - [PR libc/2949]. - * locale/iso-4217.def: Update from official version [PR libc/2950]. - * glibcbug.in: Honor TMPDIR [PR libc/2951]. - * locale/programs/ld-collate.c (collate_finish): Bail out with a - message if input is too confusion instead of using assert. - (collate_read): Don't crash on unknown symbol [PR libc/2952]. - Patches by Alastair McKinstry <alastair@pdd.3com.com>. +2003-02-21 Roland McGrath <roland@frob.com> - * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS. - * elf/tst-tls2.c: Likewise. - * elf/tst-tls3.c: Likewise. + * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE + to match existing struct stat layout in mig protocols. -2002-02-13 Jakub Jelinek <jakub@redhat.com> +2003-02-20 Ulrich Drepper <drepper@redhat.com> - * elf/dl-close.c (free_slotinfo): Only define if TLS supported. + * version.h (VERSION): Bump to 2.3.2. -2002-02-13 Ulrich Drepper <drepper@redhat.com> + * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp, + tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c, + and dl-sysdep.h. + * sysdeps/generic/Dist: Add sysdep-cancel.h. + * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h. + * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S. + * sysdeps/unix/sysv/linux/Dist: Add pathconf.h. + * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and + ucontext_i.h. + * Makefile (distribute): Add include/stubs-prologue.h, + include/gnu/stubs.h, scripts/merge-abilist.awk, and + scripts/extract-abilist.awk. - * elf/dl-open.c (dl_open_worker): Only bump the generation counter - if this is really necessary. +2003-02-20 Roland McGrath <roland@redhat.com> - * elf/dl-close.c (_dl_close): Implement freeing entries in the - slotinfo array. - (free_mem): Free memory for the slotinfo array if possible. + * math/Makefile (distribute): Don't add generated files. -2002-02-12 Andreas Schwab <schwab@suse.de> +2003-02-20 Ulrich Drepper <drepper@redhat.com> - * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT. + * math/Makefile: Rearrange variable definitions slightly to get + definition in the right order. -2002-02-12 Ulrich Drepper <drepper@redhat.com> +2003-02-20 Roland McGrath <roland@redhat.com> - * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from - TLS_DTV_UNALLOCATE. - (oom): New function. - (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list. - (_dl_determine_tlsoffset): Likewise. - (_dl_allocate_tls): Likewise. - (__TLS_GET_ADDR): Define if not already defined. - (_dl_tls_symaddr): New function. - (allocate_and_init): New function. - (__tls_get_addr): Actually implement handling of generation counter - and deferred allocation. - * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list, - add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and - _dl_tls_generation. - Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS. - Declare _dl_tls_symaddr. - * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless - SHARED. - * include/link.h (struct link_map): Remove l_tls_nextimage and - l_tls_previmage. - * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr - instead of DL_SYMBOL_ADDRESS for STT_TLS symbols. - (_dl_vsym): Likewise. - * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new - layout. - (dl_main): Allow PT_TLS be present for empty segment. Remove - nextimage list handling. Instead add all modules using TLS to - dl_tls_dtv_slotinfo_list. - * elf/dl-open.c (dl_open_worker): After successfully loading all - objects add those with TLS to the dl_tls_dtv_slotinfo_list list. - * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an - empty segment don't do anything. Remove handling of initimage list. - * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign. - (GLIBC_PRIVATE): Add _dl_tls_symaddr. - * elf/dl-minimal.c: Define __libc_memalign. - * elf/dl-support.c: Remove _dl_initimage_list. Add - _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and - _dl_tls_generation. - * include/stdlib.h: Declare __libc_memalign. + * Makerules: Clean up conditional around include of tls.make. + * Make-dist: Export generating=t to prevent using that. + (+distinfo): Likewise for $(shell $(MAKE) ...) runs. - * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5. - * elf/tst-tls4.c: New file. - * elf/tst-tls5.c: New file. - * elf/tst-tlsmod2.c: New file. +2003-02-20 Ulrich Drepper <drepper@redhat.com> - * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx. + * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap + around in search if port IPPORT_RESERVED/2 has been test. - * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS. +2003-02-20 Paolo Bonzini <bonzini@gnu.org> - * elf/tst-tls1.c: Use test-skeleton.c. - * elf/tst-tls2.c: Likewise. - * elf/tst-tls3.c: Likewise. + * posix/regcomp.c: Remove inclusions. + * posix/regexec.c: Likewise. + * posix/regex_internal.c: Likewise. + * posix/regex_internal.h: Add inclusions here. + * posix/regex.c: Only include sys/types.h before regex.h. Include + regex_internal.h here. Include regex_internal.c before regcomp.c + and regexec.c (might expose more opportunities to the C compiler). - * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0. + * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC. -2002-02-08 Daniel Jacobowitz <drow@mvista.com> + * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo. + [!_LIBC] (__wcrtomb): New definition. + [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and + HAVE_LOCALE_H as well. - * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior. +2003-02-20 Ulrich Drepper <drepper@redhat.com> -2002-02-10 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete + patch to check for system call errors. - * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM. +2002-07-24 Philip Blundell <philb@gnu.org> - * elf/tst-tls3.c: New file. - * elf/tst-tlsmod1.c: New file. - * elf/Makefile: Add rules to build and run tst-tls3. + * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV + on unknown systems. - * sysdeps/i386/dl-machine.h: Include <tls.h>. - (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three - TLS relocations. +2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> - * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols. + * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround. + * sysdeps/unix/sysv/linux/kernel-features.h + (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl + if possible. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short + interprocedure branches. + * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to... + * sysdeps/powerpc/nofpu/Dist: ...here. + * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to... + * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here. + * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete. + * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete. + * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete. - * po/fr.po: Update from translation team. +2003-02-18 Alan Modra <amodra@bigpond.net.au> - * elf/tls-macros.h: Add alternative macros for use in PIC. + * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine. - * elf/dl-lookup.c: Include <tls.h>. - * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols. +2003-02-20 Philip Blundell <philb@gnu.org> - * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes - required by passing pointer to last element of the list. + * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add + missing arguments to INTERNAL_SYSCALL_ERROR_P and + INTERNAL_SYSCALL_ERRNO. - * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of - l_tls_initimage to a place where it actually is performed. +2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com> - * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero - after globfree() calls. + * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test + for __ASSUME_32BITUIDS. - * elf/dl-deps.c (struct openaux_args): Add open_mode element. - (openaux): Pass open_mode as new last argument to _dl_map_object. - (_dl_map_object_deps): Add new argument open_mode. Initialize - open_mode element of args variable with it. - * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to - _dl_map_object_deps. - * elf/rtld.c (dl_main): Add zero as last parameter to - _dl_map_object_deps call. - * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps. - * elf/nodlopen2.c: New file. - * elf/nodlopenmod2.c: New file. - * elf/Makefile: Add rules to build and run nodlopen2. +2003-02-20 Andreas Schwab <schwab@suse.de> - * elf/tst-tls1.c: Move TLS helper macros to... - * elf/tls-macros.h: ...here. New file. - * elf/tst-tls2.c: New file. - * elf/Makefile (tests): Add tst-tls2. - (distribute): Add tls-macros.h. + * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and + POSIX_MADV_* constants. - * po/sv.po: Update from translation team. +2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp> - * elf/tst-tls1.c (main): Add complete set of tests. Split - architecture specific definitions from the actual test code. + * sysdeps/unix/sysv/linux/sh/pread.c: New file. + * sysdeps/unix/sysv/linux/sh/pread64.c: New file. + * sysdeps/unix/sysv/linux/sh/pwrite.c: New file. + * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file. - * po/tr.po: Update from translation team. +2003-02-19 Jiro Sekiba <jir@yamato.ibm.com> -2002-02-09 Ulrich Drepper <drepper@redhat.com> + * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate. - * elf/Makefile (tests): Add tst-tls1. - * elf/tst-tls1.c: New file. +2003-02-16 Roland McGrath <roland@redhat.com> - * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle - alignment of TCB for now. + * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>. - * elf/rtld.c (dl_main): Use p_vaddr as address of TLS - initialization image for the application itself. +2003-02-19 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate - loop to initialize TLS block. + * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off + decimal input digits. + * stdlib/tst-strtod.c (main): Add test for strtof bug. -2002-02-08 Richard Henderson <rth@redhat.com> +2003-02-18 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include - _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL. + * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize + invalid file descriptors and missing access permissions. - * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string. +2003-02-17 Ulrich Drepper <drepper@redhat.com> -2002-02-09 Jakub Jelinek <jakub@redhat.com> + * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has + been found. - * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use. + * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and + TTY_NAME_MAX and not the _POSIX_* minimal value macros. + * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX + and LOGIN_NAME_MAX. -2002-02-08 Ulrich Drepper <drepper@redhat.com> +2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca> + Franz Sirl <Franz.Sirl-kernel@lauterbach.com> - * po/ca.po: Update from translation team. - * po/sk.po: Likewise. + * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP. + * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling. + * sysdeps/powerpc/powerpc32/setjmp.S: Likewise. + * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise. + * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise. - * elf/rtld.c (_dl_start_final): Install DTV explicitly. - (dl_main): Move dtv/static TLS handling before relocation. - Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and - TLS_INIT_TP to allocate and install the dtv/static TLS block. - * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object - so far uses TLS initialize GL(dl_tls_static_size) and - GL(dl_tls_static_align) to account for the TCB. - (_dl_allocate_tls): New function. - * sysdeps/generic/ldsodefs.h (rtld_global): Add - _dl_initial_dtv_malloced. +2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> - * configure.in: Test for __builtin_memset more realistically. + * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete. + * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete. + * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete. + * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete. + * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete. + * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete. - * csu/version.c (banner): If TLS support is available say so. + * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file... + * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here. + * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file... + * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here. -2002-02-04 H.J. Lu <hjl@gnu.org> + * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL. + * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete. + * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete. - * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use - __attribute_used__. - (__dl_runtime_resolve): Likewise. +2003-02-14 Thorsten Kukuk <kukuk@suse.de> - * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real - declaration. + * nss/getent.c (print_hosts): Print all IP addresses of one host. -2001-11-15 H.J. Lu <hjl@gnu.org> +2003-02-15 Roland McGrath <roland@frob.com> - * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include - <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb. + * sysdeps/mach/hurd/tls.h: New file. + * sysdeps/mach/hurd/i386/tls.h: New file. - * sysdeps/unix/sysv/linux/mips/sys/user.h: New file. + * mach/errsystems.awk: Include <errno.h> in generated output. -2002-02-07 H.J. Lu <hjl@gnu.org> + * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t, + use target mach-before-compile instead of generated. + (mach-before-compile): New target. + * Makerules: Disable use of tls.make if $(generating) is set. + * mach/Makefile: Include mach-syscalls.mk even if no_deps=t. + * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on + mach-shortcuts.h so mach/ generation happens before hurd/. - * sysdeps/mips/atomicity.h (compare_and_swap): Remove - ".set noreorder". - * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): - Likewise. +2003-02-14 Ulrich Drepper <drepper@redhat.com> -2002-02-07 Ulrich Drepper <drepper@redhat.com> + * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa + of demorm correctly if low word is zero. + Reported by Fred J. Tydeman <tydeman@tybor.com>. + * math/libm-test.inc (nextafter_test): New test, but disabled due + to gcc bug. - * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch. + * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread + counter and only call __exit_thread if this is not the last thread. - * sysdeps/i386/dl-tls.h (__tls_get_addr): Call - ___tls_get_addr_internal. - (___tls_get_addr_internal): Define as alias for ___tls_get_addr. +2003-02-13 Jakub Jelinek <jakub@redhat.com> - * po/ko.po: Update from translation team. + * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of + subtracting map->l_tls_offset. -2002-02-07 Jakub Jelinek <jakub@redhat.com> +2003-02-12 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed - attribute, change __pad{1,2} type to unsigned int. - (struct stat64): Remove packed attribute. + * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and + _CS_GNU_LIBPTHREAD_VERSION. + * posix/conststr.c: Handle these new values. + * posix/getconf.c: Likewise. -2002-02-07 Ulrich Drepper <drepper@redhat.com> + * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix + masking of version index. + Patch by Lance Larsh <Lance.Larsh@oracle.com>. - * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS. +2003-02-11 Ulrich Drepper <drepper@redhat.com> -2002-02-07 Andreas Schwab <schwab@suse.de> + * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment + correctly. Reported by Thorsten Kukuk. - * configure.in: Fix check for -zcombreloc. +2003-02-10 Ulrich Drepper <drepper@redhat.com> -2002-02-06 H.J. Lu <hjl@gnu.org> + * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and + _BSD_SOURCE to compiler. + * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings. + Patches by Alan Modra. - * config.h.in (HAVE_BUILTIN_MEMSET): New macro. - * configure.in: Check if __builtin_memset really works. - * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of - __GNUC_PREREQ (2, 96) before using __builtin_memset. +2003-02-08 Ulrich Drepper <drepper@redhat.com> -2002-02-06 Jakub Jelinek <jakub@redhat.com> + * io/ftwtest.c: Get current working directory before and after the + nftw call and make sure they match. - * io/bug-ftw3.c (main): Don't try the test if root. +2003-02-08 Jim Meyering <jim@meyering.net> -2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com> + * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember + the current directory, not just when DIR contains a slash. + Reported by Manoj Srivastava. - * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly - constraints. - * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS): - Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS): - Likewise. - * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone - a weak alias for __clone. - * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise. - * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo. - * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate. - * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file. - * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap - a weak alias for __mmap64. - -2002-02-05 H.J. Lu <hjl@gnu.org> - - * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely. - (atomic_add): Likewise. - (compare_and_swap): Likewise. - * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise. +2003-02-07 Jim Meyering <jim@meyering.net> -2002-02-07 Ulrich Drepper <drepper@redhat.com> + * io/ftw.c: Add autoconf-recommended block of alloca-related code. + Include autoconf-recommended block of dirent/NAMELEN-related + definitions and includes. Use NAMELEN throughout, rather than + _D_EXACT_NAMLEN. + [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN. + [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd. + (stpcpy): Declare, if necessary. + (mempcpy): Define, if necessary. + [!_LIBC] (__stpcpy, __mempcpy): Define. + [!_LIBC] (LXSTAT, XSTAT): Define. + (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat. + (find_object): Don't use c99-style struct initializer. + Tweak wording in a couple comments. - * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed. +2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp> - * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for - alignment of the TCB and store total size and alignment of static - TLS block in _dl_tls_static_size and _dl_tls_static_align. - tls_index is a typedef. - * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and - _dl_tls_static_align. - * sysdeps/i386/dl-tls.h: tls_index is a typedef. - * elf/dl-support.c: Define _dl_tls_static_size and - _dl_tls_static_align. + * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list + for SH. + * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD + after the trapa instruction. + * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional + parameters. + * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file. + (NEED_SYSCALL_INST_PAD): Define. + * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to + avoid to use definition for the kernel. + * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER): + Save and restore the frame pointer. + (SYSCALL_INST_PAD): Define. + (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL. + (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD + after trapa instruction. + (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO, + INTERNAL_SYSCALL_ERROR_P): Adjust accordingly. -2002-02-06 Ulrich Drepper <drepper@redhat.com> +2003-02-07 Jakub Jelinek <jakub@redhat.com> - * configure.in: Add --without-tls option. - * sysdeps/i386/elf/configure.in: Don't check for TLS support if - --without-tls is given. + * resolv/res_libc.c (_res): Ensure _res is not common symbol, + so that it can have aliases. + * inet/herrno.c (h_errno): Put it into .bss not .data section. + +2003-02-07 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/dl-tls.c: Include <tls.h>. + * elf/dl-runtime.c (fixup): Correct typo in version index computation. + (profile_fixup): Likewise. + Patch by Lance Larsh <Lance.Larsh@oracle.com>. - * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS. +2002-11-24 Robert Love <rml@tech9.net> -2002-02-06 Roland McGrath <roland@frob.com> + * posix/sched.h: Second parameter of sched_setaffinity and + sched_getaffinity is `unsigned int', not `unsigned long'. + * sysdeps/generic/sched_setaffinity.c: Likewise. + * sysdeps/generic/sched_getaffinity.c: Likewise. - * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls. - * malloc/malloc.c [! HAVE_MREMAP]: Likewise. +2003-02-05 Ulrich Drepper <drepper@redhat.com> - * scripts/versions.awk: Improve error message for missing version. - Each version inherits from the last one only if they have the same - nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y - but not GLIBC_x and FOO_y. + * debug/catchsegv.sh: Fix typo in error messsage. + Reported by John Levon <levon@movementarian.org>. - * scripts/firstversions.awk: Handle libraries that don't have each - particular version named in the third column of shlib-versions. + * sysdeps/unix/sysv/linux/posix_fadvise.c: New file. + * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall. + * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise. - * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE. + * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked. + Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>. -2002-02-06 Ulrich Drepper <drepper@redhat.com> +2003-02-05 Jim Meyering <jim@meyering.net> - * Versions.def [ld]: Add GLIBC_2.3. - * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3. - * elf/Makefile (dl-routines): Add dl-tls. - (distribute): Add dl-tls.h. - * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove - _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps. - Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset. - * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement - along with the other info in the link map. Change queueing of init - images for double linked list. Use _dl_next_tls_modid to compute - l_tls_modid. - * elf/rtld.c (_dl_start_final): Store alignment requirement - along with the other info in rtld map and executable map. - (dl_main): Add ld.so to the init image list if necessary. Compute - final module ID with _dl_next_tls_modid. - * include/link.h (struct link_map): Add l_tls_previmage and - l_tls_align. - * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps. - * sysdeps/i386/elf/Versions: New file. - * sysdeps/generic/dl-tls.c: New file. - * sysdeps/generic/dl-tls.h: New file. - * sysdeps/i386/dl-tls.h: New file. + Fix a heap-corrupting bug. + * io/ftw.c: Include <limits.h>. + (PATH_MAX) [!defined PATH_MAX]: Define to 1024. + (process_entry): Allocate enough space to hold the resulting + file name. Don't presume that 2*dirbufsize is enough. + (ftw_startup): Always use PATH_MAX to compute buffer size, now that + it is guaranteed to be defined. -2002-02-06 Roland McGrath <roland@frob.com> +2003-02-04 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ... - * sysdeps/generic/netinet/ip.h: ... here, replacing old file. + * iconvdata/Makefile: Add rules to build and run bug-iconv3. + * iconvdata/bug-iconv3.c: New file. -2002-01-05 Roland McGrath <roland@frob.com> +2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com> - * sysdeps/mach/configure.in: New file. - * sysdeps/mach/configure: New generated file. + * sysdeps/unix/sysv/linux/s390/system.c: New file. - * mach/Makefile (user-interfaces): Remove default_pager_helper. - It has never been used by anything. +2003-02-03 Jakub Jelinek <jakub@redhat.com> -2002-02-06 H.J. Lu <hjl@gnu.org> + * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New + check. + * config.h.in (BROKEN_SPARC_WDISP22): Add. - * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h> - is included. +2003-02-03 Ulrich Drepper <drepper@redhat.com> -2002-02-06 Ulrich Drepper <drepper@redhat.com> + * sysdeps/i386/i686/memmove.S: New file. - * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add - attribute((packed)) to counter stupid people misusing gcc options. - (struct stat64): Likewise. +2003-01-31 Steven Munroe <sjmunroe@us.ibm.com> -2002-02-05 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: + Include kernel-features.h + * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise. - * elf/rtld.c (dl_main): Correct indentation. Use bool as type for - the variables which are used as booleans. +2003-02-02 Jakub Jelinek <jakub@redhat.com> -2002-02-06 Andreas Jaeger <aj@suse.de> + * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers. - * include/libc-symbols.h (INTUSE): Renamed from INT. - * elf/dl-deps.c: Change users. - * sysdeps/generic/dl-sysdep.c: Likewise. - * sysdeps/generic/dl-cache.c: Likewise. - * elf/dl-reloc.c: Likewise. - * elf/rtld.c: Likewise. - * elf/dl-version.c: Likewise. - * elf/dl-load.c: Likewise. - * elf/dl-dst.h: Likewise. - * elf/dl-init.c: Likewise. - * elf/dl-error.c: Likewise. - * elf/dl-fini.c: Likewise. - * elf/dl-runtime.c: Likewise. - * elf/do-lookup.h: Likewise. +2003-01-25 Jim Meyering <jim@meyering.net> - * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate - definition. - * stdio-common/_itowa.h: Likewise. - -2002-02-05 Ulrich Drepper <drepper@redhat.com> - - * elf/dl-minimal.c: Define _itoa_lower_digits. - - * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have - DT_FLAGS set. - - * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically - loading modules with the DF_STATIC_TLS flag set. - * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags - element. - * include/link.h (struct link_map): Add l_flags field. - * elf/elf.h (DF_STATIC_TLS): New definition. - - * dlfcn/Makefile: Add rules to build and run bug-dlopen1. - * dlfcn/bug-dlopen1.c: New file. By Bruno Haible. - - * elf/rtld.c (process_dl_debug): Correct printing help message. - * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling - for %s. - - * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct - definition and pass &errno in use of this variable. - Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911]. - -2002-02-04 Andreas Schwab <schwab@suse.de> - - * locale/programs/localedef.h (WITH_CUR_LOCALE): Define. - * locale/programs/charmap-dir.c: Wrap calls that output messages - with WITH_CUR_LOCALE. Include "localedef.h" first. - * locale/programs/charmap.c: Likewise. - * locale/programs/ld-address.c: Likewise. - * locale/programs/ld-collate.c: Likewise. - * locale/programs/ld-ctype.c: Likewise. - * locale/programs/ld-identification.c: Likewise. - * locale/programs/ld-measurement.c: Likewise. - * locale/programs/ld-messages.c: Likewise. - * locale/programs/ld-monetary.c: Likewise. - * locale/programs/ld-name.c: Likewise. - * locale/programs/ld-numeric.c: Likewise. - * locale/programs/ld-paper.c: Likewise. - * locale/programs/ld-telephone.c: Likewise. - * locale/programs/ld-time.c: Likewise. - * locale/programs/linereader.c: Likewise. - * locale/programs/linereader.h: Likewise. - * locale/programs/localedef.c: Likewise. - * locale/programs/locfile.c: Likewise. - * locale/programs/repertoire.c: Likewise. + * io/ftw.c (object_compare): Compare inode numbers before device + numbers, since the former are much more likely to differ. -2002-02-05 Ulrich Drepper <drepper@redhat.com> +2003-02-01 Ulrich Drepper <drepper@redhat.com> - * elf/rtld.c (_dl_start_final): Determine load address to locate - ehdr with GL(dl_rtld_map).l_map_start. + * time/tzfile.c (__tzfile_compute): Change return value type to + void. Adjust return statements. + * include/time.h (__tzfile_compute): Adjust prototype. - * po/ca.po: Update from translation team. +2003-02-01 Jim Meyering <jim@meyering.net> - * elf/rtld.c (dl_main): Read PT_TLS entry of the executable. - * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program - header entry. - * sysdeps/generic/ldsodefs.h (struct rtld_global): Add - _dl_tls_module_cnt. - * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt. + * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute + always returns 1. -2002-02-04 Ulrich Drepper <drepper@redhat.com> +2003-01-31 Steven Munroe <sjmunroe@us.ibm.com> - * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld. - * include/link.h (struct link_map): Add various members for TLS - information. - * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove - _rtld_tlsoffset, add _dl_initimage_list. - * sysdeps/i386/dl-lookupcfg.h: New file. - * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing - TLS relocation. When using TLS we now use RESOLVE_MAP. - (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS - is used. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c + [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS. - * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly - unused. +2003-01-31 Steven Munroe <sjmunroe@us.ibm.com> - * elf/rtld.c (_dl_start_final): Allocate TLS and initialize - thread-pointer as soon as possible. - * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS - elements in rtld_global. - * sysdeps/generic/tls.h: New file. - * elf/Makefile (distribute): Add tls.h. - * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS - relocations. Not complete yet. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S + [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S + [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S + [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S + [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise. - * resolv/resolv.h: Allow user to define __need_res_state and only - define __res_start structure then. - * include/resolv.h: Only declare functions if _RESOLV_H_ is defined. +2003-01-31 Steven Munroe <sjmunroe@us.ibm.com> - * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move - dl_cpuclock_offset initialization to _dl_start_final. - (_dl_show_auxv): Avoid unnecessary sign extension. - * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset. + * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel + back to 2.4.19 for powerpc64. + * sysdeps/unix/sysv/linux/kernel-features.h + (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64. + (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64. -2002-02-03 Ulrich Drepper <drepper@redhat.com> +2003-02-01 Ulrich Drepper <drepper@redhat.com> - * config.h.in: Add HAVE_TLS_SUPPORT. - * sysdeps/i386/elf/configure.in: New file. + * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for + platforms with strange alignment requirements on wchar_t. -2002-02-03 Andreas Schwab <schwab@suse.de> +2003-01-31 Andreas Schwab <schwab@suse.de> - * sysdeps/posix/readv.c: Use ssize_t for bytes_read. - * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment. + * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_* + aliases, already added by make-syscalls.sh. + * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/syscalls.list: Likewise. + * sysdeps/unix/inet/syscalls.list: Likewise. + * sysdeps/unix/syscalls.list: Likewise. -2002-02-03 Thorsten Kukuk <kukuk@suse.de> +2003-01-31 Andreas Schwab <schwab@suse.de> - * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use - alloca if the memory reqirements are too high. + * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed + any more. -2002-02-03 Ulrich Drepper <drepper@redhat.com> +2003-01-30 Jakub Jelinek <jakub@redhat.com> - * elf/dl-load.c (decompose_rpath): Avoid using strstr. - * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since - the former is available anyway and speed isn't important here. - * elf/dl-misc.c (_dl_debug_vdprintf): Likewise. - * elf/dl-version.c (match_symbol): Likewise. - (_dl_check_map_versions): Likewise. - * elf/rtld.c (process_envvars): Likewise. - (print_statistics): Likewise. - * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise. - * elf/dl-minimal.c (_itoa): Always define it. Make it work for all - bases. Add assert to catch uses of unimplemented features. - (__strsep): Add assert to catch uses of unimplemented features. - * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr - and avoid inline optimization. - * elf/rtld.c (process_envvars): Likewise. - * elf/dl-open.c: Don't include <stdio-common/_itoa.h>. - * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs. - * elf/rtld.c (dl_main): Avoid strsep inline optimization. + * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg, + not l to load tls from stack. -2002-02-02 Ulrich Drepper <drepper@redhat.com> +2003-01-30 Roland McGrath <roland@redhat.com> - * stdio-common/_itoa.h: Minor simplifications of the code. - * stdio-common/_itoa.c: Likewise. + * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for + null argument before all else. + Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>. - * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf - instead of _dl_printf for debugging info output. +2003-01-30 Jakub Jelinek <jakub@redhat.com> - * manual/examples/mkfsock.c (make_named_socket): Make sure name is - always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>. + * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel): + Move to RESOLVE protected part of the header. + * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel): + Likewise. -2002-02-01 H.J. Lu <hjl@gnu.org> +2003-01-30 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely. - (atomic_add): Likewise. - (compare_and_swap): Return 0 only when failed to compare. Use - branch likely. + * stdio-common/Makefile (tests): Add bug15. + (bug15-ENV): Define. + * stdio-common/bug15.c: New file. - * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use - branch likely. +2002-10-07 Wolfram Gloger <wg@malloc.de> -2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp> + * malloc/malloc.c (sYSMALLOc): Only check for breakage due + to foreign sbrk()'s if arena is contiguous. Bug report from + Bruno Haible <bruno@clisp.org>. - * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo. +2003-01-30 Jakub Jelinek <jakub@redhat.com> -2002-02-02 Ulrich Drepper <drepper@redhat.com> + * sysdeps/s390/libc-tls.c: Include stdlib.h. - * elf/dl-minimal.c (__strsep): New minimal implementation. +2003-01-30 Jakub Jelinek <jakub@redhat.com> -2002-02-02 Paul Eggert <eggert@twinsun.com> + * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of + ps.__count. - * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>. - (__mktime_internal): If no tm_isdst is requested, prefer solutions - with tm_isdst > 0 when the requested time falls within a - spring-forward gap [PR libc/2894]. +2003-01-30 Ulrich Drepper <drepper@redhat.com> -2002-02-03 Andreas Schwab <schwab@suse.de> + * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and + restoring of %r6. + * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use + 64-bit load. + Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>. - * stdio-common/tst-rndseek.c: Increase timeout. +2003-01-30 Jakub Jelinek <jakub@redhat.com> -2002-02-02 Ulrich Drepper <drepper@redhat.com> + * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error... + (allocate_static_tls): ...here. Add __attribute_noinline__. + Don't return on failure. + (_dl_reloc_bad_type): Add __attribute_noinline__. + * elf/do-rel.h (elf_dynamic_do_rel): Add + __attribute__((always_inline)). + * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela, + elf_machine_rel_relative, elf_machine_rela_relative, + elf_machine_lazy_rel): Add prototypes with + __attribute__((always_inline)). - Change ld.so to not use functions which are exported. One cannot - interpose them anyway. Use INT() to mark uses, INTDEF() to mark - definitions. - * include/libc-symbols.h: Define INT and INTDEF. - * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal, - _dl_signal_error_internal, _dl_map_object_internal, - _dl_map_object_deps_internal, _dl_lookup_symbol_internal, - _dl_lookup_versioned_symbol_internal, - _dl_relocate_object_internal, _dl_debug_state_internal, - _dl_start_profile_internal, and _dl_unload_cache_internal. - * include/dlfcn.h: Declare _dl_catch_error_internal. - * elf/rtld.c: Use INT for calls to any of the *_internal functions - above. Add INTDEF to function definitions. - * elf/dl-debug.c: Likewise. - * elf/dl-deps.c: Likewise. - * elf/dl-dst.h: Likewise. - * elf/dl-error.c: Likewise. - * elf/dl-fini.c: Likewise. - * elf/dl-init.c: Likewise. - * elf/dl-load.c: Likewise. - * elf/dl-lookup.c: Likewise. - * elf/dl-misc.c: Likewise. - * elf/dl-open.c: Likewise. - * elf/dl-profile.c: Likewise. - * elf/dl-reloc.c: Likewise. - * elf/dl-runtime.c: Likewise. - * elf/dl-version.c: Likewise. - * elf/do-lookup.h: Likewise. - * sysdeps/generic/dl-cache.c: Likewise. - * sysdeps/generic/dl-sysdep.c: Likewise. - * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal - instead of _dl_init. - * sysdeps/arm/dl-machine.h: Likewise. - * sysdeps/cris/dl-machine.h: Likewise. - * sysdeps/hppa/dl-machine.h: Likewise. - * sysdeps/i386/dl-machine.h: Likewise. - * sysdeps/ia64/dl-machine.h: Likewise. - * sysdeps/m68k/dl-machine.h: Likewise. - * sysdeps/mips/dl-machine.h: Likewise. - * sysdeps/mips/mips64/dl-machine.h: Likewise. - * sysdeps/s390/s390-32/dl-machine.h: Likewise. +2003-01-29 David Mosberger <davidm@hpl.hp.com> + + * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO. + +2003-01-29 Roland McGrath <roland@redhat.com> + + * configure.in: Barf if configured in $srcdir. + +2003-01-28 Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c + (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL. + +2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com> + + * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional + clone parameters to match the order used on ia32. + * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. + +2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com> + + * elf/elf.h: Add new s390 relocs. + * elf/tls-macros.h: Add s390 versions. + * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset. + * sysdeps/s390/dl-tls.h: New file. + * sysdeps/s390/libc-tls.c: New file. + * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS + relocs for class PLT. + (elf_machine_rela): Handle TLS relocs. * sysdeps/s390/s390-64/dl-machine.h: Likewise. - * sysdeps/sh/dl-machine.h: Likewise. - * sysdeps/sparc/sparc32/dl-machine.h: Likewise. - * sysdeps/sparc/sparc64/dl-machine.h: Likewise. - * sysdeps/x86_64/dl-machine.h: Likewise. - * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise. - - * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start, - and _dl_debug_initialize. - - * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have - more information. - * elf/rtld.c (dl_main): Avoid strrchr. - * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the - result of readlink. Search from the back for '/'. - - * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid - strncpy if possible. - - * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use - strncmp. - * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice. - * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp, - strspn, and strcspn. - (process_envvars): Don't use strcspn. - - * elf/dl-load.c (_dl_dst_count): Fix possible endless loop. - (_dl_dst_substitute): Likewise. - -2002-02-01 Ulrich Drepper <drepper@redhat.com> - - * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize - code which is never used when relocating ld.so itself. - - * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for - starting ld.so itself. Move l_addr variable initialization closer - to use. - (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit. - -2002-02-01 Jakub Jelinek <jakub@redhat.com> - - * Versions.def (libc): Add GLIBC_PRIVATE. - (libdb, libnss_db, libdb1): Remove. - (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis, - libnss_nisplus): Move all symbols to GLIBC_PRIVATE. - (libpthread): Add GLIBC_PRIVATE. - (libresolv): Likewise, remove GLIBC_2.1. - (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1, - GLIBC_2.2.3, GLIBC_2.3. - * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE. - * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first, - _dl_sym, _dl_vsym): Likewise. - (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error, - _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize, - _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute, - _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip, - _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip, - _dl_map_object, _dl_map_object_deps, _dl_out_of_memory, - _dl_relocate_object, _dl_signal_error, _dl_start_profile, - _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global): - Likewise. - (_dl_object_relocation_scope): Remove. - * hesiod/Versions: Move all symbols to GLIBC_PRIVATE. - * iconv/Versions (__gconv_alias_db, __gconv_modules_db, - __gconv_cache): Move to GLIBC_PRIVATE. - * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r, - __internal_setnetgrent): Likewise. - * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write, - __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise. - * locale/Versions (__collate_element_hash, __collate_element_strings, - __collate_symbol_classes, __collate_symbol_hash, - __collate_symbol_strings, _nl_current_LC_COLLATE, - _nl_current_LC_CTYPE): Likewise. - * misc/Versions (__libc_fsync, __libc_msync): Likewise. - * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE. - (libnss_nis, libnss_nisplus): Likewise. - * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent, - _nss_files_parse_spent): Move to GLIBC_PRIVATE. - (libnss_files): Move all symbols to GLIBC_PRIVATE. - * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause, - __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64, - __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE. - * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop, - __ns_get16, __ns_samename): Likewise. - (libnss_dns): Move all symbols to GLIBC_PRIVATE. - * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to - GLIBC_PRIVATE. - * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom, - __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto, - __libc_connect): Likewise. - * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits): + * sysdeps/s390/s390-32/elf/configure.in: Add TLS check. + * sysdeps/s390/s390-64/elf/configure.in: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for + CLONE_CHILD_*TID flags. + * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32 + bit offset. + * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error): + Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant. + * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error): Likewise. - * stdlib/Versions (__libc_system): Likewise. - * sunrpc/Versions (__rpc_thread_destroy): Likewise. - * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE. - * sysdeps/ia64/fpu/Versions: Likewise. - * sysdeps/ia64/Versions: Likewise. - * sysdeps/unix/sysv/linux/ia64/Versions: Likewise. - * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move - to GLIBC_PRIVATE. - * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise. - * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo, - __libc_sigaction): Likewise. - * termios/Versions (__libc_tcdrain): Likewise. - - * misc/sys/cdefs (__attribute_noinline__): Define. - * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add - __attribute_noinline__. - - * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64. - * elf/dl-xstat64.c: New file. - * elf/dl-fxstat64.c: New file. - * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined, - don't export __fxstat64 at multiple versions. - * sysdeps/unix/sysv/linux/lxstat64.c: Similarly. - * sysdeps/unix/sysv/linux/xstat64.c: Similarly. - -2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com> - - * locale/program/ld-collate.c (collate_finish): Assign a wide - char collation sequence value to multi character collating - elements, and avoid over writing by non-character elements. - -2002-02-01 Ulrich Drepper <drepper@redhat.com> - - * elf/Makefile (distribute): Add dl-procinfo.c. - * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c. - * sysdeps/unix/sysv/linux/arm/Dist: Likewise. - -2002-02-01 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate - definition. - * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in - _rtld_global struct. - * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise. - * sysdeps/sparc/sparc64/hp-timing.c: Likewise. - * sysdeps/sparc/sparc64/hp-timing.h: Likewise. - * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only. - * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control, - _dl_fpu_control_set): Remove unused externs. - * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file. - * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file. - * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo - related variables in _rtld_global struct. - * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise. - * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove - unused extern. + * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: + (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. + (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO + variants. + * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: + (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use + direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT. + (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO + variants. -2002-02-01 Ulrich Drepper <drepper@redhat.com> +2003-01-28 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/dl-procinfo.c: New file. + * sysdeps/unix/common/pause.c (do_pause): New function. Split + from __libc_pause. Implement using sigsuspend. + (__libc_pause): Call do_pause to do the real work. -2002-02-01 Andreas Schwab <schwab@suse.de> + * sysdeps/posix/sigpause.c (do_sigpause): Check range of + sig_or_mask parameter is is_sig != 0. - * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals. +2003-01-21 Philip Blundell <philb@gnu.org> -2002-02-01 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define. - * elf/rtld.c (_dl_start): Mark as internal_function. - * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start - in register. - (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP. - General pretty printing. +2003-01-27 Steven Munroe <sjmunroe@us.ibm.com> -2002-01-31 Ulrich Drepper <drepper@redhat.com> + * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check. - * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing. - * elf/dl-reloc.c: Pretty printing. - * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and - procinfo-related variables in rtld_global struct. - * elf/dl-support.c: Likewise. - * elf/rtld.c: Likewise. - * sysdeps/i386/i686/Makefile: Likewise. - * sysdeps/i386/i686/hp-timing.c: Likewise. - * sysdeps/i386/i686/hp-timing.h: Likewise. - * sysdeps/ia64/Makefile: Likewise. - * sysdeps/ia64/hp-timing.c: Likewise. - * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise. - * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise. - * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise. - * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise. - * sysdeps/unix/sysv/linux/i386/Makefile: Likewise. - * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise. - * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise. - * sysdeps/x86_64/Makefile: Likewise. +2003-01-27 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy, - _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and - _dl_debug_fd to rtld_global. - * elf/Versions: Likewise. - * elf/dl-close.c: Likewise. - * elf/dl-iteratephdr.c: Likewise. - * elf/dl-lookup.c: Likewise. - * elf/dl-misc.c: Likewise. - * elf/dl-open.c: Likewise. - * elf/dl-support.c: Likewise. - * elf/do-lookup.h: Likewise. - * elf/rtld.c: Likewise. - * sysdeps/generic/dl-cache.c: Likewise. - * sysdeps/generic/dl-sysdep.c: Likewise. - * sysdeps/ia64/Versions: Likewise. - * sysdeps/unix/clock_gettime.c: Likewise. - * sysdeps/unix/clock_settime.c: Likewise. - * sysdeps/unix/sysv/linux/init-first.c: Likewise. - * sysdeps/sparc/Versions: Removed. - * sysdeps/i386/i686/Versions : Removed. - * sysdeps/x86_64/Versions: Removed. - * configure.in: Define HAVE_PROTECTED if .protected is available. - * config.h.in: Add entry for HAVE_PROTECTED. - -2002-01-31 Jakub Jelinek <jakub@redhat.com. - - * sysdeps/alpha/dl-machine.h: Move global variables for SHARED - code in struct _rtld_global. Export this struct, remove all - exports for the signal variables. - * sysdeps/arm/dl-machine: Likewise. - * sysdeps/generic/dl-origin: Likewise. - * sysdeps/generic/dl-sysdep: Likewise. - * sysdeps/generic/dl-cache: Likewise. - * sysdeps/hppa/dl-fptr: Likewise. - * sysdeps/hppa/dl-machine: Likewise. - * sysdeps/cris/dl-machine: Likewise. - * sysdeps/i386/dl-machine: Likewise. - * sysdeps/ia64/dl-machine: Likewise. - * sysdeps/m68k/dl-machine: Likewise. - * sysdeps/mach/hurd/dl-sysdep: Likewise. - * sysdeps/mips/mips64/dl-machine: Likewise. - * sysdeps/mips/dl-machine: Likewise. - * sysdeps/powerpc/elf/libc-start: Likewise. - * sysdeps/powerpc/dl-machine: Likewise. - * sysdeps/powerpc/dl-start: Likewise. - * sysdeps/sparc/sparc32/dl-machine: Likewise. - * sysdeps/sparc/sparc64/dl-machine: Likewise. - * sysdeps/sh/dl-machine: Likewise. - * sysdeps/s390/s390-32/dl-machine: Likewise. - * sysdeps/s390/s390-64/dl-machine: Likewise. - * sysdeps/unix/sysv/aix/libc-start: Likewise. - * sysdeps/unix/sysv/aix/start-libc: Likewise. - * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise. - * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise. - * sysdeps/x86_64/dl-machine: Likewise. - -2002-01-31 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/posix/readv.c: Don't use alloca if the memory requirements - are too high. - -2002-01-31 Andreas Schwab <schwab@suse.de> - - * sysdeps/posix/readv.c: Check for ssize_t overflow. - -2002-01-31 Andreas Schwab <schwab@suse.de> - - * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover - reference to _dl_pagesize. - -2002-01-30 Ulrich Drepper <drepper@redhat.com> - - * Versions.def [ld]: Add GLIBC_2.3. - * elf/dl-addr.c: Move global variables for SHARED code in struct - _rtld_global. Export this struct, remove all exports for the - signal variables. - * elf/dl-close.c: Likewise. - * elf/dl-conflict.c: Likewise. - * elf/dl-debug.c: Likewise. - * elf/dl-deps.c: Likewise. - * elf/dl-dst.h: Likewise. - * elf/dl-error.c: Likewise. - * elf/dl-fini.c: Likewise. - * elf/dl-init.c: Likewise. - * elf/dl-iteratephdr.c: Likewise. - * elf/dl-libc.c: Likewise. - * elf/dl-load.c: Likewise. - * elf/dl-lookup.c: Likewise. - * elf/dl-minimal.c: Likewise. - * elf/dl-object.c: Likewise. - * elf/dl-open.c: Likewise. - * elf/dl-profile.c: Likewise. - * elf/dl-profstub.c: Likewise. - * elf/dl-reloc.c: Likewise. - * elf/dl-runtime.c: Likewise. - * elf/dl-support.c: Likewise. - * elf/dl-sym.c: Likewise. - * elf/dl-version.c: Likewise. - * elf/do-lookup.h: Likewise. - * elf/do-rel.h: Likewise. - * elf/dynamic-link.h: Likewise. - * elf/rtld.c: Likewise. - * sysdeps/generic/dl-cache.c: Likewise. - * sysdeps/generic/dl-sysdep.c: Likewise. - * sysdeps/generic/ldsodefs.h: Likewise. - * sysdeps/generic/libc-start.c: Likewise. - * sysdeps/i386/dl-machine.h: Likewise. - * sysdeps/ia64/dl-fptr.c: Likewise. - * sysdeps/ia64/dl-machine.h: Likewise. - * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise. - * sysdeps/unix/sysv/linux/dl-origin.c: Likewise. - * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise. - * sysdeps/unix/sysv/linux/getclktck.c: Likewise. - * sysdeps/unix/sysv/linux/getpagesize.c: Likewise. - * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise. - * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise. - * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise. + * stdio-common/bug14.c: Use official name for the locale. -2002-01-29 Ulrich Drepper <drepper@redhat.com> + * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start + instead of __libc_cleanup_region_start and _IO_cleanup_region_end + instead of __libc_cleanup_region_end. - * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast - to avoid warning - (DL_STATIC_FUNCTION_ADDRESS): Likewise. + * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1 + as first parameter to __libc_cleanup_region_start. - * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the - SHARED version. - * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c + (__fe_nomask_env): Use __prctl not prctl. + * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for + prctl syscall. - * elf/rtld.c (_dl_start): Use __builtin_memset if available. + * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message. -2002-01-29 Ben Collins <bcollins@debian.org> + * elf/dl-open.c (_dl_tls_static_size): Bump to 2048. - * string/bits/string2.h (__mempcpy): Protect size arg for - addition when using __builtin_memcpy. + * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic + wrap-around in test. -2002-01-29 Ulrich Drepper <drepper@redhat.com> +2003-01-26 Andreas Schwab <schwab@suse.de> - * stdlib/Makefile (tests): Add tst-qsort. - * stdlib/tst-qsort.c: New file. Written by Paul Eggert. + * sysdeps/wordsize-32/divdi3.c: Export the functions only as + compatibility symbols. Remove INTDEF for __divdi3. + * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal. + * sysdeps/powerpc/powerpc32/divdi3.c: Remove. + * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't + define. + * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c. - * manual/signal.texi (Process Signal Mask): Document that - pthread_sigmask, not sigprocmask, must be used in MT programs. - Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>. +2003-01-24 Jakub Jelinek <jakub@redhat.com> - * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is - found. - * misc/Makefile (tests): Add tst-hsearch. - * misc/tst-hsearch.c: New file. + * elf/tls-macros.h: Add SPARC 32-bit definitions. + * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check. + * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards + for the first half of the header. Include tls.h. + (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS + relocs too. + (elf_machine_rela): Handle TLS relocs. + * sysdeps/sparc/dl-tls.h: New file. -2002-01-18 Wolfram Gloger <wg@malloc.de> + * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation + support. - * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c. - * malloc/malloc.h: Likewise. - * malloc/thread-m.h: Spinlock definitions for x86/x86_64. - * malloc/arena.c: New file. - * malloc/hooks.c: New file. - * malloc/tst-mallocstate.c: New file. - * malloc/Makefile: Add new testcase tst-mallocstate. - Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS. + * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7. + * sysdeps/sparc/sparc32/memchr.S: Likewise. + * sysdeps/sparc/sparc32/memcpy.S: Likewise. + * sysdeps/sparc/sparc32/strcat.S: Likewise. + * sysdeps/sparc/sparc32/strchr.S: Likewise. + * sysdeps/sparc/sparc32/strcmp.S: Likewise. + * sysdeps/sparc/sparc32/strcpy.S: Likewise. + * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise. + * sysdeps/sparc/sparc64/hp-timing.h: Likewise. + * sysdeps/sparc/sparc64/memcpy.S: Likewise. + * sysdeps/sparc/sparc64/stpcpy.S: Likewise. + * sysdeps/sparc/sparc64/stpncpy.S: Likewise. + * sysdeps/sparc/sparc64/strcat.S: Likewise. + * sysdeps/sparc/sparc64/strchr.S: Likewise. + * sysdeps/sparc/sparc64/strcmp.S: Likewise. + * sysdeps/sparc/sparc64/strcpy.S: Likewise. + * sysdeps/sparc/sparc64/strncmp.S: Likewise. + * sysdeps/sparc/sparc64/strncpy.S: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise. + +2003-01-24 Andreas Schwab <schwab@suse.de> + + * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY + elements, and process them backwards. + * elf/Makefile ($(objpfx)tst-array4): New target. + ($(objpfx)tst-array4.out): Likewise. + (tests) [$(have-initfini-array) = yes]: Add tst-array4. + * elf/tst-array4.c: New file. + * elf/tst-array4.exp: Likewise. + +2003-01-24 Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file. + +2003-01-27 Guido Guenther <agx@sigxcpu.org> + + * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define. + * sysdeps/unix/sysv/linux/mips/pread.c: Add support for + cancellation handling and handle both __NR_pread64 and __NR_pread. + * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise. + * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for + cancellation handling and handle both __NR_pwrite64 and __NR_pwrite. + * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise. + * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT + case, use register names consistently. + +2003-01-27 Wolfram Gloger <wg@malloc.de> + + * malloc/hooks.c (mem2chunk_check): Check alignment of mem + pointer, not of the computed chunk. Bug report from Carlos + O'Donell <carlos@baldric.uwo.ca>. + +2003-01-25 Andreas Schwab <schwab@suse.de> + + * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative + addressing to save GOT entries. + +2003-01-21 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/alpha/sysdep.h (inline_syscall0, + inline_syscall1, inline_syscall2, inline_syscall3, + inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__. + * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add + __attribute__((unused)) to ChEcK. + +2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com> + + * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL): + Fix inline assembler constraints. + * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL): + Likewise. -2002-01-28 Ulrich Drepper <drepper@redhat.com> + * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of + -fPIC. + +2003-01-20 Segher Boessenkool <segher@koffie.nl> - * stdlib/msort.c: Remove last patch. The optimization violates the - same rule which qsort.c had problems with. + * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really + compute the cosine, not the sine, even if x > 0.8. -2002-01-27 Paul Eggert <eggert@twinsun.com> +2003-01-19 Ulrich Drepper <drepper@redhat.com> - * stdlib/qsort.c (_quicksort): Do not apply the comparison function - to a pivot element that lies outside the array to be sorted, as - ISO C99 requires that the comparison function be called only with - addresses of array elements [PR libc/2880]. + * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of + _nss_nis_setspent. Work around the different prototypes. + * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use + internal_nis_endrpcent. + (internal_nis_endrpcent): Change return type to void. Change callers. + * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of + _nss_nis_setpwent. Work around the different prototypes. + * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body + of the function to... + (internal_nis_endprotoent): ... here. New function. + (internal_nis_setprotoent): Use internal_nis_endprotoent. + * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of + _nss_nis_setnetent. Work around the different prototypes. + * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body + of the function to... + (internal_nis_endnetgrent): ... here. New function. + (_nss_nis_setnetgrent): Use internal_nis_endnetgrent. -2002-01-28 Ulrich Drepper <drepper@redhat.com> +2003-01-19 Jim Meyering <jim@meyering.net> - * elf/dl-load.c (_dl_map_object): Remove incorrect optimization - for SHARED code. Reported by Ben Collins <bcollins@debian.org>. + * time/strftime.c: (widen): Merge nearly-identical definitions. + (nl_get_alt_digit) [! defined my_strftime]: Define. + (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of + _nl_get_alt_digit and _nl_get_walt_digit. - * timezone/asia: Update from tzdata2002b. - * timezone/australasia: Likewise. - * timezone/backward: Likewise. - * timezone/europe: Likewise. - * timezone/leapseconds: Likewise. - * timezone/iso3166.tab: Likewise. - * timezone/zone.tab: Likewise. +2003-01-19 Ulrich Drepper <drepper@redhat.com> -2002-01-23 Richard Henderson <rth@redhat.com> + * time/strftime.c (my_strftime): Handle very large width + specifications for numeric values correctly. Improve checks for + overflow. + * time/Makefile (tests): Add tst-strftime. + * time/tst-strftime.c: New file. - * sysdeps/alpha/Makefile (pic-ccflag): New variable. +2003-01-18 Ulrich Drepper <drepper@redhat.com> -2002-01-28 Ulrich Drepper <drepper@redhat.com> + * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of + _nss_nis_sethostent. Work around the different prototypes. + * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of + _nss_nis_setgrent. Work around the different prototypes. + * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New + function. Split out from _nss_nis_endetherent. + (internal_nis_setetherent): Use internal_nis_endetherent instead of + duplicating the code. + * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias + of _nss_nis_setaliasent. + * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse + internal_nis_endservent code, don't duplicate it. - * string/strxfrm.c: Allocate one more byte for rulearr and clear - this element [PR libc/2855]. + * inet/rexec.c (rexec_af): Protect socket operations with + TEMP_FAILURE_RETRY. Use writev instead of multiple write. + * inet/rcmd.c (rcmd_af): Likewise. - * string/strcoll.c: Handle zero-length arguments specially - [PR libc/2856]. +2003-01-17 Roland McGrath <roland@redhat.com> -2002-01-23 Jakub Jelinek <jakub@redhat.com> + * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]: + Add test of value 0.80190127184058835. - * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use - __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for - short lengths and constant src. - (strcpy): Don't optimize for gcc 3.0+. - (__stpcpy): For gcc 3.0+, don't use - __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src) - for short string literal src. + * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn. -2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com> +2003-01-17 Richard Henderson <rth@redhat.com> - * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde): - Set for arm, too. + * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS + relocs for class PLT. + * sysdeps/alpha/libc-tls.c: New file. + * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New. + (LOADGP) [!PIC]: Rewrite to preserve caller's gp. -2001-01-22 Paul Eggert <eggert@twinsun.com> +2003-01-17 Jakub Jelinek <jakub@redhat.com> - * manual/llio.texi (Linked Channels, Cleaning Streams): - Make it clearer that a just-opened input stream might need cleaning. + * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use + __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock + on _dl_static_lock. -2002-01-21 H.J. Lu <hjl@gnu.org> +2003-01-17 Andreas Jaeger <aj@suse.de> - * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): - Don't use label at end of compound statement. + * stdio-common/bug14.c: Include stdlib.h for exit prototype. -2002-01-28 Stephen L Moshier <moshier@mediaone.net> +2003-01-16 Steven Munroe <sjmunroe@us.ibm.com> - * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r): - Remove test for negative integer arg; sin_pi does it correctly. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file. + * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file. + * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64 + is 2.4.21. -2002-01-20 Ulrich Drepper <drepper@redhat.com> +2003-01-16 Ulrich Drepper <drepper@redhat.com> - * nscd/Makefile (distribute): Filter out xmalloc.c. + * sysdeps/generic/glob.c (glob): Assume sysconf() always returns + values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed + buffers. + + * sysdeps/generic/sysconf.c: Unconditionally implement + _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX. + * sysdeps/posix/sysconf.c: Likewise. -2002-01-19 Ulrich Drepper <drepper@redhat.com> +2003-01-16 Jakub Jelinek <jakub@redhat.com> - * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static. - Set offset if read end wasn't the buffer end. - (_IO_file_seekoff_mmap): New function. - (_IO_file_xsgetn_mmap): New function. - (_IO_file_jumps_mmap): Use the two new functions. - * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer - != end buffer. - * libio/libioP.h: Declare _IO_file_seekoff_mmap and - _IO_file_underflow_mmap. - * libio/iofopen.c: Don't position file descriptor at end of file. - * libio/tst-widetext.c: Improve error messages. - * stdio-common/tst-rndseek.c: Likewise. + * posix/regcomp.c (parse_bracket_exp): If build_charclass fails, + set *err to the returned error, not to REG_ESPACE unconditionally. + (build_word_op): Likewise. + * posix/Makefile (tests): Add bug-regex16. + * posix/bug-regex16.c: New test. -2002-01-18 Ulrich Drepper <drepper@redhat.com> +2003-01-16 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at - end of enum for !_GNU_SOURCE. - * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise. - * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise. - * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise. - * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_* - values unless _GNU_SOURCE. + * elf/dl-load.c (_dl_map_object_from_fd): Use + GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has + been already initialized. - * iconvdata/tcvn5712-1.c: Minor cleanups. +2003-01-15 Dmitry V. Levin <ldv@altlinux.org> -2002-01-18 Andreas Schwab <schwab@suse.de> + * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment. - * sysdeps/unix/sysv/linux/configure.in - (libc_cv_gcc_unwind_find_fde): Set for m68k, too. +2003-01-16 Jakub Jelinek <jakub@redhat.com> -2002-01-16 Roger Sayle <roger@eyesopen.com> + * posix/regcomp.c (re_compile_internal): If clearing buffer, clear + allocated too. Reported by Al Viro <aviro@redhat.com>. - * stdlib/msort.c (msort_with_tmp): Replace implementation with - more efficient "Towers of Hanoi" mergesort. - (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions, - for generic, sizeof(int) and sizeof(long) variants respectively. +2003-01-16 Roland McGrath <roland@redhat.com> -2002-01-17 Ulrich Drepper <drepper@redhat.com> + Tweak merged .abilist file format to merge duplicate symbols in + different sets into multi-version stanzas with new "| SET regexp..." + header continuation lines. + * scripts/merge-abilist.awk: Rewritten for new format. + * scripts/extract-abilist.awk: Likewise. - * manual/syslog.texi (openlog): Describe possible problems with - first parameter. - Patch by Christopher Allen Wing <wingc@engin.umich.edu>. +2003-01-15 Ulrich Drepper <drepper@redhat.com> - * nscd/nscd.c (drop_privileges): Removed. Adjust caller. - * nscd/connections.c (begin_drop_privileges): New function. - (finish_drop_privileges): New function. - (nscd_init): Call the new functions which also install all groups - for the server user. - * nscd/Makefile (nscd-modules): Add xmalloc for nscd. - Patch by Christopher Allen Wing <wingc@engin.umich.edu>. + * nscd/connections.c (nscd_run): Remove bogus return which isn't + necessary with gcc 3.2+. + (nscd_init): Don't use error() to print message, use dbg_log. -2002-01-17 H.J. Lu <hjl@gnu.org> + * iconv/gconv_simple.c (STORE_REST): Explicitly store the total + expected size into state. + (UNPACK_BYTES): Do the reverse. + * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element. + * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug. + Reported by Al Viro <aviro@redhat.com>. - * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove - `const' from `got'. + * stdio-common/Makefile (tests): Add bug14. + * stdio-common/bug14.c: New file. -2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com> + * stdio-common/vfscanf.c: When recognizing multibyte characters in + string reset the byte counter after mbrtowc reported it is not a + partial character. Reported by Al Viro <aviro@redhat.com>. - * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit - instructions for pointer operations. - * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise. +2003-01-15 Steven Munroe <sjmunroe@us.ibm.com> -2002-01-17 Andreas Jaeger <aj@suse.de> + * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include + sysdep-cancel.h, not sysdep.h. - * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has - __uint128_t build-in. +2003-01-15 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and - PowerPC, sync with 2.2 branch. + * nscd/connections.c (nscd_run): Protect accept call with + TEMP_FAILURE_RETRY. -2002-01-16 Ulrich Drepper <drepper@redhat.com> +2003-01-15 Andreas Schwab <schwab@suse.de> - * posix/getconf.c: Update copyright year. - * nss/getent.c: Likewise. - * nscd/nscd_nischeck.c: Likewise. - * iconv/iconvconfig.c: Likewise. - * iconv/iconv_prog.c: Likewise. - * elf/ldconfig.c: Likewise. - * catgets/gencat.c: Likewise. - * csu/version.c: Likewise. - * elf/ldd.bash.in: Likewise. - * elf/sprof.c (print_version): Likewise. - * locale/programs/locale.c: Likewise. - * locale/programs/localedef.c: Likewise. - * nscd/nscd.c (print_version): Likewise. - * debug/xtrace.sh: Likewise. - * malloc/memusage.sh: Likewise. - * malloc/mtrace.pl: Likewise. + * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d. + (common-generated): Add s-proto-bp.d. + * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies + of bp thunks. + * sysdeps/unix/s-proto-bp.S: New file. + * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here. + Use <io/sys/sendfile.h> instead of <sys/sendfile.h>. + * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file. + +2003-01-15 Roland McGrath <roland@redhat.com> + + * Makerules: Use -include for tls.make, suppresses warning. + Move gen-as-const-headers rules up so before-compile is set in time. + (sed-remove-dotdot): Fix to work right for subdirs or top dir. -2002-01-16 Andreas Schwab <schwab@suse.de> +2003-01-15 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to - reliably remove "-ia64" from rtld name. + * nscd/nscd.c (main): Make code to close all file descriptors + faster and more robust. -2002-01-16 Ulrich Drepper <drepper@redhat.com> + * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the + request with one writev call. Protect all read calls with + TEMP_FAILURE_RETRY. + * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise. + * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise. - * iconvdata/gb18030.c: Bug fixes and support for more characters. - Patch by Yu Shao <yshao@redhat.com>. + * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer. + Protect writev calls with TEMP_FAILURE_RETRY. + * nscd/grpcache.c: Likewise. + * nscd/pwdcache.c: Likewise. -2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com> + * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as + IPv6 address in debug output. - * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove. - * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file. - * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file. +2003-01-14 Roland McGrath <roland@redhat.com> -2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com> + * Makerules (check-abi-%): Use two rules for $(common-objpfx) and + $(objpfx) directories, and get rid of vpath directives. The previous + arrangement resulted in files being written to the source directories + when run in a clean build. Find all .abilist files in $(..)abilist/. + (update-abi-%): Likewise. + (generated): Don't add .symlist files, they'll be intermediates. - * sysdeps/s390/fpu/libm-test-ulps: Update. + * sysdeps/generic/init-first.c: Add a comment. -2002-01-11 Ulrich Drepper <drepper@redhat.com> + * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link. - * elf/elf.h: Update x86 relocations. + * scripts/gen-as-const.awk: Grok lone "--" as a separator between + #includes and expressions. -2002-01-10 Ulrich Drepper <drepper@redhat.com> + * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged + config list when it already contains cpu-.*-os.* without / part. - * locale/programs/charmap.c (new_width): Check whether byte - sequences for both ends of range have the same length. + * Makerules (sed-remove-dotdot): New variable. + ($(common-objpfx)%.make): Use it. Depend on $(before-compile). + ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. + (check-abi-config): New variable, append /tls or /notls to the tuple. + (check-abi-%): Use that for -v config value. + Find .abilist files in abilist/libfoo.abilist, not in subdir. + * Rules: Move bits/stdio_lim.h generation rules to Makerules. -2002-01-09 Jakub Jelinek <jakub@redhat.com> +2003-01-14 Ulrich Drepper <drepper@redhat.com> - * elf/elf.h (SHN_UNDEF): Remove duplicate definition. + * manual/install.texi: Correct description of header preparation for + Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941]. -2002-01-09 Jakub Jelinek <jakub@redhat.com> +2003-01-14 Guido Guenther <agx@sigxcpu.org> - * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line - string literals. - (__full_ieee754_sqrt): Add __attribute_used__. + * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL, + INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO, + INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define. -2002-01-10 Ulrich Drepper <drepper@redhat.com> +2003-01-14 Steven Munroe <sjmunroe@us.ibm.com> - * sysdeps/generic/group_member.c (__group_member): Also check - groups[0] [PR libc/2781]. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h + (INTERNAL_SYSCALL): Make use of ERR parameter. + (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO, + INTERNAL_SYSCALL_ERROR_P): Adjust accordingly. + (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file. -2002-01-08 Ulrich Drepper <drepper@redhat.com> +2003-01-14 Ulrich Drepper <drepper@redhat.com> - * Makefile (distribute): Add scripts/cpp. - * elf/Makefile (distribute): Add reldep6mod[01234].c, - unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h, - unwind-dw2-fde.h, and dwarf2.h. - * sysdeps/unix/bsd/bsd4.4/Dist: New file. - * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c. - * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed. - * sysdeps/unix/sysv/linux/s390/Dist: Likewise. + * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol + == IPPROTO_TCP. + Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943]. -2002-01-07 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags): + Fix entry for bit 31. - * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use - volatile on type of ARGC so the compiler doesn't get clever. + * iconvdata/Makefile: Add rules to build IBM866NAV. + * iconvdata/ibm866nav.c: New file. + * iconvdata/tst-tables.sh: Add IBM866NAV. + * iconvdata/gconv-modules: Add entries for IBM866NAV. -2002-01-07 Andreas Jaeger <aj@suse.de> +2003-01-13 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/bits/byteswap.h: Prevent double inclusion. - * sysdeps/i386/bits/byteswap.h: Likewise. - * sysdeps/ia64/bits/byteswap.h: Likewise. - * sysdeps/m68k/bits/byteswap.h: Likewise. - * sysdeps/s390/s390-32/bits/byteswap.h: Likewise. - * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757]. + * string/tester.c (test_strcpy): Use the previously #if 0'ed code + to test void* parameters. -2002-01-02 Bruno Haible <bruno@clisp.org> + * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast + source pointer before dereferencing. + (__STRING_SMALLL_GET32): Likewise. + (__memset_gc): Add missing parenthesis around macro arguments. + Patch by Denis Zaitsev <zzz@cd-club.ru>. - * intl/plural.y: Fix %expect count. - -2002-01-03 Jakub Jelinek <jakub@redhat.com> - - * elf/Makefile (routines, shared-only-routines): Add - unwind-dw2-fde-glibc instead of unwind-dw2-fde. - * elf/elf.h (PT_GNU_EH_FRAME): Define. - * sysdeps/generic/unwind-dw2-fde-glibc.c: New file. - * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases): - Optimize if .eh_frame section contains no FDEs. - (__register_frame, __deregister_frame_info_bases, - __deregister_frame): Likewise. - * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix - DW_CFA_restore handling. - -2002-01-07 Stephen L Moshier <moshier@mediaone.net> - - * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header. - - * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test - for x < 0.25 and restore original range reduction method. - (__ieee754_lgammal_r): Make sure signgam is set before returning. - -2002-01-07 Ulrich Drepper <drepper@redhat.com> - - * libio/fileops.c (_IO_file_underflow_mmap): New function. - (_IO_file_close_mmap): New function. - (_IO_file_jumps_mmap): New variable. - * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before - trying to convert rest of byte buffer. - (_IO_wfile_underflow_mmap): New function. - (_IO_wfile_jumps_mmap): New variable. - * libio/iofopen.c (__fopen_maybe_mmap): New function. - (__fopen_internal): New function. Split out from _IO_new_fopen. - (_IO_new_fopen): Call __fopen_internal. - * libio/iofopen64.c: Just call __fopen_internal. - * libio/iofdopen.c: Call __fopen_maybe_mmap before returning - successfully. - * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap. - * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap, - _IO_file_close_mmap. - - * sysdeps/gnu/_G_config.h: Define _G_MMAP64. - * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise. - - * stdio-common/Makefile (tests): Add tst-rndseek. - * stdio-common/tst-rndseek.c: New file. - -2002-01-05 Roland McGrath <roland@frob.com> - - * config.h.in (HAVE_MIG_RETCODE): New #undef. - * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro - swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE. - * sysdeps/mach/hurd/configure: Regenerated. + * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler + that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>. -2002-01-03 Ulrich Drepper <drepper@redhat.com> +2003-01-14 Jakub Jelinek <jakub@redhat.com> - * elf/elf.h: Add more TLS definitions. + * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before + defining. -2002-01-02 Ulrich Drepper <drepper@redhat.com> +2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com> - * include/features.h (__GLIBC_MINOR__): Bump to 3. + * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals. + * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it + here. + * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise. -2002-01-02 Roland McGrath <roland@frob.com> +2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com> - * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset, - __sigisemptyset. Don't use MASK uninitialized. + * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions + from here... + (PSEUDO): ... to here. + * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction + from here... + (PSEUDO): ... to here. - * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset. - * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset. - * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember, - __sigdelset, __sigaddset, __sigorset. +2003-01-13 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t. - * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t. + * locale/programs/charmap-dir.c (charmap_readdir): Use struct + dirent64 instead of struct dirent for dirent. Call readdir64 + instead of readdir. - * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when - _hurd_ports is null. + * locale/programs/locfile.c (siblings_uncached): Use struct + dirent64 instead of struct dirent for other_dentry. Call + readdir64 instead of readdir. - * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup - for old CMU and new OSF Mach interface flavors. - * hurd/hurdfault.c (_hurdsig_fault_init): Likewise. - * sysdeps/mach/hurd/fork.c (__fork): Likewise. + * elf/ldconfig.c (direntry): Change type to struct dirent64. + (search_dir): Use readdir64 instead of readdir. + Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>. - * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset. +2003-01-12 Roland McGrath <roland@redhat.com> - * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]: - Pass extra arguments to task_create for OSF variant. - * sysdeps/mach/hurd/fork.c (__fork): Likewise. + * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul, + not strtol. The former is usable in ld.so, the latter not. - * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code - conditional on [HAVE_AUX_VECTOR]. + * include/fcntl.h: Declare __libc_creat. - * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use - mach_msg_timeout_t as type of final argument. + * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs, + libhurduser-link.so-no-z-defs): New variables. - * hurd/privports.c (__get_privileged_ports): - Change host_priv_t to mach_port_t in argument type. - * hurd/hurd.h (get_privileged_ports, __get_privileged_ports): - Update decls. + * malloc/malloc.c: Revert last change. + * malloc/malloc.h (_int_*): Move these decls to ... + * include/malloc.h: ... here. Add attribute_hidden. + (_int_valloc): Declare it too. - * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from - multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H]. - * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise. - * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise. - * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise. - * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise. +2003-01-12 Ulrich Drepper <drepper@redhat.com> -2002-01-01 Roland McGrath <roland@frob.com> + * elf/dl-close.c (_dl_close): Fix typo, must be == not = in + search for removed searchlist. Reported by Roland McGrath. - * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching. + * io/ftwtest-sh: Add test for case of symlink to nonexisting file + given as start file. -2002-01-01 Ulrich Drepper <drepper@redhat.com> + * io/ftw.c (ftw_startup): Use correct name in check for symlink + without existing target. Patch by Jim Meyering. - * include/stdlib.h: Define inlines for the _l variants of the strto* - functions. + * Makerules (build-shlib-helper): Don't use -z defs linker option + if no-z-defs is defined either. -2002-01-01 Roland McGrath <roland@frob.com> +2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com> - * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash. + * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused + file. - * mach/Machrules (MIG): Set CPP as well as CC. +2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com> -2001-12-31 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork. + * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C - locale to parse /proc/loadavg [PR libc/2760]. +2003-01-12 Ulrich Drepper <drepper@redhat.com> -2001-12-31 Jakub Jelinek <jakub@redhat.com> + * io/ftwtest-sh: Add test case for relative path with /. at the end. - * elf/dl-conflict.c: Include sys/param.h. - (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr). - * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid - warning. - (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string - literals to avoid warnings. +2003-01-12 Jim Meyering <jim@meyering.net> -2001-12-31 Andreas Jaeger <aj@suse.de> + * io/ftw.c (ftw_startup): When trying to stat the starting directory, + use the basename if we've already chdir'd into its parent directory. - * configure.in: Don't check for gsed since we do not use it anywhere. +2003-01-12 Ulrich Drepper <drepper@redhat.com> -2001-12-25 Dmitry V. Levin <ldv@alt-linux.org> + * io/ftw.c (process_entry): Use relative path when using chdir() + to change directory after call to ftw_dir. + * io/ftwtest-sh: Add test for relative path argument to nftw() + with FTW_CHDIR option. - * io/fts.c: Update from BSD to fix memory leaks. +2003-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> -2001-12-25 Dmitry V. Levin <ldv@alt-linux.org> + * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL): + Define for powerpc. + * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment + into account. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h + (INTERNAL_SYSCALL): Make use of ERR parameter. + (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO, + INTERNAL_SYSCALL_ERROR_P): Adjust accordingly. + (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file. - * crypt/md5-crypt.c: Realloc error handling memory leak fix. - * elf/chroot_canon.c: Likewise. - * elf/dl-object.c: Likewise. - * iconv/iconv_charmap.c: Likewise. - * iconv/iconv_prog.c: Likewise. - * libio/iogetdelim.c: Likewise. - * locale/lc-time.c: Likewise. - * stdlib/canonicalize.c: Likewise. - * sunrpc/svc.c: Likewise. - * sysdeps/generic/glob.c: Likewise. +2003-01-09 Richard Henderson <rth@redhat.com> -2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com> + * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute + DTPREL64 and TPREL64 without loadbase applied. - * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ... - * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here, - remove high order bit from the program counter. - * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here. +2003-01-09 Richard Henderson <rth@redhat.com> -2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com> + * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno + for NOT_IN_libc. - * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove - unnecessary code and add missing reloc types. - * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty - case for reloc type R_390_NONE. + * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits... + * sysdeps/unix/alpha/sysdep.h: ... here. + (PSEUDO_LOADGP): Remove. + (PSEUDO_PROLOGUE): Load GP in non-pic case. + (SYSCALL_ERROR_LABEL): New. + (PSEUDO): Use it in error branch. + (PSEUDO_END): Add $syscall_error label. -2001-12-28 Andreas Jaeger <aj@suse.de> +2003-01-12 Andreas Jaeger <aj@suse.de> - * io/bug-ftw3.c: Include string.h for prototypes. + * math/bits/mathcalls.h: Round is a const function. - * crypt/md5test.c (main): Remove unused variable. +2003-01-11 Jim Meyering <jim@meyering.net> - * dlfcn/modstatic.c: Add prototype to avoid warning. + * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>. + [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>. + Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC. + [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define. + [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define. + [!_LIBC] (internal_function, dirent64, MAX): Define. + (__set_errno): Define if not already defined. + (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on + the basename, not the entire file name. + (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on + the basename, not the entire file name. -2001-12-26 Roland McGrath <roland@frob.com> +2003-01-12 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately, - check only (SS->pending & MASK) for the signal to return. - From Jeroen Dekkers <jeroen@dekkers.cx>. + * string/tester.c (test_strcpy): Disable last added strcpy until + it is fixed. -2001-12-22 Roland McGrath <roland@frob.com> +2003-01-11 Philip Blundell <philb@gnu.org> - * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]: - Use preprocessor #if conditionals instead of `if' to avoid - warnings about divide by zero in dead code. + * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support. - * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set, - _hurd_port_init, and __hurd_self_sigstate. +2003-01-11 Andreas Schwab <schwab@suse.de> - * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy. + * Makerules: Add vpath for %.dynsym and %.so so that the + implicit rule chaining for check-abi works. -2001-12-21 Andreas Jaeger <aj@suse.de> +2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp> - * elf/dblloadmod1.c: Add prototype to avoid warning. - * elf/dblloadmod2.c: Likewise. - * elf/dblloadmod3.c: Likewise. - * elf/reldepmod5.c: Likewise. - * elf/reldepmod6.c: Likewise. + * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER): + Add non-PIC case. - * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute - for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not - used on all architectures. +2003-01-11 Jakub Jelinek <jakub@redhat.com> - * sunrpc/svc_tcp.c: Add noreturn attribute for - svctcp_rendezvous_abort. - * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort. + * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define. + [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if + gp is used early. + [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS. + * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so): + Ensure libc.so in DT_NEEDED. + * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move + CHECK_STATIC_TLS before l_tls_offset use. + * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela): + Likewise. + * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise. + * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]: + Allocate TLS_PRE_TCB_SIZE bytes below result. + (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing. + * sysdeps/generic/libc-tls.c (__libc_setup_tls): If + TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS + segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE + bytes below result and add tcb_offset to memsz. + * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype. + * sysdeps/ia64/dl-machine.h: Include tls.h. + (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs + too. + (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too. + Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations. + * sysdeps/ia64/libc-tls.c: New file. + +2003-01-10 Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit. + * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX): + Fix type. Move definition out of #if. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation + support. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove + ftruncate64, pread64, pwrite64, truncate64 entries. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h + (INLINE_SYSCALL): New version that supports function call like + syscalls. Add __builtin_expect. + (LOADARGS_n): Add argument size safety checks. + (INTERNAL_SYSCALL): New Macro. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file. + * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid + redefinition of elf_fpreg_t and elf_fpregset_t. - * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment - to avoid warning. +2003-01-12 Ulrich Drepper <drepper@redhat.com> -2001-12-19 Jakub Jelinek <jakub@redhat.com> + * elf/dl-close.c (_dl_close): Add several asserts. Correct and + simplify test for unloading. If loader of a DSO is unloaded do not + use its scope anymore. Fall back to own scope and adjust opencounts. + Fix several comments. + * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for + the l_searchlist, not only for l_initfini. - * manual/llio.texi (aio_fsync): Fix a typo. - Patch by Tammy Fox <tfox@redhat.com>. + * elf/dl-lookup.c (add_dependencies): Avoid creating relocation + dependencies if objects cannot be removed. Remove object with the + definition as not unloadable if necessary. -2001-12-18 Jakub Jelinek <jakub@redhat.com> + * elf/reldep6.c: Create relocation dependency before closing the first + module. - * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract - stack bias from child stack pointer before passing it to clone syscall. +2003-01-10 Guido Günther <agx@sigxcpu.org> -2001-12-18 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/mips/fork.S: Add PSEUDO_END. + * sysdeps/unix/mips/brk.S: Likewise. + * sysdeps/unix/mips/pipe.S: Likewise. - * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for - _SC_TZNAME_MAX. - * sysdeps/generic/sysconf.c (__sysconf): Likewise. - Reported by Thorsten Kukuk <kukuk@suse.de>. +2003-01-10 Andreas Schwab <schwab@suse.de> - * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and - add some casts. + * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file. - * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static. + * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which + are known to have the vfork syscall. -2001-12-18 Thorsten Kukuk <kukuk@suse.de> + * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it. - * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard - conforming: return EBADF if file descriptor is invalid and EINVAL - if file descriptor is no valid tty. - * login/tst-grantpt.c: New file. - * login/Makefile (tests): Add tst-grantpt. + * sysdeps/unix/sysv/linux/kernel-features.h + (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL) + (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64) + (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12. -2001-12-17 Ulrich Drepper <drepper@redhat.com> +2003-01-09 Jakub Jelinek <jakub@redhat.com> - * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir - different than implemented in last patch. - * io/bug-ftw3.c: Adjust test for changed handling of - inaccessibility of toplevel dir. + * elf/Makefile: Add rules to build and run reldep9 test. + * elf/reldep9.c: New file. + * elf/reldep9mod1.c: New file. + * elf/reldep9mod2.c: New file. + * elf/reldep9mod3.c: New file. -2001-12-16 Roland McGrath <roland@frob.com> +2003-01-09 Jakub Jelinek <jakub@redhat.com> - * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal. - * grp/initgroups.c (internal_getgrouplist): Likewise. + * elf/Makefile: Add rules to build and run nodelete2 test. + * elf/nodelete2.c: New file. + * elf/nodel2mod1.c: New file. + * elf/nodel2mod2.c: New file. + * elf/nodel2mod3.c: New file. - * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after - `default:' to silence new GCC warning. - Rewrite cast of lvalue to silence new GCC warning. +2003-01-09 Jakub Jelinek <jakub@redhat.com> - * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm. + * posix/test-vfork.c (noop): Add __attribute_noinline__. + * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined. + * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before + defining it. + * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise. + * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise. + * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise. + * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise. + * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise. - * sysdeps/mach/hurd/spawni.c: New file, by me with a - couple fixes by Neal H Walfield <neal@cs.uml.edu>. +2003-01-09 Andreas Schwab <schwab@suse.de> -2001-12-14 Ulrich Drepper <drepper@redhat.com> + * sysdeps/m68k/fpu/libm-test-ulps: Regenerated. - * sysdeps/generic/strstr.c (strstr): Update. New optimized version. - Patch by Stephen R. van den Berg. +2003-01-08 Ulrich Drepper <drepper@redhat.com> - * crypt/md5.h: Define md5_uintptr. + * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL, + INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err + argument. + (INTERNAL_SYSCALL_DECL): Define. -2001-12-13 Ulrich Drepper <drepper@redhat.com> +2003-01-06 Jakub Jelinek <jakub@redhat.com> - * libio/tst_swprintf.c (main): Add test for string argument with - zero precision. - * stdio-common/Makefile (tests): Add tst-sprintf. - * stdio-common/tst-sprintf.c: New file. + * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL, + INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err + argument. + (INTERNAL_SYSCALL_DECL): Define. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise. + (INLINE_SYSCALL): Adjust. + * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise. + * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL, + add err argument to INTERNAL_SYSCALL* macros. + * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise. + * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise. + * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise. + * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize): + Likewise. + * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise. + * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use + INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno. + +2003-01-07 Ulrich Drepper <drepper@redhat.com> + + Unify symbols in user namespace exported by libc.so and libc.a. + * argp/argp-fmtstream.c: Don't define argp_make_fmtstream, + argp_fmtstream_free, and argp_fmtstream_printf. + * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc, + argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin, + argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and + argp_fmtstream_point. + * gmon/gmon.c: Don't define write_profiling. + * libio/genops.c: Don't define _cleanup. + + * intl/explodename.c (_nl_find_language.c): Mark as static. + * intl/loadinfo.h: Remove _nl_find_language prototype. + + * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static. + * libio/libioP.h: Remove declaration. + + * libio/iopopen.c (_IO_proc_jumps): Mark as static. + * libio/libioP.h: Remove declaration. + + * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC. + * sysdeps/generic/framestate.c: Define STATIC before including + unwind-dw2.c. + + * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l. + +2003-01-06 Philip Blundell <philb@gnu.org> + + * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little. + [__LIBC_REENTRANT]: Unify PIC and non-PIC cases. + + * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type + directive. + (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error. + (SYSCALL_ERROR): New. + (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error + handling code. + (INTERNAL_SYSCALL): Define. + (INLINE_SYSCALL): Use it. + (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define. + * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use + SYSCALL_ERROR in place of __syscall_error. + +2003-01-07 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16, + __bswap_32, __bswap_64): Put x into temporary variable + to avoid warnings. + [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static + (inline) functions. + * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16, + __bswap_32, __bswap_64): Put x into temporary variable + to avoid warnings. + [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static + (inline) functions. + * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32): + Likewise. -2001-12-13 Andreas Schwab <schwab@suse.de> +2003-01-07 Jakub Jelinek <jakub@redhat.com> - * stdio-common/vfprintf.c (process_string_arg): Correctly handle - zero precision with wide character string format. + * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak + alias. -2001-12-13 Thorsten Kukuk <kukuk@suse.de> +2003-01-07 Jakub Jelinek <jakub@redhat.com> - * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID, - but have a user supplied buffer, return the empty buffer, not NULL. + * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer. + * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0. -2001-12-13 Ulrich Drepper <drepper@redhat.com> +2003-01-07 Ulrich Drepper <drepper@redhat.com> - * crypt/md5.c (md5_process_bytes): Correct handling of alignment. - Patch by Eric Sharkey <sharkey@netrics.com>. + * math/libm-test.inc (significand_test): New function. + (main): Call it. - * crypt/md5test.c (main): Add test for multiple calls to - __md5_process_bytes to itererate over input string. +2003-01-06 Roland McGrath <roland@redhat.com> -2001-12-12 Ulrich Drepper <drepper@redhat.com> + * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro + arguments. + (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise. + (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise. + (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise. - * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code - from __nis_findfastest. Take timeout value from parameter. - (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly. - * nis/nis_intern.h: Define parameters controlling __nis_findfastest - [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>. + * string/tester.c (test_strcpy): Add test with `void *' arguments. -2001-12-12 Andreas Jaeger <aj@suse.de> +2003-01-06 Ulrich Drepper <drepper@redhat.com> - * configure.in: Use -nostartfiles -nostdlib for linker tests, fix - combreloc test so that it works in this case. + * sysdeps/i386/fpu/s_significandl.c (__significandl): Really + return significand and not the exponent. + Reported by Nelson H. F. Beebe <beebe@math.utah.edu>. - * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch. + * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly + taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl. -2001-12-12 NIIBE Yutaka <gniibe@m17n.org> + * malloc/malloc.c: Mark all _int_* functions as static. - * sysdeps/sh/Makefile: New file. - * sysdeps/sh/_mcount.S: New file. - * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented. - * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready. +2003-01-06 Jakub Jelinek <jakub@redhat.com> -2001-12-11 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS. + * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation + handling. + * sysdeps/unix/sysv/linux/alpha/select.S: Likewise. - * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS - limitation [PR libc/2564]. +2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> -2001-12-11 Jakub Jelinek <jakub@redhat.com> + * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation + support. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove + ftruncate64, truncate64, pread64 and pwrite64 entries. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h + (INLINE_SYSCALL): Add __builtin_expect. + (LOADARGS_n): Add argument size safety checks. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file. + +2003-01-06 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define. + * sysdeps/generic/creat.c: Include sysdep-cancel.h. + (LIBC_CANCEL_HANDLED): Add. + + * sysdeps/unix/sysv/linux/alpha/sysdep.h + (inline_syscall_r0_constraint): Rename to... + (inline_syscall_r0_out_constraint): ... this. Add =. + (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint. + +2003-01-06 Andreas Schwab <schwab@suse.de> + + * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make + sure this is always inlined. + (elf_machine_rela): Likewise. - * elf/Makefile (dl-routines): Add conflict. - (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove. - (ld.so): Add _begin local symbol. - * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM): - Define. - * elf/dl-deps.c (_dl_build_local_scope): New function. - (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes - of all libraries. - * elf/do-rel.h (VALIDX): Define. - (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do - lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations - can be skipped. - * elf/dl-conflict.c: New file. - * elf/dl-lookup.c (_dl_debug_bindings): New function. - (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always - non-NULL. - (_dl_lookup_symbol_skip): Likewise. - (_dl_lookup_versioned_symbol): Likewise. - (_dl_lookup_versioned_symbol_skip): Likewise. - * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined, - define to ElfW(Rel). - * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic - tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI - ranges. - Don't adjust address dynamic tags if l_addr is 0. - * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables. - (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked. - (VALIDX, ADDRIDX): Define. - (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end. - (dl_main): Print library list for LD_TRACE_PRELINKING. - If prelinking information can be used, skip relocating libraries and - call _dl_resolve_conflicts instead. - (process_envvars): Handle LD_TRACE_PRELINKING envvar. - * elf/dl-load.c (_dl_map_object): Don't create fake libs - if LD_TRACE_PRELINKING. - * include/link.h (struct link_map) [l_info]: Add DT_VALNUM - + DT_ADDRNUM. - * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration. - (DL_DEBUG_PRELINK): Define. - (_dl_resolve_conflicts): Add prototype. - - * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize - .plt for prelinked libraries where prelinking info cannot be used. - (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict - section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map. - * sysdeps/arm/bits/link.h: New file. - * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original - content of .got[1]. - (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP. - (ELF_MACHINE_PLT_REL): Define. - (elf_machine_rela, elf_machine_rela_relative): New functions. - (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead - of adjusting it if prelinked and prelinking cannot be used. - * sysdeps/i386/bits/link.h: New file. - * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original - content of .got[1]. - (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP. - (ELF_MACHINE_PLT_REL): Define. - (elf_machine_rela, elf_machine_rela_relative): New functions. - (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead - of adjusting it if prelinked and prelinking cannot be used. - * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating - conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP - to find out map for R_PPC_JMP_SLOT relocs. - * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define. - (OPCODE_BA): Define. - (elf_machine_runtime_setup): Reinitialize .plt for prelinked - libraries where prelinking info cannot be used. - (sparc_fixup_plt): Renamed from elf_machine_fixup_plt. - (elf_machine_fixup_plt): Call sparc_fixup_plt. - (elf_machine_rela): Set value to 0 if relocating conflicts. - Call sparc_fixup_plt for R_SPARC_JMP_SLOT. - * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define. - (sparc64_fixup_plt): Fix a typo. - (elf_machine_rela): Set value to 0 if relocating conflicts. - Handle R_SPARC_JMP_SLOT relocs when relocating conflicts. - (elf_machine_runtime_setup): Reinitialize .plt for prelinked - libraries where prelinking info cannot be used. - * sysdeps/sh/bits/link.h: New file. - * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original - content of .got[1]. - (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead - of adjusting it if prelinked and prelinking cannot be used. - * sysdeps/s390/s390-32/bits/link.h: New file. - * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup): - Save original content of .got[1]. - (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead - of adjusting it if prelinked and prelinking cannot be used. - * sysdeps/s390/s390-64/bits/link.h: New file. - * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup): - Save original content of .got[1]. - (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead - of adjusting it if prelinked and prelinking cannot be used. - * sysdeps/x86_64/bits/link.h: New file. - * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): - Save original content of .got[1]. - (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead - of adjusting it if prelinked and prelinking cannot be used. - -2001-12-11 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof - where appropriate instead of numbers. Little optimizations. - -2001-12-10 Roland McGrath <roland@frob.com> - - * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never - set it. - - * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default - set to GLIBC_2.2.5, not GLIBC_2.2.4. - - * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): - Fix conditionals so this is set by default for stdio and not for libio. - * sysdeps/mach/hurd/configure: Regenerated. + * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit. -2001-12-10 Thorsten Kukuk <kukuk@suse.de> +2003-01-04 Roland McGrath <roland@redhat.com> - * io/ftw.c (ftw_startup): Check, if the path is search and readable. + * Makeconfig (+mkdep): Add -MP flag. + Suggested by Art Haas <ahaas@airmail.net>. -2001-12-10 Ulrich Drepper <drepper@redhat.com> +2003-01-05 Andreas Schwab <schwab@suse.de> - * io/Makefile (tests): Add bug-ftw3. - * io/bug-ftw3.c: New file. + * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC. + +2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp> + + * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use + SYSCALL_ERROR_HANDLER. + * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise. + * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise. + Add support for cancellation handling. + * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use + SYSCALL_ERROR_HANDLER. + * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise. + * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise. + Add support for cancellation handling. + (SYSCALL_ERROR_HANDLER): Define PIC variants. + +2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> + + * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark + __syscall_pread64 and __syscall_pwrite64 cancelable. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h + (INTERNAL_SYSCALL): New macro. + (LOADARGS_0, LOADARGS_1): Fix. + +2003-01-05 Ulrich Drepper <drepper@redhat.com> + + * Makerules (build-shlip-helper): Unless told otherwise, add + -Wl,-z,defs to linker command line. + * rt/Makefile (librt.so): Link with ld.so. + * dlfcn/Makefile (libdl.so): Likewise. + +2003-01-05 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for + cancellation handling. + * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise. + +2003-01-04 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct + order of parameters passed to kill. + +2003-01-04 Andreas Schwab <schwab@suse.de> + + * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields. + +2003-01-03 Paul Eggert <eggert@twinsun.com> + + * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to + (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5 + when compiling Bison 1.875's `bitset bset = obstack_alloc + (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe. + +2003-01-04 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/posix/system.c (do_system): Minor optimizations. Remove + unnecessary code. + Correct reference counter in case SIGQUIT handler installation failed. + +2003-01-03 Ulrich Drepper <drepper@redhat.com> + + * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern): + Define using _Pragma(weak ...). + +2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com> + + * resolv/res_libc.c: Provide declaration for __res_init_weak and + reorder declarations. + +2003-01-03 Art Haas <ahaas@airmail.net> + + * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension + initializer syntax to C99. + * localedata/tests-mbwc/dat_iswalpha.c: Likewise. + * localedata/tests-mbwc/dat_iswcntrl.c: Likewise. + * localedata/tests-mbwc/dat_iswctype.c: Likewise. + * localedata/tests-mbwc/dat_iswdigit.c: Likewise. + * localedata/tests-mbwc/dat_iswgraph.c: Likewise. + * localedata/tests-mbwc/dat_iswlower.c: Likewise. + * localedata/tests-mbwc/dat_iswprint.c: Likewise. + * localedata/tests-mbwc/dat_iswpunct.c: Likewise. + * localedata/tests-mbwc/dat_iswspace.c: Likewise. + * localedata/tests-mbwc/dat_iswupper.c: Likewise. + * localedata/tests-mbwc/dat_iswxdigit.c: Likewise. + * localedata/tests-mbwc/dat_mblen.c: Likewise. + * localedata/tests-mbwc/dat_mbrlen.c: Likewise. + * localedata/tests-mbwc/dat_mbrtowc.c: Likewise. + * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise. + * localedata/tests-mbwc/dat_mbstowcs.c: Likewise. + * localedata/tests-mbwc/dat_mbtowc.c: Likewise. + * localedata/tests-mbwc/dat_strcoll.c: Likewise. + * localedata/tests-mbwc/dat_strfmon.c: Likewise. + * localedata/tests-mbwc/dat_strxfrm.c: Likewise. + * localedata/tests-mbwc/dat_swscanf.c: Likewise. + * localedata/tests-mbwc/dat_towctrans.c: Likewise. + * localedata/tests-mbwc/dat_towlower.c: Likewise. + * localedata/tests-mbwc/dat_towupper.c: Likewise. + * localedata/tests-mbwc/dat_wcrtomb.c: Likewise. + * localedata/tests-mbwc/dat_wcscat.c: Likewise. + * localedata/tests-mbwc/dat_wcschr.c: Likewise. + * localedata/tests-mbwc/dat_wcscmp.c: Likewise. + * localedata/tests-mbwc/dat_wcscoll.c: Likewise. + * localedata/tests-mbwc/dat_wcscpy.c: Likewise. + * localedata/tests-mbwc/dat_wcscspn.c: Likewise. + * localedata/tests-mbwc/dat_wcslen.c: Likewise. + * localedata/tests-mbwc/dat_wcsncat.c: Likewise. + * localedata/tests-mbwc/dat_wcsncmp.c: Likewise. + * localedata/tests-mbwc/dat_wcsncpy.c: Likewise. + * localedata/tests-mbwc/dat_wcspbrk.c: Likewise. + * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise. + * localedata/tests-mbwc/dat_wcsspn.c: Likewise. + * localedata/tests-mbwc/dat_wcsstr.c: Likewise. + * localedata/tests-mbwc/dat_wcstod.c: Likewise. + * localedata/tests-mbwc/dat_wcstok.c: Likewise. + * localedata/tests-mbwc/dat_wcstombs.c: Likewise. + * localedata/tests-mbwc/dat_wcswidth.c: Likewise. + * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise. + * localedata/tests-mbwc/dat_wctob.c: Likewise. + * localedata/tests-mbwc/dat_wctomb.c: Likewise. + * localedata/tests-mbwc/dat_wctrans.c: Likewise. + * localedata/tests-mbwc/dat_wctype.c: Likewise. + * localedata/tests-mbwc/dat_wcwidth.c: Likewise. + +2003-01-03 Richard Henderson <rth@redhat.com> + + * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New. + (inline_syscall_r0_constraint): New. + (inline_syscall[0-6]): Use them. + +2003-01-03 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls): + Add rtld_hidden_proto. + * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def. + (_dl_allocate_tls): Likewise. Remove INTDEF. + +2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp> + + * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu + Morita <toshiyasu.morita@hsa.hitachi.com>. + * sysdeps/sh/memcpy.S: Likewise. + +2003-01-02 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove + any, but unify the test. + +2003-01-02 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction, + sigaction): Protect weak_alias and libc_hidden_weak with + #ifndef LIBC_SIGACTION. + * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction, + sigaction): Likewise. + * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction, + sigaction): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction, + sigaction): Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction, + sigaction): Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction, + sigaction): Likewise. + * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction, + sigaction): Likewise. + * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction, + sigaction): Likewise. Remove SIGCANCEL handling here. + * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction): + Likewise. - * sysdeps/generic/glob.c (glob): Return only pattern if nothing - matches and GLOB_NOCHECK is set. - * posix/globtest.sh: Correct expected result for NOCHECK test. +2003-01-02 Art Haas <ahaas@airmail.net> - * po/ca.po: Update from translation team. + * login/tst-utmp.c: Convert GCC extension initializer syntax to C99. -2001-12-09 Ulrich Drepper <drepper@redhat.com> +2003-01-02 Ulrich Drepper <drepper@redhat.com> - Implement transliteration of characters in strings of the locale - definitions. - * locale/programs/linereader.c: Adjust for additional parameter to - lr_token. - (get_string): If character <Uxxxx> is not found try to transliterate - it. - * locale/programs/ld-ctype.c: Adjust for additional parameter to - lr_token. Add const to charmap parameter of all functions. - (find_translit, find_translit2): New functions. - * locale/programs/charmap.c: Adjust for additional parameter to - lr_token. - * locale/programs/repertoire.c: Likewise. - * locale/programs/linereader.h: Likewise. - * locale/programs/ld-address.c: Likewise. Add const to charmap - parameter of all functions. - * locale/programs/ld-collate.c: Likewise. - * locale/programs/ld-identification.c: Likewise. - * locale/programs/ld-measurement.c: Likewise. - * locale/programs/ld-messages.c: Likewise. - * locale/programs/ld-monetary.c: Likewise. - * locale/programs/ld-name.c: Likewise. - * locale/programs/ld-numeric.c: Likewise. - * locale/programs/ld-paper.c: Likewise. - * locale/programs/ld-paper.c: Likewise. - * locale/programs/ld-telephone.c: Likewise. - * locale/programs/ld-time.c: Likewise. - * locale/programs/locfile.c: Likewise. + * posix/getconf.c: Update copyright year. + * nss/getent.c: Likewise. + * nscd/nscd_nischeck.c: Likewise. + * iconv/iconvconfig.c: Likewise. + * iconv/iconv_prog.c: Likewise. + * elf/ldconfig.c: Likewise. + * catgets/gencat.c: Likewise. + * csu/version.c: Likewise. + * elf/ldd.bash.in: Likewise. + * elf/sprof.c (print_version): Likewise. + * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. - * locale/programs/localedef.h: Likewise. - * locale/programs/locfile.h: Likewise. Add declaration for - find_translit. - * locale/programs/simple-hash.c: Add const to first parameter of - find_entry, iterate_table, and lookup. - * locale/programs/simple-hash.h: Likewise. - * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h> - instead. - * include/locale.h: Define __LC_LAST. - * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION. - -2001-12-07 Geoff Keating <geoffk@redhat.com> - - * sysdeps/powerpc/Dist: Update for recent FP changes. - * sysdeps/powerpc/fpu/Dist: Likewise. - -2001-12-07 Andreas Schwab <schwab@suse.de> - - * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>. - -2001-12-06 Geoff Keating <geoffk@redhat.com> - - * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr - save/restore functions here. - (libm-support): Don't define these functions here. - * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore - functions here. - * sysdeps/powerpc/fe_nomask.c: Move to... - * sysdeps/powerpc/fpu/fe_nomask.c: ... here. - * sysdeps/powerpc/fprrest.S: Move to... - * sysdeps/powerpc/fpu/fprrest.S: ... here. - * sysdeps/powerpc/fprsave.S: Move to... - * sysdeps/powerpc/fpu/fprsave.S: ... here. - -2001-12-06 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/opensock.c: New file. - -2001-12-06 Geoff Keating <geoffk@redhat.com> - - * config.make.in (with-fp): Define from configure. - * configure.in: Substitute with_fp. - * configure: Regenerate. - * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is - specified, and don't change FPU environment. - -2001-12-06 Ulrich Drepper <drepper@redhat.com> - - * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure. - * assert/assert.c: Check result of __asprintf call and don't use - string if it failed. - * assert/assert-perr.c: Likewise. - * inet/rcmd.c: Likewise. - * locale/programs/localedef.c (main): Check result of - construct_output_path and exit if it failed. - (construct_output_path): Check result of asprintf and mkdir calls and - fail if they failed. - * posix/getopt.c: Check result of __asprintf calls and fail if - they failed. - Patch by Dmitry V. Levin <ldv@alt-linux.org>. - -2001-12-05 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance - patch. - * sysdeps/generic/strncase.c: Likewise. - * string/tester.c: Add tests for strcasecmp and strncasecmp. + * nscd/nscd.c (print_version): Likewise. + * debug/xtrace.sh: Likewise. + * malloc/memusage.sh: Likewise. + * malloc/mtrace.pl: Likewise. -2001-12-05 Geoff Keating <geoffk@redhat.com> +2003-01-01 Jakub Jelinek <jakub@redhat.com> - * scripts/cpp: Test the exit status from 'type', not 'awk'. + * io/sys/stat.h: Include time.h with __need_timespec even if + __USE_MISC is defined but __USE_XOPEN is not. - * sysdeps/powerpc/__longjmp.S: Don't restore FP registers. - * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers. - * sysdeps/powerpc/setjmp.S: Don't save FP registers. - * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers. - * sysdeps/powerpc/fclrexcpt.c: Move to... - * sysdeps/powerpc/fpu/fclrexcpt.c: ... here. - * sysdeps/powerpc/fpu_control.h: Move to... - * sysdeps/powerpc/fpu/fpu_control.h: ... here. +2003-01-01 Andreas Jaeger <aj@suse.de> -2001-12-05 Ulrich Drepper <drepper@redhat.com> + * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union + type to avoid strict aliasing problem. + (_nss_dns_gethostbyname2_r): Likewise. + * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise. + (_nss_dns_getnetbyname_r): Likewise. + * resolv/gethnamaddr.c (_gethtent): Likewise. + (gethostbyname2): Likewise. - * iconvdata/ibm1129.h: Remove duplicate mappings. - * iconvdata/ibm937.c: Handle overflow errors. Handle new tables. - * iconvdata/ibm937.h: Reorganize table to safe a lot of space. - Patch by Masahide Washizawa <WASHI@jp.ibm.com>. +2002-12-31 Ulrich Drepper <drepper@redhat.com> - * timezone/zic.c: Fix handling of turnaround times. - Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>. + * string/string-inlines.c: Define __memcpy_g and __strchr_g macros + to avoid using the exported symbols. Define aliases with the + original names separately. -2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com> + * include/time.h: Add libc_hidden_proto for __strftime_l. + * include/wchar.h: Add libc_hidden_proto for __wcsftime_l. + * time/strftime.c: Always use libc_hidden_def if _LIBC. - * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix - overflow problem. + * libio/libioP.h: Add libc_hidden_proto for _IO_file_open. + * libio/fileops.c: Add libc_hidden_def for _IO_file_open. -2001-12-05 Ulrich Drepper <drepper@redhat.com> + * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for + tr_break. - * posix/regex.c: For use outside glibc defined bounded pointer - macros here. Patch by Jim Meyering <jim@meyering.net>. + * csu/Makefile (routines): Add dso_handle. + * csu/dso_handle.c: New file. - * iconvdata/Makefile (modules): Add TCVN5712-1. - * iconvdata/TESTS: Add TCVN5712-1. - * iconvdata/gconv-modules: Likewise. - * iconvdata/tcvn5712-1.c: New file. - * iconvdata/testdata/TCVN-5712: New file. - * iconvdata/testdata/TCVN-5712..UTF8: New file. +2002-12-31 Roland McGrath <roland@redhat.com> -2001-12-04 Ulrich Drepper <drepper@redhat.com> + * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here. + Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS). + (S-CPPFLAGS): Add -DASSEMBLER here instead. + (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS). - * iconvdata/cp1258.c: Optimize conversion from UCS4. +2002-12-31 Ulrich Drepper <drepper@redhat.com> -2001-12-02 Roland McGrath <roland@frob.com> + * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle + is available. - * mach/Makefile, mach/Machrules: Move comments out of \ continuations. +2002-12-31 Andreas Jaeger <aj@suse.de> - * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning. - Reported by Jeff Bailey <jbailey@nisa.net>. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync + with Linux kernel. + * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise. + * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise. - * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl. - Reported by Jeff Bailey <jbailey@nisa.net>. + * sysdeps/unix/sysv/linux/kernel_stat.h + (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New. - * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC). - * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise. - Reported by Jeff Bailey <jbailey@nisa.net>. + * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add + __unused[1-3] since they're needed by some platforms. Handle + _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64. -2001-12-01 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution + for structs stat and stat64. + * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise. + * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise. + * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise. - * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add - missing backslash in test arguments. - * sysdeps/mach/hurd/configure: Regenerated. + * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat. -2001-11-26 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for + nsec resolution changes. + (xstat64_conv): Likewise. + (xstat32_conv): Likewise. - * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null. - Reported by John Tobey <jtobey@john-edwin-tobey.org>. + * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for + struct kernel_stat. -2001-11-30 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for + structs stat and stat64. - * iconvdata/Makefile (modules): Add ARMSCII-8. - * iconvdata/gconv-modules: Add entries for ARMSCII-8. - * iconvdata/armscii-8.c: New file. + * time/time.h (__timespec_defined): Define for __USE_MISC. -2001-11-29 Jakub Jelinek <jakub@redhat.com> +2002-12-31 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces - don't match, fix {{a,b},c} globbing, clean up. - Patch by Flavio Veloso <flaviovs@magnux.com>. - * posix/globtest.sh: Add new tests. + * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin + and __libc_current_sigrtmax. -2001-11-29 Andreas Jaeger <aj@suse.de> +2002-12-31 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl. - * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call. + * include/errno.h (__errno_location): Add prototype. + Use libc_hidden_proto unconditionally. + * include/netdb.h (__h_errno_location): Use libc_hidden_proto + unconditionally. + * include/resolv.h (__res_state): Likewise. + + * hurd/errno-loc.c (__errno_location): Add libc_hidden_def. + * include/sys/socket.h (accept): Add libc_hidden_proto. + * include/errno.h (__errno_location): Likewise. + * include/netdb.h (__h_errno_location): Likewise. + * include/resolv.h (__res_state): Likewise. + * include/unistd.h (__lseek): Likewise. + * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def. + * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise. + * sysdeps/generic/res-state.c (__res_state): Likewise. + * sysdeps/generic/accept.c (accept): Likewise. + * sysdeps/generic/lseek.c (__lseek): Likewise. + * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin, + __libc_current_sigrtmax): Likewise. + * sysdeps/mach/hurd/accept.c (accept): Likewise. + * sysdeps/mach/hurd/lseek.c (__lseek): Likewise. + * sysdeps/unix/sysv/aix/accept.c (accept): Likewise. + * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise. + * sysdeps/unix/sysv/linux/accept.S (accept): Likewise. + * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept. + * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise. + * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise. + * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New + alias to llseek. + (__GI_accept): New alias to accept. + * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek): + New alias to llseek. + (__GI_accept): New alias to accept. + * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept): + Likewise. + * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept): + Likewise. + * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek. + + * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of + strong_alias (name, __GI_name). + * sysdeps/arm/bsd-_setjmp.S : Likewise. + * sysdeps/hppa/bsd-_setjmp.S : Likewise. + * sysdeps/i386/bsd-_setjmp.S : Likewise. + * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise. + * sysdeps/mips/bsd-_setjmp.S : Likewise. + * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise. + * sysdeps/powerpc/powerpc64/setjmp.S : Likewise. + * sysdeps/s390/s390-32/elf/setjmp.S : Likewise. + * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise. + * sysdeps/s390/s390-64/elf/setjmp.S : Likewise. + * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise. + * sysdeps/sh/bsd-_setjmp.S : Likewise. + * sysdeps/sparc/sparc32/setjmp.S : Likewise. + * sysdeps/unix/arm/fork.S : Likewise. + * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise. + * sysdeps/unix/bsd/i386/vfork.S : Likewise. + * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise. + * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise. + * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise. + * sysdeps/unix/bsd/vax/vfork.S : Likewise. + * sysdeps/unix/i386/fork.S : Likewise. + * sysdeps/unix/mips/fork.S : Likewise. + * sysdeps/unix/sparc/fork.S : Likewise. + * sysdeps/unix/sparc/vfork.S : Likewise. + * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise. + * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise. + * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise. + * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise. + * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise. + * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise. + * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise. + * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise. + * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise. + * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise. + * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise. + * sysdeps/unix/fork.S : Likewise. + * sysdeps/vax/bsd-_setjmp.S : Likewise. + * sysdeps/x86_64/bsd-_setjmp.S : Likewise. + + * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple + inclusion. + +2002-12-31 Ulrich Drepper <drepper@redhat.com> + + * include/unistd.h: Add libc_hidden_proto for __fork and __vfork. + * sysdeps/generic/fork.c: Add libc_hidden_def for __fork. + * sysdeps/mach/hurd/fork.c: Likewise. + * sysdeps/unix/sysv/aix/fork.c: Likewise. + * sysdeps/unix/fork.S: Add __GI___fork alias. + * sysdeps/unix/arm/fork.S: Likewise. + * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise. + * sysdeps/unix/i386/fork.S: Likewise. + * sysdeps/unix/mips/fork.S: Likewise. + * sysdeps/unix/sparc/fork.S: Likewise. + * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise. + * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise. + * sysdeps/unix/sysv/linux/syscalls.list: Likewise. + * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork. + * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias. + * sysdeps/unix/bsd/i386/vfork.S: Likewise. + * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise. + * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise. + * sysdeps/unix/bsd/vax/vfork.S: Likewise. + * sysdeps/unix/sparc/vfork.S: Likewise. + * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise. + * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise. + * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise. + * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise. + * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise. + * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise. + * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise. + * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise. + + * include/time.h: Add libc_hidden_proto for __nanosleep. + * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep. + * sysdeps/mach/nanosleep.c: Likewise. + * sysdeps/unix/sysv/aix/nanosleep.c: Likewise. + * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias. + + * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock, + _IO_list_unlock, and _IO_list_resetlock. + * libio/genops.c: Add libc_hidden_def for _IO_list_lock, + _IO_list_unlock, and _IO_list_resetlock. + + * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin, + _IO_iter_end, _IO_iter_next, and _IO_iter_file. + * libio/genops.c: Add libc_hidden_def for _IO_iter_begin, + _IO_iter_end, _IO_iter_next, and _IO_iter_file. + + * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp. + * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp. + * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add + __GI___longjmp alias. + + * include/setjmp.h: Add libc_hidden_proto for _setjmp. + * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias. + * sysdeps/arm/bsd-_setjmp.S: Likewise. + * sysdeps/generic/bsd-_setjmp.c: Likewise. + * sysdeps/hppa/bsd-_setjmp.S: Likewise. + * sysdeps/i386/bsd-_setjmp.S: Likewise. + * sysdeps/m68k/bsd-_setjmp.c: Likewise. + * sysdeps/mips/bsd-_setjmp.S: Likewise. + * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise. + * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise. + * sysdeps/powerpc/powerpc64/setjmp.S: Likewise. + * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise. + * sysdeps/s390/s390-32/elf/setjmp.S: Likewise. + * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise. + * sysdeps/s390/s390-64/elf/setjmp.S: Likewise. + * sysdeps/sh/bsd-_setjmp.S: Likewise. + * sysdeps/sparc/sparc32/setjmp.S: Likewise. + * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise. + * sysdeps/vax/bsd-_setjmp.S: Likewise. + * sysdeps/x86_64/bsd-_setjmp.S: Likewise. - * sysdeps/generic/abort.c: Include libioP.h for - _IO_flush_all_lockp prototype. +2002-12-30 Ulrich Drepper <drepper@redhat.com> -2001-11-29 Ulrich Drepper <drepper@redhat.com> + * malloc/thread-m.h (thread_atfork): Define using __register_atfork. - * posix/regex.h: Define __restrict_arr correctly. +2002-12-30 Roland McGrath <roland@redhat.com> -2001-11-28 Ulrich Drepper <drepper@redhat.com> + * Rules (generated): Target removed. + * mach/Makefile (generated): Define it here instead. - * iconvdata/ibm1163.c: New file. - * iconvdata/ibm1163.h: New file. - * iconvdata/ibm1164.c: New file. - * iconvdata/ibm1164.h: New file. - * iconvdata/TESTS: Add entries for IBM1163 and IBM1164. - * iconvdata/Makefile: Likewise. - * iconvdata/testdata/IBM1163: New file. - * iconvdata/testdata/IBM1163..UTF8: New file. - * iconvdata/testdata/IBM1164: New file. - * iconvdata/testdata/IBM1164..UTF8: New file. - Patch by Masahide Washizawa <WASHI@jp.ibm.com>. + * math/Makefile (generated): Add m_*l and m_*f variants too. - * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings. - * iconvdata/ibm1124.h: Likewise. - * iconvdata/ibm1132.h: Likewise. - * iconvdata/ibm1133.h: Likewise. - * iconvdata/ibm1160.h: Likewise. - * iconvdata/ibm1161.h: Likewise. - * iconvdata/ibm1162.h: Likewise. - * iconvdata/ibm856.h: Likewise. - * iconvdata/ibm922.h: Likewise. - * iconvdata/ibm930.h: Likewise. - * iconvdata/ibm932.h: Likewise. - * iconvdata/ibm933.h: Likewise. - * iconvdata/ibm935.h: Likewise. - * iconvdata/ibm937.h: Likewise. - * iconvdata/ibm939.h: Likewise. - * iconvdata/ibm943.h: Likewise. - * iconvdata/ibm930.c: Pretty printing. - * iconvdata/ibm937.c: Avoid access accross array boundary. +2002-12-30 Ulrich Drepper <drepper@redhat.com> - * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using - the current locale's codeset. - * iconv/iconv_open.c (iconv_open): Don't strip out everything for - empty input string. - * iconv/iconv_prog.c: Pass empty strings as default value for to- - and from-charset. Don't determine locale's charset here. + * elf/dl-close.c (_dl_close): Handle relocation dependencies among + the to-be-deleted objects right away instead of later separately. + The latter fails because the scope data structures of the DSO + might already be gone. - * libio/genops.c (_IO_flush_all_lockp): New function. The same code - as the old _IO_flush_all but lock only if parameter is nonzero. - (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter. - * libio/libioP.h: Add prototype for _IO_flush_all_lockp. - * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0) - if libio is used [PR libc/2575]. + * elf/Makefile: Add rules to build and run reldep8 test. + * elf/reldep8.c: New file. + * elf/reldep8mod1.c: New file. + * elf/reldep8mod2.c: New file. + * elf/reldep8mod3.c: New file. + Contributed by Jakub Jelinek. -2001-11-28 Jakub Jelinek <jakub@redhat.com> +2002-12-24 GOTO Masanori <gotom@debian.or.jp> - * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit, - __signbitl): Only define for ISO C99. + * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition + checking of return value ENOSYS from getdents64. -2001-11-22 Thorsten Kukuk <kukuk@suse.de> +2002-12-28 Andreas Schwab <schwab@suse.de> - * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set - herrnop to NETDB_INTERNAL if we run out of buffer space. + * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d. + ($(common-objpfx)s-%.d): Generalized from + $(common-objpfx)s-proto.d rule. + (common-generated): Add s-proto-cancel.d. + * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for + cancellable syscalls. + * sysdeps/unix/s-proto-cancel.S: New file. -2001-11-28 Ulrich Drepper <drepper@redhat.com> +2002-12-29 Roland McGrath <roland@redhat.com> - * nss/nss_files/files-XXX.c (internal_getent): Correct input - overflow test for platforms with signed char. - Reported by Andrew Haley <aph@cambridge.redhat.com>. + * resolv/res_libc.c: Move _res defn magic after res_init defn + so _res macro is in effect for that code. -2001-11-28 Bruno Haible <bruno@clisp.org> + * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed + pattern for prepending $(..) so it doesn't affect $(foo). - * locale/programs/simple-hash.c (lookup_2): Remove function. - (insert_entry_2): Call lookup instead of lookup_2. + * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)). -2001-03-04 Bruno Haible <bruno@clisp.org> +2002-12-29 Jakub Jelinek <jakub@redhat.com> - * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally. + * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set + in hwcap. -2001-10-31 Bruno Haible <bruno@clisp.org> +2002-12-28 Ulrich Drepper <drepper@redhat.com> - * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc. + * misc/sys/cdefs.h (__attribute_deprecated__): New #define. -2001-03-21 Bruno Haible <bruno@clisp.org> +2002-12-28 Andreas Jaeger <aj@suse.de> - * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc - chokes on empty macro arguments. - * intl/plural.y: Add #pragma for alloca on AIX 3. + * sysdeps/generic/readelflib.c (process_elf_file): Cast value to + avoid warning. + * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise. + +2002-12-27 Jakub Jelinek <jakub@redhat.com> + + * inet/herrno.c (__h_errno_location): Remove. + * inet/Makefile (routines): Add herrno-loc. + * resolv/res_libc.c (__res_state): Remove. + * resolv/Makefile (routines): Add res-state. + * sysdeps/generic/herrno-loc.c: New file. + * sysdeps/generic/res-state.c: New file. -2001-11-27 Ulrich Drepper <drepper@redhat.com> +2002-12-27 Jakub Jelinek <jakub@redhat.com> - * intl/dcigettext.c (guess_category_value): Only implement for - glibc. Otherwise rely on function _nl_locale_name which isn't - present in the glibc sources. + * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER): + Only define if USE_DL_SYSINFO is defined. -2001-09-24 Bruno Haible <bruno@clisp.org> +2002-12-22 Jakub Jelinek <jakub@redhat.com> - * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable - transliteration when building on a glibc system but outside glibc. + * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL, + INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR): + Define. Patch by Richard Henderson and Jes Sorensen. + (PSEUDO): Remove unnecessary ;;. + * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments + are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP. + * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP + if not initializing thread pointer. + [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New. + * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't + make it weak also if NONTLS_INIT_TP. + * sysdeps/unix/common/pause.c: Handle cancellation. + * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1] + (LOADSYSCALL): Remove. + (SYSCALL_ERROR_HANDLER_ENTRY): Define. + (SYSCALL_ERROR_HANDLER): Use it. + (PSEUDO): Don't jump around error handler. + * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't + jump around error handler. + * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch + to __syscall_error_handler on failure. + * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1] + (LOADSYSCALL): Remove. + (SYSCALL_ERROR_HANDLER_ENTRY): Define. + (SYSCALL_ERROR_HANDLER): Use it. + (PSEUDO): Don't jump around error handler. + * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't + jump around error handler. + * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch + to __syscall_error_handler on failure. -2001-09-22 Bruno Haible <bruno@clisp.org> +2002-12-27 Roland McGrath <roland@redhat.com> - * intl/plural-eval.c: New file, extracted from dcigettext.c. - * intl/dcigettext.c (plural_eval): Remove function, moved to - intl/plural-eval.c. - (plural_lookup): Call PLURAL_EVAL instead of plural_eval. - Include plural-eval.c. + * scripts/gen-as-const.awk: New file. + * Makefile (distribute): Add it. + * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule. + (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h) + to the list. + (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)). -2001-09-22 Bruno Haible <bruno@clisp.org> +2002-12-27 Andreas Schwab <schwab@suse.de> - * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that - don't start with a digit; nplurals must be positive. + * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support. -2001-09-02 Bruno Haible <bruno@clisp.org> +2002-12-27 Jakub Jelinek <jakub@redhat.com> - * intl/plural-exp.h: New file, extracted from gettextP.h. - * intl/plural-exp.c: New file, extracted from loadmsgcat.c. - * intl/gettextP.h (struct expression, struct parse_args, - __gettext_free_exp, __gettextparse): Move to plural-exp.h. - * intl/loadmsgcat.c: Include plural-exp.h. - (PLURAL_PARSE): Move macro to plural-exp.h. - (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to - plural-exp.c. - (_nl_load_domain): Move plural handling code to plural-exp.c. Call - EXTRACT_PLURAL_EXPRESSION. - (_nl_unload_domain): Update. - * intl/dcigettext.c: Include plural-exp.h. - * intl/plural.y: Include plural-exp.h, not gettextP.h. - (FREE_EXPRESSION): Move macro to plural-exp.h. - * intl/Makefile (routines): Add plural-exp. - (distribute): Add plural-exp.h. + * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if + _environ is NULL. -2001-07-28 Bruno Haible <bruno@clisp.org> +2002-12-27 Andreas Schwab <schwab@suse.de> - * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha, - isdigit, tolower argument to 'unsigned char'. - * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to - 'unsigned char'. - * intl/localealias.c (read_alias_file): Cast isspace argument to - 'unsigned char'. + * Makerules ($(common-objpfx)%.make): Filter through + $(sed-remove-objpfx). -2001-10-20 Bruno Haible <bruno@clisp.org> +2002-12-23 Roland McGrath <roland@redhat.com> - Assume strchr() exists. (Without it, intl/explodename.c wouldn't link - anyway.) - * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts - with the variable 'index' in plural_lookup. - * intl/l10nflist.c (strchr): Likewise. - * intl/localealias.c (strchr): Likewise. + * scripts/abilist.awk: Produce a more compact format, divided into + stanzas for each version set, the set name listed only once. + * scripts/extract-abilist.awk: New file. + * scripts/merge-abilist.awk: New file. + * Makerules (check-abi-%, update-abi-%): New pattern rules. + (update-abi, check-abi): New targets. + * Makefile (+subdir_targets): Add subdir_{check,update}-abi. - Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist. - * intl/bindtextdom.c: Likewise. - * intl/dcigettext.c: Likewise. - * intl/dgettext.c: Likewise. - * intl/dngettext.c: Likewise. - * intl/explodename.c: Likewise. - * intl/finddomain.c: Likewise. - * intl/gettext.c: Likewise. - * intl/l10nflist.c: Likewise. - * intl/loadmsgcat.c: Likewise. - * intl/localealias.c: Likewise. - * intl/ngettext.c: Likewise. - * intl/textdomain.c: Likewise. - * intl/gettext.h: Assume <limits.h> exists. +2002-12-19 Roland McGrath <roland@redhat.com> -2001-11-27 Ulrich Drepper <drepper@redhat.com> + * Makerules (%.symlist): Use LC_ALL=C when running awk script. - * stdio-common/Makefile (tests): Add scanf11. - * stdio-common/scanf11.c: New file. + * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of + INTERNAL_SYSCALL. -2001-11-26 Ulrich Drepper <drepper@redhat.com> +2002-12-21 Andreas Schwab <schwab@suse.de> - * version.h (RELEASE): Define as development. - (VERSION): Set to 2.2.90. + * elf/check-textrel.c (handle_file): Swap p_type. -2001-11-22 Thorsten Kukuk <kukuk@suse.de> +2002-12-21 Andreas Schwab <schwab@suse.de> - * nis/nss_compat/compat-grp.c: Print group id as unsigned long. - * nis/nss_nis/nis-grp.c: Likewise. - * nis/nss_nisplus/nisplus-grp.c: Likewise. + * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define. + (INLINE_SYSCALL): Use it. + (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define. + (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant. - * nis/nss_compat/compat-pwd.c: Print user id as unsigned long. - * nis/nss_nis/nis-pwd.c: Likewise. - * nis/nss_nisplus/nisplus-pwd.c: Likewise. + * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL. + * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise. - * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi. - * nis/nss_nisplus/nisplus-parser.c: Likewise. - * nis/nss_nisplus/nisplus-publickey.c: Likewise. +2002-12-20 Art Haas <ahaas@airmail.net> - * nscd/grpcache.c: Use strtoul instead of atol. - * nscd/pwdcache.c: Likewise. - * nss/getent.c: Likewise. + * sysdeps/gnu/siglist.c: Convert GCC extension initializer + syntax to C99. -2001-11-27 Paul Eggert <eggert@twinsun.com> +2002-12-21 Philip Blundell <philb@gnu.org> - * sysdeps/posix/tempname.c (__gen_tempname): Try at least - ATTEMPTS_MIN or TMP_MAX times, whichever is greater. + * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack + top as seventh arg to __libc_start_main. + Reported by paulnash@wildseed.com. -2001-11-19 Bruno Haible <bruno@clisp.org> + * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation. - * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not - 90%. - (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically - improves the quality of the hash function, especially for short - strings. + * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide + compatibility cruft when new enough kernel is assumed. -2001-11-26 Ulrich Drepper <drepper@redhat.com> +2002-12-20 Jakub Jelinek <jakub@redhat.com> - * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings - are found call conv_error and not input_error [PR libc/2669]. + * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL + instead of INLINE_SYSCALL. - * math/bits/mathcalls.h: Mark ceil and floor as const. - Reported by David Mosberger. +2002-12-20 Ulrich Drepper <drepper@redhat.com> -2001-11-21 Jim Meyering <meyering@lucent.com> + * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix + typo. - * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]: - Define to be __-prefixed. - Remove unnecessary duplication in `#ifdef _LIBC' blocks. + * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB. + * sysdeps/unix/sysv/linux/bits/shm.h: Likewise. + * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise. + * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise. + * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise. + * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise. + * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise. + * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise. + Patch by William Lee Irwin <wli@holomorphy.com>. -2001-11-26 Andreas Jaeger <aj@suse.de> +2002-12-20 Andreas Schwab <schwab@suse.de> - * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias, - avoid warning. + * locale/programs/ld-measurement.c (measurement_output): Fix + index calculation. -2001-11-26 Stephen L Moshier <moshier@mediaone.net> +2002-12-20 Ulrich Drepper <drepper@redhat.com> - * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in - initialization. + * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]: + Redefine _IO_flockifle and _IO_funlockfile as inlines. - * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove - unused variables. Fix threshold for returning 1.0. + * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS + builds add "tls" in the search path. + * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls". + (path_hwcap): Recognize "tls". - * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify - argument. +2002-12-19 Ulrich Drepper <drepper@redhat.com> - * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and - remove unused variables. + * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use + __waitpid instead of waitpid. - * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise. + * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of + int $0x80. + * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise. + * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise. + * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise. - * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and - include local math header files. + * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO + information for system calls. -2001-11-22 Andreas Jaeger <aj@suse.de> + * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only + for ld.so. - * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to - avoid warning. + * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv. -2001-11-21 Andreas Jaeger <aj@suse.de> +2002-12-19 Roland McGrath <roland@redhat.com> - * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file. + * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99. + * iconvdata/ibm922.h: Likewise. + * iconvdata/ibm930.h: Likewise. + * iconvdata/ibm932.h: Likewise. + * iconvdata/ibm933.h: Likewise. + * iconvdata/ibm935.h: Likewise. + * iconvdata/ibm937.h: Likewise. + * iconvdata/ibm939.h: Likewise. + * iconvdata/ibm943.h: Likewise. + * iconvdata/isiri-3342.h: Likewise. - * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add - sys/debugreg.h +2002-12-19 Ulrich Drepper <drepper@redhat.com> -2001-11-15 Andreas Jaeger <aj@suse.de> + * test-skeleton.c (main): Make sure correct value is seen as + argv[0] after adjustment of argv, and argc. - * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for - compilers that support it. + * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if + RTLD_CORRECT_DYNAMIC_WEAK is defined. - * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG. - * sysdeps/unix/sysv/linux/bits/types.h: Likewise. - * stdlib/stdlib.h: Likewise. +2002-12-19 Jakub Jelinek <jakub@redhat.com> -2001-11-17 Ulrich Drepper <drepper@redhat.com> - - * posix/regex.c (byte_re_match_2_internal): For gcc replace switch - statement with gotos. - Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>. - -2001-11-16 Stephen L Moshier <moshier@mediaone.net> - - * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header. - -2001-11-15 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes. - -2001-10-02 Jakub Jelinek <jakub@redhat.com> - H.J. Lu <hjl@gnu.org> - - * Versions.def (libc): Add GCC_3.0. - * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc - if gcc supports this flag. - (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it. - (gcc3): Allow glibc to be compiled with gcc 3.x. - * config.h.in (EXPORT_UNWIND_FIND_FDE): Add. - * config.make.in (static-libgcc, unwind-find-fde): Add. - * Makerules (build-shlib-helper, build-module-helper): Use it. - * scripts/versions.awk: Make sure GLIBC_ versions come first. - * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if - necessary. - (_fini): Call __deregister_frame_info_bases if - __register_frame_info_bases was used to register. - * elf/Versions (__register_frame_info, __deregister_frame_info): Add - for GLIBC_2.0. - (__register_frame_info_bases, __register_frame_info_table_bases, - __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0. - * elf/Makefile (routines): Add unwind-dw2-fde. - (shared-only-routines): Add unwind-dw2-fde. - * sysdeps/alpha/gccframe.h: New file. - * sysdeps/arm/gccframe.h: New file. - * sysdeps/generic/framestate.c: New file. - * sysdeps/generic/dwarf2.h: New file. - * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0. - * sysdeps/generic/unwind-dw2-fde.c: New file. - * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file. - * sysdeps/generic/unwind-dw2-fde.h: New file. - * sysdeps/generic/unwind-dw2.c: New file. - * sysdeps/generic/unwind-pe.h: New file. - * sysdeps/generic/unwind.h: New file. - * sysdeps/hppa/gccframe.h: New file. - * sysdeps/i386/gccframe.h: New file. - * sysdeps/m68k/gccframe.h: New file. - * sysdeps/mips/gccframe.h: New file. - * sysdeps/powerpc/gccframe.h: New file. - * sysdeps/s390/gccframe.h: New file. - * sysdeps/sh/gccframe.h: New file. - * sysdeps/sparc/gccframe.h: New file. - * sysdeps/vax/gccframe.h: New file. - * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde): - Set on all architectures except ia64. - * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set - for i386. - * sysdeps/mach/hurd/i386/Versions (__register_frame_info, - __deregister_frame_info): Move to elf/Versions. - * sysdeps/unix/sysv/linux/m68k/Versions: Likewise. - * sysdeps/unix/sysv/linux/arm/Versions: Likewise. - * sysdeps/unix/sysv/linux/alpha/Versions: Likewise. - * sysdeps/unix/sysv/linux/i386/Versions: Likewise. - * sysdeps/unix/sysv/linux/mips/Versions: Likewise. - * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise. - * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate. - * sysdeps/unix/sysv/linux/arm/Makefile: Likewise. - * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise. - * sysdeps/unix/sysv/linux/i386/Makefile: Likewise. - * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise. - * sysdeps/unix/sysv/linux/mips/Makefile: Likewise. - * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise. - * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise. + * nscd/connections.c (nscd_run): Shut up warning. + * tst-ungetc.c (assert): Undefined before redefining. -2001-11-15 Jeff Law <law@redhat.com> +2002-12-19 Ulrich Drepper <drepper@redhat.com> - * posix/regex.c (uintptr_t): Do not provide a definition if the - system provided one. + * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3 + is used. -2001-11-13 Roland McGrath <roland@frob.com> +2002-12-17 Art Haas <ahaas@airmail.net> - * stdio-common/tmpfile.c: Moved to ... - * sysdeps/generic/tmpfile.c: ... here. - * sysdeps/mach/hurd/tmpfile.c: New file. + * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99. + * iconvdata/cp775.h: Likewise. + * iconvdata/ibm1046.h: Likewise. + * iconvdata/ibm1124.h: Likewise. + * iconvdata/ibm1129.h: Likewise. + * iconvdata/ibm1132.h: Likewise. + * iconvdata/ibm1133.h: Likewise. + * iconvdata/ibm1160.h: Likewise. + * iconvdata/ibm1161.h: Likewise. + * iconvdata/ibm1162.h: Likewise. + * iconvdata/ibm1163.h: Likewise. + * iconvdata/ibm1164.h: Likewise. - * hurd/fopenport.c (__fopenport): Renamed from fopenport. - [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie. - (fopenport): Define as weak alias. +2002-12-19 Ulrich Drepper <drepper@redhat.com> - * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ... - * libio/libioP.h: ... to here. + * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if + __ASSUME_CLONE_THREAD_FLAGS is defined. + * sysdeps/unix/sysv/linux/kernel-features.h + (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50. -2001-11-12 Ulrich Drepper <drepper@redhat.com> +2002-12-18 Ulrich Drepper <drepper@redhat.com> - * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over - program header twice. Construct list with the needed information. + * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead + of asm. + * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise. -2001-11-10 Ulrich Drepper <drepper@redhat.com> + * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize + _dl_sysinfo. + [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed + code. + * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of + _rtld_global. + [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed + code. + * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]: + Check for AT_SYSINFO and set _dl_sysinfo appropriately. + * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]: + Add _dl_sysinfo. + +2002-12-18 Jakub Jelinek <jakub@redhat.com> + + * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and + __libc_writev to... + [libc: GLIBC_PRIVATE]: ...here. + * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and + __libc_msgsnd to... + [libc: GLIBC_PRIVATE]: ...here. + +2002-12-18 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro. + Use it instead of directly int $0x80. + * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL. + * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise. + * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise. + * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise. + * sysdeps/unix/sysv/linux/i386/socket.S: Likewise. + * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise. - * po/ca.po: Update from translation team. +2002-12-17 Ulrich Drepper <drepper@redhat.com> - * elf/dl-load.c (_dl_map_object_from_fd): Remove use of - _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro. - * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro. - * elf/dl-reloc.c (_dl_relocate_object): Likewise. + * malloc/malloc.c (mALLOPt): Make sure malloc is initialized. -2001-11-10 Andreas Jaeger <aj@suse.de> + * elf/elf.h (AT_SYSINFO): New define. + * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for + AT_SYSINFO. - * sysdeps/ieee754/ldbl-128/e_log2l.c: New file. - * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise. - Contributed by Stephen L Moshier <moshier@mediaone.net>. +2002-12-17 Jakub Jelinek <jakub@redhat.com> -2001-11-09 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd): + Make cancelable. + * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd): + Likewise. + * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd): + Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd): + Likewise. + * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd): + Likewise. + * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise. - * elf/dl-minimal.c (realloc): Handle NULL for first parameter - correctly. - * elf/dl-load.c (is_dst): New function. - (_dl_dst_count): Use is_dst to check for DST variable. - (_dl_dst_substitute): Likewise. + * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock, + mutex_unlock): If not building NPTL, use __libc_maybe_call2 if + available, otherwise __libc_maybe_call. + * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for + cancellation handling. + * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise. -2001-11-09 Roland McGrath <roland@frob.com> +2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com> - Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>. - * sysdeps/mach/hurd/powerpc/exc2signal.c: New file. - * sysdeps/mach/hurd/powerpc/init-first.c: New file. - * sysdeps/mach/hurd/powerpc/intr-msg.h: New file. - * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file. - * sysdeps/mach/hurd/powerpc/register-dump.h: New file. - * sysdeps/mach/hurd/powerpc/sigreturn.c: New file. - * sysdeps/mach/hurd/powerpc/static-start.S: New file. - * sysdeps/mach/hurd/powerpc/trampoline.c: New file. - * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file. - * sysdeps/mach/hurd/powerpc/Dist: New file. + * posix/regcomp.c (free_workarea_compile): Free the new member + ORG_INDICES. + (analyze): Initialize ORG_INDICES. + (duplicate_node_closure): Search for a existing node, which is + duplicated from the node ORG_DEST and satisfies the constraint + CONSTRAINT. And use it to avoid inifimite loop. + (search_duplicated_node): New function. + (duplicate_node): Store the index of the original node. + * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES + if needed. + * posix/regex_internal.h (re_dfa_t): Add new members. - * hurd/privports.c (__get_privileged_ports): - Only contact the proc server if necessary for this call. - Suggested by Neal H Walfield <neal@cs.uml.edu>. - Check error return for mach_port_mod_refs. +2002-12-17 Ulrich Drepper <drepper@redhat.com> -2001-11-09 Andreas Schwab <schwab@suse.de> + * stdio-common/tst-fdopen.c: Undefine assert before redefining it. - * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file. +2002-12-16 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/posix/system.c (do_system): Add support for installation + of cancellation handlers. + * sysdeps/unix/sysv/linux/i386/system.c: New file. + + * stdlib/Makefile (tests): Add tst-system. + * stdlib/tst-system.c: New file. + + * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION && + CENABLE]: Don't lose content of %ebx. + +2002-12-17 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P + macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly. + +2002-12-16 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function + fails to return a function pointer don't use it. + +2002-12-16 Art Haas <ahaas@airmail.net> + + * io/ftw.c: Convert GCC extension initializer syntax to C99. + * iconvdata/iso-ir-165.c: Likewise. + * iconvdata/jis0208.c: Likewise. + * iconvdata/jis0212.c: Likewise. + +2002-12-16 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create, + epoll_ctl, and epoll_wait. + * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add + epoll_create, epoll_ctl, and epoll_wait. + * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by + Davide Libenzi <davidel@xmailserver.org>. + * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h. + * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): + Add sys/epoll.h. + +2002-12-16 Art Haas <ahaas@airmail.net> + + * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer + syntax to C99 + * sysdeps/unix/sysv/aix/settimer.c: Likewise. + * sysdeps/unix/sysv/aix/sleep.c: Likewise. + * sysdeps/unix/sysv/aix/usleep.c: Likewise. + +2002-12-16 Ulrich Drepper <drepper@redhat.com> + + * stdio-common/Makefile (routines): Remove lockfile. Add + flockfile, ftrylockfile, and funlockfile. + * sysdeps/generic/lockfile.c: Removed. Each function has its own file. + * sysdeps/generic/flockfile.c: New file. + * sysdeps/generic/ftrylockfile.c: New file. + * sysdeps/generic/funlockfile.c: New file. + +2002-12-16 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE + macros instead of doing the calls directly. + * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules. + * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-% + targets. + +2002-12-16 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/i386/fpu/bits/mathinline.h: Backout last change. + * sysdeps/ieee754/bits/nan.h: Likewise. + + * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open, + __syscall_wait4, __syscall_ioctl, __syscall_write): Add. + +2002-12-16 Roland McGrath <roland@redhat.com> + + * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type. + * sunrpc/xdr_rec.c (xdrrec_inline): Likewise. + * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise. + + * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg. + * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg, + s_putpmsg. + * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed. + * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed. + * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed. + * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed. + * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed. + * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed. + * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed. + * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed. -2001-11-09 Ulrich Drepper <drepper@redhat.com> +2002-12-13 Paul Eggert <eggert@twinsun.com> - * elf/dl-load.c (lose): Remove some unnecessary code. The new - object is always the last in the list. - (_dl_map_object_from_fd): Delete code to remove from object list - when DF_1_NOOPEN is seen. This is done in lose. + * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg + is now u_int, not int. + (struct XDR.x_handy): Now u_int, not int. + * sunrpc/xdr_mem.c: Include <limits.h>. + (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes, + xdrmem_inline, xdrmem_getint32, xdrmem_putint32): + x_handy is now unsigned, not signed. + Do not decrement x_handy if no change is made. + (xdrmem_setpos): Check for int overflow. + * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned. + (xdr_sizeof): Remove cast that is now unnecessary, now that + x_handy is unsigned. + +2002-12-15 Art Haas <ahaas@airmail.net> + + * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99. + * iconvdata/gap.awk: Likewise. + * iconvdata/gen-8bit-gap-1.sh: Likewise. + * iconvdata/gen-8bit-gap.sh: Likewise. + * locale/C-address.c: Likewise. + * locale/C-collate.c: Likewise. + * locale/C-ctype.c: Likewise. + * locale/C-identification.c: Likewise. + * locale/C-measurement.c: Likewise. + * locale/C-messages.c: Likewise. + * locale/C-monetary.c: Likewise. + * locale/C-name.c: Likewise. + * locale/C-numeric.c: Likewise. + * locale/C-paper.c: Likewise. + * locale/C-telephone.c: Likewise. + * locale/C-time.c: Likewise. + * nscd/connections.c: Likewise. + * nscd/grpcache.c: Likewise. + * nscd/hstcache.c: Likewise. + * nscd/pwdcache.c: Likewise. + * stdio-common/vfprintf.c: Likewise. + * stdlib/random.c: Likewise. + * sysdeps/generic/siglist.c: Likewise. + * sysdeps/i386/fpu/bits/mathinline.h: Likewise. + * sysdeps/ieee754/bits/nan.h: Likewise. + * sysdeps/posix/sprofil.c: Likewise. + * sysdeps/unix/sysv/linux/sleep.c: Likewise. + * sysdeps/unix/sysv/linux/sysctl.c: Likewise. + * sysdeps/unix/sysv/linux/usleep.c: Likewise. -2001-11-08 Ulrich Drepper <drepper@redhat.com> +2002-12-15 Roland McGrath <roland@redhat.com> - * elf/dl-object.c (_dl_new_object): Various small optimizations. + * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn. -2001-11-07 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or + <tls.h> here, no need for it. + * sysdeps/unix/sysv/linux/waitpid.c: Likewise. - * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and - HWCAP_CHECK macro code. + * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void * + parameter, not varargs parameter. - * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit. - Now returns MAP_FAILED on error. - * elf/rtld.c: Adjust caller. - * sysdeps/generic/dl-cache.c: Likewise. - * sysdeps/generic/ldsodefs.h: Adjust description. + * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the + argument so it's not an unused variable. - * elf/dl-version.c (match_symbol): Optimize error handling for size. - (_dl_check_map_versions): Likewise. + * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms, + __p_type_syms, __p_rcode_syms): Remove decls, never really intended + for users. -2001-11-06 Ulrich Drepper <drepper@redhat.com> + * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode. - * elf/dl-load.c (_dl_map_object_from_fd): Don't call - _dl_signal_error directly, always use lose. Set fd to -1 after - file is closed. - (lose): Don't call close if fd == -1. +2002-12-15 Ulrich Drepper <drepper@redhat.com> -2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp> + * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the + original __libc_fcntl code. Just renamed. - * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}. - Also fix typo @code {mbsinit} to @code{mbsinit}. +2002-12-15 Andreas Schwab <schwab@suse.de> -2001-11-06 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit. - * elf/dl-profile.c: Replace state variable with simple flag named - running. Remove commented-out code. +2002-12-14 Olaf Hering <olh@suse.de> - * elf/dl-load.c (decompose_rpath): Optimize error handling for size. - (_dl_init_paths): Likewise. - (_dl_map_object_from_fd): Likewise. - * elf/dl-reloc.c (_dl_relocate_object): Likewise. + * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>. + * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load. -2001-11-06 Roland McGrath <roland@frob.com> +2002-12-15 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h - instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h. + * sysdeps/unix/sysv/linux/libc_fatal.c: New file. - * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include - sysdeps/powerpc/elf/sysdep.h. - Reported by Kaoru Fukui <k_fukui@highway.ne.jp>. + * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for + SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET. -2001-11-05 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/open64.c: New file. - * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not - speed. - (process_envvars): Some more optimizations. - * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro. + * sysdeps/generic/pselect.c: Add support for cancellation handling. + * sysdeps/posix/open64.c: Likewise. + * sysdeps/posix/sigpause.c: Likewise. + * sysdeps/posix/sigwait.c: Likewise. + * sysdeps/posix/system.c: Likewise. + * sysdeps/posix/waitid.c: Likewise. + * sysdeps/unix/sysv/linux/accept.S: Likewise. + * sysdeps/unix/sysv/linux/connect.S: Likewise. + * sysdeps/unix/sysv/linux/llseek.c: Likewise. + * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. + * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. + * sysdeps/unix/sysv/linux/poll.c: Likewise. + * sysdeps/unix/sysv/linux/pread.c: Likewise. + * sysdeps/unix/sysv/linux/pread64.c: Likewise. + * sysdeps/unix/sysv/linux/pwrite.c: Likewise. + * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. + * sysdeps/unix/sysv/linux/readv.c: Likewise. + * sysdeps/unix/sysv/linux/recv.S: Likewise. + * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. + * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. + * sysdeps/unix/sysv/linux/send.S: Likewise. + * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. + * sysdeps/unix/sysv/linux/sendto.S: Likewise. + * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. + * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. + * sysdeps/unix/sysv/linux/sigwait.c: Likewise. + * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. + * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. + * sysdeps/unix/sysv/linux/wait.c: Likewise. + * sysdeps/unix/sysv/linux/waitpid.c: Likewise. + * sysdeps/unix/sysv/linux/writev.c: Likewise. + * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. + * sysdeps/unix/sysv/linux/i386/socket.S: Likewise. + +2002-12-14 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/generic/sysdep-cancel.h: New file. + * sysdeps/unix/make-syscalls.sh: Handle C at start of args as + cancelable syscall. + * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom, + recvmsg, send, sendmsg, sendto): Make cancelable. + * sysdeps/unix/mman/syscalls.list (msync): Likewise. + * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread, + pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg, + sendto, osf_select): Likewise. + * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv, + recvfrom, recvmsg, send, sendmsg, sendto): Likewise. + * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread, + pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg, + sendto): Likewise. + * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv, + recvfrom, recvmsg, send, sendmsg, sendto): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread, + pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg, + sendto): Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread, + pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg, + sendto, select): Likewise. + * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread, + pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto): + Likewise. + * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause, + select, fcntl): Likewise. + * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise. + * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open, + read, readv, select, sigsuspend, write, writev): Likewise. - * elf/elf.h: Add dynamic tag definitions for prelinking. +2002-12-14 Jakub Jelinek <jakub@redhat.com> - * elf/rtld.c (process_envvars): Avoid using array of string pointers. - Rewrite code to remove environment varables for SUID binaries. - Small optimization in LD_PROFILE handling. - * sysdeps/generic/unsecvars.h: Adjust format for process_envvars - changes. - * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise. + * dirent/bug-readdir1.c: Include unistd.h. - * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset. +2002-12-13 Jakub Jelinek <jakub@redhat.com> - * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable - strings. Change type of second parameter. - * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype - for last change. + * locale/programs/locale.c: Include locarchive.h. + (ARCHIVE_NAME): Define. + (write_archive_locales): New function. + (write_locales): Use it. Ensure the same locale is not printed + multiple times in verbose mode. + Mode LC_IDENTIFICATION and LC_CTYPE printing into... + (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper + functions. + (struct nameent): New type. + (nameentcmp): New function. - * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64. +2002-12-14 Jakub Jelinek <jakub@redhat.com> -2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk> + * posix/regex_internal.c (re_string_context_at): Guard wide char + code with #ifdef RE_ENABLE_I18N. - * manual/string.texi: Fix typos. - * manual/examples/argp-ex2.c: Likewise. +2002-11-22 Paolo Bonzini <bonzini@gnu.org> -2001-11-05 Roland McGrath <roland@frob.com> + * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap - * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides - the more-specific unix/sysv/linux/powerpc file and breaks everything. - * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE, - ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET, - PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here - here, put under [__ELF__]. +2002-12-13 Roland McGrath <roland@redhat.com> -2001-11-05 Ulrich Drepper <drepper@redhat.com> + * posix/bug-regex15.c: New file. + * posix/Makefile (tests): Add it. - * manual/charset.texi: Extensive editing work. - * manual/nss.texi: Likewise. - Changes by Dennis Grace <dgrace@us.ibm.com>. + * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB. + (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be). -2001-11-04 Roland McGrath <roland@frob.com> +2002-12-13 Ulrich Drepper <drepper@redhat.com> - * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags - parameter to dir_mkfile. + * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs. -2001-11-02 Jakub Jelinek <jakub@redhat.com> + * misc/syslog.c (log_cleanup): Don't use parameter in + __libc_lock_unlock call, use syslog_lock directly. Adjust callers to + pass NULL instead of a pointer to syslog_lock. - * string/bits/string2.h (__strndup): If n is smaller than len, set - len to n + 1. - * string/tester.c (test_strndup): New function. - (main): Call it. +2002-12-12 Ulrich Drepper <drepper@redhat.com> + + * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map + linker map for all iconv modules. + (distribute): Add gconv.map. + * iconvdata/gconv.map: New file. + + * elf/Makefile: Also check all iconv modules for text relocations. + + * stdlib/Makefile: Remove code to automatically import GMP. + + * elf/Makefile (tests): Add rules to build and run check-textrel. + * elf/check-textrel.c: New file. + + * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size + directive. + +2002-12-11 Jakub Jelinek <jakub@redhat.com> + + * io/test-utime (main): If stnow.st[am]time is wrong, print it and + not st.st[am]time. + +2002-04-30 Bruno Haible <bruno@clisp.org> + + * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to + the encoding if it already has slashes. + Reported by Perry Rapp <prapp@erols.com>. + +2002-12-11 Roland McGrath <roland@redhat.com> + + * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino. + (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables. + Turn off PIC for compiling this file. + +2002-12-11 Ulrich Drepper <drepper@redhat.com> -2001-11-01 Ulrich Drepper <drepper@redhat.com> + * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER + definitions. Not needed. + [_LIBC]: Use definitions from libc-lock.h instead of referencing + pthread routines directly. + * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to + mutex_init calls. + (arena_get2): Don't look at return value of mutex_lock. - * sunrpc/rpc_main.c: Optimize variable definitions a bit. +2002-12-11 Roland McGrath <roland@redhat.com> - * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls. - * scripts/cpp: New file. + * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone + elf-init.o instead of compiling a PIC version. - * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB - for rtld_search_dirs content. Minor optimizations. +2002-12-11 Bruno Haible <bruno@clisp.org> -2001-10-31 Ulrich Drepper <drepper@redhat.com> + * intl/gettext.h: Renamed to ... + * intl/gmo.h: ... here. + * intl/Makefile (distribute): Add gmo.h, remove gettext.h. + * intl/gettextP.h: Update. + * intl/loadmsgcat.c: Update. - * elf/dl-load.c (_dl_map_object): Make code a bit more compact by - avoiding unnecessary duplication. + * intl/gettextP.h (PARAMS): Make more portable. + (attribute_hidden): Define as empty macro if not already defined. + * intl/hash-string.h (PARAMS): Make more portable. + * intl/loadinfo.h (PARAMS): Likewise. + * intl/plural-exp.h (PARAMS): Likewise. + (attribute_hidden): Move definition near the definition of + internal_function. + + * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration. + * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration. + +2002-07-13 Bruno Haible <bruno@clisp.org> + + * intl/dcigettext.c (freea): New macro. + (FREE_BLOCKS): Free also the registered blocks. + (DCIGETTEXT): Free the 'search' variable. + Reported by Andreas Fischer <a.fischer@asentics.de>. + +2002-04-27 Bruno Haible <bruno@clisp.org> + + * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __. + * intl/dcigettext.c: Likewise. + * intl/dcgettext.c: Likewise. + * intl/dgettext.c: Likewise. + * intl/gettext.c: Likewise. + * intl/dcngettext.c: Likewise. + * intl/dngettext.c: Likewise. + * intl/ngettext.c: Likewise. + * intl/textdomain.c: Likewise. + * intl/bindtextdom.c: Likewise. + * intl/plural-exp.h: Likewise. -2001-10-31 Jakub Jelinek <jakub@redhat.com> +2002-01-02 Bruno Haible <bruno@clisp.org> - * elf/dl-load.c (_dl_map_object): If library was found using - LD_LIBRARY_PATH, don't try RUNPATH list. + * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl. -2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com> +2001-04-30 Bruno Haible <bruno@clisp.org> - * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP): - Correct second argument of register_dump call. - * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP): + * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide + default macro definitions. Needed for mingw32. + +2002-12-10 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply + __builtin_constant_p to macro parameter. + + * sysdeps/generic/sigpause.c: Define all functions as weak. + * sysdeps/posix/sigpause.c: Likewise. + + * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of + type size_t. + +2002-12-10 Jakub Jelinek <jakub@redhat.com> + + * elf/tst-array1.c (preinit_array, init_array, fini_array): + Explicitly align the array to sizeof (void *). + * elf/tst-array2dep.c (init_array, fini_array): Likewise. + + * include/libc-symbols.h: Fix a comment typo. + + * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias. + * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend): + Likewise. + * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend): Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c + (__libc_sigsuspend): Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c + (__libc_sigsuspend): Likewise. + * sysdeps/generic/creat.c (__libc_creat): Renamed from creat. + (creat): New weak alias. + +2002-12-10 Roland McGrath <roland@redhat.com> + + * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that + contributes a manual chapter. + * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads + around xref to it. + + * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to + and move contents to ... + (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch. + * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use + it instead of duplicating its contents. + (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch. + +2002-12-09 Jakub Jelinek <jakub@redhat.com> + + * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if + defined. + * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New + function. + (EXTRA_LD_ENVVARS): Use it. + (DL_OSVERSION_INIT): Define. + * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux + dl-librecon.h. + (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init. -2001-10-31 Ulrich Drepper <drepper@redhat.com> - - * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162 - modules. - * iconvdata/TESTS: Likewise. - * iconvdata/gconv-modules: Likewise. - * iconvdata/ibm1132.c: New file. - * iconvdata/ibm1132.h: New file. - * iconvdata/ibm1133.c: New file. - * iconvdata/ibm1133.h: New file. - * iconvdata/ibm1162.c: New file. - * iconvdata/ibm1162.h: New file. - * iconvdata/testdata/IBM1132: New file. - * iconvdata/testdata/IBM1132..UTF8: New file. - * iconvdata/testdata/IBM1133: New file. - * iconvdata/testdata/IBM1133..UTF8: New file. - * iconvdata/testdata/IBM1162: New file. - * iconvdata/testdata/IBM1162..UTF8: New file. - Patches by Masahide Washizawa <WASHI@jp.ibm.com>. - - * string/string.h: Fix typo in comment. - * wcsmbs/wchar.h: Likewise. +2002-12-10 Ulrich Drepper <drepper@redhat.com> -2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk> + * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2. - * manual/getopt.texi (getopt_long, getopt_long_only): Include - const in type of longopts parameter. + * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock + call. It is not allowed to destroy pthread mutexes which are + still in use even though it is safe for our implementations. If + somebody still uses the descriptor it is a bug. -2001-10-29 Andreas Jaeger <aj@suse.de> +2002-12-09 Richard Henderson <rth@redhat.com> - * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions. + * csu/abi-note.S: Use .p2align, not .align. -2001-10-29 Kevin Ryde <user42@zip.com.au> +2002-12-09 Ulrich Drepper <drepper@redhat.com> - * manual/stdio.texi (Integer Conversions): Corrections to sample printf - output, clarify `#' behaviour on 0. - (Floating-Point Conversions): Clarify that %g only uses %e when - the exponent would be greater than 1. + * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and + __libc_select aliases. -2001-10-28 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo + alias. - Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>. - * sysdeps/mach/powerpc/machine-sp.h: New file. - * sysdeps/mach/powerpc/sysdep.h: New file. - * sysdeps/mach/powerpc/thread_state.h: New file. + * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias. - * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ... - * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can - expect to need the same thing on every platform. + * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias. - * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ... - * sysdeps/generic/sys/ucontext.h: ... to replace this one. + * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias. - * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG, - ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, - DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): - Move all these assembly-related definitions to ... - * sysdeps/powerpc/elf/sysdep.h: ... this new file. + * sysdeps/unix/syscalls.list: Define __libc_select alias. - * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten - by Peter Bruin <pjbruin@dds.nl>. + * sysdeps/posix/waitid.c: Define __libc_waitid alias. - * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when - packing results for a `poll' call. + * sysdeps/posix/sigpause.c: Define __libc_sigpause and + __libc___xpg_sigpause aliases. -2001-10-26 Ulrich Drepper <drepper@redhat.com> + * sysdeps/generic/pselect.c: Define __libc_pselect alias. - * posix/fnmatch_loop.c: Recognize - at end of bracket expression - correctly. - * posix/tst-fnmatch.input: Add tests for - at beginning and end of - bracket expression. + * misc/error.c: Remove use of USE_IN_LIBIO. - * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get - nrules value. - * string/tst-strxfrm.c (test): Also test __strxfrm_l. +2002-12-08 Roland McGrath <roland@redhat.com> -2001-10-24 H.J. Lu <hjl@gnu.org> + * elf/Makefile (tests): Uncomment tst-array[123]. + * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1. + * csu/elf-init.c: New file. + * csu/Makefile (routines, static-only-routines): Add elf-init. + * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init + and __libc_csu_fini in place of _fini. + * sysdeps/arm/elf/start.S: Likewise. + * sysdeps/cris/elf/start.S: Likewise. + * sysdeps/hppa/elf/start.S: Likewise. + * sysdeps/i386/elf/start.S: Likewise. + * sysdeps/ia64/elf/start.S: Likewise. + * sysdeps/m68k/elf/start.S: Likewise. + * sysdeps/mach/hurd/powerpc/static-start.S: Likewise. + * sysdeps/mips/elf/start.S: Likewise. + * sysdeps/powerpc/powerpc32/elf/start.S: Likewise. + * sysdeps/powerpc/powerpc64/elf/start.S: Likewise. + * sysdeps/s390/s390-32/elf/start.S: Likewise. + * sysdeps/s390/s390-64/elf/start.S: Likewise. + * sysdeps/sh/elf/start.S: Likewise. + * sysdeps/sparc/sparc32/elf/start.S: Likewise. + * sysdeps/sparc/sparc64/elf/start.S: Likewise. + * sysdeps/x86_64/elf/start.S: Likewise. - * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *. - Use __BEGIN_DECLS/__END_DECLS around prototypes. - * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise. + * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd + struct containing function ptr and value, free it. + (__aio_notify_only): Allocate that and copy values from SIGEV into it. + It's not safe to let the new thread use the SIGEV pointer. -2001-10-21 Jim Meyering <meyering@lucent.com> +2001-10-20 Paul Eggert <eggert@twinsun.com> - * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise, - this code would end up calling gettext even in packages built - with --disable-nls. - * posix/getopt.c (_): Likewise. - * posix/regex.c (_): Likewise. + * misc/error.c (strerror_r): Do not declare unless [!_LIBC]. + Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P. + Use strerror_r that is only a macro, even if it is not a function. + (strerror): Check for HAVE_DECL_STRERROR before declaring. + (private_strerror): Use prototypes, not old-style function definition. + (print_errno_message): New function. + Support the POSIX 'int'-flavored strerror_r, as well as the traditional + char*-flavored one. + (error_tail, error, error_at_line): Use it. -2001-10-26 Ulrich Drepper <drepper@redhat.com> +2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca> - * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse - lookup not ip6.int. - * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise. - Reported by Martin.v.Loewis@t-online.de [PR libc/2598]. + * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define. -2001-10-19 Jakub Jelinek <jakub@redhat.com> +2002-12-08 Ulrich Drepper <drepper@redhat.com> - * misc/sys/cdefs.h (__attribute_used__): Define. - * elf/rtld.c (_dl_start): Add __attribute_used__. - * elf/dl-runtime.c (fixup, profile_fixup): Likewise. + * scripts/output-format.sed: Fix bug in one of the s expressions + which used / for one too many things. -2001-10-25 Andreas Schwab <schwab@suse.de> + * include/unistd.h: Declare __libc_close. - * stdlib/a64l.c: Expect least significant digit first. - * stdlib/l64a.c: Produce least significant digit first. - * stdlib/Makefile (tests): Add test-a64l. - * stdlib/test-a64l.c: New file. - Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>. +2002-12-07 Ulrich Drepper <drepper@redhat.com> -2001-10-21 Ulrich Drepper <drepper@redhat.com> + * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define. - * po/sk.po: Update from translation team. +2002-12-07 Roland McGrath <roland@redhat.com> -2001-10-18 Ulrich Drepper <drepper@redhat.com> + * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes + from 2002-12-06, but remove unnecessary memset call without removing + necessary copy of initialization image. - * sysdeps/i386/elf/start.S (_fp_hw): Define object type. + * Makerules ($(common-objpfx)format.lds): New target. + (common-generated): Add it. + ($(inst_libdir)/libc.so): Depend on that, and cat it into the result. + * scripts/output-format.sed: New file. + * Makefile (distribute): Add it. -2001-10-18 Andreas Schwab <schwab@suse.de> +2002-12-07 Ulrich Drepper <drepper@redhat.com> - * math/libm-test.inc (print_ulps): Print ulp values rounded to - next whole number. - (print_function_ulps): Likewise. - (print_complex_function_ulps): Likewise. - (print_max_error): Likewise. - (print_complex_max_error): Likewise. Handle ignore_max_ulp. + * sysdeps/generic/libc-tls.c: Include <sys/param.h>. + Reported by Art Haas <ahaas@airmail.net>. -2001-10-16 Andreas Schwab <schwab@suse.de> +2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com> - * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl - implementation. + * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4. - * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if - BSD_SETJMP or BSD__SETJMP is defined, resp. - * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making - a tail call to __sigsetjmp that would require extending the - caller's frame. - * sysdeps/m68k/bsd-_setjmp.c: Likewise. - * sysdeps/m68k/bsd-setjmp.S: Deleted. - * sysdeps/m68k/bsd-_setjmp.S: Deleted. - Reported by Jes Sorensen <jes@trained-monkey.org>. +2002-12-07 Jakub Jelinek <jakub@redhat.com> -2001-10-16 Andreas Jaeger <aj@suse.de> + * string/test-strncpy.c (do_random_tests): Improve test coverage. - * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix - parentheses. Reported by David Byron <dbyron@porto.coactive.com>, - close PR libc/2589. +2002-12-06 Ulrich Drepper <drepper@redhat.com> -2001-10-15 Ulrich Drepper <drepper@redhat.com> + * test-skeleton.c (timeout_handler): Allow expected signal to be + SIGALRM. - * po/ca.po: New file. Contributed by the translation team. + * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum. -2001-10-15 Ralf Baechle <ralf@gnu.org> + * sysdeps/posix/raise.c: Add libc_hidden_def for raise. - * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype - a varargs prototype. Remove dependency from kernel header files. +2002-12-07 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use - __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate. + * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO] + (SYSCALL_ERROR_HANDLER): Fix a pasto. + Reported by Jeff Bailey <jbailey@nisa.net>. -2001-10-14 Ulrich Drepper <drepper@redhat.com> +2002-12-06 Ulrich Drepper <drepper@redhat.com> - * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx - to generate hexadecimal identifier. - Patch by Jungshik Shin <jungshik.shin@yale.edu>. + * sysdeps/generic/libc-tls.c: Undo last patch. -2001-10-09 Stephen L Moshier <moshier@mediaone.net> + * include/wctype.h: Define iswalnum with libc_hidden_proto. - * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm. + * include/signal.h: Define raise with libc_hidden_proto. -2001-10-14 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and + __execve instead of snprintf and execve. - * sysdeps/ieee754/ldbl-128/e_powl.c: New file. - * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file. - Contributed by Stephen L Moshier <moshier@mediaone.net>. + * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double + again a bit. - * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables. - * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise - * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise - * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise - * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise +2002-12-06 Jakub Jelinek <jakub@redhat.com> - * timezone/africa: Update from tzdata2001d. - * timezone/asia: Likewise. - * timezone/australasia: Likewise. - * timezone/backward: Likewise. - * timezone/europe: Likewise. - * timezone/leapseconds: Likewise. - * timezone/northamerica: Likewise. - * timezone/southamerica: Likewise. - * timezone/zone.tab: Likewise. + * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs. + * posix/annexc.c (fmt, testfmt): Remove -D_LIBC. + +2002-12-06 Ulrich Drepper <drepper@redhat.com> + + * misc/syslog.c (log_cleanup): New function. + (openlog): Use log_cleanup instead of __libc_mutex_unlock. + (closelog): Likewise. -2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com> + * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*. + * elf/dl-iteratephdr.c: Likewise. + * elf/dl-lookup.c: Likewise. + * elf/dl-misc.c: Likewise. + * elf/dl-open.c: Likewise. + * elf/dl-support.c: Likewise. + * elf/rtld.c: Likewise. + * sysdeps/generic/ldsodefs.h: Likewise. + * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros. + * sysdeps/mach/bits/libc-lock.h: Likewise. + * sysdeps/mach/hurd/bits/libc-lock.h: Likewise. + +2002-12-06 Roland McGrath <roland@redhat.com> + + * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN. + + * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))] + (malloc_starter, memalign_starter, free_starter): Don't define these. + * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]: + Don't declare them either. + * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call + __pthread_initialize, so no need to set hooks to *_starter. + (ptmalloc_init_minimal): New function, broken out of ptmalloc_init. + [_LIBC && SHARED && USE_TLS && !USE___THREAD] + (__libc_malloc_pthread_startup): New function. + * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function. + + * malloc/hooks.c (memalign_starter): New function. + * malloc/malloc.c: Declare it. + * malloc/arena.c (save_memalign_hook): New variable. + (ptmalloc_init): Set __memalign_hook to memalign_starter. + + * elf/dl-minimal.c (free): Clear the memory. + (calloc): Just call malloc, knowing all memory it returns is cleared. + + * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of + malloc and memset; calloc can avoid the zeroing when redundant. + (_dl_tls_setup): Likewise. + * elf/dl-load.c (decompose_rpath): Likewise. + * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset + call, since memory from sbrk at startup is already zero. + + * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an + error string for failure, null for success. Update callers. + * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise. + * elf/dl-load.c (_dl_map_object_from_fd): Likewise. - * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef. - * sysdeps/s390/s390-64/sys/ucontext.h: Likewise. +2002-12-05 Jakub Jelinek <jakub@redhat.com> -2001-10-12 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change + args to i:iipi. + (readahead): Change args to i:iii. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead): + Change args to i:iii. + * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change + args to i:iiii. - * elf/elf.h (PT_TLS): New definition. +2002-12-05 Roland McGrath <roland@redhat.com> -2001-10-10 Jeff Bailey <jbailey@nisa.net> + * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument, + call all functions rather than none. + Reported by Mark P. Mitchell <mark@codesourcery.com>. - * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of - bits/errno.h +2002-12-04 Roland McGrath <roland@redhat.com> -2001-10-07 Roland McGrath <roland@frob.com> + * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie + on _nl_current_LC_* variables. - * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS. +2002-12-05 Ulrich Drepper <drepper@redhat.com> -2001-10-10 Ulrich Drepper <drepper@redhat.com> + * dirent/bug-readdir1.c (main): Don't call closedir, just close + the file descriptor. This is testing what the bug report was about. - * elf/elf.h: Add more ELFOSABI_* constants. +2002-12-04 Ulrich Drepper <drepper@redhat.com> -2001-10-04 Ben Collins <bcollins@debian.org> + * po/be.po: New file. - * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in - decleration of __need_wchar_t. + * argp/Makefile (tests): Add tst-argp1. -2001-10-03 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent): + Change type of _attribute to void*. + * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise. + * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise. + * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise. + * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise. - * string/bits/string2.h (__strsep_g): Add prototype. - (__strsep): Use it. - * string/Versions (__strsep): Remove. - * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep. +2002-12-04 Roland McGrath <roland@redhat.com> -2001-10-07 Ulrich Drepper <drepper@redhat.com> + * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS] + members to the end, so a libpthread compiled with !USE_TLS will still + find other members properly. - * manua/llio.texi: Clarify file references added by mmap. - Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>. + * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output + operand for DEST memory. Fix dummy input operand to use SRC. + Reported by Davin McCall <davmac@ozonline.com.au>. -2001-09-29 Jes Sorensen <jes@trained-monkey.org> + * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB + alignment when initializing the DTV entry. - * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext): - Add sc_loadrs and sc_rbs_bas to match current kernel. + * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment + when TLS has not been set up, try to set it up if we can. + * elf/tst-tls4.c: Revert last change. + * elf/tst-tls5.c: Likewise. + * elf/tst-tls6.c: Likewise. + * elf/tst-tls7.c: Likewise. + * elf/tst-tls8.c: Likewise. + * elf/tst-tls9.c: Likewise. -2001-09-27 Jakub Jelinek <jakub@redhat.com> + * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function. + * sysdeps/generic/ldsodefs.h: Declare it. + * elf/Versions (ld: GLIBC_PRIVATE): Add it. + * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline + function, broken out of __libc_setup_tls. + (init_static_tls): Likewise. + (__libc_setup_tls): Call them. + (_dl_tls_setup): New function, uses new subroutines. - * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update. + * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer. + Clear the pointer when returning true. + (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the + first element of the slotinfo list too. - * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf). - -2001-09-27 Jakub Jelinek <jakub@redhat.com> - - * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded - object has been bumped because of relocation dependency, avoid - duplicates in l_scope. - (show_scope): Fix typos. - * elf/Makefile: Add rules to build and run reldep6. - * elf/reldep6.c: New file. - * elf/reldep6mod0.c: New file. - * elf/reldep6mod1.c: New file. - * elf/reldep6mod2.c: New file. - * elf/reldep6mod3.c: New file. - * elf/reldep6mod4.c: New file. - -2001-09-26 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call - sparc64_fixup_plt. - (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize - near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety - for non-lazy binding. Fix .plt[32768+] handling. - (elf_machine_plt_value): Don't add addend. - (elf_machine_rela): Call sparc64_fixup_plt instead of - elf_machine_fixup_plt. - (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for - dynamic linker at 0xfffff800XXXXXXXX. + * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if + [SHARED]. - * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update. + * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden. + (_dl_determine_tlsoffset): Likewise. -2001-09-28 Ulrich Drepper <drepper@redhat.com> + * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from + startup_error_tsd, made global. + (dl_main): Update initialization. + * elf/dl-tsd.c: Likewise. + * sysdeps/generic/ldsodefs.h: Declare it. - * elf/elf.h: Define SHF_GROUP and SHF_TLS. +2002-12-03 Ulrich Drepper <drepper@redhat.com> -2001-09-25 Jakub Jelinek <jakub@redhat.com> + * manual/texinfo.tex: Update from latest upstream version. - * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't - declare __cmsg_data field if its size would be bigger than 0. - (CMSG_DATA): Adjust accordingly. - * sysdeps/unix/sysv/aix/bits/socket.h: Likewise. - * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise. - * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise. - * sysdeps/unix/sysv/linux/bits/socket.h: Likewise. - * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise. - * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise. +2002-12-03 Roland McGrath <roland@redhat.com> -2001-09-25 Ulrich Drepper <drepper@redhat.com> + * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS + area surplus in calculation for sbrk call. - * iconvdata/TESTS: Add entries for IBM1160 and IBM1161. - * iconvdata/testdata/IBM1160: New file. - * iconvdata/testdata/IBM1160..UTF8: New file. - * iconvdata/testdata/IBM1161: New file. - * iconvdata/testdata/IBM1161..UTF8: New file. - Patch by Masahide Washizawa <WASHI@jp.ibm.com>. + * iconvdata/cp1125.c: New file. + * iconvdata/Makefile (distribute): Add it. + (modules): Add CP1125. + (gen-8bit-gap-modules): Add cp1125. + * iconvdata/gconv-modules: Add CP1125, alias RUSCII. + * iconvdata/tst-tables.sh: Add CP1125 to the list to test. -2001-09-24 Ulrich Drepper <drepper@redhat.com> +2002-12-03 Andreas Jaeger <aj@suse.de> - * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in - UL_SETFSIZE computations better. + * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. - * rt/Makefile: Remove use of filter for librt again. +2002-12-03 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in - UL_SETFSIZE computations better. + * sysdeps/posix/system.c (do_system): Make signal handler + installation thread safe. - * string/Versions: Export __strsep for GLIBC_2.2.5. - * string/bits/string2.h: Define all __STRING_INLINE functions if - _FORCE_INLINES is defined. - Use int instead of char of parameter types. - (__strsep): Don't use __strsep_g. Don't define it. - (__strsep_1c, __strsep_2c, __strsep_3c): Optimize. - * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from - __strcpy_small. - (__stpcpy_a_small): Renamed from __stpcpy_small. - (__strcspn_c1): Don't define if _FORCE_INLINES. - (__strspn_c1): Likewise. +2002-12-02 Roland McGrath <roland@redhat.com> -2001-09-22 Ben Collins <bcollins@debian.org> + * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change + caller from EXTRA to -. + * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise. - * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when - _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h. - * sysdeps/ia64/bits/sigaction.h: Likewise. - * sysdeps/s390/s390-64/bits/sigaction.h: Likewise. +2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca> + + * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both + bits of RM are cleared. + +2002-12-02 Roland McGrath <roland@redhat.com> + + * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy + TLS setup is required. + * elf/tst-tls5.c: Likewise. + * elf/tst-tls6.c: Likewise. + * elf/tst-tls7.c: Likewise. + * elf/tst-tls8.c: Likewise. + * elf/tst-tls9.c: Likewise. + + * elf/rtld.c (dl_main): Remove [! SHARED] conditional from + `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup. + * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list) + for being null before calling free_slotinfo. + * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in + dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero. + +2002-11-30 Bruno Haible <bruno@clisp.org> + + * iconv/gconv.h (__gconv_btowc_fct): New typedef. + (struct __gconv_step): New field __btowc_fct. + * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible. + * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from + __BUILTIN_TRANS. + (__gconv_btwoc_ascii): New declaration. + * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument. + (__gconv_btwoc_ascii): New function. + * iconv/gconv_builtin.h: Add BtowcFct argument to all + BUILTIN_TRANSFORMATION invocations. + * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument. + * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise. + * iconv/gconv_builtin.c (map): New field btowc_fct. + (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize + btowc_fct field. + (__gconv_get_builtin_trans): Initialize __btowc_fct field. + * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field. + * iconv/gconv_db.c (gen_steps, increment_counter): Likewise. + * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise. + * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE. + (gconv_init): Initialize __btowc_fct field. + Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end. + * iconv/loop.c: Document ONEBYTE_BODY. + (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined. + Undefine ONEBYTE_BODY at the end. + * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro. + * iconvdata/8bit-gap.c (NONNUL): New macro. + (BODY for FROM_LOOP): Use it. + (ONEBYTE_BODY): New macro. + * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1. + (NONNUL): New macro. + * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro. + * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro. + * iconvdata/cp1255.c (ONEBYTE_BODY): New macro. + * iconvdata/cp1258.c (ONEBYTE_BODY): New macro. + * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro. + * iconvdata/big5.c (ONEBYTE_BODY): New macro. + * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro. + * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro. + * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro. + * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro. + * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro. + * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro. + * iconvdata/gbk.c (ONEBYTE_BODY): New macro. + * iconvdata/gb18030.c (ONEBYTE_BODY): New macro. + * iconvdata/ibm932.c: Include <stdbool.h>. + (TRUE, FALSE): Remove macros. + (BODY for FROM_LOOP): Remove unused variable rp1. + (ONEBYTE_BODY): New macro. + (BODY for TO_LOOP): Use bool. + * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array. + * iconvdata/ibm943.c: Include <stdbool.h>. + (TRUE, FALSE): Remove macros. + (BODY for FROM_LOOP): Remove unused variable rp1. + (ONEBYTE_BODY): New macro. + (BODY for TO_LOOP): Use bool. + * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array. + * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro. + * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro. + * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro. + * iconvdata/johab.c (ONEBYTE_BODY): New macro. + * iconvdata/sjis.c (ONEBYTE_BODY): New macro. + * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro. + * iconvdata/t.61.c (ONEBYTE_BODY): New macro. + * iconvdata/uhc.c (ONEBYTE_BODY): New macro. + * iconvdata/gbbig5.c: Tweak comment. + +2002-12-02 Ulrich Drepper <drepper@redhat.com> + + * po/fi.po: Update from translation team. + +2002-12-01 Roland McGrath <roland@redhat.com> + + * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition + testing getdents64 return value. + + * scripts/versions.awk: Don't pass -n flag to sort command. + + * posix/bug-regex13.c: Include <string.h>. + + * sysdeps/generic/libc-start.c (__libc_start_main): Do + DL_SYSDEP_OSCHECK here. + * sysdeps/unix/sysv/linux/init-first.c (init): Not here. + * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>. + + * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if + argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero. + + * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset + instead of l_type to decide whether to use TLS_DTV_UNALLOCATED. + + * include/link.h: Comment typo fix. + +2002-12-01 Roland McGrath <roland@frob.com> + + * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L. + (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE, + _POSIX_MEMORY_PROTECTION): Likewise. + (_POSIX_POLL, _POSIX_SELECT): Removed. + +2002-11-28 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which + require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT. + +2002-11-28 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to + USE___THREAD. + * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid + "=v" constraints. + +2002-11-28 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's + branch prediction buffers by using unpaired call/ret. + +2002-11-27 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in + first parameters constraint string. + (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de. + +2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com> + + * posix/regcomp.c (parse_expression): Set the bit since the back + reference is used in the regular expression. + * posix/regex_internal.c (re_node_set_init_1): Make it clean in case + of malloc failure. + (re_node_set_init_copy): Likewise. + * posix/regex_internal.h (state_array_t): New structure. + (re_sub_match_last_t): Likewise. + (re_sub_match_top_t): Likewise. + (re_match_context_t): Add new members. + (re_dfa_t): Likewise. + * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes + to check the matching is really correct, and retry if failed. + Move the routin pruning the impossible nodes from here, ... + (prune_impossible_nodes): To this function. + (check_matching): Invoke check_subexp_matching_top, and replace + redundant checking with transit_state_bkref invocation. + (proceed_next_node): Replace strncmp with memcmp. Reported by + Paolo Bonzini <bonzini@gnu.org>. + (update_cur_sifted_state): Remove search_subexp invocation. + (search_subexp): Remove this function. + (check_dst_limits_calc_pos): Use search_cur_bkref_entry for + optimization. + (sift_states_bkref): Use search_cur_bkref_entry for optimization. + Remove unused invocation of match_ctx_add_entry. + (transit_state): Invoke check_subexp_matching_top. + (check_subexp_matching_top): New function. + (transit_state_bkref): Remove unused array. + Merge transit_state_bkref_loop. + (transit_state_bkref_loop): Use get_subexp instead of + sift_states_backward. Use search_cur_bkref_entry for optimization. + Merge this function to transit_state_bkref. + (get_subexp): New function. + (get_subexp_sub): Likewise. + (find_subexp_node): Likewise. + (check_arrival): Likewise. + (check_arrival_expand_ecl): Likewise. + (check_arrival_expand_ecl_sub): Likewise. + (expand_bkref_cache): Likewise. + (match_ctx_init): Initialize new members. + (match_ctx_clean): New function. + (match_ctx_free): Release new members. + (match_ctx_free_subtops): New function. + (match_ctx_add_entry): Fix indent. + (search_cur_bkref_entry): New function. + (match_ctx_add_subtop): Likewise. + (match_ctx_add_sublast): Likewise. + +2002-11-25 Ulrich Drepper <drepper@redhat.com> + + * iconv/Makefile (tests): Remove tst-iconv4.c + * iconv/tst-iconv4.c: Moved to... + * iconvdata/tst-iconv4.c: ...here. New file. + * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies. + +2002-11-25 Roland McGrath <roland@redhat.com> + + * inet/test-ifaddrs.c (main: addr_string): Handle null SA. + Grok AF_LINK if defined. + From Momchil Velikov <velco@fadata.bg>. + + * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask, + brdaddr, or dstaddr, just set those pointers to null and don't fail. + Reported by Momchil Velikov <velco@fadata.bg>. + + * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len + is > sizeof IFR->ifa_addr, advance past the whole longer length. + (__ifreq): Count up NIFS that way too. + Reported by Momchil Velikov <velco@fadata.bg>. + + * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>. + + * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h> + and <fpu_control.h>. + +2002-11-24 Ulrich Drepper <drepper@redhat.com> + + * elf/elf.h (EM_ST19): Fix typo. + +2002-11-25 Jakub Jelinek <jakub@redhat.com> + + * include/errno.h (__set_errno): Define as errno = val + unconditionally. -2001-09-24 Andrew Haley <aph@cambridge.redhat.com> +2002-11-24 Roland McGrath <roland@redhat.com> - * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h. + * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro. + * sysdeps/posix/writev.c: Likewise. + From Momchil Velikov <velco@fadata.bg>. -2001-09-24 Jakub Jelinek <jakub@redhat.com> + * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of + calling *GL(dl_error_catch_tsd) for a thread-local location. + * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT]. + (dl_main): Same for GL(dl_error_catch_tsd) initialization. + * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT]. - * elf/dl-open.c (dl_open_worker): Update l_scope_max. + * libio/iofflush.c: Add libc_hidden_def. + * libio/iofwrite.c: Likewise. + * sysdeps/generic/sigtimedwait.c: Likewise. + * sysdeps/generic/sigwaitinfo.c: Likewise. + * sysdeps/posix/sigwait.c: Likewise. + Reported by Momchil Velikov <velco@fadata.bg>. + + * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t + to match <arpa/inet.h> declaration. + * inet/inet_netof.c (inet_netof): Likewise. + * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types. + Reported by Momchil Velikov <velco@fadata.bg>. + + * configure.in: Skip AUTOCONF check under --without-cvs. + * configure: Regenerated. -2001-09-24 Ulrich Drepper <drepper@redhat.com> + * posix/Makefile (headers): Add bits/pthreadtypes.h. + * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here. + * sysdeps/unix/sysv/linux/Dist: Remove it from the list. - * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype. +2002-11-24 Andreas Schwab <schwab@suse.de> -2001-09-20 H.J. Lu <hjl@gnu.org> + * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall + with six arguments. - * include/dlfcn.h (__RTLD_SPROF): New definiton. - * elf/dl-open.c (dl_open_worker): Return immediately after loading - for __RTLD_SPROF. - * elf/sprof.c (main): Default to the filename if soname doesn't exist. - (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'. +2002-11-19 Jim Meyering <jim@meyering.net> -2001-09-20 H.J. Lu <hjl@gnu.org> + * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare + as `static'. + * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'. - * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc, - don't add 1. +2002-11-23 Roland McGrath <roland@redhat.com> -2001-09-22 Ulrich Drepper <drepper@redhat.com> + * scripts/abilist.awk: Avoid strtonum function, not there in mawk. + Just produce hex output for datum sizes. - * nss/getent.c: Accept -s parameter to overwrite rules in - nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>. + * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp. + Reported by Luca Barbieri <ldb@ldb.ods.org>. - * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string - with as many ".0" as necessary to form a complete address - inet_network understands. +2002-11-20 Steven Munroe <sjmunroe@us.ibm.com> - * nss/getent.c: Various cleanups. Use simpler and fewer function - calls. + * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds) + [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2, + and __unused3 fields. + * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds) + [__WORDSIZE == 32]: Only PPC32 requires __unused1 + and __unused2 fields. + * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds) + [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2, + __unused3, and __unused4 fields. -2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com> + * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to + obtain lowest address for profiling in __monstartup call. - * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in - _JMPBUF_UNWINDS. - * sysdeps/s390/s390-64/bits/setjmp.h: Likewise. +2002-11-21 Roland McGrath <roland@redhat.com> -2001-09-22 Ulrich Drepper <drepper@redhat.com> + * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant + $(calls) $(calls:=f) $(long-c-$(long-double-fcts)). - * iconvdata/Makefile: Add rules to build and distribute IBM1160 and - IBM1161. - * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161. - * iconvdata/ibm1160.c: New file. - * iconvdata/ibm1160.h: New file. - * iconvdata/ibm1161.c: New file. - * iconvdata/ibm1161.h: New file. - Patch by Masahide Washizawa <WASHI@jp.ibm.com>. + * locale/localeinfo.h (struct locale_data): Revert last change. -2001-09-19 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it. + From Ian Wienand <ianw@gelato.unsw.edu.au>. - * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the - difference between base address and first PT_LOAD's virtual address, - not the base address. + * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to + __NR_pread64 if not defined. + (__NR_pwrite): Define to __NR_pwrite64 if not defined. + From Ian Wienand <ianw@gelato.unsw.edu.au>. -2001-09-11 Tom Rix <trix@redhat.com> +2002-11-21 Roland McGrath <roland@frob.com> - * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG - ifdef for __getopt_clean_environment. - * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation. + * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set + __libc_multiple_libcs here. Call __setfpucw. -2001-09-22 Andreas Jaeger <aj@suse.de> +2002-11-21 Ulrich Drepper <drepper@redhat.com> - * elf/reldep4.c (main): Add proper prototype to fix warning. + * elf/Makefile (tests): Don't run test-arrayX tests for now. - * elf/reldep5.c (main): Remove unused variable. + * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags. + * sysdeps/unix/sysv/linux/i386/clone.S: Add support for + CLONE_CHILD_*TID flags. - * math/math_private.h: Add prototypes. +2002-11-20 Andreas Jaeger <aj@suse.de> -2001-09-21 Andreas Jaeger <aj@suse.de> + * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): + We pass struct ucontext on x86-64. + (GET_PC): Adjust. + (GET_FRAME): Adjust. + (GET_STACK): Adjust. - * sysdeps/unix/sysv/linux/x86_64/Dist: New file. - * sysdeps/x86_64/Dist: New file. - * sysdeps/x86_64/soft-fp/Dist: New file. +2002-11-20 Roland McGrath <roland@redhat.com> - * sysdeps/gnu/Dist: Remove eval.c. + * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further + conditionalize [! DO_VERSIONING] #error. -2001-09-20 Ulrich Drepper <drepper@redhat.com> + * scripts/abilist.awk: Grok function descriptor symbols. - * malloc/memusage.c (realloc): Don't count already allocated - memory in the sums. - (me): Always use dlsym() to find the real implementations. + * intl/tst-gettext.c (main): Check return values from setlocale. + Add necessary unsetenv's to make LANG=existing-locale check work. - * malloc/memusage.sh: Make -n option actually do something. + * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally, + so aborted prior runs don't confuse things. -2001-09-20 Andreas Jaeger <aj@suse.de> + * locale/localeinfo.h (struct locale_data: union locale_data_value): + Use uintptr_t instead of unsigned int for `word' member. + (_NL_CURRENT_WORD): Cast to uint32_t. - * elf/elf.h (R_390_NUM): Correct value. + * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES + value. - * Versions.def: Add missing versions 2.2.3 for libthread_db and - libpthread. +2002-11-20 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version - for x86-64, install x86-64 into */lib64. + * elf/tls-macros.h: Add IA-64 definitions. + Patch by Ian Wienand <ianw@gelato.unsw.edu.au>. - * shlib-versions: Add x86-64. + * iconv/Makefile (tests): Add tst-iconv4. + * iconv/tst-iconv4.c: New file. - * elf/elf.h: Add x86-64 relocations. + * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return + __GCONV_EMPTY_INPUT only if input is really empty. Otherwise + __GCONV_INCOMPLETE_INPUT. + (ucs4le_internal_loop): Likewise. + (ucs4le_internal_loop_unaligned): Likewise. + * iconvdata/unicode.c (PREPARE_LOOP): Likewise. + * iconvdata/utf-16.c (PREPARE_LOOP): Likewise. + * iconvdata/utf-32.c (PREPARE_LOOP): Likewise. -2001-09-19 Ulrich Drepper <drepper@redhat.com> + * iconv/loop.c (LOOPFCT): First test for empty input then for full + output buffer. - * po/fr.po: Update from translation team. + * inet/getnameinfo.c: Use extend_alloca where appropriate. + * sysdeps/posix/getaddrinfo.c: Likewise. -2001-09-19 Andreas Jaeger <aj@suse.de> - - * sysdeps/unix/sysv/linux/x86_64/Makefile: New file. - * sysdeps/unix/sysv/linux/x86_64/Versions: New file. - * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file. - * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file. - * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file. - * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file. - * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file. - * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file. - * sysdeps/unix/sysv/linux/x86_64/brk.c: New file. - * sysdeps/unix/sysv/linux/x86_64/clone.S: New file. - * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file. - * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file. - * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file. - * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file. - * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file. - * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file. - * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file. - * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file. - * sysdeps/unix/sysv/linux/x86_64/recv.c: New file. - * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file. - * sysdeps/unix/sysv/linux/x86_64/send.c: New file. - * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file. - * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file. - * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file. - * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file. - * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file. - * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file. - * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file. - * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file. - * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file. - * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file. - * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file. - * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file. - * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file. - * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file. - * sysdeps/unix/sysv/linux/x86_64/time.c: New file. - * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file. - * sysdeps/unix/sysv/linux/x86_64/umount.c: New file. - * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file. - * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file. - * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file. - * sysdeps/unix/x86_64/sysdep.S: New file. - * sysdeps/unix/x86_64/sysdep.h: New file. - * sysdeps/x86_64/Implies: New file. - * sysdeps/x86_64/Makefile: New file. - * sysdeps/x86_64/Versions: New file. - * sysdeps/x86_64/__longjmp.S: New file. - * sysdeps/x86_64/abort-instr.h: New file. - * sysdeps/x86_64/atomicity.h: New file. - * sysdeps/x86_64/bits/endian.h: New file. - * sysdeps/x86_64/bits/setjmp.h: New file. - * sysdeps/x86_64/bits/string.h: New file. - * sysdeps/x86_64/bp-asm.h: New file. - * sysdeps/x86_64/bsd-_setjmp.S: New file. - * sysdeps/x86_64/bsd-setjmp.S: New file. - * sysdeps/x86_64/dl-machine.h: New file. - * sysdeps/x86_64/elf/initfini.c: New file. - * sysdeps/x86_64/elf/start.S: New file. - * sysdeps/x86_64/ffs.c: New file. - * sysdeps/x86_64/ffsll.c: New file. - * sysdeps/x86_64/fpu/bits/fenv.h: New file. - * sysdeps/x86_64/fpu/bits/mathdef.h: New file. - * sysdeps/x86_64/fpu/e_acosl.c: New file. - * sysdeps/x86_64/fpu/e_atan2l.c: New file. - * sysdeps/x86_64/fpu/e_exp2l.S: New file. - * sysdeps/x86_64/fpu/e_expl.c: New file. - * sysdeps/x86_64/fpu/e_fmodl.S: New file. - * sysdeps/x86_64/fpu/e_log10l.S: New file. - * sysdeps/x86_64/fpu/e_log2l.S: New file. - * sysdeps/x86_64/fpu/e_logl.S: New file. - * sysdeps/x86_64/fpu/e_powl.S: New file. - * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file. - * sysdeps/x86_64/fpu/e_scalbl.S: New file. - * sysdeps/x86_64/fpu/e_sqrtl.c: New file. - * sysdeps/x86_64/fpu/fclrexcpt.c: New file. - * sysdeps/x86_64/fpu/fedisblxcpt.c: New file. - * sysdeps/x86_64/fpu/feenablxcpt.c: New file. - * sysdeps/x86_64/fpu/fegetenv.c: New file. - * sysdeps/x86_64/fpu/fegetexcept.c: New file. - * sysdeps/x86_64/fpu/fegetround.c: New file. - * sysdeps/x86_64/fpu/feholdexcpt.c: New file. - * sysdeps/x86_64/fpu/fesetenv.c: New file. - * sysdeps/x86_64/fpu/fesetround.c: New file. - * sysdeps/x86_64/fpu/fgetexcptflg.c: New file. - * sysdeps/x86_64/fpu/fraiseexcpt.c: New file. - * sysdeps/x86_64/fpu/fsetexcptflg.c: New file. - * sysdeps/x86_64/fpu/ftestexcept.c: New file. - * sysdeps/x86_64/fpu/libm-test-ulps: New file. - * sysdeps/x86_64/fpu/math_ldbl.h: New file. - * sysdeps/x86_64/fpu/printf_fphex.c: New file. - * sysdeps/x86_64/fpu/s_atanl.c: New file. - * sysdeps/x86_64/fpu/s_cosl.S: New file. - * sysdeps/x86_64/fpu/s_expm1l.S: New file. - * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file. - * sysdeps/x86_64/fpu/s_isinfl.c: New file. - * sysdeps/x86_64/fpu/s_isnanl.c: New file. - * sysdeps/x86_64/fpu/s_log1pl.S: New file. - * sysdeps/x86_64/fpu/s_logbl.c: New file. - * sysdeps/x86_64/fpu/s_nextafterl.c: New file. - * sysdeps/x86_64/fpu/s_nexttoward.c: New file. - * sysdeps/x86_64/fpu/s_nexttowardf.c: New file. - * sysdeps/x86_64/fpu/s_rintl.c: New file. - * sysdeps/x86_64/fpu/s_significandl.c: New file. - * sysdeps/x86_64/fpu/s_sincosl.S: New file. - * sysdeps/x86_64/fpu/s_sinl.S: New file. - * sysdeps/x86_64/fpu/s_tanl.S: New file. - * sysdeps/x86_64/gmp-mparam.h: New file. - * sysdeps/x86_64/hp-timing.c: New file. - * sysdeps/x86_64/hp-timing.h: New file. - * sysdeps/x86_64/htonl.S: New file. - * sysdeps/x86_64/memusage.h: New file. - * sysdeps/x86_64/setjmp.S: New file. - * sysdeps/x86_64/soft-fp/sfp-machine.h: New file. - * sysdeps/x86_64/stackinfo.h: New file. - * sysdeps/x86_64/sysdep.h: New file. - * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file. - - * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen - L Moshier. - -2001-09-18 Ulrich Drepper <drepper@redhat.com> - - * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL. - Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541]. - -2001-09-18 Andreas Schwab <schwab@suse.de> - - * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope - list, now that l_scope is a pointer. - - * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the - scope list. - -2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition. - (elf_machine_rela_relative): Add a missing declaration. - -2001-09-18 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file. - * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file. - * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390 - ldd-rewrite scripts. - -2001-09-18 Ulrich Drepper <drepper@redhat.com> - - * elf/ldd.bash.in: Update copyright message. - -2001-09-17 H.J. Lu <hjl@gnu.org> - - * hurd/hurdmalloc.c (bcopy): Removed. - (realloc): Replace bcopy with memcpy. - * hurd/path-lookup.c (file_name_path_scan): Likewise. - * resolv/gethnamaddr.c (map_v4v6_address): Likewise. - * sunrpc/rpcinfo.c (pmapdump): Likewise. + * include/alloca.h (extend_alloca): New define. Based on stack + direction it'll try to append to the previouls allocated buffer. - * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove. - (gethostbyaddr): Likewise. - * sunrpc/rpcinfo.c (get_inet_address): Likewise. +2002-11-07 Thorsten Kukuk <kukuk@suse.de> -2001-09-18 Ulrich Drepper <drepper@redhat.com> + * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set, + use the same service for AF_INET and AF_INET6. - * sysdeps/gnu/eval.c: Removed. +2002-11-19 Ulrich Drepper <drepper@redhat.com> -2001-09-18 Andreas Jaeger <aj@suse.de> + * intl/localealias.c (read_alias_file): Use only about 400 bytes + of stack space instead of 16k. - * sysdeps/i386/fpu/s_logbl.S: Move to ... - * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler. +2002-11-18 Wolfram Gloger <wg@malloc.de> - * sysdeps/i386/fpu/s_rintl.S: Move to ... - * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler. + * malloc/arena.c + (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do + nothing if not initialized. Bug report from Marcus Brinkmann + <Marcus.Brinkmann@ruhr-uni-bochum.de>. - * sysdeps/i386/fpu/s_significandl.S: Move to ... - * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler. +2002-11-19 Roland McGrath <roland@redhat.com> -2001-09-16 Ulrich Drepper <drepper@redhat.com> + * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and + sched_setaffinity. - * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get - nrules value. + * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries + `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for + test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed. + * configure: Regenerated. -2001-09-14 H.J. Lu <hjl@gnu.org> +2002-11-19 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mips/fpu/libm-test-ulps: Updated. + * include/dlfcn.h: __libc_dlopen is now a macro calling + __libc_dlopen_mode with the extra parameter RTLD_LAZY. + (__libc_dlopen_mode): New prototype. + * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add + new parameter. Store new parameter in mode field of structure passed + to do_dlopen. + (struct do_dlopen_args): Add new field mode. + (do_dlopen): Pass mode from parameter structure to _dl_open. -2001-09-14 Ulrich Drepper <drepper@redhat.com> +2002-11-11 Randolf Chung <tausq@debian.org> - * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo. - Patch by Florian La Roche <laroche@redhat.com>. + * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64] + (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions. + * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file. - * string/bits/string2.h (__strtok_r_1c): Optimize a bit. + * sysdeps/hppa/fpu/libm-test-ulps: New file (generated). - * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to - ETHER_CRC_LEN. + * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable. + Set -mdisable-fpregs for this file. -2001-09-14 Andreas Schwab <schwab@suse.de> +2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca> - * posix/execl.c: Fix last argument of memcpy. Reported by Brian - Sumner <bls@sgi.com>. - * posix/execlp.c: Likewise. + * sysdeps/unix/sysv/linux/configure.in: + Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols + from gcc-3.0 era for backwards compatibility. + * sysdeps/unix/sysv/linux/configure: Regenerate. -2001-09-13 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: + Define mcontext_t as a sigcontext. - * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter - is already found earlier in the search scope. +2002-11-18 Roland McGrath <roland@redhat.com> -2001-09-12 Jakub Jelinek <jakub@redhat.com> + * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)). + Free memory in `last_result' if it was used. - * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's - filter. + * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search + all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form. + Do the parsing inline instead of copying strings and calling + inet_network, and properly skip all alias names not matching the form. -2001-09-13 Ulrich Drepper <drepper@redhat.com> + * manual/pattern.texi (Variable Substitution): Fix # and ## examples. - * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0. +2002-11-17 Ulrich Drepper <drepper@redhat.com> -2001-09-12 Ulrich Drepper <drepper@redhat.com> + * manual/pattern.texi (Wordexp Example): Fix sample code. - * config.h.in: Enforce optimization to be used. - * Makeconfig (preprocess-versions): Define ASSEMBLER. - * stdlib/Makefile (isomac-CFLAGS): Define to -O. - * posix/Makefile (annexc-CFLAGS): Define to -O. - * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP. + * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the + childs stack which will be loaded into the %esi register. -2001-09-11 Ulrich Drepper <drepper@redhat.com> +2002-11-14 Paul Eggert <eggert@twinsun.com> - * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup. - Patch by Stephan Kulow. + * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer + overflow when skipping the question part and when unpacking aliases. -2001-09-08 Ben Collins <bcollins@debian.org> +2002-11-15 Roland McGrath <roland@redhat.com> - * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in - usage of RESOLVE() (r_type, not reloc->r_type). + * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan, + s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit. + Instead add $(calls:s_%=m_%) to get m_* versions of them all. -2001-09-08 Ulrich Drepper <drepper@redhat.com> +2002-11-15 Jakub Jelinek <jakub@redhat.com> - * elf/dl-object.c: Avoid allocating extra memory block for name. - * elf/dl-close.c (_dl_close): Don't free l_libname if it is not - allocated separately. - * elf/dl-load.c (_dl_map_object_from_fd): Likewise. + * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY. + * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY. -2001-09-08 H.J. Lu <hjl@gnu.org> +2002-11-15 Roland McGrath <roland@redhat.com> - * po/zh_TW.po: Fix a typo. + * math/Makefile (libm-calls): Change s_ldexp to m_ldexp. + * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc] + from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep). + (+make-include-of-dep): New canned sequence. -2001-09-07 Tom Rix <trix@redhat.com> + * stdlib/canonicalize.c (__realpath): Check for malloc failure. + From Dmitry V. Levin <ldv@altlinux.org>. - * sysdeps/unix/sysv/aix/sysv_termio.h: New file. +2002-11-14 Roland McGrath <roland@redhat.com> -2001-08-26 Tom Rix <trix@redhat.com> + * sysdeps/generic/errno.c (__libc_errno): Remove alias. + * inet/herrno.c (__libc_h_errno): Likewise. + * resolv/res_libc.c (__libc_res): Likewise. + [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD]. + (__res_state) [! USE___THREAD]: Don't define as weak. + * csu/Versions: Revert last change. + * resolv/Versions: Revert last change. - * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker - command line options. - * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c - * sysdeps/unix/sysv/aix/start.c: Removed. - * sysdeps/unix/sysv/aix/start-libc.c: New file. - * sysdeps/unix/sysv/aix/init-first.c: New file. - * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl. + * Makerules ($(common-objpfx)%.make): New pattern rule. + * tls.make.c: New file. + * Makefile (distribute): Add it. -2001-09-08 Ben Collins <bcollins@debian.org> + * sysdeps/generic/errno.c [! USE___THREAD] + [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these + with compat_symbol so they are not link-time visible. + [! USE___THREAD] (__libc_errno): New alias for errno. + * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE): + Add __libc_errno here. + * inet/herrno.c [USE___THREAD]: Use this conditional + in place of [USE_TLS && HAVE___THREAD]. + [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING] + (h_errno, _h_errno): Declare these with compat_symbol so they are not + link-time visible. + [! USE___THREAD] (__libc_h_errno): New alias for h_errno. + * resolv/res_libc.c [! USE___THREAD] + [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise. + (_res): Use __attribute__ ((section (".bss"))) so we can have an alias. + (__libc_res): Define as alias for _res. + * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE): + Add __libc_h_errno and __libc_res here. - * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format. - * sysdeps/generic/dl-machine.h: Likewise. - * sysdeps/hppa/dl-fptr.c: Likewise. - * sysdeps/ia64/dl-fptr.c: Likewise. - * sysdeps/mach/hurd/dl-sysdep.c: Likewise. - * sysdeps/mips/dl-machine.h: Likewise. - * sysdeps/mips/mips64/dl-machine.h: Likewise. - * sysdeps/powerpc/dl-machine.c: Likewise. +2002-11-14 Jakub Jelinek <jakub@redhat.com> -2001-09-07 Ben Collins <bcollins@debian.org> + * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now. + * resolv/Versions (h_errno, _res): Likewise. - * sysdeps/sparc/sparc32/dl-machine.h: Fix typo. +2002-11-14 Roland McGrath <roland@redhat.com> - * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map. + * Makerules (%.dynsym): Remove $(objpfx) from target and dep. + (%.symlist): Likewise. -2001-09-08 Ulrich Drepper <drepper@redhat.com> +2002-11-13 Roland McGrath <roland@redhat.com> - * elf/dl-lookup.c (add_dependency): Bump l_opencount of all - dependencies if necessary. + * scripts/abilist.awk: New file. + * Makefile (distribute): Add it. + * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules. + (tests): Depend on .symlist file for each $(install-lib.so-versioned). + [$(subdir) = elf] (tests): Depend on libc.symlist. + (generated, common-generated): Add those files. - * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't - loaded directly) determine length if l_initfini list by iterating - over its elements. Minor optimizations. - * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini - for dependency objects. - If object was already loaded check whether any of the dependencies - is already on the relocation dependency list. If yes, remove the - latter. Minor optimizations. - * elf/dl-lookup.c (add_dependency): Add check for self reference of - maps here. Search l_initfini list only if the object was loaded - directly and not only as a dependency. - (_dl_lookup_symbol): Add relocation dependency also if object - is not in global scope. Remove test for self-reference here. - (_dl_lookup_versioned_symbol): Likewise. - * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free - element of first name record. - * elf/loadtest.c: Add some more test to recognize early if an object - wasn't unloaded. - * elf/Makefile: Add rules to build and run reldep5. - * elf/reldep5.c: New file. - * elf/reldepmod5.c: New file. - * elf/reldepmod6.c: New file. - - * elf/reldep2.c: Fix typo. - -2001-09-07 Ulrich Drepper <drepper@redhat.com> - - * include/link.h (struct link_map): Add l_scope_mem and l_scope_max - elements. Change l_scope to be a pointer only. - * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max. - * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened - here add searchlist of newly open file to the dependency's scope. - * elf/dl-close.c (_dl_close): If dependency is used otherwise remove - only searchlist from its scope. Free own scope array if necessary. - * elf/Makefile (tests): Add dblload and dblunload now. - -2001-09-06 Andreas Jaeger <aj@suse.de> - - * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed - Stephen L Moshier. - -2001-09-05 Ulrich Drepper <drepper@redhat.com> - - * elf/Makefile: Add rules to build new tests. Don't run them yet since - they both fail. - * elf/dblload.c: New file. - * elf/dblloadmod1.c: New file. - * elf/dblloadmod2.c: New file. - * elf/dblloadmod3.c: New file. - * elf/dblunload.c: New file. - -2001-09-04 Richard Henderson <rth@redhat.com> - - * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove. - (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16. - -2001-09-04 Ulrich Drepper <drepper@redhat.com> - - Correct very misleading message for error in failed runtime relocation. - * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe - place of the error. - (_dl_signal_cerror): Likewise. - * sysdeps/generic/ldsodefs.h: Adjust prototypes. - * elf/dl-close.c: Likewise. - * elf/dl-deps.c: Likewise. - * elf/dl-load.c: Likewise. - * elf/dl-lookup.c: Likewise. - * elf/dl-open.c: Likewise. - * elf/dl-reloc.c: Likewise. - * elf/dl-sym.c: Likewise. - * elf/dl-version.c: Likewise. - * sysdeps/generic/dl-sysdep.c: Likewise. + * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP. + * configure: Regenerated. + * config.make.in (OBJDUMP): New variable, substituted by configure. -2001-09-04 Jakub Jelinek <jakub@redhat.com> + * malloc/mcheck.c (struct hdr): New members `block' and `magic2'. + (mallochook, reallochook): Set them up. + (checkhdr): Check HDR->magic2 value. + (freehook): Reset HDR->magic2. + (memalignhook): New static function. + (old_memalign_hook): New static variable. + (mcheck, reallochook): Set __memalign_hook to memalignhook. - * iconv/strtab.c (strtabinit): Initialize null Strent. - (newstring): Move len == 0 handling... - (strtabadd): ...here. - If len == 1, return null Strent. - When inserting a suffix of an existing string, check if - it is not equal to some suffix already recorded. - Copy left and right members over if adding longer string. + * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space + for the new TCB. -2001-09-04 Jakub Jelinek <jakub@redhat.com> +2002-11-13 Andreas Jaeger <aj@suse.de> - * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'. + * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility + attribute. + * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise. - * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>. - (__syscall_gethostname): Add prototype. +2002-11-11 Paul Eggert <eggert@twinsun.com> -2001-09-04 Ulrich Drepper <drepper@redhat.com> + * manual/crypt.texi (Cryptographic Functions): Mention that + the MD5 one-way algorithm is compatible with BSD's. - * elf/dl-object.c (_dl_new_object): Remove unnecessary if. +2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com> -2001-09-02 Ulrich Drepper <drepper@redhat.com> + * posix/regex_internal.c (re_string_skip_chars): Also return the last + wide character. + (re_string_reconstruct): Calculate the context by itself when the + offset points out of the valid range. + (re_string_context_at): Use wide character when MB_CUR_MAX > 1. + * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro. + (IS_WIDE_WORD_CHAR): New macro. + (IS_WIDE_NEWLINE): New macro. - * elf/rtld.c (dl_main): Increment l_opencount for main binary. +2002-11-12 Andreas Jaeger <aj@suse.de> -2001-08-27 Roland McGrath <roland@frob.com> + * sysdeps/x86_64/strchr.S: Don't use one register for two + purposes, this fixes a bug noticed by test-strchr.c. - * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too - short, copy that much into NAME anyway before returning error. + * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer + correctly. -2001-09-01 Richard Henderson <rth@redhat.com> +2002-11-12 Roland McGrath <roland@redhat.com> - * sysdeps/alpha/elf/Dist: Remove file. - * sysdeps/alpha/elf/Makefile: Remove file. - * sysdeps/alpha/elf/crtbegin.S: Remove file. - * sysdeps/alpha/elf/crtend.S: Remove file. - * sysdeps/alpha/elf/initfini.c: New file. + * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] + (_G_IO_NO_BACKWARD_COMPAT): Define it. -2001-09-01 Mark Kettenis <kettenis@gnu.org> + * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h> + instead of <pt-machine.h>. + [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of + testandset. + From Ian Wienand <ianw@gelato.unsw.edu.au>. - * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t. - * iconv/tst-iconv3.c: Likewise. +2002-11-10 Roland McGrath <roland@redhat.com> -2001-09-01 Jakub Jelinek <jakub@redhat.com> + * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos. + Call fputs instead of fwprintf (simpler to follow in debugger). - * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++. + * crypt/md5-crypt.c: Doc fix. -2001-09-01 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at + the beginning of generated target commands. - * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and - export it. - * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache. - * iconv/iconv_prog.c (insert_cache): New function. - (print_known_names): If cache is used call insert_cache to use the - information from the cache [PR libc/2509]. + * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit + dependencies for these in case implicit rule search skipped the + nonexistent source directory. + * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the + files with $(object-suffixes) as targets too. + * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx). + and a target for it using $(make-target-directory). -2001-08-31 Ulrich Drepper <drepper@redhat.com> + * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h. - * time/strptime.c (strptime_internal): Recognize 'l' format and - handle it like 'I' for symmetry with strftime. +2002-11-10 Roland McGrath <roland@frob.com> -2001-08-31 Richard Henderson <rth@redhat.com> + * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ... + * sysdeps/generic/bits/pthreadtypes.h: ... here. - * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL. - (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present. - * elf/rtld.c (HP_TIMING_AVAIL): Likewise. - (print_statistics): Make scalar unsigned long long. - * sysdeps/alpha/hp-timing.h: New file. + * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with + l_start == 0 and l_len == 1 as we do l_len == 0. -2001-08-31 Jakub Jelinek <jakub@redhat.com> +2002-11-10 Ulrich Drepper <drepper@redhat.com> - * stdio-common/perror.c (perror): Save errno early, pass it - down to perror_internal. - (perror_internal): Add errnum argument. + * po/da.po: Update from translation team. -2001-08-31 Jakub Jelinek <jakub@redhat.com> +2002-11-10 Roland McGrath <roland@redhat.com> - * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code. - Don't add old memory content for R_ALPHA_REFQUAD. + * config.make.in (includedir): New variable, substituted by configure. + Reported missing by Jocelyn Fournier <joc@presence-pc.com>. + * Makeconfig (includedir): Use $(prefix), not $(exec_prefix). -2001-08-30 Ulrich Drepper <drepper@redhat.com> +2002-11-10 Andreas Jaeger <aj@suse.de> - * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required - memory correctly. + * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add + REG_OLDMASK and REG_CR2 to synch with kernel header. + (NGREG): Increase. - * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open - instead of open, __close instead of close, __getpagesize instead - of getpagesize. + * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict + aliasing problem. + * nss/getXXbyYY_r.c (INTERNAL): Likewise. + * nss/getnssent_r.c (__nss_getent_r): Likewise. + (__nss_setent): Likewise. + (__nss_getent_r): Likewise. + * inet/getnetgrent_r.c (innetgr): Likewise. + (__internal_setnetgrent_reuse): Likewise. + (internal_getnetgrent_r): Likewise. + * inet/ether_hton.c (ether_hostton): Likewise. + * inet/ether_ntoh.c (ether_ntohost): Likewise. + * sunrpc/netname.c (netname2user): Likewise. + * sunrpc/publickey.c (getpublickey): Likewise. + (getsecretkey): Likewise. - * string/argz-stringify.c (__argz_stringify): Use __strnlen - instead of strnlen. - * include/string.h (strndupa): Redefine here to use __strnlen - instead of strnlen. - * string/strndup.c (__strndup): Use __strnlen not strnlen. +2002-11-09 Marcus Brinkmann <marcus@gnu.org> - * misc/syslog.c (vsyslog): Fix typo in last change (connect -> - connected). + * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one + error in range calculation. -2001-08-30 Jakub Jelinek <jakub@redhat.com> +2002-10-09 Jakub Jelinek <jakub@redhat.com> - * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle - R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check - for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined. - * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly. - * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly. - * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly. - * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly. + * string/test-strspn.c (do_test): Ensure zero termination. + * string/test-strpbrk.c (do_test): Likewise. + * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen. + * string/test-strncpy.c (stupid_strncpy): Likewise. + * string/test-stpncpy.c (stupid_stpncpy): Likewise. -2001-08-30 Ulrich Drepper <drepper@redhat.com> +2002-10-08 Roland McGrath <roland@redhat.com> - * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs. + * string/test-string.h (test_init): Fill BUF1 and BUF2 with + nonzero characters. -2001-08-30 Andreas Jaeger <aj@suse.de> +2002-09-22 H.J. Lu <hjl@gnu.org> - * sysdeps/ieee754/ldbl-128/e_jnl.c: New file, - contributed Stephen L Moshier. + * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed + from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT + only if __NR_mmap2 is defined. -2001-08-30 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ... + * sysdeps/unix/sysv/linux/mmap64.c: ... here. + * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed. + * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed, - * sunrpc/etc.rpc (sgi_fam): Add. +2002-11-08 Jakub Jelinek <jakub@redhat.com> -2001-08-30 Ulrich Drepper <drepper@redhat.com> + * posix/bug-regex13.c (tests): Add new test. - * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file. + * string/test-strchr.c (stupid_strchr): New function. + (do_random_tests): Make sure the string is zero terminated. + * string/test-strpbrk.c (stupid_strpbrk): New function. + (do_random_tests): Make sure the string is zero terminated. + * string/test-strcmp.c (stupid_strcmp): New function. + (do_random_tests): Make sure the strings are zero terminated. + * string/test-strspn.c (stupid_strspn): New function. + (simple_strspn): Rename rej argument to acc. + (do_random_tests): Make sure the string is zero terminated. + * string/test-strcspn.c (stupid_strcspn): New function. + * string/test-strncpy.c (stupid_strncpy): New function. + * string/test-stpncpy.c (stupid_stpncpy): New function. + * string/test-strncmp.c (stupid_strncmp): New function. + (do_random_tests): Make sure the strings are zero terminated. + * string/test-string.h (impl_t): Change test into long. + (IMPL): Add __attribute__((aligned (sizeof (void *)))). -2001-08-29 Ulrich Drepper <drepper@redhat.com> +2002-11-08 Roland McGrath <roland@redhat.com> - * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received - first is from a previous call. - Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670]. + * sysdeps/ia64/elf/configure.in: Add TLS check. + From Ian Wienand <ianw@cse.unsw.edu.au>. + * sysdeps/ia64/elf/configure: Regenerated. -2001-08-29 Andreas Schwab <schwab@suse.de> +2002-11-07 Roland McGrath <roland@redhat.com> - * sysdeps/ia64/fpu/libm-test-ulps: Updated. + * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in + place of _IO_new_do_write. + [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and + #undef before versioned_symbol use. -2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl> +2002-11-07 Richard Henderson <rth@redhat.com> - * config.make.in (INSTALL_SCRIPT): Define. - * Makeconfig (INSTALL_SCRIPT): Define. - * Makerules (do-install-script): New macro to install scripts using - INSTALL_SCRIPT. - (install-bin-script): New rule to install scripts with - do-install-script. - (install-bin-script-nosubdir): New rule. - (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir. - (distinfo-vars): Add $(install-bin-script). - * Rules (others): Likewise. - * Makefile (glibcbug): Install with install-bin-script. - * debug/Makefile (xtrace): Likewise. - (catchsegv): Likewise. - * elf/Makefile (ldd): Likewise. - * malloc/Makefile (mtrace): Likewise. - * timezone/Makefile (tzselect): Likewise. + * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test. + * configure: Regenerated. + * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef. + * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp. + (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and + _dl_fini via gp-relative relocations. + * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp. + + * elf/tls-macros.h: Add alpha versions. + * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs. + * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD. + * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER. + * sysdeps/unix/sysv/linux/alpha/brk.S: Use it. + * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/select.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise. + * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise. + + * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect. + Kill argument registers across the inline syscall. + + * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args. + + * linuxthreads/sysdeps/alpha/tls.h: New file. + * sysdeps/alpha/dl-tls.h: New file. + +2002-10-29 David Mosberger <davidm@hpl.hp.com> + + * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY] + (gmon_initializer): New function. + (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call + __gmon_start__ here. Call it from gmon_initializer() instead. + +2002-03-12 H.J. Lu <hjl@gnu.org> + + * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1, + tst-array2, and tst-array3. + [$(have-initfini-array) = yes] (tests-static): Add tst-array3. + [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep. + ($(objpfx)tst-array1.out): New target. + ($(objpfx)tst-array2): Likewise. + ($(objpfx)tst-array2.out): Likewise. + ($(objpfx)tst-array3.out): Likewise. + * elf/tst-array1.c: New file. + * elf/tst-array1.exp: Likewise. + * elf/tst-array2.c: Likewise. + * elf/tst-array2dep.c: Likewise. + * elf/tst-array2.exp: Likewise. + * elf/tst-array3.c: Likewise. + +2002-10-28 David Mosberger <davidm@hpl.hp.com> + + * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order. + Don't add L->l_addr to array entry values. + +2002-11-07 Jakub Jelinek <jakub@redhat.com> + + * string/test-string.h: New file. + * string/test-strlen.c: New file. + * string/test-string.h: New file. + * string/test-strcmp.c: New file. + * string/test-strchr.c: New file. + * string/test-strrchr.c: New file. + * string/test-strcpy.c: New file. + * string/test-stpcpy.c: New file. + * string/test-strncpy.c: New file. + * string/test-stpncpy.c: New file. + * string/test-strpbrk.c: New file. + * string/test-strcspn.c: New file. + * string/test-strspn.c: New file. + * string/test-strcat.c: New file. + * string/test-strncmp.c: New file. + * string/test-memchr.c: New file. + * string/test-memcmp.c: New file. + * string/test-memset.c: New file. + * string/test-memcpy.c: New file. + * string/test-mempcpy.c: New file. + * string/test-memmove.c: New file. + * string/Makefile (strop-tests): New variable. + (tests): Add strop-tests. + (distribute): Add test-string.h. + +2002-11-06 Ulrich Drepper <drepper@redhat.com> + + * posix/regcomp.c: Use tabs instead of spaces. + * posix/regexec.c: Likewise. + * posix/regex_internal.h: Likewise. + + * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb. + +2002-11-06 Jakub Jelinek <jakub@redhat.com> + + * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated + here. + (regcomp): Don't set can_be_null here. + (re_comp): Clear whole re_comp_buf with the exception of fastmap. + (re_compile_internal): Clear can_be_null, set regs_allocated. + + * posix/regcomp.c (re_set_fastmap): New function. + (re_compile_fastmap_iter): Use it. Remove redundant type == + COMPLEX_BRACKET check. + * posix/regexec.c (re_search_internal): Optimize searching with + fastmap. Call re_string_reconstruct even if match_first is + smaller than raw_mbs_idx. + +2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com> + + * posix/regcomp (free_dfa_content): Use free_state. + * posix/regex_internal.c (re_string_realloc_buffers): Don't edit + pointers in case that realloc failed. + (re_node_set_merge): Likewise. + (register_state): Likewise. + (create_newstate_common): Invoke memory release functions in case of + error conditions. + (create_ci_newstate): Likewise. + (create_cd_newstate): Likewise. + (free_state): New function. + * posix/regexec.c (re_search_internal): Invoke memory release + functions in case of error conditions. + (sift_states_backward): Likewise. + (merge_state_array): Likewise. + (add_epsilon_src_nodes): Likewise. + (sub_epsilon_src_nodes): Likewise. + (search_subexp): Likewise. + (sift_states_bkref): Likewise. + (transit_state_sb): Likewise. + (transit_state_mb): Likewise. + (transit_state_bkref_loop): Likewise. + (group_nodes_into_DFAstates): Likewise. + (push_fail_stack): Don't edit pointers in case that realloc failed. + (extend_buffers): Likewise. + (match_ctx_add_entry): Likewise. -2001-08-29 H.J. Lu <hjl@gnu.org> +2002-11-06 Roland McGrath <roland@redhat.com> - * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass - ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to - _dl_lookup_versioned_symbol () and _dl_lookup_symbol (). + * sysdeps/unix/sysv/linux/mips/configure.in: File removed. + * sysdeps/unix/sysv/linux/mips/configure: Likewise. -2001-08-29 Andreas Schwab <schwab@suse.de> + * configure.in: Add checks on as and ld for binutils 2.13 or later. + * configure: Regenerated. - * sysdeps/m68k/fpu/libm-test-ulps: Updated. +2002-11-06 Ulrich Drepper <drepper@redhat.com> -2001-08-28 H.J. Lu <hjl@gnu.org> + * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail. + If re_compile_internal failed free fastmap buffer. + (free_dfa_content): Broken out of regfree function. Frees all dfa + related data. + (regfree): Add free_dfa_content. + (re_compile_internal): If any of the called functions fails free + all dfa related memory. - * Makeconfig (combreloc-LDFLAGS): New variable. - Add it to LDFLAGS.so, LDFLAGS-rtld, and +link. - * config.make.in (have-z-combreloc): New variable. - * configure.in: Substitute libc_cv_z_combreloc. +2002-11-05 Ulrich Drepper <drepper@redhat.com> -2001-08-29 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent + warnings from the kernel headers. - * po/sv.po: Update from translation team. - * po/fr.po: Likewise. - * po/da.po: Likewise. +2002-11-05 Roland McGrath <roland@redhat.com> -2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl> + * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump. + From Johannes Stezenbach <js@convergence.de>. - * Makerules: Fix a typo: MD% -> MD5. + * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change + #errlist-compat magic comment to give 123 as size. + (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ... + (libc: GLIBC_2.2): ... here. + (libc: GLIBC_2.3): Likewise. -2001-08-28 Ulrich Drepper <drepper@redhat.com> +2002-11-05 Ulrich Drepper <drepper@redhat.com> - * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object. - Patch by Patrick Duval <Patrick.Duval@devinci.fr>. + * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount + which happens at the beginning so that we can unload modules in + __libc_freeres. -2001-08-28 Andreas Jaeger <aj@suse.de> +2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp> - * manual/libc-texinfo.sh: Add entry about free manuals. + * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only + under [__USE_MISC || _ASM]. - * manual/contrib.texi (Contributors): Fix cross reference. + * elf/elf.h: Remove the obsolete SH TLS relocations. - * manual/libc.texinfo (Copying): Include freemanuals. +2002-11-05 Ulrich Drepper <drepper@redhat.com> - * manual/Makefile (appendices): Add freemanuals. + * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero. - * manual/freemanuals.texi: New file. - Patch by Brian Youmans <3diff@gnu.org>. +2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> - * manual/libm-err-tab.pl: Pretty print more platforms, print a - smaller table. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle + __NR_pread64 and __NR_pwrite64. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise. + * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64 + and __NR_pwrite64. + Revert change to use INLINE_SYSCALL. + * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use + INLINE_SYSCALL. + * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise. - * manual/math.texi (Errors in Math Functions): Fix grammar, start - table on separate page. - Patch by Brian Youmans <3diff@gnu.org>. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL): + Update clobber list and add a comment about the syscall ABI. -2001-08-27 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64, + s_pwrite64, s_ftruncate, s_truncate): Re-add. - * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If - the connection went down after we first used it try to connect - again and resend the message before printing to the console. - Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>. +2002-11-05 Jakub Jelinek <jakub@redhat.com> -2001-08-27 Jakub Jelinek <jakub@redhat.com> + * iconv/gconv_dl.c (free_mem): Clear loaded. + * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's + cleanup if any. - * string/tst-strlen.c (main): Test strnlen (, -1) too. - * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top - bit set. +2002-11-05 Ulrich Drepper <drepper@redhat.com> -2001-08-27 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>. - * iconv/strtab.c (searchstring): Use correct length for comparison. - (strtabadd): Account total size correct if new string has old string as - substring. + * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same + as old code without locking. _IO_seekoff calls this function after + locking the stream. + * libio/ioseekpos.c: Likewise for _IO_seekpos. + * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal + prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked + prototypes. + * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead + of _IO_seekoff_internal. + (_IO_rewind): Likewise. + * libio/ioftell.c: Likewise. + * libio/ftello.c: Likewise. + * libio/ftello64.c: Likewise. + * libio/iofgetpos.c: Likewise. + * libio/iofgetpos64.c: Likewise. + * libio/oldiofgetpos.c: Likewise. + * libio/oldiofgetpos64.c: Likewise. + * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of + _IO_seekpos_internal. + * libio/iofsetpos64.c: Likewise. + * libio/oldiofsetpos.c: Likewise. + * libio/oldiofsetpos64.c: Likewise. -2001-08-27 Jakub Jelinek <jakub@redhat.com> +2002-11-04 Roland McGrath <roland@redhat.com> + + * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro. + * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl, + s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64, + sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev): + Remove these, no longer used. + +2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> + + * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc, + s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64, + s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority, + s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot, + s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend, + s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused + syscall stubs. + + * sysdeps/unix/sysv/linux/pwrite.c: Fix typo. + * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64 + and __NR_pread. + * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64 + and __NR_pwrite. + * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise. + +2002-11-03 Roland McGrath <roland@redhat.com> + + * sysdeps/generic/ldsodefs.h (struct rtld_global): New member + `_dl_tls_static_used'. + * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable. + (__libc_setup_tls): Initialize it. Let the initial value of + _dl_tls_static_size indicate some surplus space in the computed value. + * elf/dl-open.c (_dl_tls_static_size): New variable. + * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize + _dl_tls_static_used. Add some surplus space into _dl_tls_static_size. + * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function. + (CHECK_STATIC_TLS): Use it. + * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the + closed objects occupied a trailing contiguous chunk of static TLS area. + +2002-10-18 Bruno Haible <bruno@clisp.org> + + * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0. + +2002-11-04 Ulrich Drepper <drepper@redhat.com> + + * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and + _wide_data->_IO_read_end if adjustment can be made in the current + buffer. - * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol. + * sysdeps/unix/sysv/linux/fexecve.c: New file. -2001-08-27 Andreas Jaeger <aj@suse.de> + * libio/bug-wfflush.c (do_test): Using fseek is not allowed when + wide oriented streams are used. - * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests. + * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the + service hasn't been used [PR libc/4744]. - * math/libm-test.inc (j0_test): Add extra tests. - * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|, - not x, in Hankel approximation. - Patches by Stephen L Moshier. + * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION. + Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766]. -2001-08-26 Ulrich Drepper <drepper@redhat.com> + * manual/examples/dir.c: Don't include <stddef.h>. + * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY. + Reported by Frédéric Delanoy <delanoy_f@yahoo.com>. - * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct - link_map. +2002-11-02 H.J. Lu <hjl@gnu.org> - * configure.in: Fix test for .rela.dyn section. + * stdio-common/reg-printf.c: Include <stddef.h>. - * elf/dl-runtime.c: Update calls to _dl_lookup_*. +2002-11-03 Ulrich Drepper <drepper@redhat.com> -2001-08-26 Jakub Jelinek <jakub@redhat.com> + * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used. - * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class - instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p. - Pass type_class to _dl_lookup_*. - * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now. - Pass around just type_class instead of noexec, noplt pair. - (_dl_lookup_versioned_symbol): Likewise. - (_dl_lookup_symbol_skip): Pass around just type_class instead of - noexec, noplt pair. - (_dl_lookup_versioned_symbol_skip): Likewise. - (_dl_do_lookup, _dl_do_lookup_versioned): Likewise. - * elf/do-lookup.h (do_lookup): Likewise. - * include/link.h (struct link_map): Replace noexec and noplt fields - in l_lookup_cache with type_class field. - * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT, - ELF_RTYPE_CLASS_COPY): Define. - Adjust prototypes for _dl_lookup_symbol and - _dl_lookup_versioned_symbol. - * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p, - elf_machine_lookup_noexec_p): Remove. - (elf_machine_type_class): Define. - * sysdeps/arm/dl-machine.h: Likewise. - * sysdeps/hppa/dl-machine.h: Likewise. - * sysdeps/cris/dl-machine.h: Likewise. - * sysdeps/i386/dl-machine.h: Likewise. - * sysdeps/ia64/dl-machine.h: Likewise. - * sysdeps/m68k/dl-machine.h: Likewise. - * sysdeps/mips/mips64/dl-machine.h: Likewise. - * sysdeps/mips/dl-machine.h: Likewise. - * sysdeps/powerpc/dl-machine.h: Likewise. - * sysdeps/sparc/sparc32/dl-machine.h: Likewise. - * sysdeps/sparc/sparc64/dl-machine.h: Likewise. - * sysdeps/sh/dl-machine.h: Likewise. - * sysdeps/s390/s390-32/dl-machine.h: Likewise. - * sysdeps/s390/s390-64/dl-machine.h: Likewise. + * po/ca.po: Update from translation team. + * po/es.po: Likewise. -2001-08-26 Ulrich Drepper <drepper@redhat.com> + * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF + is defined write out memory map. + * sysdeps/unix/sysv/linux/segfault.c: New file. - * manual/message.texi (Advanced gettext functions): Change - description of plural forms for Slovak. - Reported by Marcel Telka <marcel@telka.sk>. +2002-11-02 Roland McGrath <roland@redhat.com> - * manuaL/time.texi (Low-Level Time String Parsing): Fix description of - %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>. + * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for + pointers that can alias. + Reported by Daniel Jacobowitz <drow@mvista.com>. -2001-08-26 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file. - * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a - typo. Patch by Florian La Roche <laroche@redhat.com>. +2002-11-02 Roland McGrath <roland@redhat.com> -2001-08-26 Ulrich Drepper <drepper@redhat.com> + * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r + description to be clearer and to say that *RESULT is set to ENTRY. - * include/link.h (struct link_map): Add l_lookup_cache element. - * elf/dl-reloc.c (RESOLVE): Add symbol caching here. - (RESOLVE_MAP): Likewise. - (_dl_relocate_object): Remove cache initialization. - * elf/dl-lookup.c: Rip out cache handling code. - * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable - declarations. +2002-10-30 Jakub Jelinek <jakub@redhat.com> - * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and - remove some __builtin_expect. - (_dl_lookup_versioned_symbol): Likewise. + * posix/regexec.c (build_trtable): Alloca or malloc dests_node and + dests_ch arrays together. Alloca or malloc dest_states, + dest_states_word and dest_states_nl arrays together. Free memory on + error exit. - * config.h.in: Add HAVE_Z_COMBRELOC. - * configure.in: Add test for -z combreloc. +2002-10-29 Daniel Jacobowitz <drow@mvista.com> - * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and - optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of - R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP - case to almost no code. + * crypt/crypt_util.c (__init_des_r): Initialize current_salt + and current_saltbits. -2001-08-25 Ulrich Drepper <drepper@redhat.com> +2002-11-02 Roland McGrath <roland@redhat.com> - * po/tr.po: Update from translation team. + * stdio-common/reg-printf.c: Include <stdlib.h>. -2001-08-24 Andreas Jaeger <aj@suse.de> +2002-11-02 H.J. Lu <hjl@gnu.org> - * iconv/Makefile (extra-objs): Add iconvconfig-modules so that - make clean works. + * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set + caller to EXTRA instead of execve. -2001-08-24 Ulrich Drepper <drepper@redhat.com> +2002-11-01 Roland McGrath <roland@redhat.com> - * elf/rtld.c (print_statistics): Printf % after percent values. - * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%. + * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional + in place of [!(USE_TLS && HAVE___THREAD)]. + (__errno_location) [! USE___THREAD]: Define as strong, not weak. - * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we - don't have to compute the hash value and initialize current_value. - Move reference_name variable to where it is needed. - (_dl_lookup_versioned_symbol): Likewise. +2002-10-31 Roger Sayle <roger@eyesopen.com> -2001-08-24 Roland McGrath <roland@frob.com> + * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q): + New macros. + * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise. - * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr. - Just test that strerror returns non-null for a few errno codes. + * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST + without defining FP_ROUNDMODE. -2001-08-23 Roland McGrath <roland@frob.com> +2002-10-29 Jakub Jelinek <jakub@redhat.com> - * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal, - _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor. + * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove. + (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and + declare_symbol. + * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove. + (OLD_SIGLIST_SIZE): Define. + * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove. + (OLD_SIGLIST_SIZE): Define. + * sysdeps/unix/sysv/linux/arm/siglist.c: Remove. - * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink. +2002-11-01 Jakub Jelinek <jakub@redhat.com> - * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy, - __mach_reply_port. + * sysdeps/ia64/strncpy.S: Fix recovery code. -2001-08-24 Ulrich Drepper <drepper@redhat.com> +2002-10-30 Jakub Jelinek <jakub@redhat.com> + + * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn): + New macros. + * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove + text_set_element. + * elf/dl-libc.c (free_mem): Likewise. + * iconv/gconv_conf.c (free_mem): Likewise. + * iconv/gconv_db.c (free_mem): Likewise. + * iconv/gconv_dl.c (free_mem): Likewise. + * iconv/gconv_cache.c (free_mem): Likewise. + * intl/finddomain.c (free_mem): Likewise. + * intl/dcigettext.c (free_mem): Likewise. + * locale/setlocale.c (free_mem): Likewise. + * misc/fstab.c (fstab_free): Likewise. + * nss/nsswitch.c (free_mem): Likewise. + * posix/regcomp.c (free_mem): Likewise. + * resolv/gai_misc.c (free_res): Likewise. + * stdlib/fmtmsg.c (free_mem): Likewise. + * sunrpc/clnt_perr.c (free_mem): Likewise. + * sysdeps/generic/setenv.c (free_mem): Likewise. + * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise. + * sysdeps/pthread/aio_misc.c (free_res): Likewise. + * time/tzset.c (free_mem): Likewise. + * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section. + * locale/loadarchive.c (_nl_archive_subfreeres): Likewise. + * malloc/set-freeres.c (__libc_freeres): Likewise. + + * login/getutent.c: Include stdlib.h instead of stddef.h. + (buffer): Change into pointer to utmp, add libc_freeres_ptr. + (__getutent): Allocate buffer the first time it is run. + * login/getutid.c: Include stdlib.h instead of stddef.h. + (buffer): Change into pointer to utmp, add libc_freeres_ptr. + (__getutid): Allocate buffer the first time it is run. + * login/getutline.c: Include stdlib.h instead of stddef.h. + (buffer): Change into pointer to utmp, add libc_freeres_ptr. + (__getutline): Allocate buffer the first time it is run. + * malloc/mtrace.c (malloc_trace_buffer): Change into char *. + (mtrace): Allocate malloc_trace_buffer. + * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf. + * resolv/ns_print.c (ns_sprintrrf): Decrease size of t. + * string/strerror.c: Include libintl.h and errno.h. + (buf): New variable. + (strerror): Only allocate buffer if actually needed (unknown error). + * time/tzfile.c (transitions): Add libc_freeres_ptr. + (freeres): Remove. + +2002-10-25 Jakub Jelinek <jakub@redhat.com> + + * include/libc-symbols.h (libc_freeres_ptr): New macro. + * malloc/set-freeres.c (__libc_freeres_ptrs): Define using + symbol_set_define. + (__libc_freeres): Free all pointers in that section. + * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed + commands when creating .lds script. + (LDSEDCMD-c.so): New variable. + * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr. + (rcmd_af): Use strdup to allocate ahostbuf. + * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr. + (rexec_af): Use strdup to allocate ahostbuf. + * stdio-common/reg-printf.c (printf_funcs): Remove. + (__printf_arginfo_table): Change into printf_arginfo_function **. + Add libc_freeres_ptr. + (__register_printf_function): Allocate __printf_arginfo_table + and __printf_function_table the first time it is called. + * stdio-common/printf-parse.h (__printf_arginfo_table): Change into + printf_arginfo_function **. + (parse_one_spec): Add __builtin_expect. + * grp/fgetgrent.c (buffer): Add libc_freeres_ptr. + (free_mem): Remove. + * inet/getnetgrent.c (buffer): Add libc_freeres_ptr. + (free_mem): Remove. + * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC. + (string_space, map): Add libc_freeres_ptr. + (free_mem): Remove. + * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr. + (free_mem): Remove. + * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr. + (free_mem): Remove. + * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC. + (buffer): Add libc_freeres_ptr. + (free_mem): Remove for _LIBC. + * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr. + (free_mem): Remove. + * nss/getXXent.c (buffer): Add libc_freeres_ptr. + (free_mem): Remove. + * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr. + (free_mem): Remove. + * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr. + (free_mem): Remove. + * shadow/fgetspent.c (buffer): Add libc_freeres_ptr. + (free_mem): Remove. + * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr. + (free_mem): Remove. + * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add + libc_freeres_ptr. + (free_mem): Remove. + * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add + libc_freeres_ptr. + (free_mem): Remove. + +2002-10-30 Jakub Jelinek <jakub@redhat.com> + + * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias + instead of duplicating the whole function in libc. + +2002-10-31 Roland McGrath <roland@redhat.com> + + * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32): + Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>. + +2002-10-30 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each + 32bit-predefine when creating .new32 list and -U for each + 32bit-predefine when creating .new64 list. + * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New. + +2002-10-29 Andreas Schwab <schwab@suse.de> + + * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not + "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>. + +2002-10-25 Roland McGrath <roland@redhat.com> + + * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change. + * sysdeps/unix/sysv/linux/configure: Regenerated. - * nss/test-netdb.c (test_hosts): Don't segfault if gethostname - returns NULL. + * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from + _dl_starting_up decl. - * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so - startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc - doesn't do it. - * elf/rtld.c: Include <sys/param.h>. - * elf/dl-reloc.c: Likewise. +2002-10-20 H.J. Lu <hjl@gnu.org> -2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl> + * sysdeps/unix/sysv/linux/configure.in: Don't check + /lib/modules/`uname -r`/build/include for kernel headers if + cross compiling. + * sysdeps/unix/sysv/linux/configure: Regenerated. - * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to - empty to prevent junk from being generated. - * sysdeps/unix/sysv/linux/mips/configure: Regenerated. +2002-10-25 Roland McGrath <roland@redhat.com> + + * math/math.h (M_LOG2El): Correct the value. + From Stephen L Moshier <steve@moshier.net>. + + * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED] + conditional from __libc_multiple_libcs access. Remove kludge for weak + symbol access with old compilers we no longer support. + * sysdeps/unix/sysv/aix/init-first.c (init): Likewise. + * sysdeps/generic/libc-start.c (__libc_start_main): Likewise. + +2002-10-25 Roland McGrath <roland@redhat.com> + + * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and + implement SV_RESETHAND by translating it to SA_RESETHAND. + +2002-10-23 Alexandre Oliva <aoliva@redhat.com> + + * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation + type on ELF64 platforms. + +2002-10-24 Ulrich Drepper <drepper@redhat.com> + + * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF. + + * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT. + +2002-10-24 Jakub Jelinek <jakub@redhat.com> + + * elf/dl-misc.c: Include <sysdep.h>. + (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up. + + * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL, + INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros. + (INLINE_SYSCALL): Use that. + * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL, + INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros. + (INLINE_SYSCALL): Use that. + * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL, + INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros. + (INLINE_SYSCALL): Use that. + * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include + dl-sysdep.h. + (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant. + (__INTERNAL_SYSCALL_STRING): Define. + * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include + dl-sysdep.h. + (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant. + (__INTERNAL_SYSCALL_STRING): Define. + * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass + __SYSCALL_STRING to inline_syscall*. + (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): + New macros. + (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3, + inline_syscall4, inline_syscall5, inline_syscall6): Add string + argument. -2001-08-24 Jakub Jelinek <jakub@redhat.com> +2002-10-24 Roland McGrath <roland@redhat.com> + + * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here. + * sysdeps/unix/sysv/linux/init-first.c: Not here. + * sysdeps/powerpc/elf/libc-start.c: Or here. + * sysdeps/unix/sysv/aix/libc-start.c: Or here. + * sysdeps/unix/sysv/aix/start-libc.c: Or here. + * sysdeps/unix/sysv/aix/init-first.c: Or here. + * sysdeps/generic/libc-start.c: Or here. + * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up + access with [! SHARED]. + * sysdeps/unix/sysv/aix/init-first.c (init): Likewise. + + * libio/bug-wfflush.c: New file. + * libio/Makefile (tests): Add bug-wfflush. + +2002-10-23 Roland McGrath <roland@redhat.com> + + * stdio-common/tst-fphex.c: New file. + * stdio-common/Makefile (tests): Add tst-fphex. + * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization + of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad + chars always before the value digits. + Reported by James Antill <james.antill@redhat.com>. + +2002-10-24 Jakub Jelinek <jakub@redhat.com> + + * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf. + (free_mem): New function. + * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem + if not cross compiling. + (generated): Add bug-regex14-mem and bug-regex14.mtrace. + (bug-regex14-ENV): Set. + (bug-regex14-mem): New target. + * posix/bug-regex14.c: New file. + +2002-10-23 Roland McGrath <roland@redhat.com> + + * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output + target, so we don't touch it when the link fails. + + * libio/ftello.c (ftello): Use _IO_off64_t for type of POS. + Check for the result overflowing off_t and fail with EOVERFLOW. + * libio/ioftell.c (_IO_ftell): Likewise. + * libio/iofgetpos.c (_IO_new_fgetpos): Likewise. + + * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval, + use a temporary timeval on the stack for gettimeofday and copy it. + * login/logout.c (logout): Likewise. + Reported by Steven Munroe <sjmunroe@us.ibm.com>. + + * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): + Use __SWORD_TYPE instead of int for member types. + (struct statfs64): Likewise. + * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file. + * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file. + * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed. + * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed. + * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed. + + * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ... + * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here. + (ST_NODIRATIME): Restore fixed value of 2048. + * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed. + * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed. + + Rearranged <bits/types.h> definitions to reduce duplication. + * sysdeps/generic/bits/types.h: Rewritten, using macros from + <bits/wordsize.h> and new header <bits/typesizes.h>. + * posix/Makefile (headers): Add bits/typesizes.h here. + * sysdeps/generic/bits/typesizes.h: New file. + * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file. + * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file. + * sysdeps/mach/hurd/bits/typesizes.h: New file. + * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed. + * sysdeps/unix/sysv/linux/bits/types.h: File removed. + * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed. + * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed. + * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed. + * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed. + * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed. + * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include + <bits/pthreadtypes.h> here, not in <bits/types.h>. + * signal/signal.h: Likewise. - * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative - records. Rename endrel to relative, initialize it to r, and use it - in elf_machine_rel_relative calls. Point r after relative relocs. + * streams/stropts.h: Include <bits/xtitypes.h>. + * streams/Makefile (headers): Add bits/xtitypes.h here. + * sysdeps/generic/bits/xtitypes.h: New file. + * sysdeps/s390/bits/xtitypes.h: New file. + * sysdeps/ia64/bits/xtitypes.h: New file. + * sysdeps/x86_64/bits/xtitypes.h: New file. -2001-08-24 Ulrich Drepper <drepper@redhat.com> + * sysvipc/Makefile (headers): Add bits/ipctypes.h here. + * sysdeps/generic/bits/ipctypes.h: New file. + * sysdeps/mips/bits/ipctypes.h: New file. + * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>. + * sysdeps/gnu/bits/msq.h: Likewise. + * sysvipc/sys/ipc.h: Likewise. - * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction - of R_386_NONE. +2002-10-22 Ulrich Drepper <drepper@redhat.com> -2001-08-24 Jakub Jelinek <jakub@redhat.com> + * elf/dl-load.c (struct filebuf): For buf element to have the + alignment of ElfXX_Ehdr since this is what will be stored in it. - * elf/do-rel.h (elf_machine_rel_relative): Define for rela if - necessary. Undefine newly defined macros at the end. - * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative): - Rename from elf_machine_rel_relative. - * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise. - * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise. - * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise. - * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative): - Likewise. - * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative): - Likewise. - * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise. - Fix argument types. - * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise. - Fix argument types. - * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative): - Likewise. Fix argument types. - * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative): - Likewise. Fix argument types. - * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise. - Fix argument types. - * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use - ElfW(Rel) in argument. - * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New - function. +2002-10-22 Jakub Jelinek <jakub@redhat.com> -2001-08-24 Alexandre Oliva <aoliva@redhat.com> + * locale/programs/locarchive.c (add_alias): Change locrec_offset arg + into pointer to locrec_offset. + (add_locale_to_archive): Adjust callers. Free normalized_name right + before returning, not immediately after add_locale, pass it to + add_alias if not NULL instead of name. Rename second normalized_name + occurence to nnormalized_codeset_name. - * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo. + * locale/programs/locarchive.c (enlarge_archive): Make sure + string_size is always a multiple of 4. + Reported by Andreas Schwab <schwab@suse.de>. -2001-08-24 Andreas Jaeger <aj@suse.de> +2002-10-21 Andreas Schwab <schwab@suse.de> - * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by - Stephen L Moshier <moshier@mediaone.net>. + * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set + caller to EXTRA instead of execve, since the latter has a + higher-priority implementation in linuxthreads. -2001-08-24 Ulrich Drepper <drepper@redhat.com> +2002-10-21 Roland McGrath <roland@redhat.com> - * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes - first if RELCOUNT is set. + * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static + slotinfo list's len member to the proper size, not just 1. + Initialize static_map.l_tls_initimage. - * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't - call elf_machine_rel for the last DT_RELCOUNT relocations but instead - elf_machine_rel_relative. - * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative. - Minor optimizations. - * sysdeps/arm/dl-machine.h: Likewise. - * sysdeps/cris/dl-machine.h: Likewise. - * sysdeps/hppa/dl-machine.h: Likewise. - * sysdeps/i386/dl-machine.h: Likewise. - * sysdeps/ia64/dl-machine.h: Likewise. - * sysdeps/m68k/dl-machine.h: Likewise. - * sysdeps/mips/dl-machine.h: Likewise. - * sysdeps/powerpc/dl-machine.h: Likewise. - * sysdeps/s390/s390-32/dl-machine.h: Likewise. - * sysdeps/s390/s390-64/dl-machine.h: Likewise. - * sysdeps/sh/dl-machine.h: Likewise. - * sysdeps/sparc/sparc32/dl-machine.h: Likewise. - * sysdeps/sparc/sparc64/dl-machine.h: Likewise. + * elf/dl-open.c (dl_open_worker): Fix loop searching for + dtv_slotinfo_list element containing new modules' l_tls_modid. -2001-08-23 Roland McGrath <roland@frob.com> - - * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1. - - * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from - sysdeps/mach version. Implement counting ("recursive") mutexes - on top of cthreads mutexes. - * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works. - - * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to - _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error. - (__libc_cleanup_region_start, __libc_cleanup_region_end, - __libc_clean_end): Define these to call the cleanup function after - normal exit when they're supposed to. - - * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start): - Take new first arg DOIT, a boolean saying whether to really install - any cleanup handler. - (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero. - (__libc_cleanup_end): Likewise. - * sysdeps/generic/bits/libc-lock.h: Same changes. - * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg. - * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise. - * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start): - Likewise. - * misc/syslog.c (vsyslog, openlog, closelog): Likewise. - * sysdeps/generic/bits/stdio-lock.h - (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise. + * elf/tst-tls9.c, elf/tst-tls9-static.c: New files. + * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files. + * elf/Makefile (tests): Add tst-tls9. + (tests-static): Add tst-tls9-static. + (tst-tls9-static-ENV): New variable. + ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets. -2001-08-23 Jakub Jelinek <jakub@redhat.com> + * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of + modids used by partially loaded modules being closed can't be known. - * elf/ldconfig.c (search_dir): Remove stale symlinks. +2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com> -2001-08-23 Jakub Jelinek <jakub@redhat.com> + * posix/Makefile: Add a test case for the bug reported by Aharon + Robbins <arnold@skeeve.com>. + * posix/bug-regex13.c: New file. + * posix/regcomp.c (peek_token_bracket): Skip the byte already read. - * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New - functions. - (_dl_lookup_symbol): Lookup relocations in cache and store successfull - lookups in cache. - (_dl_lookup_versioned_symbol): Likewise. - * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for - relocation lookup. - * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations. - * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition. - (lookup_cache, lookup_cache_versioned): Add declarations. +2002-10-21 Ulrich Drepper <drepper@redhat.com> -2001-08-23 Ulrich Drepper <drepper@redhat.com> + * csu/gmon-start.c: Pretty printing. - * stdlib/tst-random.c (main): Swap parameters in fail call. - Patch by Pete Bevin <pete@petebevin.com>. +2002-10-19 Art Haas <ahaas@neosoft.com> -2001-08-23 Jakub Jelinek <jakub@redhat.com> + * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS, + add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros, + add autoconf quotes to the AC_CONFIG_AUX_DIR macro. + * configure: Regenerated. - * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t. +2002-10-19 Roland McGrath <roland@redhat.com> -2001-08-23 Ulrich Drepper <drepper@redhat.com> + * configure.in: Call AC_CONFIG_SUBDIRS with empty argument + and then set $subdirs directly, because the new Autoconf breaks + compatibility in every way imaginable and insists on whining + about usage that worked since the dawn of time. + * configure: Regenerated. - * malloc/obstack.c: Indent preprocessor directives. - Patch by Jim Meyering <meyering@ascend.com>. + * configure: Regenerated (using Autoconf 2.54). + * sysdeps/alpha/elf/configure: Likewise. + * sysdeps/generic/configure: Likewise. + * sysdeps/i386/elf/configure: Likewise. + * sysdeps/ia64/elf/configure: Likewise. + * sysdeps/mach/hurd/configure: Likewise. + * sysdeps/mach/configure: Likewise. + * sysdeps/unix/configure: Likewise. + * sysdeps/unix/common/configure: Likewise. + * sysdeps/unix/sysv/aix/configure: Likewise. + * sysdeps/unix/sysv/linux/configure: Likewise. + * sysdeps/unix/sysv/linux/mips/configure: Likewise. + * sysdeps/x86_64/elf/configure: Likewise. + + * config.make.in: Nix completely-soft nonsense. + * configure.in: Likewise. Under --without-fp, use nofpu subdirectory + of machine directories instead of fpu subdirectory. + * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change. + * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead. + * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ... + * sysdeps/powerpc/nofpu/sim-full.c: ... here. + * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ... + * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here. + * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ... + * sysdeps/powerpc/nofpu/fegetexcept.c: ... here. + * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ... + * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here. + * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ... + * sysdeps/powerpc/nofpu/ftestexcept.c: ... here. + * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ... + * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here. + * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ... + * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here. + * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ... + * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here. + * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ... + * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here. + * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ... + * sysdeps/powerpc/nofpu/fegetenv.c: ... here. + * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ... + * sysdeps/powerpc/nofpu/fesetenv.c: ... here. + * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ... + * sysdeps/powerpc/nofpu/fegetround.c: ... here. + * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ... + * sysdeps/powerpc/nofpu/fesetround.c: ... here. + * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ... + * sysdeps/powerpc/nofpu/feupdateenv.c: ... here. + * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ... + * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here. + * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ... + * sysdeps/powerpc/nofpu/fenv_const.c: ... here. + * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ... + * sysdeps/powerpc/nofpu/libm-test-ulps: ... here. + * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ... + * sysdeps/powerpc/nofpu/soft-supp.h: ... here. + * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ... + * sysdeps/powerpc/nofpu/Versions: ... here, new file. + +2002-10-19 Bruno Haible <bruno@clisp.org> + + * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file. + +2002-10-18 Roland McGrath <roland@redhat.com> + + * io/Makefile (routines): Add lchmod. + * io/sys/stat.h [__USE_BSD] (lchmod): Declare it. + * sysdeps/generic/lchmod.c: New file. + * sysdeps/mach/hurd/lchmod.c: New file. + * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod. + +2002-10-18 Art Haas <ahaas@neosoft.com> + + * configure.in: Remove remaining AC_FD_CC macros, and replace + AC_FD_MSG with AS_MESSAGE_FD. + +2002-10-18 Roland McGrath <roland@redhat.com> + + * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix + typos: VALUE -> FINALADDR. + + * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1) + (inline_syscall_clobbers, inline_syscall0, inline_syscall1) + (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5) + (inline_syscall6): Move these macros ... + * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here. + + * configure.in (libc_link_dests, libc_link_sources): Remove these + variables and the AC_LINK_FILES call. + + * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last + change to put new symbols here instead of in GLIBC_2.2. + * sysdeps/powerpc/Subdirs: Move this file ... + * sysdeps/powerpc/soft-fp/Subdirs: ... here. + +2002-10-07 Roland McGrath <roland@redhat.com> + + * sysdeps/generic/bits/time.h: Replaced with contents of the + sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following + files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID + and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these + macros is ok even for architectures that don't now implement them. + * sysdeps/mach/hurd/bits/time.h: File removed. + * sysdeps/unix/sysv/linux/bits/time.h: File removed. + * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed. + * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed. + * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed. + * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed. + +2002-10-18 Jeff Bailey <jbailey@gnu.org> + + * configure.in: Replace obsolete AC_OUTPUT syntax with + AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio. + + * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for + _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE. + + * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD. + * sysdeps/alpha/elf/configure.in: Likewise. + * sysdeps/i386/elf/configure.in: Likewise. + * sysdeps/mach/hurd/configure.in: Likewise. + * sysdeps/x86_64/elf/configure.in: Likewise. + + * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax. + + * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement. + * sysdeps/generic/configure.in: Likewise. + * sysdeps/i386/elf/configure.in: Likewise. + * sysdeps/ia64/elf/configure.in: Likewise. + * sysdeps/mach/configure.in: Likewise. + * sysdeps/mach/hurd/configure.in: Likewise. + * sysdeps/unix/configure.in: Likewise. + * sysdeps/unix/common/configure.in: Likewise. + * sysdeps/unix/sysv/aix/configure.in: Likewise. + * sysdeps/unix/sysv/linux/configure.in: Likewise. + * sysdeps/unix/sysv/linux/mips/configure.in: Likewise. + * sysdeps/x86_64/elf/configure.in: Likewise. + + * aclocal.m4: Use just the bits from AS_INIT that are needed for the + GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so + that it's obvious when extra autoconf machinery is being dragged in. + +2002-10-18 Roland McGrath <roland@redhat.com> + + * configure.in: Remove bogus echo included in + 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change. + * configure: Regenerated. - * po/ja.po: Update from translation team. +2002-10-18 Jakub Jelinek <jakub@redhat.com> -2001-08-23 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline. + (statfs_filesize_max): New function. + * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC, + JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC, + ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define. + * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use + statfs_filesize_max. + * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise. + * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed. + * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed. - * libio/tst-ungetwc1.c (main): Add a const to quiet a warning. +2002-10-17 Roland McGrath <roland@redhat.com> - * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN. - Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error. + * configure.in (MIG): Just AC_SUBST it here. + * configure: Regenerated. + * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here. + Adding final - argument to all AC_CHECK_HEADER uses for .defs files. + * sysdeps/mach/configure: Regenerated. -2001-08-22 Roland McGrath <roland@frob.com> + * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE]) + and AC_PROVIDE([_AS_CR_PREPARE]). + + * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]). + Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]). + + * elf/dl-support.c: Move _dl_tls_* variables to ... + * sysdeps/generic/libc-tls.c: ... here. + + * elf/dl-close.c (remove_slotinfo): Take new argument. If false, + allow IDX to be one past the current last slotinfo entry. + (_dl_close): Pass IMAP->l_init_called for that parameter. + +2002-10-07 Andreas Schwab <schwab@suse.de> + + * aclocal.m4: Fix for autoconf 2.53. + * configure.in: Likewise. Require autoconf 2.53. + +2002-10-08 Richard Henderson <rth@redhat.com> + + * soft-fp/op-4.h: Handle carry correctly in + __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3, + __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4. + * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop. + +2002-10-08 Aldy Hernandez <aldyh@redhat.com> + + * configure.in: Compute completely-soft. + * config.make.in: Make completely-soft available to sub-makes. + * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and + gcc-double-routines. Add sim-full.c. Add fenv_const and + fe_nomask to libm-support. + * sysdeps/powerpc/soft-fp/sim-full.c: New file. + * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file. + * sysdeps/powerpc/soft-fp/fegetexcept.c: New file. + * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file. + * sysdeps/powerpc/soft-fp/ftestexcept.c: New file. + * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file. + * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file. + * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file. + * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file. + * sysdeps/powerpc/soft-fp/fegetenv.c: New file. + * sysdeps/powerpc/soft-fp/fesetenv.c: New file. + * sysdeps/powerpc/soft-fp/fegetround.c: New file. + * sysdeps/powerpc/soft-fp/fesetround.c: New file. + * sysdeps/powerpc/soft-fp/feupdateenv.c: New file. + * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file. + * sysdeps/powerpc/soft-fp/fenv_const.c: New file. + * sysdeps/powerpc/soft-fp/libm-test-ulps: New file. + * sysdeps/powerpc/soft-fp/soft-supp.h: New file. + * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float + symbols. Add __sim_disabled_exceptions, __sim_exceptions, + __sim_round_mode. + * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c. + * sysdeps/powerpc/soft-float/sfp-machine.h: Define + FP_HANDLE_EXCEPTIONS. + Define FP_ROUNDMODE. + Redefine FP_* macros to correspond to the FE_* bit positions. + Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop. + Define externs for __sim_exceptions, __sim_disabled_exceptions, + __sim_round_mode, __simulate_exceptions. + * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here... + * sysdeps/powerpc/bits/fenv.h: ...to here. + +2002-10-06 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): + Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time. + Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix + R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use + __builtin_expect. - * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with - __libc_lock_define_recursive. - * elf/dl-open.c: Don't declare it here any more. - * elf/dl-close.c: Likewise. - * elf/dl-lookup.c: Likewise. - * elf/dl-iteratephdr.c: Likewise. - * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and - __libc_lock_unlock_recursive. - * elf/dl-close.c (_dl_close): Likewise - * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise - * elf/dl-open.c (_dl_open): Likewise +2002-10-15 Jakub Jelinek <jakub@redhat.com> + + * include/resolv.h (__libc_res_nquery, __libc_res_nsearch, + __libc_res_nsend): New prototypes. + * resolv/res_query.c (QUERYSIZE): Define. + (__libc_res_nquery): Renamed from res_nquery. Added answerp + argument. Allocate only QUERYSIZE bytes first, if res_nmkquery + fails use MAXPACKET buffer. Call __libc_res_nsend instead of + res_nsend, pass answerp. + (res_nquery): Changed into wrapper around __libc_res_nquery. + (__libc_res_nsearch): Renamed from res_nsearch. Added answerp + argument. Call __libc_res_nquerydomain and __libc_res_nquery + instead of the non-__libc_ variants, pass them answerp. + (res_nsearch): Changed into wrapper around __libc_res_nsearch. + (__libc_res_nquerydomain): Renamed from res_nquerydomain. + Added answerp argument. Call __libc_res_nquery instead of + res_nquery, pass answerp. + (res_nquerydomain): Changed into wrapper around + __libc_res_nquerydomain. + * resolv/res_send.c: Include sys/ioctl.h. + (MAXPACKET): Define. + (send_vc): Change arguments. Reallocate answer buffer if it is + too small. + (send_dg): Likewise. + (__libc_res_nsend): Renamed from res_nsend. Added ansp argument. + Reallocate answer buffer if it is too small and hooks are in use. + Adjust calls to send_vc and send_dg. + (res_nsend): Changed into wrapper around __libc_res_nsend. + * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate + just 1K answer buffer on the stack, use __libc_res_nsearch instead + of res_nsearch. + (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery. + * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise. + (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch. + * resolv/gethnamaddr.c (gethostbyname2): Likewise. + (gethostbyaddr): Similarly with __libc_res_nquery. + * resolv/Versions (libresolv): Export __libc_res_nquery and + __libc_res_nsearch at GLIBC_PRIVATE. + +2002-10-17 Roland McGrath <roland@redhat.com> + + * configure.in: Grok --without-__thread and disable HAVE___THREAD. + * configure: Regenerated. - * sysdeps/generic/bits/libc-lock.h - (__libc_lock_define_recursive): New macro. - * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it. - (_IO_lock_lock): Use __libc_lock_lock_recursive. - (_IO_lock_unlock): Use __libc_lock_unlock_recursive. + * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS + before performing the reloc, not after. + * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise. - * conform/conformtest.pl (checknamespace): Sort the output list. +2002-10-17 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT. - (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these - definitions conditional on [__USE_XOPEN]. + * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call. + * locale/programs/linereader.c (lr_open): Likewise. + * locale/programs/charmap-dir.c (charmap_open): Likewise. + * locale/programs/locarchive.c (add_locale_to_archive): Likewise. - * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define - these unconditionally, not only use [__USE_BSD], so as to match - the sysdeps/unix/sysv/linux files. +2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com> -2001-08-22 Ulrich Drepper <drepper@redhat.com> + * posix/bug-regex11.c: Add a test case for the bug reported by + Paolo Bonzini <bonzini@gnu.org>. + * posix/regexec.c (sift_states_bkref): Use correct destination of + the back reference. - * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to - avoid warnings. +2002-10-17 Roland McGrath <roland@redhat.com> - * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using - DL_LOOKUP_ADDRESS. + * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS. + * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro + to signal error if an IE-model TLS reloc resolved to a dlopen'd module. + * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela): + Call it after performing TPOFF relocs. + * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise. + * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise. + * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op). + + * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash + when closing a partially-initialized object. + + * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose + instead of _dl_fatal_printf when we see PT_TLS. + + * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F)) + instead of $(libof-$<). + +2002-10-16 Roland McGrath <roland@redhat.com> + + * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed. + instead of += to append, to be sure $(lib) gets expanded at defn time. + (libof-$(cpp-src)): New variable, define this instead. + * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup. + (lib): Don't use override. + (CPPFLAGS-$(lib)): New variable, put -D's here. + * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename. + Also add $(CPPFLAGS-LIB) before the file-specific flags, for each + LIB found by $(libof-*) for basename, target, or source. + * Makerules (CPPFLAGS-nonlib): New variable. + * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk. + * locale/Makefile (lib): Likewise. + * sunrpc/Makefile (lib): Likewise. + + * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ... + * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here. + * sysdeps/unix/sysv/linux/pathconf.h: New file. + (statfs_link_max): New function, guts from fpathconf.c. + * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that. + * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise. + * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten + to use the linux/pathconf.c code by #include rather than duplication. + * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise. + +2002-10-16 Jakub Jelinek <jakub@redhat.com> -2001-08-22 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): + Use __libc_errno only for libc itself. + +2002-10-16 Andreas Jaeger <aj@suse.de> - * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up - conditionalization of sa_handler/sa_sigaction member types to - match the sysdeps/unix/sysv/linux file. + * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access. -2001-08-22 Ulrich Drepper <drepper@redhat.com> +2002-10-16 Ulrich Drepper <drepper@redhat.com> - * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero - symbol sizes a bit better. + * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): + Use __libc_errno only for libc itself. - * sysdeps/ia64/strncpy.S: Complete rewrite. - Contributed by Jakub Jelinek <jakub@redhat.com>. +2002-10-15 Roland McGrath <roland@redhat.com> + Jakub Jelinek <jakub@redhat.com> - * string/stratcliff.c (main): Add strncpy test. + * sysdeps/unix/sysv/linux/Makefile + ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from + sparc/Makefile to produce a bi-arch file as needed. + That's now parameterized by the variable $(64bit-predefine). + Use LC_ALL=C for `comm' commands in that rule. + No longer conditional on [$(no_syscall_list_h)]. + * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules. + (64bit-predefine): New variable. + * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise. + * sysdeps/unix/sysv/linux/s390/Makefile: New file. + * sysdeps/unix/sysv/linux/powerpc/Makefile + (64bit-predefine): New variable. + +2002-10-15 Roland McGrath <roland@redhat.com> + + * sysdeps/unix/sysv/linux/Makefile + ($(objpfx)syscall-%.h $(objpfx)syscall-%.d) + + * login/utmp-private.h: Declare __libc_utmp_lock. + * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once + and call __libc_utmp_jump_table functions directly, instead of using + __setutent et al. + + * sysdeps/unix/sysv/linux/configure.in: Use case instead of if. + * sysdeps/unix/sysv/linux/configure: Regenerated. -2001-08-22 Roland McGrath <roland@frob.com> + * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>. + (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: + Use int32_t for ll_time. + (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: + Use int32_t instead of long int for ut_session. + Use an anonymous struct with 32-bit fields for ut_tv. + * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>. + (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same + here as in utmp.h for `struct utmp'. + * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed. + * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed. + * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed. + * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed. + * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed. + * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed. + + * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents + of the sysdeps/unix/sysv/linux/i386/bits/resource.h file. + All the following files were identical or equivalent to it. + * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed. + * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed. + * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed. + * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed. + * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed. + * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed. + * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed. + * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed. + * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed. + * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed. + + * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t + instead of int for msg_iovlen, instead of socklen_t for msg_controllen. + Other than the previously incorrect sign of msg_iovlen, this is a + no-op on 32-bit platforms. On 64-bit platforms it makes this header + match their layouts as well, so the following are now identical to it. + * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed. + * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed. + * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed. + * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed. + * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed. + +2002-10-15 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL): + Define for 2.4+ kernels. + + * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which + are known to have the vfork syscall. Don't confuse the CPUs + branch prediction unit by jumping to the return address. + + * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add + support for reiserfs and xfs. + + * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for + XFS link count. + * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC + and XFS_LINK_MAX. + Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706]. + +2002-10-16 Jakub Jelinek <jakub@redhat.com> + + * include/libc-symbols.h (attribute_tls_model_ie): Define. + * include/errno.h (errno): Define to __libc_errno in libc.so. + Add attribute_tls_model_ie. + * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so. + Add attribute_tls_model_ie. + * include/resolv.h (_res): Define to __libc_res in libc.so. Add + attribute_tls_model_ie. + * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno. + (h_errno): Define. + * resolv/res_libc.c (__libc_res): Add hidden alias to _res. + (_res): Define. + * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add + attribute_tls_model_ie. + * sysdeps/generic/errno-loc.c (errno): Only undefine if not using + __thread. + * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno. + * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use + __libc_errno in USE___THREAD case. + * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): + Likewise. + * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for + __attribute__((tls_model (""))). + * configure: Rebuilt. + * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add. - * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>, - and don't declare unsetenv or _environ directly. - (unsetenv): Return int, not void. Use __environ instead of _environ. +2002-10-15 Ulrich Drepper <drepper@redhat.com> -2001-08-01 Mark Kettenis <kettenis@gnu.org> + * timezone/asia: Update from tzdata2002d. + * timezone/australasia: Likewise. + * timezone/iso3166.tab: Likewise. + * timezone/southamerica: Likewise. + * timezone/zone-tab: Likewise. - * sysdeps/unix/bsd/bsd4.4/Makefile: New file. - * sysdeps/unix/bsd/bsd4.4/Versions: New file. - * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file. - * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct - test for cmsg struct size. +2002-10-15 Roland McGrath <roland@redhat.com> -2001-04-23 Paul Eggert <eggert@twinsun.com> + * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]: + Adjust TCB pointer before calling free, so we get the whole block. - * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal): - Rename __argc to ___argc in prototypes to avoid compatibility - problems with systems that reserve the identifier "__argc". - Similarly for __argv. +2002-10-14 Roland McGrath <roland@redhat.com> -2001-08-21 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/x86_64/sigaction.c + [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt + extern using attribute_hidden instead of static, avoids warning. - * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration. +2002-10-09 Jakub Jelinek <jakub@redhat.com> - * mach/Makefile (tests): Removed. - * mach/hello.c: File removed. + * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too. + * sysdeps/unix/sysv/linux/configure: Rebuilt. -2001-08-22 Ulrich Drepper <drepper@redhat.com> +2002-10-14 Ulrich Drepper <drepper@redhat.com> * po/sv.po: Update from translation team. - * stdio-common/vfscanf.c: Fix handling of %l[]. - Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>. +2002-10-12 H.J. Lu <hjl@gnu.org> - * libio/Makefile (tests): Add tst-sscanf. - * libio/tst-sscanf.c: New file. + * sunrpc/thrsvc.c (PROCQUIT): New. + (struct rpc_arg): New. + (dispatch): Call exit (0) if request->rq_proc == PROCQUIT. + (test_one_call): Take struct rpc_arg * instead of CLIENT *c. + (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT. + (main): Modified for struct rpc_arg *. - * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname. - * malloc/mtrace.c (tr_where): dli_sname always points to a - non-empty string if != NULL. - Reported by Tim Janik <timj@gtk.org>. +2002-10-14 Ulrich Drepper <drepper@redhat.com> -2001-08-22 Jakub Jelinek <jakub@redhat.com> + * dirent/scandir.c: Rearrange code a bit to reduce binary size. - * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating - buf. Free resources on failure. - * sunrpc/svc_unix.c (svcunix_create): Free resources on failure. - (makefd_xprt): Likewise. - * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise. - * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise. - * sunrpc/auth_unix.c (authunix_create): Likewise. +2002-10-14 Jakub Jelinek <jakub@redhat.com> -2001-08-21 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h. + (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence + in ld.so even if __thread is supported. - * string/strnlen.c: Remove. - * sysdeps/generic/strnlen.c: New file. - * sysdeps/i386/i486/bits/string.h (strnlen): Remove. +2002-10-13 Jakub Jelinek <jakub@redhat.com> -2001-08-21 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter): + Add hack to prevent the compiler from clobbering the signal context. + * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter): + Likewise. + * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter): + Likewise. - * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this - as a macro, not an extern inline function. +2002-10-14 Andreas Jaeger <aj@suse.de> - * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here. - * Versions.def (libc): Add GLIBC_2.2.5 set. - * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro. - (__hurd_fail): Use that instead of _EXTERN_INLINE in decl. + * sysdeps/mips/fpu/libm-test-ulps: Regenerated by + Guido Guenther <agx@sigxcpu.org>. -2001-08-20 Roland McGrath <roland@frob.com> +2002-10-14 Ulrich Drepper <drepper@redhat.com> - * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "". - (__hurd_file_name_split, __hurd_directory_name_split): Likewise. + * po/sk.po: Update from translation team. -2001-08-21 Ulrich Drepper <drepper@redhat.com> +2002-09-26 Roland McGrath <roland@redhat.com> - * string/bits/string2.h: Remove strnlen optimization here. - * sysdeps/i386/i486/bits/string.h: Add it here. + * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB + dynamic string tag. + * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define + DL_DST_LIB based on $(slibdir). + +2002-10-13 Roland McGrath <roland@frob.com> + + * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command. + + * sysdeps/mach/hurd/getresuid.c: New file. + * sysdeps/mach/hurd/getresgid.c: New file. + * sysdeps/mach/hurd/setresuid.c: New file. + * sysdeps/mach/hurd/setresgid.c: New file. + + * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid, + setresgid): Declare them. + * NEWS: Mention it. + * include/unistd.h + (__getresuid, __getresgid, __setresuid, __setresgid): Declare them, + add libc_hidden_proto. + * posix/Versions (libc: GLIBC_2.3.2): New set. Add + getresuid, getresgid, setresuid, setresgid here. + * Versions.def (libc): Define GLIBC_2.3.2 set. + * sysdeps/generic/getresuid.c (__getresuid): Fix argument types. + Add libc_hidden_def. + * sysdeps/generic/getresgid.c (__getresgid): Likewise. + * sysdeps/generic/setresgid.c: New file. + * sysdeps/generic/setresuid.c: New file. + * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc] + (sysdep_routines): Don't add getresuid and getresgid here. + * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc] + (sysdep_routines): Don't add setresuid and setresgid here. + * sysdeps/unix/sysv/linux/cris/Makefile: Likewise. + * sysdeps/unix/sysv/linux/sh/Makefile: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise. + * sysdeps/unix/sysv/linux/i386/Makefile: Likewise. + * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise. + * posix/Makefile (routines): Add them all here instead. + * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to + __getresuid. Add libc_hidden_def for that, and weak alias to old name. + * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to + __getresgid. Add libc_hidden_def for that, and weak alias to old name. + * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def. + [! __NR_setresuid]: Include generic file. + * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to + __setresgid. Add libc_hidden_def for that, and weak alias to old name. + [! __NR_setresuid]: Include generic file. + * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid): + Caller is - now, not EXTRA. + * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list + (setresuid, setresgid, getresuid, getresgid): Likewise. + * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid): + Add these calls here. + * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here. + * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise. + * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise. -2001-08-21 Wolfram Gloger <wg@malloc.de> + * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc] + (sysdep_routines): Add setfsuid and setfsgid here. + * sysdeps/unix/sysv/linux/arm/Makefile: Not here. + * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise. + * sysdeps/unix/sysv/linux/cris/Makefile: Likewise. + * sysdeps/unix/sysv/linux/sh/Makefile: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise. + * sysdeps/unix/sysv/linux/i386/Makefile: Likewise. + * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise. - * malloc/malloc.c: Make access to ..._hook pointers thread-safe. + * hurd/errno.c: Renamed to ... + * hurd/errno-loc.c: ... this. + * hurd/Makefile (routines): errno -> errno-loc -2001-08-21 Ulrich Drepper <drepper@redhat.com> +2002-10-13 Ulrich Drepper <drepper@redhat.com> - * po/gl.po: Update from translation team. + * po/de.po: Update from translation team. -2001-08-20 Ulrich Drepper <drepper@redhat.com> + * MakeTAGS: Add -E flag to xgettext runs. - * misc/error.c (error_tail): Use fputws_unlocked instead of fputws. - * misc/err.c (convert_and_print): Likewise. +2002-10-12 Ulrich Drepper <drepper@redhat.com> - * malloc/obstack.c (print_and_abort): Use fprintf instead of two - function calls. + * po/fr.po: Update from translation team. -2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com> + * sysdeps/posix/system.c: Remove support for old and buggy SCO systems. + Optimize a bit for use in glibc. - * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the - change of the gregset_t type. - * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise. +2002-10-12 Roland McGrath <roland@redhat.com> -2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp> + * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds. + Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one. - * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno. +2002-10-12 Ulrich Drepper <drepper@redhat.com> -2001-08-20 Ulrich Drepper <drepper@redhat.com> + * po/sv.po: Update from translation team. - * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb. +2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com> - * string/strnlen.c: Fix the implementation. We cannot use memchr. + * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling + OP_CONTEXT_NODE. + (regfree): Likewise. + (create_initial_state): Likewise. + (analyze): Remove the substitutions which became useless. + (calc_first): Likewise. + (calc_epsdest): Use edests of OP_BACK_REF in case that it has + epsilon destination. + (duplicate_node_closure): New function. + (duplicate_node): Remove the handling OP_CONTEXT_NODE. + (calc_inveclosure): Likewise. + (calc_eclosure): Likewise. + (calc_eclosure_iter): Invoke duplicate_node_closure instead of + direct invocation of duplicate_node. + (parse): Don't use comma operator in the return to avoid compiler + warning. + (parse_reg_exp): Likewise. + (parse_branch): Likewise. + (parse_expression): Likewise. + (parse_sub_exp): Likewise. + (parse_dup_op): Likewise. + * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions + which became useless. + (create_ci_newstate): Remove the handling OP_CONTEXT_NODE. + (create_cd_newstate): Likewise. + * posix/regex_internal.h (re_token_type_t): Remove the obsolete type. + (re_token_t): Likewise. + (re_dfa_t): Likewise. + (re_node_set_remove): New macro. + * posix/regexec.c (check_matching): Remove the handling + OP_CONTEXT_NODE. + (check_halt_node_context): Likewise. + (proceed_next_node): Likewise. + (pop_fail_stack): Fix the memory leak. + (set_regs): Likewise. + (free_fail_stack_return): New function. + (sift_states_backward): Fix the memory leak. Remove the handling + OP_CONTEXT_NODE. + (update_cur_sifted_state): Append some if clause to avoid redundant + call. + (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a + back reference. + (check_dst_limits): Remove the handling OP_CONTEXT_NODE. + (check_subexp_limits): Likewise. + (search_subexp): Likewise. + (sift_states_bkref): Likewise. + (transit_state_mb): Likewise. + (transit_state_bkref_loop): Likewise. + (transit_state_bkref_loop): Likewise. + (group_nodes_into_DFAstates): Likewise. + (check_node_accept): Likewise. + (sift_ctx_init): Add initializing. -2001-08-18 Mark Kettenis <kettenis@gnu.org> +2002-10-12 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ - before calling the cthreads initialization code. + * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use + __builtin_expect. -2001-08-20 Ulrich Drepper <drepper@redhat.com> +2002-10-11 Ulrich Drepper <drepper@redhat.com> - * argp/argp-help.c: Fix two problems introduced in last change. + * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily + duplicated variable c. - * include/dirent.h: Include <dirstream.h> first. + * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL + if possible. -2001-08-19 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/i386/sysdep.h + (INTERNAL_SYSCALL_ERROR_P): New define. + (INTERNAL_SYSCALL_ERRNO): Likewise. - * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat. + * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter): + Add hack to prevent the compiler from clobbering the signal context. - * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy. - * sunrpc/xdr_rec.c: Likewise. - * sunrpc/xdr_mem.c: Likewise. - * sunrpc/svc_authux.c (_svcauth_unix): Likewise. - * sunrpc/rpc_cmsg.c: Likewise. - * sunrpc/getrpcport.c (getrpcport): Likewise. - * sunrpc/clnt_simp.c (callrpc): Likewise. - * sunrpc/clnt_gen.c (clnt_create): Likewise. - * string/envz.c: Likewise. +2002-10-11 Roland McGrath <roland@redhat.com> - * po/ko.po: Update from translation team. + * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): + Fix typos. - * argp/argp-help.c: Handle wide oriented stderr stream. + * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>. + * sysdeps/sh/dl-lookupcfg.h: File removed. + * sysdeps/i386/dl-lookupcfg.h: File removed. -2001-08-18 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add + missing labels and ; from last change. - * sysdeps/generic/strtol.c: Little optimizations. Add some - __builtin_expect. + * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole + number literals, so they are doubles instead of ints. - * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>. +2002-10-09 Roland McGrath <roland@redhat.com> - * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t. - * wcsmbs/wcwidth.c (wcwdith): Likewise. - * wcsmbs/wcwidth.h (internal_wcwdith): Likewise. + * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional + changed from [USE_TLS && HAVE___THREAD]. - * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS. + * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel): + Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD]. + * sysdeps/x86_64/dl-machine.h + (elf_machine_type_class, elf_machine_rela): Likewise. + * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela): + Likewise. - * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests. + * include/link.h (struct link_map): Remove member l_tls_tp_initialized. + * elf/rtld.c (_dl_start_final, dl_main): Don't use it. + (_dl_start): Conditionalize PT_TLS check on [USE___THREAD]. + + * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal + instead of ___tls_get_addr. + (___tls_get_addr_internal): Add attribute_hidden to decl. + + * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable + _dl_error_catch_tsd. + * elf/rtld.c (startup_error_tsd): New function. + (dl_main): Point _dl_error_catch_tsd at that. + * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR, + use new function pointer instead. + * elf/dl-tsd.c: New file. + * elf/Makefile (routines): Add it. + +2002-10-07 Roland McGrath <roland@redhat.com> + + * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for + writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then + take _dl_load_lock around calling __writev. + + * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro. + (INLINE_SYSCALL): Use that. + + * sysdeps/generic/dl-sysdep.h: New file. + * sysdeps/mach/hurd/dl-sysdep.h: New file. + * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>. + * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ... + [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and + access it directly. + * elf/dl-minimal.c (__errno_location): Removed. + * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]: + Use GOTOFF access for errno. + * sysdeps/unix/sysv/linux/i386/sysdep.h + [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise. + + * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]: + Use PC-relative access for errno. + * sysdeps/unix/sysv/linux/x86_64/sysdep.h + [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise. + + * include/tls.h: New file. + (USE___THREAD): New macro. + Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling + libc or libpthread. + * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional + changed from [USE_TLS && HAVE___THREAD]. + * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise. + * sysdeps/unix/i386/sysdep.S: Likewise. + * sysdeps/unix/x86_64/sysdep.S: Likewise. + * include/errno.h: Likewise. + * include/netdb.h: Likewise. + * include/resolv.h: Likewise. + + * sysdeps/generic/errno.c: New file. + * csu/Makefile (aux): New variable, list errno. + * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns. + * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise. + * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise. + * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise. + * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise. + * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise. + * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise. + * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise. + * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise. + * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise. + * sysdeps/unix/alpha/sysdep.S: Likewise. + * sysdeps/generic/start.c: Likewise. + * sysdeps/unix/start.c: Likewise. + * sysdeps/unix/arm/start.c: Likewise. + * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise. + * sysdeps/unix/sparc/start.c: Likewise. + * sysdeps/unix/sysv/irix4/start.c: Likewise. + * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed. + + * manual/search.texi (Tree Search Function, Hash Search Function): + Mention search.h clearly. + +2002-10-05 Roland McGrath <roland@redhat.com> + + * elf/dl-fxstat64.c: File removed. + * elf/dl-xstat64.c: File removed. + * elf/Makefile (rtld-routines): Remove them. + * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals. + Instead, use strong_alias instead of versioned_symbol in the + !SHLIB_COMPAT case. + * sysdeps/unix/sysv/linux/fxstat64.c: Likewise. + * sysdeps/unix/sysv/linux/lxstat64.c: Likewise. - * time/time.h (struct timespec): Use __time_t for tv_sec element. + * include/shlib-compat.h + (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero. + [! NOT_IN_libc] (IS_IN_libc): Define it. + * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx. + * elf/Makefile (CPPFLAGS-.os): Likewise. - * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of - wchar_t for function declarations and defintions. + * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute. + Return the status instead of calling exit. - * misc/sys/select.h: Define __need_time_t before including <time.h>. - Define suseconds_t if it hasn't happened yet. + * Makeconfig (CFLAGS): Prepend -std=gnu99. + * Makerules (+make-deps): Use $(CFLAGS) only for .c sources. + Remove superfluous rm command, whose @ plus make bugs hid + all these commands from the make output. - * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>. + * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC. + * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it. + Use that file's contents instead of literal echo's for the prologue. + * include/features.h: Include <gnu/stubs.h> unconditionally. + * include/gnu/stubs.h: New file. - * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined. +2002-09-30 Roland McGrath <roland@redhat.com> - * sysdeps/generic/stdint.h: Don't get definition of wchar_t from - <stddef.h>. + * elf/rtld-Rules: New file. + * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk, + $(objpfx)rtld-libc.a): New targets. + (generated): Add them. + (reloc-link): Remove -o $@ from the variable. + ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link). + (distribute): Add rtld-Rules. + (CPPFLAGS-.os): Define this instead of CFLAGS-.os. + * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets. + (common-mostlyclean, common-clean): Clean up rtld-* files. + * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules. + +2003-05-20 Jakub Jelinek <jakub@redhat.com> + + * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument. + If temp != NULL, copy dynamic entries which need relocation to temp + array before relocating. + (DL_RO_DYN_TEMP_CNT): Define. + * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller. + * elf/rtld.c (_dl_start): Likewise. + (dl_main): Likewise. Add dyn_temp static variable. - * conform/data/stddef.h-data: Remove wint_t. +2002-10-11 Roland McGrath <roland@redhat.com> - * conform/conformtest.pl: Change namespace test to take #undef - lines into account. + * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in + now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED. - * conform/data/netinet/in.h-data: Fix typo in allow-header line. + * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the + proper set of no-op insn prefixes. - * conform/data/sys/socket.h-data: Add sockatmark. + * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members. -2001-08-17 Ulrich Drepper <drepper@redhat.com> +2002-10-11 Ulrich Drepper <drepper@redhat.com> - * io/fts.c: Update from recent BSD source. + * sysdeps/unix/sysv/linux/execve.c: Don't try calling + __pthread_kill_other_threads_np. -2001-08-17 Roland McGrath <roland@frob.com> + * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls. - * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide. - * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]: - Likewise. +2002-10-08 Roland McGrath <roland@redhat.com> -2001-08-17 Ulrich Drepper <drepper@redhat.com> + * locale/newlocale.c (__newlocale): If setting all categories to "C", + just return &_nl_C_locobj instead of copying it. + * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj. + * locale/duplocale.c (__duplocale): Likewise. - * locale/duplocale.c (__duplocale): Also initialize the special - __ctype_* elements. +2002-10-07 Roland McGrath <roland@frob.com> - * conform/data/netdb.h-data: Adjust gai_strerror return type. + * config.h.in (HAVE_I386_SET_GDT): New #undef. + * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt. + * sysdeps/mach/configure: Regenerated. -2001-08-17 Andreas Jaeger <aj@suse.de> +2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> - * misc/getpass.c: Include wchar.h for prototypes. - * malloc/obstack.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL): + Add all necessary register outputs for syscall-clobbered registers. -2001-08-17 Ulrich Drepper <drepper@redhat.com> +2002-10-02 David Mosberger <davidm@hpl.hp.com> - * sunrpc/svc_simple.c (universal): Use __write instead of write. + * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for + Itanium 2 (and Itanium). + Fix unwind directives and make it fit in 80 columns. + * sysdeps/ia64/memset.S: Likewise. + * sysdeps/ia64/memcpy.S: Likewise. + Move jump table to .rodata section. - * wcsmbs/wcscoll.c: Also define __wcscoll. - * include/wchar.h: Declare __wcscoll. +2002-10-03 Roland McGrath <roland@frob.com> - * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf. - * libio/vwprintf.c: Likewise. - * libio/wprintf.c: Likewise. + * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add + clobbers to asm. - * iconv/gconv_cache.c: Use __munmap instead of munmap. +2002-10-10 Andreas Jaeger <aj@suse.de> -2001-08-16 Ulrich Drepper <drepper@redhat.com> + * sysdeps/x86_64/_mcount.S: Restore correct registers. - * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc - instead of mbrtowc. - [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of - wcslen, and __wcscoll instead of wcscoll. +2002-10-10 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl. + * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect. - * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use - __getuid instead of getuid. +2002-10-09 Ulrich Drepper <drepper@redhat.com> - * stdio-common/perror.c (perror): Use __close instead of close. - * iconv/gconv_cache.c (__gconv_load_cache): Likewise. - * libio/freopen.c (freopen): Likewise. - * libio/freopen64.c (freopen64): Likewise. + * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from + _dl_allocate_tls_init. Add rtld_hidden_proto. + * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add + rtld_hidden_def. + * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init. - * libio/tst-ungetwc2.c (main): Define str const. + * version.h (VERSION): Bump to 2.3.1. - * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf. - * libio/fwprintf.c: Also define __fwprintf. - * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf. - * argp/argp-fmtstream.c: Handle wide oriented stderr stream. - * assert/assert-perr.c: Likewise. - * assert/assert.c: Likewise. - * gmon/gmon.c: Likewise. - * inet/rcmd.c: Likewise. - * malloc/obstack.c: Likewise. - * misc/err.c: Likewise. - * misc/error.c: Likewise. - * misc/getpass.c: Likewise. - * posix/getopt.c: Likewise. - * resolv/res_hconf.c: Likewise. - * stdio-common/perror.c: Likewise. - * stdio-common/psignal.c: Likewise. - * stdlib/fmtmsg.c: Likewise. - * sunrpc/auth_unix.c: Likewise. - * sunrpc/clnt_perr.c: Likewise. - * sunrpc/clnt_tcp.c: Likewise. - * sunrpc/clnt_udp.c: Likewise. - * sunrpc/clnt_unix.c: Likewise. - * sunrpc/svc_simple.c: Likewise. - * sunrpc/svc_tcp.c: Likewise. - * sunrpc/svc_udp.c: Likewise. - * sunrpc/svc_unix.c: Likewise. - * sunrpc/xdr.c: Likewise. - * sunrpc/xdr_array.c: Likewise. - * sunrpc/xdr_rec.c: Likewise. - * sunrpc/xdr_ref.c: Likewise. - * sysdeps/generic/wordexp.c: Likewise. + * Make-dist: Add back one of the tar invocations removed before. - * po/it.po: Update from translation team. + * stdlib/Makefile (distribute): Add allocalim.h. - * misc/err.c: Handle wide oriented stderr stream. + * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)] + (__libc_tsd_address): Use correct variable name. + Patch by Stefan Jones <stefan.jones@multigig.com>. -2001-08-14 Tom Rix <trix@redhat.com> + * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;. + Reported by edwardsg@sgi.com [PR libc/4678]. - * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV. - * iconv/Makefile: Fix gconv_cache.c CFLAGS. + * Versions.def (libc): Add GLIBC_2.3.1. + (libpthread): Add GLIBC_2.3.1. -2001-08-13 Tom Rix <trix@redhat.com> + * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo, + and __sigtimedwait. + * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo. + * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add + libc_hidden_def. + * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise. + * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise. + + * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd. + * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv + and make old name an alias. + * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd + and make old name an alias. + * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and + __libc_msgsnd. + + * include/sys/uio.h: Declare __libc_readv and __libc_writev. + * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and + __libc_writev. + * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make + old name an alias. + * sysdeps/posix/readv.c: Likewise + * sysdeps/unix/sysv/aix/readv.c: Likewise. + * sysdeps/unix/sysv/linux/readv.c: Likewise. + * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make + old name an alias. + * sysdeps/posix/writev.c: Likewise + * sysdeps/unix/sysv/aix/writev.c: Likewise. + * sysdeps/unix/sysv/linux/writev.c: Likewise. - * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols. - * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t - and __intptr_t. + * include/sys/wait.h: Declare __waitid. + * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid. + * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old + name an alias. + * sysdeps/posix/waitid.c: Likewise. + * sysdeps/unix/sysv/aix/waitid.c: Likewise. -2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com> + * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall. - * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext): - Store the access registers to the ucontext structure. - * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext): - Likewise. +2002-10-07 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext): - Load the access registers from the ucontext structure. - * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext): - Likewise. + * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New + prototypes. + (__MAX_ALLOCA_CUTOFF): Define. + Include allocalim.h. + * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r, + _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate + host_buffer depending on __libc_use_alloca. + * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r, + _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate + net_buffer depending on __libc_use_alloca. + * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate + buf depending on __libc_use_alloca. + * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise. + * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca + instead of hardcoded constants. + Pass proper size argument to alloca and compute end for wide char + version. + * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca + instead of hardcoded constants. + * string/strcoll.c (strcoll): Likewise. + * string/strxfrm.c (strxfrm): Likewise. + * sysdeps/posix/readv.c (__readv): Likewise. + * sysdeps/posix/writev.c (__writev): Likewise. + * sysdeps/generic/allocalim.h: New file. + +2002-10-08 Roland McGrath <roland@redhat.com> + + * configure.in (aux_missing warning): Change "too old" to + "incompatible versions", since for autoconf it's "too new" right now. + * configure: Regenerated. - * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx - offsets to the new ucontext layout. - * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise. + * configure.in (AUTOCONF): New check to set it. Set to "no" if the + one found doesn't work on our configure.in. + * configure: Regenerated. + * config.make.in (AUTOCONF): New substituted variable. + * Makefile (autoconf-it-cvs): New canned sequence, broken out of ... + (autoconf-it): ... here, use that instead of defining conditionally. + Use $(AUTOCONF) instead of literal autoconf. + [$(AUTOCONF) != no] (configure, %/configure): Protect these rules + with this condition. + * Make-dist (autoconf-it, configure, %/configure): Copy those changes. - * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout - of the ucontext structure. - * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise. +2002-10-08 Ulrich Drepper <drepper@redhat.com> -2001-08-15 Ulrich Drepper <drepper@redhat.com> + * Make-dist (dist): Cleanup a bit. We are not interested in the + 14 char filename limit anymore. Remove intermediate files and + symlinks. - * misc/error.c (error): Handle wide oriented stderr stream correctly. - (error_at_line): Likewise. +2002-10-05 Ulrich Drepper <drepper@redhat.com> + + * po/sk.po: Update from translation team. + * po/tr.po: Likewise. + * po/gl.po: Likewise. + +2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp> + + * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax. + +2002-10-03 Ulrich Drepper <drepper@redhat.com> + + * version.h (RELEASE): Change to stable. + +2002-10-03 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit, + __syscall_exit_group): New prototypes. + +2002-10-03 Ulrich Drepper <drepper@redhat.com> - * stdio-common/perror.c (perror): Implement according to standard. - The stream orientation must not be changed if the stream was not - oriented before the call. - * stdio-common/Makefile (tests): Add tst-perror. - * stdio-common/tst-perror.c: New file. + * glibc 2.3 released. -See ChangeLog.12 for earlier changes. +See ChangeLog.13 for earlier changes. |