diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-07-12 18:26:36 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-07-12 18:26:36 +0000 |
commit | 0ecb606cb6cf65de1d9fc8a919bceb4be476c602 (patch) | |
tree | 2ea1f8305970753e4a657acb2ccc15ca3eec8e2c /ChangeLog | |
parent | 7d58530341304d403a6626d7f7a1913165fe2f32 (diff) | |
download | glibc-0ecb606cb6cf65de1d9fc8a919bceb4be476c602.zip glibc-0ecb606cb6cf65de1d9fc8a919bceb4be476c602.tar.gz glibc-0ecb606cb6cf65de1d9fc8a919bceb4be476c602.tar.bz2 |
2.5-18.1
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7110 |
1 files changed, 2161 insertions, 4949 deletions
@@ -1,5485 +1,2697 @@ -2004-12-20 Roland McGrath <roland@frob.com> +2006-12-08 Ulrich Drepper <drepper@redhat.com> - * version.h (RELEASE, VERSION): development, 2.3.90 - * include/features.h (__GLIBC_MINOR__): Now 4. + * malloc/memusage.c: Handle realloc with new size of zero and + non-NULL pointer correctly. + (me): Really write first record twice. + (struct entry): Make format bi-arch safe. + (dest): Write out more realloc statistics. + * malloc/memusagestat.c (struct entry): Make format bi-arch safe. -2004-12-20 Jakub Jelinek <jakub@redhat.com>, - Jim Gifford <giffordj@linkline.com> +2006-11-14 Ulrich Drepper <drepper@redhat.com> - [BZ #562] - * sysdeps/mips/Makefile (librt-sysdep_routines): Add. - * sysdeps/unix/mips/rt-sysdep.S: New file. + * timezone/zdump.c: Redo fix for BZ #3137. -2004-12-19 Roland McGrath <roland@redhat.com> +2006-11-10 Ulrich Drepper <drepper@redhat.com> - * iconv/Makefile (test-iconvconfig): New target. - [$(cross-compiling) != yes] (xtests): Depend on it. + * time/tzfile.c (__tzfile_read): Extend to handle new file format + on machines with 64-bit time_t. - * iconv/iconvconfig.c (nostdlib, output_file, output_file_len): - New variables. - (options, parse_opt, main): Take new options --nostdlib and - --output/-o to set them. Under --nostdlib, skip GCONV_PATH dirs. - (write_output): If output_file is set, write the output there. - -2004-12-19 Andreas Jaeger <aj@suse.de> - - [BZ #560] - * inet/netinet/in.h: Use __interface_addr instead of __interface. - - [BZ #573] - * sunrpc/xcrypt.c (passwd2des_internal): Make it hidden instead of - internal linkage. - -2004-12-19 Roland McGrath <roland@frob.com> - - * version.h (VERSION): 2.3.4. - * README.template: Various updates. - * README: Regenerated. - * NEWS: Mention ports. - * README-alpha: File removed. - - [BZ #416] - * locale/langinfo.h: Comment fixes. - -2004-12-17 Ulrich Drepper <drepper@redhat.com> - - * po/ja.po: Update from translation team. - -2004-12-17 Richard Henderson <rth@redhat.com> - - * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Add support - for NPTL where the PID is stored at userlevel and needs to be - reset when CLONE_THREAD is not used. - -2004-12-17 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update. - -2004-12-17 Andreas Jaeger <aj@suse.de> - - * math/libm-test.inc (atan2_test): Compute value with 36 digits. - * sysdeps/alpha/fpu/libm-test-ulps: Adjust for changed result. - * sysdeps/powerpc/fpu/libm-test-ulps: Likewise. - * sysdeps/s390/fpu/libm-test-ulps: Likewise. - * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise. - * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise. - * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. - -2004-12-16 Ulrich Drepper <drepper@redhat.com> - - * stdlib/tst-setcontext.c: Enlarge st1 and st2 arrays. - -2004-09-02 Steven Munroe <sjmunroe@us.ibm.com> - - [BZ #610] - * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S - (__novec_getcontext): Fix typo in store of fp29. - (__getcontext): Fix typo in store of fp29. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S - (__novec_swapcontext): Fix typo in store of fp29. - (__swapcontext): Fix typo in store of fp29. - -2004-12-17 GOTO Masanori <gotom@debian.or.jp> - - * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Fix - vague message. - -2004-12-16 Roland McGrath <roland@redhat.com> - - * nscd/Makefile ($(objpfx)nscd): Don't depend on $(selinux-LIBS), - which is usually a -lselinux that make will resolve wrongly. - -2004-12-16 Andreas Jaeger <aj@suse.de> - - * math/math.h: Use #if defined to not receive warnings about - undefined symbols. - -2004-12-16 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Add support - for NPTL where the PID is stored at userlevel and needs to be reset - when CLONE_THREAD is not used. - - * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h - (SYSCALL_ERROR_HANDLER): If RTLD_PRIVATE_ERRNO, use rtld_errno - instead of errno. - * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Include - sysdep-cancel.h instead of sysdep.h. Handle cancellation. - * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerate. - - * sysdeps/ieee754/ldbl-128/e_expl.c: Include stdlib.h. - -2004-12-15 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/gethostid.c: Make bi-arch safe. - -2004-12-15 Steven Munroe <sjmunroe@us.ibm.com> - - * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Correct stack - alignment. Clean up flag bit tests. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Correct stack - alignment. Clean up flag bit tests. Remove redundent SP assignment. - Add TOC register save/restore around function call. - - * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Make no_vmx symbol - local. - * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Make no_vmx symbol - local. - * sysdeps/powerpc/powerpc64/__longjmp-common.S: Make no_vmx symbol - local. - * sysdeps/powerpc/powerpc64/setjmp-common.S: Make no_vmx and - aligned_save_vmx symbol local. - -2004-12-15 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/i386/i486/bits/string.h (__strncat_g): Fix i686 - implementation. - -2004-09-08 H.J. Lu <hongjiu.lu@intel.com> - - * Makeconfig (libunwind): New. - (libgcc_eh): Add $(libunwind). - (gnulib): Always set to -lgcc $(libgcc_eh). - (static-gnulib): Always set to -lgcc -lgcc_eh $(libunwind). - (libc.so-gnulib): New. - * Makerules (LDLIBS-c.so): Use $(libc.so-gnulib) instead of - $(static-gnulib). - * configure.in (libc_cv_cc_with_libunwind): Set to yes if gcc - uses -lunwind for static binaries. - -2004-06-05 Joseph S. Myers <jsm@polyomino.org.uk> - - * malloc/Makefile (install-bin): Remove memusage. - (install-bin-script): Add memusage. - -2004-12-15 Jakub Jelinek <jakub@redhat.com> - - * nis/nis_domain_of_r.c (nis_domain_of_r): Use libnsl_hidden_def, - not libnsl_hidden_proto. - - * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add support - for NPTL where the PID is stored at userlevel and needs to be reset - when CLONE_THREAD is not used. - * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise. - - * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone): Save - and restore r2 around call to fn. - -2004-12-15 Andreas Jaeger <aj@suse.de> - - * sysdeps/ia64/dl-machine.h (elf_machine_rela): Mark auto instead - of static, add always_inline attribute. - (elf_machine_rela_relative): Likewise. - (elf_machine_lazy_rel): Likewise. - -2004-12-15 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Add support - for pid caching in nptl. - -2004-12-14 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Add support - for pid caching in nptl. - -2004-10-18 Maciej W. Rozycki <macro@mips.com> - - * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Use - __NTH instead of __THROW in the inline definition. - * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise. - - * sysdeps/mips/bits/dlfcn.h (RTLD_DEEPBIND): New macro. - - * sysdeps/unix/sysv/linux/mips/bits/mman.h - (PROT_GROWSDOWN, PROT_GROWSUP): New macros. - -2004-10-06 Alan Modra <amodra@bigpond.net.au> - - * sysdeps/powerpc/powerpc64/ppc-mcount.S (PROF): Don't undef. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Invoke CALL_MOUNT. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise. - * 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/socket.S: Likewise. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise. - -2004-10-19 Wolfram Gloger <wg@malloc.de> - - * malloc/hooks.c (mem2chunk_check, top_check): Handle - non-contiguous arena. Reported by Michael Dalton - <mwdalton@stanford.edu> [BZ #457]. Add further checks for top chunk. - -2004-12-14 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/posix/sysconf.c (__sysconf_check_spec): Remove leading - underscore from GETCONF_DIR filenames. - -2004-12-13 Ulrich Drepper <drepper@redhat.com> - - * po/de.po: Update from translation team. - - * nss/getnssent.c (__nss_getent): Double buffer size each round to - avoid problems with delays for some people's huge entries. - * nss/getXXbyYY.c (FUNCTION_NAME): Likewise. - -2004-12-13 Jakub Jelinek <jakub@redhat.com> - - * posix/getconf.c (main): Prepend just $GETCONF_DIR/ instead of - $GETCONF_DIR/_ to spec. - * posix/confstr.c (confstr): Remove leading underscores for - _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS. - -2004-12-12 Ulrich Drepper <drepper@redhat.com> - - * elf/dl-load.c (_dl_map_object_from_fd): Fix computation of - mapping start. It must take the actual pagesize into account, not - the alignment in the file. - -2004-12-11 Ulrich Drepper <drepper@redhat.com> - - * malloc/malloc.c (_int_realloc): Add checks for corrupted memory. - (_int_free): Make clear message are result of free() calls. - - * malloc/malloc.c (_int_realloc): Remove unnecessary tests for - oldmem and size == 0. - -2004-12-10 Ulrich Drepper <drepper@redhat.com> - - * malloc/arena.c (arena_get2): Prevent endless loop if arenas and - list lock are taken. - -2004-12-08 Thorsten Kukuk <kukuk@suse.de> - - * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r): - Add check if the value is not an empty string. [BZ #597] - -2004-11-29 Jakub Jelinek <jakub@redhat.com> - - * stdlib/strtod_l.c (INTERNAL (__STRTOF)): If densize > 2 - and numsize < densize, always shift num up by empty + 1 limbs. - -2004-12-07 Paolo Bonzini <bonzini@gnu.org> - - * posix/regexec.c (proceed_next_node): Simplify treatment of epsilon - nodes. Pass the pushed node to push_fail_stack. - (push_fail_stack): Accept a single node rather than an array - of two epsilon destinations. - (build_sifted_states): Only walk non-epsilon nodes. - (check_arrival): Don't pass epsilon nodes to - check_arrival_add_next_nodes. - (check_arrival_add_next_nodes) [DEBUG]: Abort if an epsilon node is - found. - (check_node_accept): Do expensive checks later. - (add_epsilon_src_nodes): Cache result of merging the inveclosures. - * posix/regex_internal.h (re_dfastate_t): Add non_eps_nodes and - inveclosure. - (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at, - re_string_context_at, re_string_peek_byte_case, - re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains): - Declare as pure. - * posix/regex_internal.c (create_newstate_common): Remove. - (register_state): Move part of it here. Initialize non_eps_nodes. - (free_state): Free inveclosure and non_eps_nodes. - (create_cd_newstate, create_ci_newstate): Allocate the new - re_dfastate_t here. - -2004-12-09 Ulrich Drepper <drepper@redhat.com> - - * malloc/malloc.c (public_rEALLOc): Add parameter checks. - (_int_free): Provide better error message for invalid pointers. - -2004-12-01 Jakub Jelinek <jakub@redhat.com> - - * posix/tst-regex.c: Use defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0 - conditionals instead of defined _POSIX_CPUTIME. - (main): If _POSIX_CPUTIME == 0, call sysconf to see if CPUTIME - option is available. - * posix/tst-regex.c2: Use defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0 - conditionals instead of defined _POSIX_CPUTIME. - (do_test): If _POSIX_CPUTIME == 0, call sysconf to see if CPUTIME - option is available. - * sysdeps/posix/sysconf.c (__sysconf): If _POSIX_CPUTIME resp. - _POSIX_THREAD_CPUTIME is defined to 0, return -1 for the corresponding - _SC_ argument. - -2004-12-08 Jakub Jelinek <jakub@redhat.com> - - * elf/ldd.bash.in: When set -o pipefail is available, use that for - piping to cat; when not, don't use the pipe at all. - Pipe to cat in all cases of running the executable. - When direct running exits with code 5, retry running via ${RTLD}. - * elf/rtld.c (process_envvars): If __libc_enable_secure and - mode != normal, exit with exitcode 5. - -2004-12-07 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/posix/sysconf.c (__sysconf_check_spec): Only define - if it will be actually used. - -2004-12-07 Roland McGrath <roland@redhat.com> - - * rt/tst-timer5.c (setup_test): New function. - (TEST_CLOCK_MISSING): Use it to punt test if timer_create does not - support CLOCK_MONOTONIC. - -2004-12-07 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Add support for - NPTL where the PID is stored at userlevel and needs to be reset when - CLONE_THREAD is not used. Restore gp before calling _exit. - -2004-12-07 Kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/unix/sysv/linux/sh/clone.S: Clear the frame pointer when - starting a new thread. Add support for NPTL where the PID is stored - at userlevel and needs to be reset when CLONE_THREAD is not used. - -2004-12-01 Jakub Jelinek <jakub@redhat.com> - - * elf/rtld.c (process_envvars): Don't consider LD_SHOW_AUXV - and LD_DYNAMIC_WEAK if __libc_enable_secure. - If __libc_enable_secure, /etc/suid-debug doesn't exist and - program will be actually run, turn off all debugging. - * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add LD_DEBUG, - LD_DYNAMIC_WEAK and LD_SHOW_AUXV. - -2004-12-06 Jakub Jelinek <jakub@redhat.com> - - * time/tzset.c (tzset_internal): If + or - is seen, - but no offset after it, reset offset to 0. [BZ #601] - -2004-12-06 Ulrich Drepper <drepper@redhat.com> - - * libio/ioseekpos.c (_IO_seekpos_unlocked): Call _IO_SEEKOFF not - _IO_SEEKPOS, saving one indirect jump. - - * libio/fileops.c (_IO_new_file_seekoff): Fix optimization of in-buffer - seek. Remove dead code. - -2004-12-02 Jakub Jelinek <jakub@redhat.com> - - * libio/Makefile (tests): Add bug-ungetc4. - * libio/bug-ungetc4.c: New test. - -2004-12-06 Roland McGrath <roland@redhat.com> - - * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Diagnose EINVAL - for CLOCK_THREAD_CPUTIME_ID, not ENOTSUP. - Use SYSDEP_NANOSLEEP handler before validating CLOCK_ID value. - - * rt/tst-timer4.c (TEST_CLOCK, TEST_CLOCK_NANOSLEEP): New macros. - Use them throughout in place of CLOCK_REALTIME and nanosleep. - (do_test) [TEST_CLOCK_MISSING]: Call this macro and if it returns - non-null, punt the test with a message using the string returned. - * rt/tst-timer5.c: New file. - * rt/Makefile (tests): Add it. - -2004-12-01 Paolo Bonzini <bonzini@gnu.org> - - * posix/regcomp.c (free_dfa_content, init_dfa): Remove - references to re_dfa_t's subexps field. - (parse_sub_exp, parse_expression): Do not use it. Use - completed_bkref_map instead. - (create_initial_state, peek_token): Store a backreference \N - with opr.idx = N-1. - * posix/regexec.c (proceed_next_node, check_dst_limits, get_subexp): - Likewise. - (check_subexp_limits): Remove useless condition. - * posix/regex_internal.h (re_subexp_t): Remove. - (re_dfa_t): Remove subexps and subexps_alloc field, add - completed_bkref_map. - -2004-12-05 Roland McGrath <roland@frob.com> - - * Makeconfig: Comment typo fix. - -2004-11-30 Andreas Schwab <schwab@suse.de> - - * nis/ypclnt.c (ypprot_err): Remove unused entries. - -2004-11-30 Paolo Bonzini <bonzini@gnu.org> - - * posix/regexec.c (check_dst_limits_calc_pos_1): Check for - bkref_idx == -1, and don't recurse in that case. - -2004-11-30 GOTO Masanori <gotom@debian.or.jp> - - * posix/confstr.c: Enclose #error message with double quote - for gcc-3.3 and lower. - -2004-12-04 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/i386/clone.S: Add support for NPTL where - the PID is stored at userlevel and needs to be reset when CLONE_THREAD - is not used. - * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise. - -2004-11-18 Daniel Jacobowitz <dan@codesourcery.com> - - * sysdeps/arm/sysdep.h: Define __USE_BX__ if bx is available. - Use it instead of __THUMB_INTERWORK__. Make RETINSTR take - only a condition and a register. - * sysdeps/arm/dl-machine.h: Use __USE_BX__ instead of - __THUMB_INTERWORK__. - (_dl_start_user): Use BX. - * sysdeps/arm/strlen.S: Use DO_RET. - * sysdeps/unix/arm/brk.S: Likewise. - * sysdeps/unix/arm/fork.S: Likewise. - * sysdeps/unix/arm/sysdep.S: Likewise. - * sysdeps/unix/arm/sysdep.h: Likewise. - * sysdeps/unix/sysv/linux/arm/clone.S: Update uses of RETINSTR. - * sysdeps/unix/sysv/linux/arm/mmap.S: Likewise. - * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise. - * sysdeps/unix/sysv/linux/arm/socket.S: Likewise. - * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise. - * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise. - -2004-12-02 Roland McGrath <roland@redhat.com> - - * extra-lib.mk (object-suffixes-$(lib)): Add .oS when - $(lib)-static-only-routines is nonempty. - (extra-objs, o-iterator.mk rule): Filter out .oS from generators. - Add a special rule for .oS objects -> _nonshared.a library. - -2004-12-01 Jakub Jelinek <jakub@redhat.com> - - * time/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC, - convert T2, not T. - * time/Makefile (tests): Add tst-mktime3. - * time/tst-mktime3.c: New test. - -2004-12-01 Jakub Jelinek <jakub@redhat.com> - - * stdlib/stdlib.h (realpath): Remove nonnull attribute. - - * posix/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after - normal_bracket label. - - * time/tst-mktime2.c (bigtime_test): Initialize tm.tm_isdst to -1. - -2004-12-01 Roland McGrath <roland@redhat.com> - - * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): - Do $(make-target-directory). - -2004-11-29 Roland McGrath <roland@redhat.com> - - * posix/confstr.c: Avoid punctuation in #error text. - -2004-11-27 Ulrich Drepper <drepper@redhat.com> - - * posix/Makefile (tests): Add tst-sysconf. - * posix/tst-sysconf.c: New file. - - * posix/getconf.c (vars): Add support for _SC_IPV6 and - _SC_RAW_SOCKETS. - * sysdeps/posix/sysconf.c (__sysconf): Add support for _SC_IPV6 - and _SC_RAW_SOCKETS. - * sysdeps/generic/bits/confname.h: Define _SC_IPV6 and - _SC_RAW_SOCKETS. - -2004-11-26 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add GETCONF_DIR. - -2004-11-26 Kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if - NO_SGIDEFS_H isn't defined. Don't include sgidefs.h twice. - * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. - * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise. - * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise. - -2004-11-27 Ulrich Drepper <drepper@redhat.com> - - * include/dlfcn.h (__libc_dlopen): Add __RTLD_DLOPEN to the mode - parameter. Reported by VY Newsum <newsum@fel.tno.nl>. - -2004-11-10 Daniel Jacobowitz <dan@debian.org> - - * libio/iolibio.h (_IO_fclose, _IO_new_fclose, _IO_old_fclose, - _IO_fflush, _IO_fgetpos, _IO_fgetpos64, _IO_fgets, _IO_fopen, - _IO_old_fopen, _IO_new_fopen, _IO_fopen64, __fopen_internal, - _IO_fprintf, _IO_fputs, _IO_fsetpos, _IO_fsetpos64, _IO_ftell, - _IO_fread, _IO_fwrite, _IO_gets, _IO_printf, _IO_puts, _IO_scanf, - _IO_fflush_internal, _IO_ftell_internal, _IO_fputs_internal) - _IO_fwrite_internal): Remove incorrect __THROW. - * libio/libioP.h (_IO_default_xsputn, _IO_wdefault_xsputn, - _IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_default_write, - _IO_default_read, _IO_getline, _IO_getline_info, _IO_getwline, - _IO_getwline_info, _IO_file_read_internal, _IO_sgetn_internal, - _IO_wdo_write_internal, _IO_do_write_internal, - _IO_getline_info_internal, _IO_getline_internal, - _IO_vfprintf_internal, _IO_putc_internal, _IO_read, _IO_write, - _IO_close): Likewise. - -2004-11-26 Jakub Jelinek <jakub@redhat.com> - - * posix/Makefile (install-others): Add $(inst_libexecdir)/getconf. - (CFLAGS-sysconf.c): Add -D_GETCONF_DIR. - (CFLAGS-getconf.c): New. - ($(inst_libexecdir)/getconf): New. - * posix/confstr.c (confstr): Use __sysconf to query specifications - that don't have _POSIX_V6_* macros defined. Use __*_{C,LD}FLAGS - macros defined in bits/environments.h. - * sysdeps/posix/sysconf.c: Include stdlib.h, string.h and - sys/stat.h. - (__sysconf_check_spec): New routine. - (__sysconf): Use it. - * posix/getconf.c (specs): Change into structure array. - (main): If -v is not given, try to get default from - $(libexecdir)/getconf/default. If specification is not - supported by this getconf, try to execute - $(libexecdir)/getconf/$(specification). - * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: New file. - * sysdeps/unix/sysv/linux/s390/bits/environments.h: New file. - * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: New file. - * sysdeps/unix/sysv/linux/sparc/bits/environments.h: New file. - * sysdeps/unix/sysv/linux/i386/bits/environments.h: New file. - * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: New file. - * sysdeps/generic/bits/environments.h (__ILP32_OFFBIG_CFLAGS): - Define. - - * stdlib/stdlib.h (setenv): Use nonnull only for second argument. - (unsetenv): Remove. - -2004-11-23 Paolo Bonzini <bonzini@gnu.org> - - * posix/regcomp.c (analyze_tree): Always call calc_epsdest. - (calc_inveclosure): Use re_node_set_insert_last. - (parse_dup_op): Lower X{1,5} to (X(X(X(XX?)?)?)?)? - rather than X?X?X?X?X?. - * posix/regex_internal.h (re_node_set_insert_last): New declaration. - * posix/regex_internal.c (re_node_set_insert_last): New function. - * posix/PCRE.tests: Add testcases. - -2004-11-25 Ulrich Drepper <drepper@redhat.com> - - * dlfcn/dlfcn.h: Remove nonnull attribute from dlopen. - - * posix/confstr.c (confstr): Return appropriate strings for - _CS_LFS_LINTFLAGS, _CS_LFS64_CFLAGS, and _CS_LFS64_LINTFLAGS. - -2004-11-05 Maciej W. Rozycki <macro@mips.com> - - * sysdeps/mips/dl-machine.h: Include <sgidefs.h>. Use _ABIO32, - _ABIN32 and _ABI64 for ABI selection throughout. - * sysdeps/mips/elf/start.S: Likewise. - * sysdeps/mips/mips64/__longjmp.c: Likewise. - * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise. - * sysdeps/mips/mips64/bsd-setjmp.S: Likewise. - * sysdeps/mips/mips64/setjmp.S: Likewise. - * sysdeps/mips/mips64/setjmp_aux.c: Likewise. - * sysdeps/mips/sys/regdef.h: Likewise. - * sysdeps/mips/sys/ucontext.h: Likewise. - * sysdeps/unix/mips/sysdep.h: Likewise. - * sysdeps/unix/sysv/linux/kernel-features.h: 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/sys/procfs.h: Likewise. - * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise. - - * sysdeps/mips/atomicity.h: Use _ABIO32, _ABIN32 and _ABI64 for - ABI selection throughout. - * sysdeps/mips/bits/setjmp.h: Likewise. - * sysdeps/mips/fpu/bits/mathdef.h: Likewise. - * sysdeps/mips/machine-gmon.h: Likewise. - * sysdeps/mips/sys/asm.h: Likewise. - * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise. - * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise. - * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise. - * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise. - * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise. - * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise. - * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise. - * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise. - - * sysdeps/mips/sgidefs.h: Prevent <asm/sgidefs.h> from being - included by kernel headers and undo its settings if already - included. Define _ABIO32, _ABIN32 and _ABI64 if missing and use - them to define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32 and - _MIPS_SIM_ABI64 for compatibility. - * sysdeps/unix/sysv/linux/mips/Makefile: Use _ABIO32, _ABIN32 and - _ABI64 for ABI selection in generated syscall-list.h - * sysdeps/unix/sysv/linux/mips/configure.in: Use _ABIO32, _ABIN32 - and _ABI64 for ABI selection in generated asm-unistd.h. - * sysdeps/unix/sysv/linux/mips/configure: Regenerate. - - * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Correct - an inverted _MIPS_SIM conditional. - -2004-11-23 Alexandre Oliva <aoliva@redhat.com> - - * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Use free - range even if it doesn't match exactly. - -2004-11-23 Jakub Jelinek <jakub@redhat.com> - - * nss/nss_files/files-XXX.c (internal_getent): If parse_line returned - -1, also do H_ERRNO_SET (NETDB_INTERNAL). - -2004-11-22 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/i386/fpu_control.h: Add volatile to the asms. - Patch by Alexander Stohr. - -2004-11-22 Jakub Jelinek <jakub@redhat.com> - - * nscd/nscd_getai (__nscd_getai): Avoid memory and file descriptor - leaks. - * sysdeps/posix/getaddrinfo.c (gaih_inet): Free air. - -2004-11-15 Maciej W. Rozycki <macro@mips.com> - - * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (__SI_MAX_SIZE): - Define appropriately based on __WORDSIZE. - [struct siginfo] (__pad0): Add for explicit padding. - - * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Formatting fixes - throughout. - -2004-11-22 Ulrich Drepper <drepper@redhat.com> - - * dirent/dirent.h: Add nonnull attributes. - * dlfcn/dlfcn.h: Likewise. - -2004-11-20 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/ieee754/k_standard.c: Document code 50. - (__kernel_standard) <case 50>: Avoid raising div-by-zero - exception again. - -2004-11-19 H.J. Lu <hongjiu.lu@intel.com> - - [BZ #552] - * math/libm-test.inc (tgamma_test): Update tgamma (0) and - tgamma (-0). - * sysdeps/generic/w_tgamma.c (__tgamma): Properly handle |x| == 0. - * sysdeps/generic/w_tgammaf.c (__tgammaf): Likewise. - * sysdeps/generic/w_tgammal.c (__tgammal): Likewise. - * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise. - * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise. - * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise. - * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise. - * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle - tgamma (0) and tgamma (-0). - -2004-11-20 Ulrich Drepper <drepper@redhat.com> - - * time/tzfile.c (__tzfile_read): Avoid open for checking whether - the file we already use changed. - - * misc/syslog.c: Remove !USE_IN_LIBIO code. - -2004-11-20 Jakub Jelinek <jakub@redhat.com> - - * signal/signal.h (__sysv_signal, sysv_signal, signal, bsd_signal, - ssignal): Remove __nonnull attribute. - -2004-11-20 Kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/unix/sysv/linux/sh/sys/procfs.h: New file. - -2004-11-20 Ulrich Drepper <drepper@redhat.com> - - * signal/signal.h: Add nonnull attributes. - - * signal/signal.h: Add deprecated attributes to sigstack, - sigpause, sigblock, sigsetmask, siggetmask. - -2004-11-20 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/bits/socket.h (SCM_RIGHTS): Avoid - comma at the end of enum if __USE_BSD is not defined. - -2004-11-19 Ulrich Drepper <drepper@redhat.com> - - * malloc/malloc.c (_int_malloc): Check for corruption of chunk - which is about to be returned. - - * malloc/malloc.c (_int_free): Add a few more cheap tests for - corruption. - -2004-11-17 Randolph Chung <tausq@debian.org> - - * sysdeps/hppa/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind - annotations. - -2004-11-18 Jakub Jelinek <jakub@redhat.com> - - [BZ #544] - * posix/regex.h (RE_NO_SUB): New define. - * posix/regex_internal.h (OP_DELETED_SUBEXP): New. - (re_dfa_t): Add subexp_map. - * posix/regcomp.c (struct subexp_optimize): New type. - (optimize_subexps): New routine. - (re_compile_internal): Call it. - (re_compile_pattern): Set preg->no_sub to 1 if RE_NO_SUB. - (free_dfa_content): Free subexp_map. - (calc_inveclosure, calc_eclosure): Skip OP_DELETED_SUBEXP nodes. - * posix/regexec.c (re_search_internal): If subexp_map - is not NULL, duplicate registers as needed. - * posix/Makefile: Add rules to build and run tst-regex2. - * posix/tst-regex2.c: New test. - * posix/rxspencer/tests: Fix last two tests (\0 -> \1). - Add some new tests for nested subexpressions. - -2004-11-18 Ulrich Drepper <drepper@redhat.com> - - * libio/libio.h (_IO_FLAGS2_FORTIFY): Renamed from - _IO_FLAGS2_CHECK_PERCENT_N. - * debug/fprintf_chk.c: Adjust all users. - * debug/printf_chk.c: Likewise. - * debug/vfprintf_chk.c: Likewise. - * debug/vprintf_chk.c: Likewise. - * debug/vsnprintf_chk.c: Likewise. - * debug/vsprintf_chk.c: Likewise. - * stdio-common/vfprintf.c: Likewise. Detect missing %N$ formats. - * debug/tst-chk1.c: Test detection of missing %N$ formats. - -2004-11-15 Jakub Jelinek <jakub@redhat.com> - - * posix/bug-regex24.c: Include string.h. - - * nis/nis_clone_obj.c (nis_clone_object): Rename out3 label to out2 - and out2 to out. Remove out label. Formatting. - -2004-11-15 Ulrich Drepper <drepper@redhat.com> - - * include/stdio.h: Do not mark __libc_message as noreturn. - * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Add loop to - fool gcc. Include <stdbool.h>. - * sysdeps/posix/libc_fatal.c (__libc_fatal): Add loop to fool gcc. - (__libc_message): Fix typo. - -2004-11-13 Ulrich Drepper <drepper@redhat.com> - - * malloc/malloc.c (malloc_state): stat_lock_* elements need only - be defined if THREAD_STATS is defined. Remove pad0_ since it does - not align with cache line sizes in general anyway. - -2004-11-13 Jakub Jelinek <jakub@redhat.com> - - * elf/rtld.c (print_statistics): Avoid segfaults if not all namespaces - are used. Fix computation of num_relative_relocations on RELA - architectures other than IA-64 and Alpha. - -2004-11-13 Ulrich Drepper <drepper@redhat.com> - - * malloc/malloc.c (_int_free): Use munmap_chunk for handling - mmaped memory. - -2004-11-12 Ulrich Drepper <drepper@redhat.com> - - * malloc/malloc.c (_int_free): Remove test for NULL parameter. - (_int_realloc): Call _int_free only if memory parameter is not NULL. - - * sysdeps/unix/sysv/linux/libc_fatal.c: Add new function __libc_message - which performs the printing and simple format string handling. The - string is written to tty, stderr, syslog in this order, stopping after - the first successful output. - (__libc_fatal): Call __libc_message. - * include/stdio.h: Declare __libc_message. - * malloc/malloc.c (malloc_printerr): Use __libc_message. - * debug/chk_fail.c: Also print message with __libc_message. - * debug/test-strcpy_chk.c: Ensure that debug messages are not printed - to the terminal or stderr. - * debug/tst-chk1.c: Likewise. - - * posix/Makefile: Remove gpl2lgpl variable. - -2004-11-12 Martin Schwidefsky <schwidefsky@de.ibm.com> - - * elf/elf.h: Add 20 bit relocations R_390_*20. - -2004-11-12 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/i386/setuid.c: Include linux/posix_types.h. - * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise. - -2004-11-12 Andreas Schwab <schwab@suse.de> - - * nis/ypclnt.c (ypprot_err): Fix "minor optimizations". - -2004-11-12 Ulrich Drepper <drepper@redhat.com> - - * posix/Makefile (tests): Add bug-regex24. - * posix/bug-regex24.c: New file. - -2004-11-12 Paolo Bonzini <bonzini@gnu.org> - - * posix/regexec.c (check_dst_limits_calc_pos_1): Use the map to - cut recursive paths. Make exit condition more precise. - (match_ctx_add_entry): Initialize the map. - * posix/regex_internal.h (struct re_backref_cache_entry): Add a map of - reachable subexpression nodes from each backreference cache entry. - -2004-11-10 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/setreuid.c: Remove sys/syscall.h, - sys/types.h, linux/posix_types.h, sysdep.h and pthread-functions.h - includes. Include setxid.h. Use INLINE_SETXID_SYSCALL macro - instead of INLINE_SYSCALL, kill the HAVE_PTR__NPTL_SETXID guarded - snippets. - * sysdeps/unix/sysv/linux/setegid.c: Likewise. - * sysdeps/unix/sysv/linux/setuid.c: Likewise. - * sysdeps/unix/sysv/linux/seteuid.c: Likewise. - * sysdeps/unix/sysv/linux/setgid.c: Likewise. - * sysdeps/unix/sysv/linux/setresuid.c: Likewise. - * sysdeps/unix/sysv/linux/setresgid.c: Likewise. - * sysdeps/unix/sysv/linux/setregid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise. - * sysdeps/unix/sysv/linux/alpha/setreuid.c: Likewise. - Formatting. Change signed int into int. - * sysdeps/unix/sysv/linux/alpha/setresuid.c: Likewise. - * sysdeps/unix/sysv/linux/alpha/setresgid.c: Likewise. - * sysdeps/unix/sysv/linux/alpha/setregid.c: Likewise. - * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid): - Remove. - * sysdeps/unix/setxid.h: New file. - - * Rules (binaries-static): Add xtests-static. - * Makeconfig (run-program-prefix): Filter also xtests-static. - -2004-11-09 Paul Eggert <eggert@cs.ucla.edu. - - [BZ #535] - * time/difftime.c: Fix a double-rounding bug on hosts with - 64-bit time_t and long double being IEEE double. Also, port - to more valid C99 hosts, even those that have padding bits. - Don't include <values.h> since it is marked as an obsolescent - interface. Include <limits.h>, <float.h>, and <stdint.h> instead. - (TYPE_BITS, TYPE_FLOATING, TYPE_SIGNED): New macros. - (subtract): New static function, that works correctly without - double-rounding, even on hosts with 64-bit time_t. Also cater - to hosts with padding bits. - (__difftime): Use it. Use DBL_MANT_DIG and LDBL_MANT_DIG to - determine whether floating types are wide enough: the old - test (which used sizeof) could in theory report the wrong results - on hosts with padding bits in floating-point values. - -2004-11-11 Simon Josefsson <jas@extundo.com> - - [BZ #542] - * sysdeps/generic/strtok_r.c [HAVE_CONFIG_H]: Include config.h. - [!_LIBC]: Include strtok_r.h (in gnulib), map __strtok_r to - strtok_r and __rawmemchr to strch. - (__strtok_r): Use C89 prototype. - [weak_alias]: Move calls to libc_hidden_def and weak_alias into - this #ifdef. - -2004-11-10 Paul Eggert <eggert@cs.ucla.edu> - - [BZ #541] - * time/mktime.c (SHR): New macro, which is a portable - substitute for >> that should work even on Crays. - (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it. - Problem reported by Mark D. Baushke in - <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>. - -2004-11-09 Paolo Bonzini <bonzini@gnu.org> - - * posix/regexec.c (match_ctx_free_subtops): Remove, merge into... - (match_ctx_clean): ... this function. - (match_ctx_free): Call match_ctx_clean. - - * posix/regexec.c (transit_state): Remove the check for - out-of-bounds buffers. - (check_matching): Check here for out-of-bounds buffers. - (re_search_internal): Store into match_kind a set of bits - indicating which incantation of fastmap scanning must be - used. Use a switch statement instead of multiple ifs. - Exit the final "for (;;)" with goto free_return unless - the match succeeded, thus simplifying some conditionals. - - * posix/regex_internal.c (re_string_reconstruct, - re_string_context_at): Add several branch predictions for - case-sensitive matching and no transition table being used. - -2004-11-10 Ulrich Drepper <drepper@redhat.com> - - * posix/tst-waitid.c: Don't use error to print error message, they - won't end up in the .out file. - -2004-11-09 Ulrich Drepper <drepper@redhat.com> - - * nscd/nscd-client.h (libc_locked_map_ptr): Add new first - parameter, used as class for definition. - * nscd/nscd_getpw_r.c: Adjust for libc_locked_map_ptr change. - (pw_map_free): Ensure no crash after memory is freed. - * nscd/nscd_getgr_r.c: Likewise. Make map externally visible. - * nscd/nscd_gethst_r.c: Likewise. - * nscd/nscd_getai.c: Use map from nscd_gethost.c. - * nscd/nscd_initgroups.c: Use map from nscd_getgr.c. - - * nscd/nscd_getai.c: Add some checks to detect corrupt databases. - * nscd/nscd_getgr_r.c: Likewise - * nscd/nscd_gethst_r.c: Likewise. - * nscd/nscd_getpw_r.c: Likewise - -2004-11-09 Jakub Jelinek <jakub@redhat.com> - - * posix/regcomp.c (calc_eclosure_iter): Don't access - dfa->edests[node].elems[0] if dfa->edests[node].nelem == 0. - * posix/rxspencer/tests: Add 5 new tests. - -2004-11-09 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/ifaddrs.c: Determine sin6_scope_id field - value correctly. Patch by Mitsuru Kanda <mk@karaba.org>. - -2004-11-04 Jakub Jelinek <jakub@redhat.com> - - * libio/fileops.c (_IO_new_file_seekoff): If mode is 0 and - fp->_offset == _IO_pos_BAD, just call _IO_SYSSEEK (fp, 0, dir) - and if successful set fp->_offset. - * libio/Makefile (tests): Add bug-ungetc3. - * libio/bug-ungetc3.c: New test. - -2004-11-03 Marcus Brinkmann <marcus@gnu.org> - - * sysdeps/gnu/_G_config.h (_G_HAVE_MREMAP): Define symbol. - * sysdeps/mach/hurd/_G_config.h: New file. - * libio/fileops.c (mmap_remap_check) [__linux__]: Replaced with - [_G_HAVE_MREMAP]. - -2004-11-08 Ulrich Drepper <drepper@redhat.com> - - * posix/regcomp.c (utf8_sb_map): Define. - (free_dfa_content): Don't free dfa->sb_char if it's a pointer to - utf8_sb_map. - (init_dfa): Use utf8_sb_map instead of initializing memory when the - encoding is UTF-8. - -2004-11-03 Paolo Bonzini <bonzini@gnu.org> - - * posix/regcomp.c (init_dfa): Get the codeset name outside glibc as - well. Check if it is spelled UTF8 as well as UTF-8, and check - case-insensitively. Set dfa->map_notascii manually when outside - glibc. - * posix/regex_internal.c (build_wcs_upper_buffer) [!_LIBC]: Enable - optimizations based on map_notascii. - * posix/regex_internal.h [HAVE_LANGINFO_H || HAVE_LANGINFO_CODESET - || _LIBC]: Include langinfo.h. - - * posix/regex_internal.h (struct re_backref_cache_entry): Add "more" - field. - * posix/regexec.c (check_dst_limits): Hoist computation of the source - and destination bkref_idx out of the loop. Pass it to - check_dst_limits_calc_pos. - (check_dst_limits_calc_pos_1): New function, containing the recursive - loop of check_dst_limits_calc_pos; uses the "more" field of - struct re_backref_cache to control the loop. - (check_dst_limits_calc_pos): Store into "boundaries" the position - relative to lim's start and end positions. Do not accept eclosures, - accept bkref_idx instead. Call check_dst_limits_calc_pos_1 to do the - work. - (sift_states_bkref): Use the "more" field of struct re_backref_cache - to control the loop. A big "if" was turned into a continue and the - function was reindented. - (get_subexp): Use the "more" field of struct re_backref_cache - to control the loop. - (match_ctx_add_entry): Initialize the bkref_ents' "more" field. - (search_cur_bkref_entry): Return -1 if out of bounds. - - * posix/regexec.c (empty_set): Remove. - (sift_states_backward): Remove cur_src variable. Move inner loop - to build_sifted_states. - (build_sifted_states): Extract from sift_states_backward. Do not - use empty_set. - (update_cur_sifted_state): Do not use empty_set. Special case - dest_nodes->nelem == 0. - - * posix/regex_internal.h (struct re_backref_cache_entry): Remove flag - field. - (struct re_sift_context_t): Remove cur_bkref, cls_subexp_idx, - check_subexp fields. Move limits last. - * posix/regexec.c (match_ctx_clear_flag): Remove. - (sift_ctx_init): Remove check_subexp parameter. Do not set removed - fields. Callers adjusted. - (expand_bkref_cache): Remove last_str parameter. Callers adjusted. - (re_search_internal): Remove fast_translate variable. - (update_cur_sifted_state): Pass candidates as the final parameter - to sift_states_bkref. - (sift_states_bkref): Change last unused parameter to be "candidates", - do not fetch candidates into a local variable. - Remove dead test for "node == sctx->bkref", and the cur_bkref_idx - variable. - Remove loops that set/reset the flag field of backref cache entries. - (check_arrival_add_next_nodes): Use a signed int to hold the return - value of re_node_set_insert. - (group_nodes_into_DFAstates): Likewise. - (match_ctx_add_entry): Do not set the flag field of the new entry. - -2004-11-05 Roland McGrath <roland@redhat.com> - - * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Define - _dl_sysinfo_dso under [NEED_DL_SYSINFO_DSO] as well. - * elf/rtld.c (dl_main): Set up GLRO(dl_sysinfo_dso) under - [NEED_DL_SYSINFO_DSO] as well. - * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Always include - AT_SYSINFO and AT_SYSINFO_EHDR in name table. - (_dl_sysdep_start) [NEED_DL_SYSINFO_DSO]: Match AT_SYSINFO_EHDR. - * elf/dl-support.c (_dl_sysinfo_dso): Define also under - [NEED_DL_SYSINFO_DSO]. - (_dl_aux_init) [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO]: - Match AT_SYSINFO_EHDR and set GL(dl_sysinfo_dso). - -2004-11-05 Roland McGrath <roland@redhat.com> - - * manual/errno.texi (Error Codes): Revert last change for now. - * sysdeps/gnu/errlist.c: Regenerated. - -2004-11-04 Roland McGrath <roland@frob.com> - - * Makeconfig (link-libc, rpath-dirs): Remove AIX cruft definitions. - (LDFLAGS-rpath-ORIGIN, LDFLAGS-soname-fname): Likewise. - (LDFLAGS-rdynamic, LDFLAGS-Bsymbolic): Likewise. - ($(common-objpfx)gnu/lib-names.stmp): Likewise. - -2004-11-01 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h [__WORDSIZE == 32] - (elf_fpxregset_t): New type. - (struct elf_prpsinfo): If __WORDSIZE == 32, change pr_[ug]id type - to unsigned short int. - * sysdeps/unix/sysv/linux/x86_64/sys/user.h - (struct user_fpregs_struct): Fix comment. - * sysdeps/i386/fpu/bits/mathdef.h (float_t, double_t): If - __FLOAT_EVAL_METHOD__ is defined and 0, typedef to float resp. double. - * sysdeps/x86_64/fpu/bits/mathdef.h: Include bits/wordsize.h. - (float_t, double_t): If -m32 and not -mfpmath=sse, typedef to - long double. - * sysdeps/x86_64/fpu/bits/fenv.h: Include bits/wordsize.h. - (fenv_t): Remove __mxcsr field for -m32. - -2004-11-04 Jakub Jelinek <jakub@redhat.com> - - * libio/ftello.c (ftello): Don't subtract save_end - save_base - if pos is _IO_pos_BAD. - * libio/ftello64.c (ftello64): Likewise. - * libio/iofgetpos.c (_IO_new_fgetpos): Likewise. - * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise. - * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise. - * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise. - * libio/ioftell.c (_IO_ftell): Likewise. - Cast to long int instead of off_t when checking for overflow. - -2004-11-04 Richard Henderson <rth@redhat.com> - - * sysdeps/unix/sysv/linux/alpha/register-dump.h (regnames): Align. - (linefeed): Remove. - (register_dump): Rewrite to generate into a flat buffer instead - of into iovecs. - -2004-11-02 Jakub Jelinek <jakub@redhat.com> - - * debug/tst-chk1.c (ret): New volatile variable. - (CHK_FAIL_END): Remove redundant ret setting. - (do_test): Remote ret variable. - -2004-01-03 Paolo Bonzini <bonzini@gnu.org> - - * posix/regex_internal.h (__regfree) [!_LIBC]: Define to regfree. - -2004-11-03 Marcus Brinkmann <marcus@gnu.org> - - * sysdeps/generic/utime.c: Include <stddef.h>. - - * sysdeps/generic/sysconf.c: Include <grp.h> and <pwd.h>. - - * sysdeps/generic/tempname.c (__path_search): Add missing argument - TRY_TMPDIR. - -2004-10-31 Mariusz Mazur <mmazur@kernel.pl> - - * sysdeps/unix/sysv/linux/alpha/setregid.c: New file. - * sysdeps/unix/sysv/linux/alpha/setresgid.c: New file. - * sysdeps/unix/sysv/linux/alpha/setresuid.c: New file. - * sysdeps/unix/sysv/linux/alpha/setreuid.c: New file. - -2004-10-27 Derek R. Price <derek@ximbiot.com> - - [BZ #487] This change is imported from gnulib. - * time/mktime.c (not_equal_tm) [DEBUG]: Remove redundant check. - -2004-10-24 Paul Eggert <eggert@cs.ucla.edu> - - [BZ #473] - * time/tst-mktime.c (main): Don't assume that mktime fails - when given time stamps before 1970. It returns negative - time_t values instead, for compatibility with BSD. - - * time/tst-mktime2.c: New file. - * time/Makefile (tests): Add it. - - [BZ #473] Import from gnulib. Revamp to avoid several problems near - time_t extrema, and on hosts with 64-bit time_t and 32-bit int. - This fixes Debian bug 177940. - * time/mktime.c (TIME_T_MIDPOINT): New macro. - (ydhms_diff): Renamed from ydhms_tm_diff, with a new signature, - which avoids overflow problems on hosts with 64-bit time_t and - 32-bit int. All callers changed. Now an inline function. - Verify at compile-time that long int is wide enough to avoid - these overflow problems. - (guess_time_tm): New function. - (__mktime_internal): Use it. Avoid overflow when computing yday on - hosts with 64-bit long and 32-bit int. Remove tests for 69; - no longer needed. Use if rather than #ifdef for LEAP_SECONDS_POSSIBLE - so that the code is checked by more compilers. - Do not rely on floating point to probe: stick to integer arithmetic, - to avoid potential porting problems. - Repair potential overflow correctly in the Southern Hemisphere. - (localtime_offset): Add a FIXME for the case where time_t is unsigned. - -2004-10-30 Andreas Schwab <schwab@suse.de> - - * sysdeps/m68k/dl-machine.h (elf_machine_rela) - (elf_machine_rela_relative, elf_machine_lazy_rel): Mark auto - instead of static. - -2004-10-30 Andreas Schwab <schwab@suse.de> - - * sysdeps/unix/sysv/linux/waitid.c: Include <stddef.h> for NULL. - -2004-10-30 Ulrich Drepper <drepper@redhat.com> - - * malloc/malloc.c (_int_free): Use unique comments for the error - cases. - -2004-10-28 Roland McGrath <roland@frob.com> - - * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_fork): Use i386_thread_state - instead of machine_thread_state. - -2004-10-28 Roland McGrath <roland@redhat.com> - - * sysdeps/unix/sysv/linux/syscalls.list: Remove setaltroot. - -2004-10-28 Ulrich Drepper <drepper@redhat.com> - - * elf/dl-open.c (dl_open_worker): Remove reference to glibcbug script. - -2004-10-27 Ulrich Drepper <drepper@redhat.com> - - * elf/dl-load.c (_dl_map_object): Use cache_rpath to check for - existing rpath in main executable, not explicit test. - -2004-10-27 Jakub Jelinek <jakub@redhat.com> - - * include/resolv.h (_res_opcodes): New extern. - Add libresolv_hidden_proto. - * resolv/res_debug.c (_res_opcodes): Remove. - (__p_class_syms, __p_type_syms): Add libresolv_hidden_proto - and libresolv_hidden_data_def. Remove attribute_hidden. - * resolv/res_mkquery (_res_opcodes): Remove. - * resolv/res_data.c (_res_opcodes): Remove attribute_hidden. - Add libresolv_hidden_data_def. - -2004-10-27 Ulrich Drepper <drepper@redhat.com> - - * elf/dl-open.c (_dl_open): Don't allow explicitly opening a DSO - into an empty namespace. - - * elf/dl-fini.c (_dl_fini): Fix search for map in maps array. - Reverse order of namespaces. - * elf/Makefile: Add rules to build and run tst-dlmopen3. - * elf/tst-dlmopen3.c: New file. - * elf/tst-dlmopen1mod.c: Add check whether constructor runs. - -2004-10-27 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/generic/glob.c (globfree): Clear gl_pathv after freeing it. - * posix/Makefile: Add rules to build and run bug-glob2 test. - * posix/bug-glob2.c: New test. - -2004-10-27 Roland McGrath <roland@frob.com> - - * sysdeps/mach/hurd/i386/tls.h (HURD_TLS_DESC_DECL): New macro. - (_hurd_tls_init): Use it. - (_hurd_tls_fork): New function. - * sysdeps/mach/hurd/fork.c (__fork) [USE_TLS]: Call it. - -2004-10-26 Roland McGrath <roland@frob.com> - - * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Initialize TCB->tcb. - -2004-10-26 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/gnu/netinet/udp.h (struct udphdr): Use u_int16_t - type instead of uint16_t. Formatting. - -2004-10-25 Roland McGrath <roland@redhat.com> - - * login/openpty.c (openpty): Add libutil_hidden_def. - - * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define to - either libc_hidden_def or libnss_files_hidden_def, not hidden_def. - This file is also compiled into libnss_hesiod by #include. - -2004-10-25 Roland McGrath <roland@frob.com> - - * sysdeps/unix/bsd/hp: Directory and all files removed. - These are now in the ports repository. - * sysdeps/unix/bsd/osf: Likewise. - * sysdeps/unix/bsd/sequent: Likewise. - * sysdeps/unix/bsd/sony: Likewise. - * sysdeps/unix/bsd/ultrix4: Likewise. - * sysdeps/unix/sysv/aix: Likewise. - * sysdeps/unix/sysv/hpux: Likewise. - * sysdeps/unix/sysv/irix4: Likewise. - * sysdeps/unix/sysv/isc2.2: Likewise. - * sysdeps/unix/sysv/minix: Likewise. - * sysdeps/unix/sysv/sco3.2.4: Likewise. - * sysdeps/unix/sysv/sco3.2: Likewise. - * sysdeps/unix/sysv/sysv4: Likewise. - - * configure.in (ASM_LINE_SEP): Move this setting to ... - * sysdeps/hppa/configure.in: ... here, new file. - * sysdeps/hppa/configure: New generated file. - * configure: Regenerated. - -2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/sh/dl-machine.h: Include sysdep.h. - (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add CFI directives. - (elf_machine_runtime_setup): Add always_inline attribute. - (_dl_start_user): Pass the correct environ. - (elf_machine_rela): Replace static inline by auto inline, add - always_inline attribute. - (elf_machine_rela_relative): Likewise. - (elf_machine_lazy_rel): Likewise. - -2004-10-24 Ulrich Drepper <drepper@redhat.com> - - * nis/nis_call.c: Pretty printing. Minor cleanups. - * nis/nis_addmember.c (nis_addmember): Add assert to check buffer - bounds. - - * resolv/nss_dns/dns-host.c: Avoid using PLTs. - * include/libc-symbols.h: Define hidden attribute macros for - libnss_nisplus and libutil. - * include/utmp.h: Add libutil_hidden_proto for login_tty. - * login/login_tty.c: Add libutil_hidden_def. - * nis/nisplus-parser.h: Add libnss_nisplus_hidden_proto for parsers. - * nis/nss_nisplus/nisplus-parser.c: Add libnss_nisplus_hidden_def. - * include/pty.h: New file. - * include/rpcsvc/yp.h: New file. - * include/rpcsvc/ypclnt.h: New file. - * include/rpcsvc/ypupd.h: New file. - * include/libc-symbols.h: Define hidden attribute macros for libnsl. - * include/rpcsvc/nislib.h: Use libnsl_hidden_proto for various - functions. - * nis/nis_add.c: Add libnsl_hidden_def. Minor optimizations. - * nis/nis_call.c: Likewise. - * nis/nis_clone_obj.c: Likewise. - * nis/nis_defaults.c: Likewise. - * nis/nis_domain_of_r.c: Likewise. - * nis/nis_error.c: Likewise. - * nis/nis_file.c: Likewise. - * nis/nis_free.c: Likewise. - * nis/nis_local_names.c: Likewise. - * nis/nis_lookup.c: Likewise. - * nis/nis_modify.c: Likewise. - * nis/nis_print.c: Likewise. - * nis/nis_remove.c: Likewise. - * nis/nis_subr.c: Likewise. - * nis/nis_table.c: Likewise. - * nis/nis_util.c: Likewise. - * nis/yp_xdr.c: Likewise. - * nis/ypclnt.c: Likewise. - * nis/ypupdate_xdr.c: Likewise. - - * resolv/res_send.c (send_dg): Cope with failures. - - * include/libc-symbols.h: Define hidden attribute macros for - libnss_files. - * include/netdb.h: Use libnss_files_hidden_proto for the parsers - defined in libnss_files, not libc_hidden_proto. - * include/netinet/ether.h: Likewise. - * include/rpc/netdb.h: Likewise. - * nss/nss_files/files-parse.c: Use hidden_def in parser definitions - instead of libc_hidden_def. - * nss/nss_files/files-netgrp.c: Add libnss_files_hidden_def to - _nss_netgroup_parseline definition. - -2004-10-23 Roland McGrath <roland@frob.com> - - * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Don't return early - after an RPC succeeds. - - * sysdeps/vax, sysdeps/unix/bsd/vax: Directories and all files removed. - These are now in the ports repository. - * sysdeps/tahoe, sysdeps/unix/bsd/tahoe: Likewise. - * sysdeps/cris, sysdeps/unix/sysv/linux/cris: Likewise. - * sysdeps/am29k, sysdeps/i860, sysdeps/i960, sysdeps/m88k: Likewise. - * sysdeps/standalone, sysdeps/z8000: Likewise. - -2004-10-23 Ulrich Drepper <drepper@redhat.com> - - * resolv/res_send.c (send_dg): Combine write and read to socket - into one loop. - -2004-10-22 Roland McGrath <roland@frob.com> - - * Makefile (%.bz2, %.gz): Move these pattern rules ... - * Makerules: ... to here. - -2001-10-31 Alexandre Oliva <aoliva@redhat.com> - - * elf/elf.h: Add R_MN10300_* relocation numbers. - -2004-10-22 Paul Eggert <eggert@cs.ucla.edu> - - [BZ #471] Fix imported from gnulib. - * time/mktime.c (leapyear, ydms_tm_diff): Year is of type - long int, not int, to avoid problems when tm_year == INT_MAX - and tm_mon > 12. - (__mktime_intenral): Compute year using long int arithmetic, - not int arithmetic, to avoid problems on hosts where time_t - and long are 64 bits but int is 32. - - [BZ #468] Import a fix from gnulib. - * time/mktime.c [! DEBUG]: Do not include <string.h>. - It's needed only if DEBUG is nonzero. - - [BZ #470] Import fix from gnulib. - * time/mktime.c [!_LIBC] (__mktime_internal): Define to - mktime_internal, to avoid clashes with any __mktime_internal - function defined in the standard library. - - [BZ #469] Imported from gnulib. - * time/mktime.c (__isleap): Remove; all uses replaced by: - (leapyear): New function, which avoids overflow by not adding - 1900 to year before testing whether it is a leap year. - - [BZ #472] Imported from gnulib. - * time/mktime.c (Local Variables): Remove -DHAVE_TIME_R_POSIX; - no longer used. - -2004-10-22 Ulrich Drepper <drepper@redhat.com> - - * resolv/res_send.c: Remove compatibility code which is unused in - glibc and probably bitrotten. - - * debug/execinfo.h: Remove __THROW from backtrace prototype. - -2004-10-22 Jakub Jelinek <jakub@redhat.com> + * timezone/private.h: Update from tzcode2006o. + * timezone/tzfile.h: Likewise. + * timezone/zdump.c: Likewise. + * timezone/zic.c: Likewise. - * sysdeps/i386/Makefile (CFLAGS-backtrace.c): Add -fexceptions. - * sysdeps/i386/backtrace.c: Include <bits/libc-lock.h>, <dlfcn.h>, - <stdlib.h> and <unwind.h>. Remove <bp-checks.h> include. - (struct trace_arg): New type. - (unwind_backtrace, unwind_getip, unwind_getcfa, unwind_getgr): New - fn pointers resp. macros. - (init, backtrace_helper): New functions. - (__backtrace): Rewritten to use _Unwind_Backtrace first and fall - back to frame pointer walking. +2006-07-02 Jakub Jelinek <jakub@redhat.com> -2004-10-22 Ulrich Drepper <drepper@redhat.com> + * nscd/connections.c (sighup_pending): New variable. + (nscd_run): If sighup_pending, prune all 3 caches. + (sighup_handler): Don't prune caches here, rather just set + sighup_pending flag. - * sysdeps/unix/sysv/linux/Versions: Things are still in flux, it - seems. Undo last additions. +2007-07-03 Jakub Jelinek <jakub@redhat.com> -2004-10-21 Ulrich Drepper <drepper@redhat.com> + [BZ #4702] + * nis/nss-default.c: Include errno.h. + (init): Preserve errno. - * posix/execvp.c (execvp): Also ignore ENODEV and ETIMEDOUT errno - values. +2007-07-01 Jakub Jelinek <jakub@redhat.com> -2004-10-20 Roland McGrath <roland@redhat.com> + * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check. + * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0). + Return NULL if mmap failed instead of asserting it does not. + (calloc): Check for integer overflow. - * Makeconfig ($(common-objpfx)shlib-versions.v.i): Check also - $(config-sysdirs) for shlib-versions files. + * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger + than LONG_MAX / 10. - * Makeconfig ($(common-objpfx)soversions.i): Replace shell loop with - use of ... - * scripts/soversions.awk: ... this new file. Collect lib info and - match any DEFAULT line before emitting anything, so DEFAULT can come - later in the concatenation of shlib-versions files. - - * manual/errno.texi (Error Codes): Add ENOKEY, EKEYEXPIRED, - EKEYREVOKED, EKEYREJECTED. - * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.3.4): New errlist. - * sysdeps/gnu/errlist.c: Regenerated - - * sysdeps/gnu/errlist-compat.awk: Don't bail if Versions gives a count - higher than ERR_MAX reports. Instead, emit a #define ERR_MAX. - * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.h): New target. - (generated): Add errlist-compat.h. - * sysdeps/gnu/errlist.awk: Make output #include <errlist-compat.h> to - define ERR_MAX and use that for table size. - -2004-10-20 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/syscalls.list: Add entries for setaltroot, - key_add, key_request, and keyctl syscalls. - * sysdeps/unix/sysv/linux/Versions: Export them. - -2004-10-19 Roland McGrath <roland@frob.com> - - * sysdeps/mach/readonly-area.c: New file. - -2004-10-19 Ulrich Drepper <drepper@redhat.com> - - * elf/Versions [ld, GLIBC_PRIVATE]: Add _dl_debug_state. - * elf/dl-debug.c (_dl_debug_state): Add rtld_hidden_def. - * sysdeps/generic/ldsodefs.h (_dl_debug_state): Don't mark as - hidden but use rtld_hidden_proto. - -2004-10-19 Alfred M. Szmidt <ams@gnu.org> - - * sysdeps/generic/readonly-area.c (__readonly_str): Renamed to ... - (__readonly_area): ... this. - -2004-10-18 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/generic/strcpy_chk.c (__strcpy_chk): Speed up by checking - destlen only every 4 bytes. - -2004-10-19 Ulrich Drepper <drepper@redhat.com> - - * nss/getent.c (hosts_keys): Let inet_pton decide whether the - string is an address or not. - -2004-10-19 Jakub Jelinek <jakub@redhat.com> - - * elf/dl-addr.c (_dl_addr): Don't look at STT_TLS symbols. - Use DL_SYMBOL_ADDRESS to set dli_saddr. - - * debug/Makefile (catchsegv): Prefix $LIB with a backslash. - -2004-10-19 Ulrich Drepper <drepper@redhat.com> - - * debug/Makefile ($(objpfx)catchsegv): To support multilib - platforms, use $LIB in path to slibdir. - -2004-10-19 Jakub Jelinek <jakub@redhat.com> - - * debug/catchsegv.sh: Update copyright year. - Use mktemp to create segv_output file. - -2004-10-18 Jakub Jelinek <jakub@redhat.com> - - * elf/dl-libc.c (__libc_dlsym_private, __libc_register_dl_open_hook): - New functions. - (__libc_dlopen_mode): Call __libc_register_dl_open_hook and - __libc_register_dlfcn_hook. - * dlfcn/Makefile (routines, elide-routines.os): Set. - Add rules to build and test tststatic2. - * dlfcn/tststatic2.c: New test. - * dlfcn/modstatic2.c: New test module. - * dlfcn/dladdr.c: Call _dlfcn_hook from libdl.so if not NULL. - Define __ prefixed routine in libc.a and in libdl.a just call it. - * dlfcn/dladdr1.c: Likewise. - * dlfcn/dlclose.c: Likewise. - * dlfcn/dlerror.c: Likewise. - * dlfcn/dlinfo.c: Likewise. - * dlfcn/dlmopen.c: Likewise. - * dlfcn/dlopen.c: Likewise. - * dlfcn/dlopenold.c: Likewise. - * dlfcn/dlsym.c: Likewise. - * dlfcn/dlvsym.c: Likewise. - * dlfcn/sdladdr.c: New file. - * dlfcn/sdladdr1.c: New file. - * dlfcn/sdlclose.c: New file. - * dlfcn/sdlerror.c: New file. - * dlfcn/sdlinfo.c: New file. - * dlfcn/sdlopen.c: New file. - * dlfcn/sdlsym.c: New file. - * dlfcn/sdlvsym.c: New file. - * dlfcn/Versions (libdl): Export _dlfcn_hook@GLIBC_PRIVATE. - * include/dlfcn.h (DL_CALLER_DECL, DL_CALLER RETURN_ADDRESS): Define. - (struct dlfcn_hook): New type. - (_dlfcn_hook): New extern decl. - (__dlopen, __dlclose, __dlsym, __dlerror, __dladdr, __dladdr1, - __dlinfo, __dlmopen, __libc_dlsym_private, - __libc_register_dl_open_hook, __libc_register_dlfcn_hook): New - prototypes. - (__dlvsym): Use DL_CALLER_DECL. - * include/libc-symbols.h: Define libdl_hidden_proto and friends. - - * malloc/arena.c (_dl_open_hook): Extern decl. - (ptmalloc_init): Don't call _dl_addr when dlopened from statically - linked programs but don't use brk for them either. - -2004-10-18 Roland McGrath <roland@redhat.com> - - * dlfcn/bug-dlsym1.c (main): Remove bogus setenv call. - -2004-10-18 Ulrich Drepper <drepper@redhat.com> - - * elf/dl-open.c (dl_open_worker): Avoid dereferencing map in - statically linked code if there might none be found. - -2004-10-06 Maciej W. Rozycki <macro@mips.com> - - * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h - (__SYSCALL_CLOBBERS): Add "memory". - * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h - (__SYSCALL_CLOBBERS): Likewise. - * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h - (__SYSCALL_CLOBBERS): Likewise. - -2004-10-17 Ulrich Drepper <drepper@redhat.com> - - * include/libc-symbols.h: Define libresolv_hidden_proto and friends. - * include/resolv.h: Add libresolv_hidden_proto for symbols defined, - used, and exported in libresolv. - * resolv/base64.c: Add libresolv_hidden_def. - * resolv/gethnamaddr.c: Likewise. - * resolv/ns_name.c: Likewise. - * resolv/ns_netint.c: Likewise. - * resolv/res_comp.c: Likewise. - * resolv/res_data.c: Likewise. - * resolv/res_debug.c: Likewise. - * resolv/res_mkquery.c: Likewise. - * resolv/res_query.c: Likewise. - * resolv/res_send.c: Likewise. - -2004-10-15 Jakub Jelinek <jakub@redhat.com> - - * elf/dl-minimal.c (__chk_fail): New. Add rtld_hidden_def. - * sysdeps/unix/sysv/linux/readonly-area.c: New file. - * sysdeps/i386/i686/memmove.S (__memmove_chk): Add checking - routine. - * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Likewise. - * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise. - * sysdeps/i386/i686/memset.S (__memset_chk): Likewise. - * sysdeps/i386/i686/memmove-chk.S: New file. - * sysdeps/i386/i686/memcpy-chk.S: Likewise. - * sysdeps/i386/i686/mempcpy-chk.S: Likewise. - * sysdeps/i386/i686/memset-chk.S: Likewise. - * sysdeps/generic/strcat-chk.c (__strcat_chk): Don't __chk_fail - if exactly fitting into buffer. - * sysdeps/generic/strncat-chk.c (__strncat_chk): Likewise. - * sysdeps/generic/readonly-area.c: New file. - * sysdeps/generic/strncpy-chk.c (__strncpy_chk): Only test - destlen once. - * sysdeps/x86_64/memset.S (__memset_chk): Add checking routine. - * sysdeps/x86_64/memcpy.S (__memcpy_chk): Likewise. - * sysdeps/x86_64/mempcpy.S (__memcpy_chk): Define to __mempcpy_chk. - * sysdeps/x86_64/memcpy-chk.S: New file. - * sysdeps/x86_64/mempcpy-chk.S: Likewise. - * sysdeps/x86_64/memset-chk.S: Likewise. - * sysdeps/x86_64/strcpy-chk.S: Likewise. - * sysdeps/x86_64/stpcpy-chk.S: Likewise. - * argp/argp-xinl.c (__OPTIMIZE__): Define to 1 instead of nothing. - * argp/argp-fs-xinl.c (__OPTIMIZE__): Likewise. - * debug/tst-chk1.c: New test. - * debug/tst-chk2.c: Likewise. - * debug/tst-chk3.c: Likewise. - * debug/test-strcpy_chk.c: Likewise. - * debug/test-stpcpy_chk.c: Likewise. - * debug/vsprintf_chk.c (__vsprintf_chk): If flags > 0, request - _IO_FLAGS2_CHECK_PERCENT_N. Add libc_hidden_def. - * debug/Makefile (routines): Add printf_chk, fprintf_chk, vprintf_chk, - vfprintf_chk, gets_chk and readonly-area. - (CFLAGS-*_chk.c): Set. - (tests): Add tst-chk1, tst-chk2, tst-chk3, test-strcpy_chk and - test-stpcpy_chk. - * debug/vprintf_chk.c: New file. - * debug/printf_chk.c: Likewise. - * debug/vfprintf_chk.c: Likewise. - * debug/fprintf_chk.c: Likewise. - * debug/gets_chk.c: Likewise. - * debug/chk_fail.c (__chk_fail): Add libc_hidden_def. - * debug/snprintf_chk.c (__snprintf_chk): Fix order of arguments - passed to __vsnprintf_chk. - * debug/Versions (libc): Export __printf_chk, __fprintf_chk, - __vprintf_chk, __vfprintf_chk and __gets_chk @GLIBC_2.3.4. - * debug/vsnprintf_chk.c (__vsnprintf_chk): Don't call - __vsnprintf, instead create a temporary file with - _IO_strn_jumps jumptable. If flags > 0, request - _IO_FLAGS2_CHECK_PERCENT_N. Add libc_hidden_def. - * libio/Makefile (headers): Add bits/stdio2.h. - * libio/stdio.h: Include <bits/stdio2.h> if __USE_FORTIFY_LEVEL. - (sprintf, snprintf, vsprintf, vsnprintf): Remove defines. - * libio/strfile.h (_IO_strnfile): New type. - (_IO_strn_jumps): New extern. - * libio/vsnprintf.c (_IO_strnfile): Remove. - (_IO_strn_jumps): Remove static. - * libio/bits/stdio2.h: New file. - * libio/vswprintf.c (_IO_strnfile): Rename type to... - (_IO_wstrnfile): ...this. Adjust all uses. - * libio/libio.h (_IO_FLAGS2_CHECK_PERCENT_N): Define. - * stdio-common/vfprintf.c (STR_LEN): Define. - (vfprintf): Add readonly_format variable. - Handle _IO_FLAGS2_CHECK_PERCENT_N. - (buffered_vfprintf): Copy _flags2. - * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk, - __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk, - __vfprintf_chk): New prototypes. - (__vsprintf_chk, __vsnprintf_chk): Add libc_hidden_proto. - * include/string.h (__memcpy_chk, __memmove_chk, __mempcpy_chk, - __memset_chk, __strcpy_chk, __stpcpy_chk, __strncpy_chk, __strcat_chk, - __strncat_chk): New prototypes. - * include/bits/string3.h: New file. - * include/sys/cdefs.h (__chk_fail): Add libc_hidden_proto - and rtld_hidden_proto. - * string/Makefile (headers): Add bits/string3.h. - * string/bits/string3.h (bcopy, bzero): New defines. - (memset, memcpy, memmove, strcpy, strncpy, strcat, strncat): Change - macros so that inlines are used only if unknown destination size - or side-effects in destination argument. - (mempcpy, stpcpy): Likewise. Protect with #ifdef __USE_GNU. - -2004-09-16 Ulrich Drepper <drepper@redhat.com> - - * debug/Makefile (routines): Add *_chk. - * debug/Versions (libc): Export __chk_fail, __memcpy_chk, - __memmove_chk, __mempcpy_chk, __memset_chk, __stpcpy_chk, - __strcat_chk, __strcpy_chk, __strncat_chk, __strncpy_chk, - __sprintf_chk, __vsprintf_chk, __snprintf_chk, __vsnprintf_chk - @GLIBC_2.3.4. - * debug/chk_fail.c: New file. - * debug/snprintf_chk.c: Likewise. - * debug/sprintf_chk.c: Likewise. - * debug/vsnprintf_chk.c: Likewise. - * debug/vsprintf_chk.c: Likewise. - * include/features.h (_FORTIFY_SOURCE): Document, handle. - (__USE_FORTIFY_LEVEL): Define. - (__GNUC_PREREQ): Move to earlier location. - * include/sys/cdefs.h (__chk_fail): New prototype. - * libio/bits/stdio.h (sprintf, vsprintf, snprintf, vsnprintf): - Define if __USE_FORTIFY_LEVEL. - * misc/sys/cdefs.h (__bos, __bos0): Define. - * string/string.h: Include <bits/string3.h> if __USE_FORTIFY_LEVEL. - * bits/string/string3.h: New header. - * sysdeps/generic/memcpy_chk.c: New file. - * sysdeps/generic/memmove_chk.c: Likewise. - * sysdeps/generic/mempcpy_chk.c: Likewise. - * sysdeps/generic/memset_chk.c: Likewise. - * sysdeps/generic/stpcpy_chk.c: Likewise. - * sysdeps/generic/strcat_chk.c: Likewise. - * sysdeps/generic/strcpy_chk.c: Likewise. - * sysdeps/generic/strncat_chk.c: Likewise. - * sysdeps/generic/strncpy_chk.c: Likewise. - -2004-10-17 Roland McGrath <roland@frob.com> - - * manual/memory.texi (Page Lock Functions): Typo fix. - Reported by Carlos Maziero <maziero@ppgia.pucpr.br> - -2004-10-16 Alfred M. Szmidt <ams@kemisten.nu> - - * sysdeps/mach/hurd/Makefile (link-libc-static): Use - `$(static-gnulib') instead of `$(gnulib)'. - -2004-10-17 Ulrich Drepper <drepper@redhat.com> - - * sunrpc/rpc_clntout.c: Avoid including rcsid into binary. - * sunrpc/rpc_cout.c: Likewise. - * sunrpc/rpc_hout.c: Likewise. - * sunrpc/rpc_main.c: Likewise. - * sunrpc/rpc_parse.c: Likewise. - * sunrpc/rpc_sample.c: Likewise. - * sunrpc/rpc_scan.c: Likewise. - * sunrpc/rpc_svcout.c: Likewise. - * sunrpc/rpc_tblout.c: Likewise. - * sunrpc/rpc_util.c: Likewise. - -2004-10-15 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/i386/sysdep.h (PUSHARGS_6, DOARGS_6, - POPARGS_6, _PUSHARGS_6, _DOARGS_6, _POPARGS_6): Define. - * sysdeps/unix/sysv/linux/i386/syscall.S (syscall): Handle 6 argument - syscalls. - -2004-10-15 Ulrich Drepper <drepper@redhat.com> - - * nscd/nscd.h (_PATH_NSCD_PASSWD_DB): Move to /var/db. - (_PATH_NSCD_GROUP_DB): Likewise. - (_PATH_NSCD_HOSTS_DB): Likewise. - (_PATH_NSCD_XYZ_DB_TMP): New #define, point to /var/run. - * nscd/connections.c (nscd_init): Non-persistent database files - are created with the _PATH_NSCD_XYZ_DB_TMP path. - * nscd/nscd.init: Create /var/db/nscd if necessary. - -2004-10-15 Richard Henderson <rth@redhat.com> - - * sysdeps/unix/sysv/linux/alpha/register-dump.h: New file. - * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h (SIGCONTEXT): Add - _code argument, pass sigcontext by pointer. - (SIGCONTEXT_EXTRA_ARGS): Likewise. - (GET_PC, GET_FRAME, GET_STACK): Expect ctx as pointer. - -2004-10-14 Richard Henderson <rth@redhat.com> - - * sysdeps/alpha/dl-machine.h (elf_machine_rela, - elf_machine_rela_relative, elf_machine_lazy_rel): Mark auto - instead of static. - - * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use prototype - style definition. - * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): If - __ASSUME_TIMEVAL64, define __adjtime directly rather than - via strong_alias. - -2004-10-14 Ulrich Drepper <drepper@redhat.com> - - * nscd/Makefile: When using compilers without -fpie support, also - link with -lselinux if necessary. - Patch by Arkadiusz Miskiewicz <arekm@pld-linux.org>. - - * nscd/connections.c (nscd_init): Remove file if not persistent - and not shared. Patch by Jerome Borsboom <j.borsboom@erasmusmc.nl>. - -2004-10-14 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/i386/setresuid.c: Handle - defined __NR_setresuid32 && !defined __NR_setresuid. - * sysdeps/unix/sysv/linux/i386/setresgid.c: Handle - defined __NR_setresgid32 && !defined __NR_setresgid. - - * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit, - __signbitl, sqrtf, sqrt, sqrtl, fdim, fdimf): Use __NTH macro. - - * sysdeps/generic/errno-loc.c: Don't undef #errno - if RTLD_PRIVATE_ERRNO. - * include/errno.h (__errno_location): If RTLD_PRIVATE_ERRNO, - add attribute_hidden. - - * dlfcn/dlinfo.c (dlinfo_doit): Replace iteration over GL(dl_loaded) - chain with iteration over all namespaces' _ns_loaded chains. - * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_preferred_address): - Likewise. - * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise. +2007-06-19 Ulrich Drepper <drepper@redhat.com> - * elf/rtld.c (_dl_start): Fix one last dl_loaded. - * elf/dl-load.c (_dl_map_object_from_fd): Avoid definition of - label when it is not needed. - * elf/dl-close.c (_dl_close): Typo: & -> &&. + * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements + to fill in holes + (rtld_global_ro): Likewise. -2004-10-12 Jakub Jelinek <jakub@redhat.com> +2007-06-18 Jakub Jelinek <jakub@redhat.com> - * sysdeps/generic/segfault.c: Include alloca.h and stdint.h. - Don't include frame.h. - (CURRENT_STACK_FRAME, INNER_THAN, ADVANCE_STACK_FRAME): Remove. - (catch_segfault): Use backtrace function. - - * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Fix comment. - * sysdeps/unix/sysv/linux/ia64/register-dump.h: New file. - * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h (GET_PC): Return sc_ip - field. + * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous. + Move PT_LOAD checking to... + (_dl_addr_inside_object): ... here, new function. + * elf/dl-sym.c (do_sym): If not l_contiguous, + call _dl_addr_inside_object. + * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise. + * dlfcn/dlinfo.c (dlinfo_doit): Likewise. + * elf/dl-open.c (dl_open_worker): Likewise. + (_dl_addr_inside_object): New function if IS_IN_rtld. + * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no + holes are present or are PROT_NONE protected. + * include/link.h (struct link_map): Add l_contiguous field. + * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype. + +2007-06-18 Jakub Jelinek <jakub@redhat.com> + + * elf/rtld.c (dl_main): Don't call init_tls more than once. + +2007-06-19 Ulrich Drepper <drepper@redhat.com> + + * elf/dl-close.c (free_mem): Free _dl_scope_free_list. + +2007-06-13 Jakub Jelinek <jakub@redhat.com> + + * include/link.h: Don't include rtld-lowlevel.h. + (struct link_map): Remove l_scope_lock. + * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h. + (_dl_scope_free_list): New field (variable) in _rtld_global. + (DL_LOOKUP_SCOPE_LOCK): Remove. + (_dl_scope_free): New prototype. + * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock. + Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x. + (_dl_profile_fixup): Likewise. + * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x + whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and + THREAD_GSCOPE_RESET_FLAG around it. + * elf/dl-close.c (_dl_close_worker): Don't use + __rtld_mrlock_{change,done}. Call _dl_scope_free on the old + scope. Make sure THREAD_GSCOPE_WAIT () happens if any old + scopes were queued or if l_scope_mem has been abandoned. + * elf/dl-open.c (_dl_scope_free): New function. + (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}. + * elf/dl-support.c (_dl_scope_free_list): New variable. + * elf/dl-lookup.c (add_dependency): Remove flags argument. + Remove DL_LOOKUP_SCOPE_LOCK handling. + (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK + handling. + * elf/dl-object.c (_dl_new_object): Don't use + __rtld_mrlock_initialize. + +2007-06-09 Ulrich Drepper <drepper@redhat.com> + + * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and + make sure gcc doesn't mess around with this. + +2007-06-08 Ulrich Drepper <drepper@redhat.com> + + * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist. + +2007-06-08 Jakub Jelinek <jakub@redhat.com> + + * elf/dl-close.c (_dl_close_worker): Remove all to be removed + libraries from the global scope at once and call THREAD_GSCOPE_WAIT + at most once per _dl_close_worker. + +2007-05-18 Ulrich Drepper <drepper@redhat.com> + + * elf/dl-close.c (_dl_close_worker): When removing object from + global scope, wait for all lookups to finish afterwards. + * elf/dl-open.c (add_to_global): When global scope array must + grow, allocate a new one and free old array only after all + lookups finish. + * elf/dl-runtime.c (_dl_fixup): Protect using global scope. + (_dl_lookup_symbol_x): Likewise. + * elf/dl-support.c: Define _dl_wait_lookup_done. + * sysdeps/generic/ldsodefs.h (struct rtld_global): Add + _dl_wait_lookup_done. + +2007-05-11 Ulrich Drepper <drepper@redhat.com> + + * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by + adding new variables. + + * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc + optimize. Completely extend global scope array before making the + new entries visible. + +2007-01-15 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK. + * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock + it before getting dl_load_lock and then relock. + (_dl_lookup_symbol_x): Pass flags to add_dependency. + When rerunning _dl_lookup_symbol_x, compute symbol_scope again in + case we unlocked the scope. + * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to + _dl_lookup_symbol_x in case we locked the scope. + (_dl_profile_fixup): Likewise. + * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also + set DL_LOOKUP_SCOPE_LOCK. + +2006-10-29 Jakub Jelinek <jakub@redhat.com> + + * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P. + * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise. + * elf/dl-close.c (_dl_close_worker): Likewise. + * elf/dl-open.c (_dl_open_worker): Likewise. + * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define. + +2006-10-27 Jakub Jelinek <jakub@redhat.com> + + * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope + argument. + (_dl_lookup_symbol_x): Adjust caller. + + * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove + _ns_global_scope. + * elf/rtld.c (dl_main): Don't initialize _ns_global_scope. + + * elf/dl-libc.c: Revert l_scope name changes. + * elf/dl-load.c: Likewise. + * elf/dl-object.c: Likewise. + * elf/rtld.c: Likewise. + * elf/dl-close.c (_dl_close): Likewise. + * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P, + always use __rtld_mrlock_{change,done}. Always free old scope list + here if not l_scope_mem. + * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name + change. Never free scope list here. Just __rtld_mrlock_lock before + the lookup and __rtld_mrlock_unlock it after the lookup. + * elf/dl-sym.c: Likewise. + * include/link.h (struct r_scoperec): Remove. + (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem + with l_scope_mem and l_scoperec_lock with l_scope_lock. + +2006-10-18 Ulrich Drepper <drepper@redhat.com> + + * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to + _dl_lookup_symbol_x code. + +2006-10-17 Jakub Jelinek <jakub@redhat.com> + + * elf/dl-runtime.c: Include sysdep-cancel.h. + (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and + scoperec->nusers only if !SINGLE_THREAD_P. + * elf/dl-sym.c: Include sysdep-cancel.h. + (do_sym): Use __rtld_mrlock_* and scoperec->nusers only + if !SINGLE_THREAD_P. + * elf/dl-close.c: Include sysdep-cancel.h. + (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only + if !SINGLE_THREAD_P. + * elf/dl-open.c: Include sysdep-cancel.h. + (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only + if !SINGLE_THREAD_P. + +2006-10-09 Ulrich Drepper <drepper@redhat.com> + Jakub Jelinek <jakub@redhat.com> -2004-10-13 Ulrich Drepper <drepper@redhat.com> - - Add support for namespaces in the dynamic linker. - * dlfcn/Makefile (libdl-routines): Add dlmopen. - * dlfcn/Versions [libdl, GLIBC_2.3.4]: Add dlmopen. - * dlfcn/dlfcn.h: Define Lmid_t, LM_ID_BASE, and LM_ID_NEWLM. - Declare dlmopen. Document RTLD_DI_LMID. - * dlfcn/dlinfo.c: Handle RTLD_DI_LMID. - * dlfcn/dlmopen.c: New file. - * dlfcn/dlopen.c: Pass new parameter to _dl_open. - * dlfcn/dlopenold.c: Likewise. - * elf/dl-addr.c: Adjust for removal of GL(dl_loaded). - * elf/dl-caller.c: Likewise. - * elf/dl-close.c: Likewise. - * elf/dl-conflict.c: Likewise. - * elf/dl-debug.c: Likewise. - * elf/dl-lookup.c: Likewise. + Implement reference counting of scope records. + * elf/dl-close.c (_dl_close): Remove all scopes from removed objects + from the list in objects which remain. Always allocate new scope + record. + * elf/dl-open.c (dl_open_worker): When growing array for scopes, + don't resize, allocate a new one. + * elf/dl-runtime.c: Update reference counters before using a scope + array. * elf/dl-sym.c: Likewise. - * elf/dl-version.c: Likewise. - * elf/do-lookup.h: Likewise. + * elf/dl-libc.c: Adjust for l_scope name change. + * elf/dl-load.c: Likewise. + * elf/dl-object.c: Likewise. * elf/rtld.c: Likewise. - * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise. - * elf/dl-depsc: Likewise. Add new parameter to _dl_map_object. - * elf/dl-fini.c: Call destructors in all namespaces. - * elf/dl-iteratephdr.c: Compute total nloaded. Adjust for removal of - GL(dl_loaded). - * elf/dl-libc.c: Pass new parameter to _dl_open. Adjust for removal - of GL(dl_loaded). - * elf/dl-load.c (_dl_map_object_from_fd): Don't load ld.so a second - time. Reuse the one from the main namespace in all others. - Pass new parameter to _dl_new_object. - Adjust for removal of GL(dl_loaded). - * elf/dl-object.c: Take new parameter. Use it to initialize l_ns. - Adjust for removal of GL(dl_loaded). - * elf/dl-open.c (_dl_open): Take new parameter. - Adjust for removal of GL(dl_loaded). - * elf/dl-support.c: Replace global _dl_loaded etc variables with - _dl_ns variable. - * include/dlfcn.h: Adjust prototype of _dl_open. - Define __LM_ID_CALLER. - * include/link.h: Add l_real, l_ns, and l_direct_opencount elements. - * sysdeps/generic/dl-tls.c: Bump TLS_STATIC_SURPLUS. Since libc is - using TLS we need memory appropriate to the number of namespaces. - * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace _dl_loaded, - _dl_nloaded, _dl_global_scope, _dl_main_searchlist, and - _dl_global_scope_alloc with _dl_ns element. Define DL_NNS. - Adjust prototypes of _dl_map_object and member in rtld_global_ro. - * malloc/malloc.c: Include <dlfcn.h>. - * malloc/arena.c (ptmalloc_init): If libc is not in primary namespace, - never use brk. - * elf/Makefile: Add rules to build and run tst-dlmopen1 and - tst-dlmopen2. - * elf/tst-dlmopen1.c: New file. - * elf/tst-dlmopen1mod.c: New file. - * elf/tst-dlmopen2.c: New file. - - * elf/dl-close.c: Improve reference counting by tracking direct loads. - * elf/dl-lookup.c (add_dependency): Likewise. - * elf/dl-open.c (dl_open_worker): Likewise. - * elf/rtld.c (dl_main): Likewise. - -2004-09-09 GOTO Masanori <gotom@debian.or.jp> - - [BZ #77] - * elf/dl-close.c: Count down l_opencount to check not only for - l_reldeps, but also l_initfini. - -2004-10-13 Ulrich Drepper <drepper@redhat.com> - - * elf/dl-close.c (_dl_close): Update bug reporting instructions. - -2004-10-11 Ulrich Drepper <drepper@redhat.com> - - * timezone/asia: Update from tzdata2004e. - * timezone/southamerica: Likewise. - * timezone/private.h: Update from tzcode2004e. - * timezone/zdump.c: Likewise. - - * stdio-common/vfscanf.c: Add support for reading localized - digits. Patch mainly by Hamed Malek <hamed@bamdad.org>. - - * resolv/res_init.c (res_thread_freeres): Reset _res.options. - [BZ #434] - - * resolv/res_send.c (send_dg): Use nonblocking sockets. Add - appropriate poll/select calls and restart operation if necessary. - Also handle EINTR. - - * elf/tst-dlopenrpath.c (do_test): Enable code which was disabled - for debugging. - - * elf/dl-sym.c (do_sym): Avoid using global variable. - - * elf/dl-addr.c (_dl_addr): Really use match everywhere. - -2004-10-09 Andreas Schwab <schwab@suse.de> - - * sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Remove use of cast as - lvalue. - - * sysdeps/m68k/fpu/bits/mathinline.h: Remove __THROW from inline - definitions. - -2004-10-07 Andreas Schwab <schwab@suse.de> - - * misc/sys/uio.h: Change __vector to __iovec to avoid clash with - altivec. - -2004-10-06 Alan Modra <amodra@bigpond.net.au> - - * gmon/Makefile (CFLAGS-mcount.c): Move before inclusion of "Rules". - * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-mcount.c): Add - -msoft-float. - * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): New macros. - (CALL_MCOUNT): Replace with a gas macro implementation. - (EALIGN): Delete PROF version. - * sysdeps/powerpc/powerpc64/__longjmp-common.S: Invoke CALL_MCOUNT. - * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Likewise. - * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise. - * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise. - * sysdeps/powerpc/powerpc64/memcpy.S: Likewise. - * sysdeps/powerpc/powerpc64/memset.S: Likewise. - * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise. - * sysdeps/powerpc/powerpc64/strchr.S: Likewise. - * sysdeps/powerpc/powerpc64/strcmp.S: Likewise. - * sysdeps/powerpc/powerpc64/strcpy.S: Likewise. - * sysdeps/powerpc/powerpc64/strlen.S: Likewise. - * sysdeps/powerpc/powerpc64/strncmp.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise. - * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise. - - * sysdeps/powerpc/powerpc64/setjmp-common.S: Add extra entry point - past _mcount call. - * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Use it. - * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise. - -2004-10-06 Ulrich Drepper <drepper@redhat.com> - - * resolv/res_mkquery.c (res_nmkquery): Reject randombits value if - low 16 bits are zero. - -2004-10-06 Jakub Jelinek <jakub@redhat.com> - - * posix/tst-getaddrinfo2.c: Include stdlib.h and string.h. - (do_test): Use %p instead of 0x%08X to print a pointer. - - * malloc/malloc.c: Include stdio-common/_itoa.h. - -2004-10-05 Ulrich Drepper <drepper@redhat.com> - - * elf/rtld.c (dl_main): Use _dl_debug_printf instead of _dl_printf - for prelink message. - -2004-10-05 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include dl-sysdep.h. - * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise. - -2004-10-05 Ulrich Drepper <drepper@redhat.com> - - * grp/initgroups.c: Remove duplicate group IDs. - * grp/compat-initgroups.c: Likewise. - * nscd/initgrcache.c: Likewise. - -2004-10-05 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Return 200112L - for _SC_CPUTIME or _SC_THREAD_CPUTIME. - - * nscd/Makefile (nscd-cflags): Set to -DIS_IN_nscd=1, plus - -fpie if building PIE. - (CFLAGS-*.c): Use it. - - * nscd/Makefile (relro-LDFLAGS): Add -Wl,-z,now if have-z-relro. - ($(objpfx)nscd): Add $(relro-LDFLAGS). - - * sysdeps/unix/sysv/linux/i386/sysconf.c: Include hp-timing.h. - (__sysconf): Return -1 for _SC_CPUTIME or _SC_THREAD_CPUTIME if - !HP_TIMING_AVAIL. - -2004-10-05 Ulrich Drepper <drepper@redhat.com> - - * nscd/Makefile (distribute): Remove TODO. - * nscd/TODO: Removed. - -2004-10-04 Ulrich Drepper <drepper@redhat.com> - - * nscd/gai.c: Define __no_netlink_support if NEED_NETLINK is - defined and __ASSUME_NETLINK_SUPPORT is zero. - * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gai.c): Add - -DNEED_NETLINK. - - * malloc/mtrace.pl: Avoid calling location unless it is needed for - output. Patch by Edward Bishop <binutils@gmail.com>. - - * nscd/Makefile (CFLAGS-gai.c): Add -fpie. - -2004-10-04 H.J. Lu <hongjiu.lu@intel.com> - - * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c - (clock_getcpuclockid): Add missing retval. - - * sysdeps/unix/sysv/linux/ia64/sysconf.c (linux_sysconf): Fix a typo. - -2004-10-04 Roland McGrath <roland@redhat.com> - - * include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol - to rtld_errno. - * sysdeps/generic/errno.c [RTLD_PRIVATE_ERRNO] (rtld_errno): Define it, - and don't define any other errno names. - * sysdeps/unix/alpha/sysdep.h [RTLD_PRIVATE_ERRNO]: Use rtld_errno in - place of errno. - * sysdeps/unix/i386/sysdep.S: Likewise. - * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise. - * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise. - * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: 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. - * sysdeps/unix/x86_64/sysdep.S: Likewise. - - * sysdeps/generic/errno.c [! USE___THREAD] (errno): Use `nocommon' - attribute instead of `section'. - -2004-10-04 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/ia64/sysconf.c: New file. - * sysdeps/unix/sysv/linux/ia64/Dist: Add has_cpuclock.c. - * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: Move actual - testing code to... - * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: ...here. New file. - * sysdeps/unix/sysv/linux/i386/sysconf.c: Add dynamic check for - _SC_CPUTIME and _SC_THREAD_CPUTIME. - - * nscd/connections.c (start_threads): Use sysconf in case - _POSIX_CLOCK_SELECTION or _POSIX_MONOTONIC_CLOCK is not greater zero. - - * nscd/Makefile (nscd-modules): Add gai. - * nscd/gai.c: New file. - * nscd/nscd.c: Remove getaddrinfo stub definition. - - * assert/assert.h: Give up on using __builtin_expect. - - * elf/rtld.c (dl_main): Only skip => output in ldd mode if both - strings are identical. - -2004-03-18 Jakub Jelinek <jakub@redhat.com> + * include/link.h: Include <rtld-lowlevel.h>. Define struct + r_scoperec. Replace r_scope with pointer to r_scoperec structure. + Add l_scoperec_lock. + * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>. + * sysdeps/generic/rtld-lowlevel.h: New file. + +2007-06-06 Jakub Jelinek <jakub@redhat.com> + + [BZ #4586] + * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat + pseudo-zeros as zero. + * sysdeps/x86_64/ldbl2mpn.c: New file. + * sysdeps/ia64/ldbl2mpn.c: New file. + +2007-06-05 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c + (__mpn_construct_long_double): Fix conversion where result ought + to be smaller than __LDBL_MIN__, or the low double should be + denormal. Fix decision where to negate low double - honor round + to even rules. + * stdio-common/tst-sprintf2.c: Include string.h. + (COMPARE_LDBL): Define. + (TEST): Also test whether a string hexadecimal float representation + can be parsed back to the number. + (main): Add a couple of further tests. + +2007-06-04 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c + (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double + is non-zero, but smaller than 2 * __DBL_MIN__. + * stdio-common/tst-sprintf2.c: New test. + * stdio-common/Makefile (tests): Add tst-sprintf2. + +2007-06-04 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove + unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf. + Remove unreachable code at the end. + +2007-06-01 Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of + ldbl-128ibm in comment. + (fpclassifyl): Correct classification of denormals. + * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct + return value for MIN denormal. Rewrite using long double math too + correctly handle denormals and canonicalize the results. + +2007-05-29 Ulrich Drepper <drepper@redhat.com> + + * nscd/nscd_helper.c (get_mapping): Handle short replies instead + of crashing. When this is the case or if the reply is malformed, + don't try to close the new file descriptor since it does not + exist. + Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>. + +2007-05-21 Jakub Jelinek <jakub@redhat.com> + + [BZ #4514] + * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable, + reinitialize workend at the start of each do_positional format spec + loop, free workstart before do_positional loops. + (printf_unknown): Fix size of work_buffer. + * stdio-common/tst-sprintf.c (main): Add 3 new testcases. + +2007-05-10 Ulrich Drepper <drepper@redhat.com> + + * include/sys/cdefs.h: Redefine __nonnull so that test for + incorrect parameters in the libc code itself are not omitted. + +2007-05-07 Ulrich Drepper <drepper@redhat.com> + Jakub Jelinek <jakub@redhat.com> - * malloc/arena.c (aligned_heap_area): New variable. - (new_heap): If aligned_heap_area != NULL, attempt to use that - first. If HEAP_MAX_SIZE << 1 area is already HEAP_MAX_SIZE bytes - aligned, remember the second half in aligned_heap_area. - (delete_heap): Clear aligned_heap_area if deleting the area right - before aligned_heap_area. + * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad. + (new_heap): Initialize mprotect_size. + (grow_heap): When growing, only mprotect from mprotect_size till + new_size if mprotect_size is smaller. When shrinking, use PROT_NONE + MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED. -2004-10-03 Juerg Billeter <j@bitron.ch> +2007-05-06 Ulrich Drepper <drepper@redhat.com> - * nscd/nscd_initgroups.c (__nscd_getgrouplist): Return -1 if nscd - can't be used. [BZ #424] + * stdio-common/vfprintf.c (process_string_arg): Optimize + ridiculous precision in wide char code printing multi-byte string. + Reported by Jim Meyering <jim@meyering.net>. -2004-10-03 Ulrich Drepper <drepper@redhat.com> +2007-05-06 Ulrich Drepper <drepper@redhat.com> - Dynamically create new threads if necessary. - * nscd/connections.c (fd_ready): If no thread available for processing - the request, create a new one unless the limit is reached. - (start_threads): Check errors from pthread_create. - * nscd/nscd.h: Declare max_nthreads. - * nscd/nscd_conf.c: Parse max-nthreads entry. - * nscd/nscd.conf: Add max-threads entry. - * nscd/nscd_stat.c: Print current and maximum number of threads. + [BZ #4465] + * posix/unistd.h: Remove __THROW from fdatasync. - Implement paranoia mode. - * nscd/connections.c (nscd_init): Mark database and socket descriptors - as close on exec. - (restart): New function. - (restart_p): New function. - (nscd_run): Add missing descrement of nready in case readylist is - empty. - (main_loop_poll): Call restart_p and restart. - (main_loop_epoll): Likewise. - (begin_drop_privileges): Save original UID and GID. - * nscd/nscd.c: Define new variables paranoia, restart_time, - restart_interval, oldcwd, old_gid, old_uid. - (main): Disable paranoia mode if we are not forking. - (check_pid): When re-execing, the PID file contains the same PID as - the current process. Do not fail in this case. - * nscd/nscd.conf: Add paranoia and restart-interval entries. - * nscd/nscd.h: Define RESTART_INTERVAL. Declare new variables. - * nscd/nscd_conf.c: Parse paranoia and restart-internal configurations. - * nscd/nscd_stat.c: Print paranoia and restart-internal values. - - * nscd/connections.c: Implement alternative loop for main thread - which uses epoll. - * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] - (CFLAGS-connections.c): Add -DHAVE_EPOLL. - -2004-10-02 Ulrich Drepper <drepper@redhat.com> - - * nscd/Makefile (CFLAGS-initgrcache.c): Add to CFLAGS-* variables, - don't replace old content. - - * nscd/connections.c: Rewrite handling of incoming connections. All - are handled by one thread which then hands off the descriptors for the - real work to the worker threads. - * nscd/Makefile: Link nscd with librt. - - * nscd/selinux.c: Pretty printing. - - * nscd/dbg_log.c (dbg_log): Don't add unnecessary newline to - output. Let syslog do the formatting if debug_level == 0. - - * nscd/nscd_helper.c (get_mapping): No need to check timestamp if - nscd_certainly_running is nonzero. - -2004-10-02 Simon Josefsson <jas@extundo.com> - - [BZ #420] - * sysdeps/generic/memmem.c [!_LIBC]: Define __builtin_expect, to - make the file usable inside gnulib. +2007-05-06 Mike Frysinger <vapier@gentoo.org> -2004-10-01 Ulrich Drepper <drepper@redhat.com> + [BZ #4465] + * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args. - * malloc/malloc.c (public_vALLOc): Add missing use of hooks. - (public_pVALLOc): Likewise. +2007-05-06 Ulrich Drepper <drepper@redhat.com> - * nscd/nscd_initgroups.c (__nscd_getgrouplist): Always add the - group the caller provided unless there is a real problem. - - * posix/bug-glob1.c (prepare): Fix creation of symlink. + [BZ #4131] + * elf/dl-addr.c (_dl_addr): Compare address with actual segment + boundaries to work around systems with overlapping binary loading. + Based on a patch by Suzuki <suzuki@in.ibm.com>. -2004-09-30 Ulrich Drepper <drepper@redhat.com> +2007-05-04 Ulrich Drepper <drepper@redhat.com> - * posix/Makefile: Add rules to build and run bug-glob1. - * posix/bug-glob1.c: New file. + * stdio-common/vfprintf.c (process_string_arg): Adjust call to + __mbsnrtowcs after last change. - * iconv/iconv_prog.c (main): Print progress information to stderr. +2007-05-02 Jakub Jelinek <jakub@redhat.com> - * nscd/nscd.c (termination_handler): Reset timestamp so that - clients immediately stop using the database. + * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than + fixed length array for ignore. - * nscd/nscd-client.h (__nscd_get_map_ref): Drop volatile from last - parameter. - (__nscd_drop_map_ref): Change second parameter to be a reference to - a variable. Update variable when cycle count changed. - * nscd/nscd_helper.c (__nscd_get_map_ref): Remove volatile here, too. - * nscd/nscd_getai.c: Correctly use __nscd_drop_map_ref. Reinitialize - all variables and avoid memory leak in case of retries. - * nscd/nscd_getgr_r.c: Likewise. - * nscd/nscd_gethst_r.c: Likewise. - * nscd/nscd_getpw_r.c: Likewise. - * nscd/nscd_initgroups.c: Likewise. +2007-04-30 Ulrich Drepper <drepper@redhat.com> - * nscd/nscd.h: Add declaration of addinitgroups and - readdinitgroups. + [BZ #4438] + * stdio-common/vfprintf.c (process_string_arg): Don't overflow the + stack for large precisions. + * stdio-common/test-vfprintf.c (main): Add test for large + precision. -2004-09-30 Andreas Jaeger <aj@suse.de> +2007-04-30 Jakub Jelinek <jakub@redhat.com> - * nscd/Makefile (CFLAGS-nscd_initgroups.c): Set to -fpie. - (CFLAGS-initgrcache.c): Set to -fexceptions. + * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign + for exponent 0. + * stdio-common/tfformat.c (sprint_doubles): Add a new test. -2004-09-29 Ulrich Drepper <drepper@redhat.com> +2007-04-30 Jakub Jelinek <jakub@redhat.com> - * sysdeps/generic/glob.c (glob_in_dir): Don't blindly trust - readdir results; for symlinks or files of unknown type check using - stat whether the file exists. + [BZ #4439] + * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into + account in the size check. + * resolv/tst-inet_ntop.c: New test. + * resolv/Makefile (tests): Add tst-inet_ntop. - * posix/tst-gnuglob.c (find_file): Handle leading "./". Fix - recognition of files. +2007-04-28 Ulrich Drepper <drepper@redhat.com> -2004-09-29 Jakub Jelinek <jakub@redhat.com> + [BZ #4102] + * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate + label to Teredo tunnel addresses 2001://32. - * time/tzfile.c (tzfile_mtime): New variable. - (__tzfile_read): Reread the file if mtime is different. +2007-04-27 Ulrich Drepper <drepper@redhat.com> -2004-09-28 Jakub Jelinek <jakub@redhat.com> + [BZ #4342] + * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow + hexa-decimal floats without exponent. + * stdio-common/tstscanf.c (main): Adjust Test 8 test for success. - * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf, __fdim, fdimf, fdim): - Handle +inf/+inf. - * sysdeps/powerpc/fpu/bits/mathinline.h (fdim, fdimf): Likewise. - * sysdeps/sparc/fpu/bits/mathinline.h (fdim, fdimf): Likewise. +2007-04-27 Ulrich Drepper <drepper@redhat.com> -2004-09-29 Ulrich Drepper <drepper@redhat.com> + [BZ #3213] + * locale/C-translit.h.in: Add entry for U2044. - * nscd/nscd_gethst_r.c (nscd_gethst_r): Use correct constant for - testing result of __nscd_get_map_ref. +2007-04-25 Jakub Jelinek <jakub@redhat.com> -2004-09-29 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead + of 0 after the out_fail label. - * sysdeps/i386/fpu/s_fdim.S (__fdim): Handle +inf/+inf. - * sysdeps/i386/fpu/s_fdimf.S (__fdimf): Likewise. - * sysdeps/i386/fpu/s_fdiml.S (__fdiml): Likewise. +2007-03-18 Jakub Jelinek <jakub@redhat.com> -004-09-29 Ulrich Drepper <drepper@redhat.com> + * nscd/gai.c: Include alloca.h. + (__libc_use_alloca): Define. - * grp/initgroups.c: Move compat_call implementation... - * grp/compat-initgroups.c: ...to here. New file. - * grp/Makefile (distribute): Add compat-initgroups.c. - (CFLAGS-initgroups.c): Add -DUSE_NSCD=1. - * mscd/initgrcache.c: New file. - * nscd/nscd_initgroups.c: New file. - * nscd/Makefile (routines): Add nscd_initgroups. - (nscd-modules): Add initgrcache. - * nscd/cache.c (prune_cache): Add support for INITGROUPS entries. - * nscd/connections.c: Handle INITGROUPS requests. - * nscd/nscd-client.h: Define INITGROUPS, initgr_response_header. - Add initgrdata element to struct datahead. Fix typo in comment. - * nscd/nscd_proto.h: Declare __nscd_getgrouplist. Fix parameter - type in __nscd_getgrgrid_r. - * nscd/selinux.c (perms): Add INITGROUPS entry. +2007-03-15 Jakub Jelinek <jakub@redhat.com> - * nscd/nscd_getai.c: No need to include <sys/mman.h>. + * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never + reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY + NLMSG_ERR. Instead use a page sized buffer. + * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized + buffer. - * sunrpc/get_myaddr.c (get_myaddress): Account for interfaces without - assigned addresses. - * sunrpc/pmap_clnt.c (__get_myaddress): Likewise. - * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise. - * sunrpc/clnt_udp.c (is_network_up): Likewise. +2007-03-02 Jakub Jelinek <jakub@redhat.com> - * nscd/nscd.c: Define getaddrinfo hidden so that it is never found - outside. + * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with + a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC + message. - * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_segvflags): - Renamed from si_flags due to conflict with si_flags from <elf.h>. +2007-02-27 Jakub Jelinek <jakub@redhat.com> -2004-09-28 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix + memory reallocation. - * nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test - of failing __nscd_get_map_ref. Fix a few typos. +2007-04-25 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Make sure - SIGSETXID is not blocked. - * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Likewise. - * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise. - * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise. - * sysdeps/generic/sigfillset.c (sigfillset): Don't set SIGSETXID. + * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized + version. - * sunrpc/get_myaddr.c (get_myaddress): Fix test for failing - getifaddrs call. - * sunrpc/pmap_clnt.c (__get_myaddress): Likewise. - * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise. - * sunrpc/Makefile (xtests): Add tst-getmyaddr. - * sunrpc/tst-getmyaddr.c: New file. +2007-04-25 Ulrich Drepper <drepper@redhat.com> - * malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to - disable all checking. + [BZ #4406] + * iconv/gconv_charset.h (strip): Allow ':' + * iconv/iconv_open.c (iconv_open): Adjust comment. - * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_flags): Add - support to get this value. +2007-04-23 Jakub Jelinek <jakub@redhat.com> -2004-09-28 Jakub Jelinek <jakub@redhat.com> + [BZ #4405] + * iconvdata/gconv-modules (E13B): Add a missing slash to the alias + name. Patch by Aurelien Jarno <aurelien@aurel32.net>. - * io/utime.h (utime): Allow second argument to be NULL. +2007-04-23 Jakub Jelinek <jakub@redhat.com> -2004-09-28 Ulrich Drepper <drepper@redhat.com> + [BZ #4381] + * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient + alignment of buffer and tmp_buffer. + * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r, + internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient + alignment of buffer. + * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen + bigger than INT_MAX. + * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and + h_errnop arguments. Fail if buflen is too small. + (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers. - * sysdeps/posix/getaddrinfo.c (gaih_inet): If NAME is a numerical IP - address and AI_CANONNAME is set, return copy of NAME as ai_canonname. +2007-04-19 Ulrich Drepper <drepper@redhat.com> -2004-09-27 Andreas Jaeger <aj@suse.de> + * include/sys/mman.h: Mark madvise hidden. + * misc/madvise.c: Add libc_hidden_def. - * sysdeps/i386/dl-machine.h (elf_machine_rela_relative): Replace - static inline by auto inline, add always_inline attribute. - (elf_machine_rel): Likewise. - (elf_machine_rela): Likewise. - (elf_machine_lazy_rel): Likewise. - (elf_machine_lazy_rela): Likewise. - (elf_machine_rel_relative): Likewise. - -2004-09-27 Ulrich Drepper <drepper@redhat.com> - - * sunrpc/xdr_intXX_t.c: Add xdr_quad_t and xdr_u_quad_t aliases. - * sunrpc/rpc/xdr.h: Declare xdr_quad_t and xdr_u_quad_t. - * sunrpc/rpc_parse.c (get_type): Use "quad_t" for TOK_HYPER. - Otherwise isvectordef will loop infinitely if typedef hyper int64_t - is seen. - (unsigned_dec): Use "u_quad_t" for similar reasons. - * sunrpc/Versions: Export xdr_quad_t and xdr_u_quad_t. - -2004-09-27 Roland McGrath <roland@redhat.com> +2007-04-17 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit - twiddling in last change. + [BZ #4368] + * stdlib/stdlib.h: Remove obsolete part of comment for realpath. - * posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED. +2007-04-16 Ulrich Drepper <drepper@redhat.com> - [BZ #409] - * posix/sys/wait.h [__WIFCONTINUED] (WIFCONTINUED): New macro. - * stdlib/stdlib.h [__WIFCONTINUED] (WIFCONTINUED): New macro. - * sysdeps/generic/bits/waitstatus.h (__W_CONTINUED): New macro. - [WCONTINUED] (__WIFCONTINUED): New macro. - (__WIFSIGNALED): Rewritten to exclude __W_CONTINUED value, and have no - branches. + [BZ #4364] + * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3. - * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Add fifth argument to - all three syscall uses, not just one! - -2004-09-26 Richard Henderson <rth@redhat.com> - - * sysdeps/alpha/alphaev6/memcpy.S: Mark .prologue. - * sysdeps/unix/alpha/sysdep.h (LEAF, ENTRY): Align entry points - to 16 byte boundaries. +2007-04-13 Jakub Jelinek <jakub@redhat.com> -2004-09-26 Ulrich Drepper <drepper@redhat.com> + [BZ #4344] + * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors. + Reported by David Anderson <davea42@earthlink.net>. - * elf/readlib.c (process_file): Before complaining about too-short - file, check that it potentially be an ELF file. Also complain about - empty files. [BZ #151]. +2007-04-13 Jakub Jelinek <jakub@redhat.com> - * scripts/test-installation.pl: Fix ld.so recognition for new - LD_TRACE_LOADED_OBJECTS output format. - Patch by <jsberg04+computing.glibc@ftml.net> [BZ #407]. + * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4 + special case handling when wcp == wstartp + 1. Fix a comment typo. + * stdio-common/tfformat.c (sprint_doubles): Add a new testcase. - * elf/dl-support.c (_dl_non_dynamic_init): Fix cleaning of - environment. [BZ #384] +2007-02-21 Ulrich Drepper <drepper@redhat.com> - * sunrpc/clnt_udp.c (is_network_up): Use getifaddrs instead of ioctl. - * sunrpc/get_myaddr.c (get_myaddress): Likewise. - * sunrpc/pmap_clnt.c (__get_myaddress): Likewise. - * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise. Change interface - to avoid buffer overrun and remove now useless parameters. - (clnt_broadcast): Adjust caller. [BZ #381]. + [BZ #4070] + * stdio-common/printf_fp.c (___printf_fp): Handle a few more + special cases. + * stdio-common/tfformat.c (sprint_doubles): Some more tests. - * sysdeps/generic/s_fdim.c: Handle +inf/+inf - * sysdeps/generic/s_fdimf.c: Likewise. - * sysdeps/generic/s_fdiml.c: Likewise. - * sysdeps/i386/i686/fpu/s_fdim.S: Likewise. - * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise. - * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise. - * sysdeps/powerpc/fpu/s_fdim.c: Likewise. - * sysdeps/powerpc/fpu/s_fdimf.c: Likewise. - * sysdeps/x86_64/fpu/s_fdiml.S: Likewise. - * math/libm-test.inc (fdim_test): Add test case. [BZ #376]. +2007-02-19 Ulrich Drepper <drepper@redhat.com> - * sysdeps/generic/bits/types.h: Fix __SQUAD_TYPE and __UQUAD_TYPE - for compilers without __GLIBC_HAVE_LONG_LONG. [BZ #362] + * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor + optimization. - * sysdeps/posix/getaddrinfo.c (getaddrinfo): Remove incorrect - requirement on socktype and protocol. - (gaih_inet): If numeric port number is given, return records for all - possible socket types. - * posix/tst-getaddrinfo2.c: New file. - * posix/Makefile (tests): Add tst-getaddrinfo2. [BZ #358] +2007-04-06 Jakub Jelinek <jakub@redhat.com> -2004-09-25 Ulrich Drepper <drepper@redhat.com> + * nis/nis_domain_of.c (__nis_domain_of): New function. + * include/rpcsvc/nislib.h (__nis_domain_of): New prototype. + * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of. + * nis/nis_call.c (rec_dirsearch): Likewise. + (first_shoot): Likewise. Remove search_parent_first argument. + (struct nis_server_cache): Rename search_parent_first field + to search_parent. + (nis_server_cache_search, nis_server_cache_add): Rename + search_parent_first argument to search_parent. + (__nisfind_server): Likewise. If search_parent, call + __nis_domain_of. - * locale/loadlocale.c (_nl_intern_locale_data): Recognize LC_CTYPE - data where _nl_value_type_LC_CTYPE does not contain the type - information. Add range checks. - Reported by John Lumby <johnlumby@hotmail.com> [BZ #356]. +2007-04-05 Jakub Jelinek <jakub@redhat.com> - * libio/vasprintf.c (_IO_vasprintf): Fix condition to decide - whether to realloc or not. - Reported by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> [BZ #346]. + * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers + with obj->do_servers after first_shoot. - * intl/dcigettext.c (DCIGETTEXT): Protect tfind/tsearch calls. - * intl/dcigettext.c (_nl_find_msg): Call _nl_load_domain also if - decided < 0. - * intl/finddomain.c (_nl_find_domain): Likewise. - * intl/loadmsgcat.c (_nl_load_domain): Set decided to 1 only once we - are done. First set to -1 to signal initialization is ongoing. - Protect against concurrent callers with recursive lock. - * intl/finddomain.c (_nl_find_domain): Protect calls to - _nl_make_l10nflist. [BZ #322] +2007-03-21 Jakub Jelinek <jakub@redhat.com> - * sysdeps/posix/getaddrinfo.c (getaddrinfo): If determinination of - source address fails, initialized source_addr_len field so that - duplicate address recognition does not copy junk. + * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h. + (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New + variables. + (nis_server_cache_search, nis_server_cache_add): New functions. + (__nisfind_server): Use them. Add dbp and flags argument, if + call __nisbind_create. + (__nisbind_create): Add server_used and current_ep arguments, + only call __nis_findfastest if server_used is ~0. + (__do_niscall2, __prepare_niscall): Adjust callers. + (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid, + ckey_cache_euid, ckey_cache_lock): New variables. + (get_ckey): New function. + (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to + __pmap_getnisport. Save __pmap_getnisport result in + dbp->addr.sin_port if non-zero. Use get_ckey to create conversation + key. + * nis/nis_lookup.c (nis_lookup): Likewise. + * nis/nis_table.c (nis_list): Likewise. + * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust + prototypes. -2004-09-25 Jakub Jelinek <jakub@redhat.com> + * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r, + _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list. + * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r, + _nss_nisplus_getservbyport_r): Likewise. + * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r, + _nss_nisplus_getnetbyaddr_r): Likewise. + * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise. + * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r, + _nss_nisplus_getntohost_r): Likewise. + * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r, + _nss_nisplus_getrpcbynumber_r): Likewise. + +2007-04-01 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success + and 1 on failure. + +2007-04-01 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use + math_opt_barrier and math_force_eval macros. + +2007-03-27 Jakub Jelinek <jakub@redhat.com> + + [BZ #3306] + * math/math_private.h (math_opt_barrier, math_force_eval): Define. + * sysdeps/i386/fpu/math_private.h: New file. + * sysdeps/x86_64/fpu/math_private.h: New file. + * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and + math_force_eval macros. Use "+m" constraint on asm rather than + "=m" and "m". + * math/s_nextafter.c (__nextafter): Likewise. + * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): + Likewise. + * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise. + * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise. + * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise. + * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use + math_opt_barrier and math_force_eval macros. + * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise. + * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise. + * sysdeps/i386/fpu/s_nexttoward.c: Include float.h. + (__nexttoward): Use math_opt_barrier and + math_force_eval macros. Use "+m" constraint on asm rather than + "=m" and "m". Only use asm to force double result if + FLT_EVAL_METHOD is 2. + * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h. + (__nexttowardf): Use math_opt_barrier and + math_force_eval macros. Use "+m" constraint on asm rather than + "=m" and "m". Only use asm to force double result if + FLT_EVAL_METHOD is not 0. + * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h. + (__nexttowardf): Use math_opt_barrier and + math_force_eval macros. If FLT_EVAL_METHOD is not 0, force + x to float using asm. + * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h. + (__nldbl_nexttowardf): Use math_opt_barrier and + math_force_eval macros. If FLT_EVAL_METHOD is not 0, force + x to float using asm. + * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h. + (__nexttowardf): Use math_opt_barrier and math_force_eval + macros. If FLT_EVAL_METHOD is not 0, force x to float using asm. + * math/bug-nextafter.c (zero, inf): New variables. + (main): Add new tests. + * math/bug-nexttoward.c (zero, inf): New variables. + (main): Add new tests. + +2007-03-30 Jakub Jelinek <jakub@redhat.com> + + * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow, + __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn, + _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn): + Remove __THROW. + * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap, + _IO_file_xsgetn_maybe_mmap): Likewise. + * libio/oldfileops.c (old_do_write): Likewise. + * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode, + _IO_init_marker, _IO_init_wmarker, _IO_default_uflow, + _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos, + _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write, + _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup, + _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos, + _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64, + _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64, + _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn, + _IO_file_underflow, _IO_file_underflow_mmap, + _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach, + _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read, + _IO_file_sync, _IO_file_close_it, _IO_file_finish, + _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish, + _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap, + _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow, + _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn, + _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn, + _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach, + _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync, + _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn, + _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow, + _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open, + _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal, + _IO_adjust_column_internal, _IO_default_uflow_internal, + _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal, + _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal, + _IO_file_setbuf_internal, _IO_file_seekoff_internal, + _IO_file_xsputn_internal, _IO_file_xsgetn_internal, + _IO_file_close_it_internal, _IO_file_underflow_internal, + _IO_file_overflow_internal, _IO_file_attach_internal, + _IO_file_fopen_internal, _IO_file_sync_internal, + _IO_file_finish_internal, _IO_wfile_xsputn_internal, + _IO_wfile_seekoff_internal, _IO_wfile_sync_internal, + _IO_switch_to_wget_mode_internal, _IO_padn_internal, + _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked, + _IO_seekpos_unlocked): Likewise. + (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write, + _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes. + +2007-03-23 Jakub Jelinek <jakub@redhat.com> + + * scripts/check-local-headers.sh: Filter out sys/capability.h. + +2007-03-22 Jakub Jelinek <jakub@redhat.com> + + * config.h.in (HAVE_LIBCAP): Add. + * nscd/selinux.h: Include sys/capability.h rather than non-existent + sys/capabilities.h. + * nscd/selinux.c (preserve_capabilities): Use cap_free instead of + free_caps. Cast away const from 4th cap_set_flag argument. + +2007-03-16 Jakub Jelinek <jakub@redhat.com> + + * elf/dl-open.c (dl_open_worker): Declare l in 2 different + smaller scopes. + * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument. + (DL_DST_REQUIRED): Adjust user. + +2007-03-15 Jakub Jelinek <jakub@redhat.com> + + * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is + NULL. + +2007-03-15 Jakub Jelinek <jakub@redhat.com> + + [BZ #4181] + * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0. + (inet6_opt_append): Don't check extlen is big enough if extbuf + is NULL. + (inet6_opt_finish): Likewise. + * inet/Makefile (tests): Add test-inet6_opt. + * inet/test-inet6_opt.c: New test. + +2007-03-15 Jakub Jelinek <jakub@redhat.com> + + [BZ #4130] + * login/utmp_file.c (setutent_file): Use O_LARGEFILE for + open_not_cancel_2. + (updwtmp_file): Likewise. + +2007-03-15 Jakub Jelinek <jakub@redhat.com> + + [BZ #4101] + * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find + ancestors with the same depths. + Patch by Niels Moeller <nisse@lysator.liu.se>. + (filter_doc): Don't crash if argp is NULL. + * argp/Makefile (tests): Add tst-argp2. + * argp/tst-argp2.c: New test. + +2007-03-15 Jakub Jelinek <jakub@redhat.com> + + [BZ #3919] + * math/libm-test.inc (log_test): Test -Inf and NaN. + (log10_test, log1p_test, log2_test): Test -Inf. + * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise + FE_INVALID when argument is qNaN. + * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise. + * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise. + * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise. + * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace + andb $1, %ah with testb $1, %ah, don't test for parity, instead + testb $4, %ah and jump if non-zero. + * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise. + * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise. + +2007-03-06 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for + 172.16/12 address range. + +2007-03-01 Jakub Jelinek <jakub@redhat.com> + + [BZ #4069] + * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN + earlier. + * math/libm-test.inc (pow_test): Add more tests involving NaNs. + + * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception + for x qNaN and y either +-inf or non-integer value. + * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise. + * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise. + * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise. - * sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second - result declaration. +2007-02-21 Ulrich Drepper <drepper@redhat.com> -2004-09-22 Andreas Schwab <schwab@suse.de> + [BZ #4076] + * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /. + (open_dir_stream): Likewise. + * io/Makefile (tests): Add bug-ftw5. + * io/bug-ftw5.c: New file. - * sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace. +2007-02-21 Ulrich Drepper <drepper@redhat.com> -2004-09-24 Ulrich Drepper <drepper@redhat.com> + * nscd/grpcache.c (cache_addgr): In case a record changed on + refresh, adjust key_copy. - * misc/daemon.c (daemon): Don't succeed if /dev/null cannot be - opened. + [BZ #4074] + * nscd/pwdcache.c (cache_addpw): In case a record changed on + refresh, adjust key_copy. - * nis/ypclnt.c (do_ypcall): Add one missing unlock. Simplify the - code a bit. +2007-02-21 Ulrich Drepper <drepper@redhat.com> - * misc/daemon.c (daemon): Define errno in case /dev/null is not - the correct device. + [BZ #3458] + * sysdeps/unix/sysv/linux/posix_madvise.c: New file. + * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry. - * nis/ypclnt.c (yp_bind_file): Optimize a bit. Minimal cleanups. +2007-02-17 Ulrich Drepper <drepper@redhat.com> -2004-09-23 Andreas Jaeger <aj@suse.de> + [BZ #3842] + * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut + using __libc_enable_secure. - * locale/weight.h (findidx): Remove static, it's not supported - anymore with GCC 4.0 in a block scope. - * locale/weightwc.h (findidx): Likewise. - * posix/regcomp.c (seek_collating_symbol_entry): Likewise. - (lookup_collation_sequence_value): Likewise. - (build_range_exp): Likewise. - (build_collating_symbol): Likewise. - * iconv/iconvconfig.c (write_output): Likewise. - * elf/do-rel.h (elf_dynamic_do_rel): Likewise. +2007-02-17 Ulrich Drepper <drepper@redhat.com> - * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove - static, add always_inline attribute. - (elf_machine_rela): Likewise. - (elf_machine_lazy_rel): Likewise. + [BZ #3348] + * malloc/memusage.sh: Cleanups. + * debug/xtrace.sh: Quoting and trap changes. - * elf/dynamic-link.h (elf_get_dynamic_info): Make static dependend - on !RESOLVE so that it's not defined in local scope. +2007-02-16 Ulrich Drepper <drepper@redhat.com> -2004-09-23 Kaz Kojima <kkojima@rr.iij4u.or.jp> + * locale/iso-3166.def: Add entry for Serbia. + * locale/iso-4217.def: Define RSD. - * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define. +2007-02-15 Ulrich Drepper <drepper@redhat.com> -2004-09-23 Thorsten Kukuk <kukuk@suse.de> + * nscd/nscd_helper.c (open_socket): Don't send padding bytes from + reqdata. - * sysdeps/unix/sysv/linux/sys/mount.h: Sync MS_RMT_MASK flag - and BLK* ioctls with linux kernel headers. +2007-02-13 Ulrich Drepper <drepper@redhat.com> -2004-09-23 Ulrich Drepper <drepper@redhat.com> + * po/ru.po: Update from translation team. - * sysdeps/generic/bits/dlfcn.h: Add RTLD_DEEPBIND. - * elf/dl-object.c (_dl_new_object): Add new parameter mode. If mode - has RTLD_DEEPBIND set add local searchlist before global scope. - * sysdeps/generic/ldsodefs.h (_dl_new_object): Adjust prototype. - * elf/rtld.c: Adjust callers of _dl_new_object. - * elf/dl-load.c: Likewise. - (_dl_map_object_from_fd): If RTLD_DEEPBIND is used, don't do anything - for DF_SYMBOLIC. - * elf/dl-open.c (dl_open_writer): Pass RTLD_DEEPBIND flag on to - _dl_map_object_deps. - * elf/tst-deep1.c: New file. - * elf/tst-deep1mod1.c: New file. - * elf/tst-deep1mod2.c: New file. - * elf/tst-deep1mod3.c: New file. - * elf/Makefile: Add rules to build and run new tests. +2007-02-03 Ulrich Drepper <drepper@redhat.com> - * elf/dl-deps.c: Pretty printing. - -2004-09-23 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name - argument to numbers from syscall names. - (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr. - (INTERNAL_SYSCALL_NCS): Renamed from... - (INTERNAL_SYSCALL_1): ... this. Use INTERNAL_SYSCALL_NCS. - * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h - (INTERNAL_SYSCALL_NCS): Define. - * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h - (INTERNAL_SYSCALL_NCS): Likewise. - * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]): - Change name argument to numbers from syscall names. - (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust. - (INTERNAL_SYSCALL_NCS): Define. - -2004-09-22 Ulrich Drepper <drepper@redhat.com> - - * malloc/malloc.c (malloc_printerr): Use syslog if writev failed. - - * string/string.h: Add __nonnull annotations. - * stdlib/stdlib.h: Likewise. - -2004-09-20 H.J. Lu <hongjiu.lu@intel.com> - - * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL): - Renamed to ... - (DO_INLINE_SYSCALL_NCS): This. - (DO_INLINE_SYSCALL): New. - (INLINE_SYSCALL): Updated. - (INTERNAL_SYSCALL_NCS): Updated. - -2004-09-21 Ulrich Drepper <drepper@redhat.com> - - * elf/sprof.c (load_shobj): Add support for reading symbol table - from debuginfo file. - - * elf/ldd.bash.in: Fix syntax errors. - -2004-09-20 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/dl-execstack.c - (_dl_make_stack_executable): Remove some duplication. - - * nscd/nscd.c (options): Mark S option as hidden. - (parse_opt): When S option is used, print warning message. - * nscd/grpcache.c (adgrptbyX): Don't handle secure mode. - * nscd/hstcache.c (addhstbyX): Don't handle secure mode. - * nscd/aicache.c (addhstaiX): Don't handle secure mode. - * nscd/pwdcache.c (addpwbyX): Don't handle secure mode. - -2004-09-20 Roland McGrath <roland@frob.com> - - * elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN - in initializer #if defined. - -2004-09-18 Paul Eggert <eggert@cs.ucla.edu> - - [BZ #391] - * stdlib/getsubopt.c: Merge fixes from gnulib. - (__strchrnul) [!_LIBC]: Define and include "strchrnul.c". - (getsubopt): Use prototypes, not K&R style. - Fix bug: memcmp(A,B,N) was being invoked on a memory block B - whose size might be smaller than N. Use strncmp to avoid the bug. - -2004-09-20 Ulrich Drepper <drepper@redhat.com> - - * configure.in: If selinux has not explictly been requested, don't - comment on it missing. - - * elf/dl-load.c: Define __stack_prot. - * sysdeps/unix/sysv/linux/dl-execstack.c: Don't define - __stack_prot here, just declare it. - -2004-09-20 Jakub Jelinek <jakub@redhat.com> - - * configure.in (libc_cv_z_relro): Only set to yes if linker script - contains DATA_SEGMENT_RELRO_END. - -2004-09-20 Ulrich Drepper <drepper@redhat.com> - - * elf/dl-load.c (_dl_map_object_from_fd): Add some error checking. - Reorder code slightly. - * elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH] - is non-null, _dl_setup_hash will do that. - -2004-09-19 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call - callback to set IDs in all other threads as well. - * sysdeps/unix/sysv/linux/seteuid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise. - * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise. - * sysdeps/unix/sysv/linux/setuid.c: New file. - * sysdeps/unix/sysv/linux/setgid.c: New file. - * sysdeps/unix/sysv/linux/setreuid.c: New file. - * sysdeps/unix/sysv/linux/setregid.c: New file. - * sysdeps/unix/sysv/linux/setresuid.c: New file. - * sysdeps/unix/sysv/linux/setresgid.c: New file. - * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS. - * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise. - * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version. - * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file. - * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file. - * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid - and setresuid. - * nscd/aicache.c: Use pthread_seteuid_np instead of seteuid. - * nscd/grpcache.c: Likewise. - * nscd/hstcache.c: Likewise. - * nscd/pwdcache.c: Likewise. - - * resolv/res_mkquery.c (res_nmkquery): Fix typo. - -2004-09-18 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unisx/sysv/linux/dl-execstack.c: Get protection flag - from memory. - * elf/dl-load.c (_dl_map_object_from_fd): Add PROT_EXEC flag to - __stack_flags. - - * sysdeps/posix/getaddrinfo.c (gaih_inet): Do not use - gethostbyname3_r if we are not looking for the canonical name. - - * resolv/res_mkquery.c (res_nmkquery): Randomize request ID every - time. - -2004-09-18 Roland McGrath <roland@redhat.com> - - * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to - system call. - -2004-09-17 Ulrich Drepper <drepper@redhat.com> - - * include/link.h (struct link_map): Add l_used element. - * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED. - * elf/rtld.c (process_dl_debug): Recognize unused. - (dl_main): When unused debug flag is set check for unused direct - dependencies. - When printing dependencies and SONAME starts with /, omit the SONAME => - part. - * elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the - symbol has been found as used. - * elf/ldd.bash.in: Add -u option. - -2004-09-18 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread): - Do nothing if __NR_set_tid_address is not defined. [BZ #390] - -2004-09-17 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function - in case it is available. - -2004-09-17 Jakub Jelinek <jakub@redhat.com> - - * nscd/nscd.c (parse_opt): Write arg string instead of (void *) - key to the socket. - -2004-09-17 Ulrich Drepper <drepper@redhat.com> - - * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute - for gcc 3.3 and higher. - * io/fcntl.h: Add __nonnull where appropriate. - * io/ftw.h: Likewise. - * io/utime.h: Likewise. - * io/sys/poll.h: Likewise. - * io/sys/sendfile.h: Likewise. - * io/sys/stat.h: Likewise. - * io/sys/statfs.h: Likewise. - * io/sys/statvfs.h: Likewise. - * posix/unistd.h: Likewise. - * catgets/nl_types.h: Likewise. - * crypt/crypt.h: Likewise. - * debug/execinfo.h: Likewise. - -2004-09-16 Ulrich Drepper <drepper@redhat.com> - - * posix/glob.h: Remove cruft to make header usable outside glibc. - The maintenance headache is too big. - - * configure.in: Add test for required SELinux features. - * config.make.in: Add have-selinux entry. - * config.h.in: Add HAVE_SELINUX entry. - * nscd/Makefile (nscd-modules): Add selinux. - (CFLAGS-selinux.c): Add -fpie. - Define selinux-LIBS and use in link line. - * nscd/connections.c (handle_request): Check access SELinux permissions - before processing request. - * nscd/nscd.c (main): Initialize selinux_enabled and stop avc thread. - * nscd/nscd_stat.c: Transmit and print AVC statistics. - * nscd/selinux.c: New file. - * nscd/selinux.h: New file. - Patch mostly by Matthew Rickard <mjricka@epoch.ncsc.mil>. - -2004-09-16 Jakub Jelinek <jakub@redhat.com> - - * nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap - instead of munmap. - - * nscd/Makefile (CFLAGS-aicache.c): Set to -fpie. - -2004-09-16 Thorsten Kukuk <kukuk@suse.de> - - * sysdeps/posix/getaddrinfo.c (gaih_inet): Check - __nss_not_use_nscd_hosts variable if nscd should be used or not. - -2004-09-16 Ulrich Drepper <drepper@redhat.com> - - * nscd/nscd_proto.h: Define NSS_NSCD_RETRY. - Add __nscd_getai prototype. - * nss/getXXbyYY_r.c: Remode definition of NSS_NSCD_RETRY. - * nscd/nscd-client.h: Remove __nscd_getai prototype. - * nscd/nscd_getai.c: Include nscd_proto.h. - - * elf/ldd.bash.in: Add support for SELinux environments. - Patch by Stephen Smalley <sds@epoch.ncsc.mil>. - -2004-09-16 Roland McGrath <roland@redhat.com> - - * configure.in (--with-headers): Let argument contain a : separated - list of directories to use, not just one. - * configure: Regenerated. - -2004-09-15 Richard Henderson <rth@redhat.com> - - * sysdeps/alpha/fpu/libm-test-ulps: Update. - * scripts/data/c++-types-alpha-linux-gnu.data: New file. - -2004-09-15 Ulrich Drepper <drepper@redhat.com> - - * nscd/aicache.c: Prefer using gethostbyname3_r NSS callback to also - get ttl and canonical name. Use these two values. - * resolv/Versions: Export _nss_dns_gethostbyname3_r from libnss_dns. - * resolv/nss_dns/dns-host.c (getanswer_r): Take two new parameters. - If nonnull fill with TTL and pointer to canonical name respectively. - (_nss_dns_gethostbyaddr_r): Pass NULL in new parameters of getanswer_r. - (_nss_dns_gethostbyname2_r): Just wrapper around - _nss_dns_gethostbyname3_r. - (_nss_dns_gethostbyname3_r): Renamed from _nss_dns_gethostbyname2_r. - Take two new parameters which as passed to getanswer_r. - - * nscd/Makefile (rountines): Add nscd_getai. - (nscd-modules): Add aicache. - * nscd/aicache.c: New file. - * nscd/nscd_getai.c: New file. - * nscd/cache.c (prune_cache): Handle GETAI request type. - * nscd/connections.c: Add GETAI support in request handling. - * nscd/nscd-client.h (request_type): Add GETAI. - Define ai_response_header and struct nscd_ai_result types. - (struct datahead): Add aidata field. - Declare __nscd_getai. - * nscd/nscd.c: Add getaddrinfo definition to catch problems. - * nscd/nscd.h: Declare addhstai and readdhstai. - - * sysdeps/posix/getaddrinfo.c: Add support for using cached results. - * posix/Makefile (CFLAGS-getaddrinfo.c): Add -DUSE_NSCD. - - * nscd/nscd-client.h (struct datahead): Use uint8_t instead of bool. - -2004-09-14 Ulrich Drepper <drepper@redhat.com> - - * misc/sys/cdefs.h: Remove debugging text from __P and __PMT. - -2004-09-13 Ulrich Drepper <drepper@redhat.com> - - * misc/sys/cdefs.h: Restore old definition of __P. - * csu/munch.awk: Remove uses of __P and __PMT. - * gmon/gmon.c: Likewise. - * hesiod/hesiod.h: Likewise. - * include/stdio.h: Likewise. - * io/fts.c: Likewise. - * libio/genops.c: Likewise. - * libio/libioP.h: Likewise. - * libio/fileops.c: Likewise. - * libio/iolibio.h: Likewise. - * libio/libio.h: Likewise. - * libio/memstream.c: Likewise. - * libio/oldfileops.c: Likewise. - * libio/oldstdfiles.c: Likewise. - * libio/iopopen.c: Likewise. - * libio/vsnprintf.c: Likewise. - * libio/vswprintf.c: Likewise. - * libio/wgenops.c: Likewise. - * libio/oldiopopen.c: Likewise. - * locale/programs/xmalloc.c: Likewise. - * locale/programs/xstrdup.c: Likewise. - * malloc/mtrace.c: Likewise. - * misc/getttyent.c: Likewise. - * misc/getusershell.c: Likewise. - * nis/rpcsvc/ypupd.h: Likewise. - * posix/fnmatch.h: Likewise. - * posix/glob.h: Likewise. - * resolv/arpa/nameser.h: Likewise. - * resolv/gethnamaddr.c: Likewise. - * resolv/resolv.h: Likewise. - * resolv/inet_net_ntop.c: Likewise. - * resolv/inet_net_pton.c: Likewise. - * resolv/res_init.c: Likewise. - * resolv/nss_dns/dns-network.c: Likewise. - * stdio-common/vfprintf.c: Likewise. - * stdio-common/reg-printf.c: Likewise. - * sysdeps/generic/chflags.c: Likewise. - * sysdeps/generic/fchflags.c: Likewise. - * sysdeps/generic/glob.c: Likewise. - * sysdeps/generic/printf_fphex.c: Likewise. - * sysdeps/generic/memcmp.c: Likewise. - * sysdeps/generic/memcopy.h: Likewise. - * sysdeps/generic/morecore.c: Likewise. - * sysdeps/generic/sstk.c: Likewise. - * sysdeps/posix/sigvec.c: Likewise. - * sysdeps/posix/ttyname_r.c: Likewise. - * sysdeps/standalone/arm/bits/errno.h: Likewise. - * sysdeps/standalone/standalone.h: Likewise. - * sysdeps/standalone/i386/force_cpu386/brdinit.c: Likewise. - * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise. - * sysdeps/unix/arm/start.c: Likewise. - * sysdeps/unix/bsd/sigaction.c: Likewise. - * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise. - * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise. - * sysdeps/unix/bsd/sun/sunos4/wait4.c: Likewise. - * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Likewise. - * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise. - * sysdeps/unix/sparc/start.c: Likewise. - * sysdeps/unix/sysv/getdents.c: Likewise. - * sysdeps/unix/sysv/irix4/fpathconf.c: Likewise. - * sysdeps/unix/sysv/irix4/getgroups.c: Likewise. - * sysdeps/unix/sysv/irix4/getpriority.c: Likewise. - * sysdeps/unix/sysv/irix4/getrusage.c: Likewise. - * sysdeps/unix/sysv/irix4/pathconf.c: Likewise. - * sysdeps/unix/sysv/irix4/setgroups.c: Likewise. - * sysdeps/unix/sysv/irix4/sigtramp.c: Likewise. - * sysdeps/unix/sysv/irix4/start.c: Likewise. - * sysdeps/unix/sysv/irix4/sysconf.c: Likewise. - * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: Likewise. - * sysdeps/unix/sysv/sco3.2.4/getgroups.c: Likewise. - * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise. - * sysdeps/unix/sysv/sysv4/__setpgid.c: Likewise. - * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise. - * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise. - * sysdeps/unix/sysv/sysv4/sethostname.c: Likewise. - * sysdeps/unix/sysv/sysv4/setsid.c: Likewise. - * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise. - * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise. - * sysdeps/unix/sysv/sysv4/solaris2/getdents.c: Likewise. - * time/tzset.c: Likewise. - * time/strftime_l.c: Likewise. - * time/strptime_l.c: Likewise. - * crypt/md5.h: Likewise. - -2004-09-13 Andreas Jaeger <aj@suse.de> - - * configure.in: Support GCC 4.x. - * configure: Regenerated. - -2004-09-13 Thorsten Kukuk <kukuk@suse.de> - - * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services. - - * nscd/nscd.init: Fix path to socket. - -2004-09-12 Ulrich Drepper <drepper@redhat.com> - - * nscd/nscd_helper.c (get_mapping): Correctly check cmsg length. - Avoid file descriptor leak in case of size mismatch. - - * nscd/nscd-client.h: Fix database structure layout for biarch. - * nscd/mem.c (gc): Add casts to avoid warnings. - - * nss/getent.c: Don't preconstruct help message. Do it only when - needed. - - * locale/programs/locale.c: Simplify help message printing. - -2004-09-12 Roland McGrath <roland@frob.com> - - * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls - missing in last change. - -2004-09-11 Thorsten Kukuk <kukuk@suse.de> - - * nis/nss_compat/compat-grp.c: Check that buflen is greater zero - before writing data into the buffer with negative offset. - * nis/nss_compat/compat-initgroups.c: Likewise. - * nis/nss_compat/compat-pwd.c: Likewise. - * nis/nss_compat/compat-spwd.c Likewise. + * po/sv.po: Update from translation team. -2004-09-12 Ulrich Drepper <drepper@redhat.com> +2007-02-12 Jakub Jelinek <jakub@redhat.com> - * misc/syslog.c (vsyslog): Fix copying of PID in case of - out-of-memory situation. [BZ #365]. + * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__ + to the list of i486+ CPUs. + * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise. - * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of - __THROW in inline function definitions. +2007-01-24 Jakub Jelinek <jakub@redhat.com> - * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK. - * posix/spawnattr_setflags.c: Check whether any unknown bit is set - in FLAGS parameter and fail if this is the case. - * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is - set. + * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__ + and __geode__ to the list of i486+ CPUs. + * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise. - * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk. - * nscd/grpcache.c (cache_addgr): Likewise. - * nscd/hstcache.c (cache_addhst): Likewise. +2007-02-08 Jakub Jelinek <jakub@redhat.com> -2004-09-11 Roland McGrath <roland@frob.com> + [BZ #3944] + * time/strptime_l.c (__strptime_internal): Set have_mon for + %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday + have been computed from tm_yday and tm_year. Don't crash + in day_of_the_week or day_of_the_year if not have_mon + and tm_mon contains bogus value. + * time/Makefile (tests): Add tst-strptime3. + * time/tst-strptime3.c: New test. - * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: - Set _dl_phdr and _dl_phnum. - (init1): When bootstrap task, bail early and never examine *D. +2007-02-05 Jakub Jelinek <jakub@redhat.com> -2004-09-11 Alfred M. Szmidt <ams@kemisten.nu> + [BZ #3957] + * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0' + bit for RE_HAT_LISTS_NOT_NEWLINE. + (build_charclass_op): Remove bogus comment. + * posix/Makefile (tests): Add bug-regex27 and bug-regex28. + * posix/bug-regex27.c: New test. + * posix/bug-regex28.c: New test. - * sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]: - Cast THR, SEL and DESC to `void'. +2007-02-02 Bruno Haible <bruno@clisp.org> -2004-09-11 Ulrich Drepper <drepper@redhat.com> + [BZ #3954] + * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs): + Add mapping for U+327E. + * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment. + * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable + mapping of 0xD9 0xE8. + * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable + mapping of U+327E. + Reported by Jungshik Shin <jungshik@google.com>. - * nscd/connections.c (nscd_run): Call setup_thread only for enabled - databases. + [BZ #3955] + * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable + mapping of 0xD9 0xE6 and of 0xD9 0xE7. + Reported by Jungshik Shin <jungshik@google.com>. - * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr. +2007-01-31 Jakub Jelinek <jakub@redhat.com> -2004-09-10 Ulrich Drepper <drepper@redhat.com> + * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier + from return value. + * nscd/nscd_helper.c: Include string.h. + (__nscd_cache_search): Remove const qualifier from return value. + On strict alignment architectures check hash entry and data head + alignment. + * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because + mmapped data during GC cycle contains garbage. If + __nscd_drop_map_ref fails, decrement mapped->counter when returning + error or if retrying with NO_MAPPING, only __nscd_unmap if counter + dropped to 0. + * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise. + * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise. + * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise. + * nscd/nscd_getai.c (__nscd_getai): Likewise. - * nscd/nscd.c (pagesize_m1): New variable. - (main): Initialize it. - * nscd/nscd.h: Declare pagesize_m1. - * nscd/hstcache.c: Pass correctly aligned address to msync. - * nscd/grpcache.c: Likewise. - * nscd/pwdcache.c: Likewise. +2007-01-22 Ulrich Drepper <drepper@redhat.com> -2004-09-10 Kaz Kojima <kkojima@rr.iij4u.or.jp> + [BZ #3902] + * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted. + * stdio-common/Makefile (tests): Add bug17. + * stdio-common/bug17.c: New file. - * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement - __nwaiters. If pthread_cond_destroy has been called and this is - the last waiter, signal pthread_cond_destroy caller and avoid - using the pthread_cond_t structure after unlock. - * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise. +2007-01-15 Jakub Jelinek <jakub@redhat.com> -2004-09-10 Ulrich Drepper <drepper@redhat.com> + * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear + workbits in semi-raw fraction. - * sysdeps/unix/sysv/linux/kernel-features.h: Don't define - __ASSUME_CLONE_STOPPED. + * math/test-misc.c: Add new tests. -2004-09-10 Jakub Jelinek <jakub@redhat.com> +2007-01-14 Steven Munroe <sjmunroe@us.ibm.com> - * misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and - __asm__ for C++. [BZ #377] + * math/basic-test.c: Include test-skeleton.c. + (TEST_TRUNC): Define. + (truncdfsf_test, trunctfsf_test, trunctfdf_test): New. + (main): Rename to ... + (do_test): ...this. Run new tests. + (TEST_FUNCTION): Define. -2004-09-10 Ulrich Drepper <drepper@redhat.com> +2006-10-05 Steven Munroe <sjmunroe@us.ibm.com> + Joe Kerian <jkerian@us.us.ibm.com> - * nscd/nscd_stat.c: Improve output by also printing .shared and - .persistent. + [BZ #2749] + * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow + handling for high words. + * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact + and overflow for infinity. - * nscd/connections.c: Allow cache sharing to be really disabled. +2007-01-13 Ulrich Drepper <drepper@redhat.com> -2004-09-10 Jakub Jelinek <jakub@redhat.com> + * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct + computation of keylen. - * malloc/malloc.c (_int_free): Only do arena boundary check for - contiguous arenas. +2007-01-10 Ulrich Drepper <drepper@redhat.com> -2004-09-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> + * io/fts.c: Make sure fts_cur is always valid after return from + fts_read. + Patch by Miloslav Trmac <mitr@redhat.com>. - * stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken - instruct operands. - * elf/elf.h: Add R_M32R_* relocs. +2007-01-03 Jakub Jelinek <jakub@redhat.com> -2004-09-09 Ulrich Drepper <drepper@redhat.com> + * posix/execvp.c: Include alloca.h. + (allocate_scripts_argv): Renamed to... + (scripts_argv): ... this. Don't allocate buffer here nor count + arguments. + (execvp): Use alloca if possible. + * posix/Makefile: Add rules to build and run tst-vfork3 test. + * posix/tst-vfork3.c: New test. - * misc/sys/cdefs.h: Despite what the gcc manual says, gcc 3.2 - seems not to support the nothrow attribute. Use it only for gcc - 3.3 and higher. +2007-01-05 Steven Munroe <sjmunroe@us.ibm.com> - * malloc/hooks.c (top_check): Print top chunk corruption as normal - error message. + * stdlib/tst-makecontext.c: Include errno.h. Change main() + to do_test(). Define TEST_FUNCTION. Include test-skeleton.c. + (do_test): Check errno and exit(0) if ENOSYS. - * malloc/malloc.c (malloc_printerr): Don't make informational - message look like error message. +2007-01-11 Jakub Jelinek <jakub@redhat.com> -2004-09-09 Andreas Jaeger <aj@suse.de> + * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte + thousands separators. + * stdlib/Makefile: Add rules to build and run tst-strtod4. + * stdlib/tst-strtod4.c: New test. - * nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie. + [BZ #3855] + * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by + hexadecimal digit should accept just the initial 0. + * stdlib/tst-strtod2.c (tests): New variable. + (do_test): Run several tests rather than just one. -2004-09-08 Ulrich Drepper <drepper@redhat.com> +2007-01-03 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed. + * stdlib/Makefile (tst-strtod3-ENV): Define. - * malloc/malloc.c (_int_free): Add inexpensive double free and - memory corruption tests. - (malloc_printf_nc): Renamed to malloc_printerr. Second parameter - is no format string anymore. Don't use stdio. Adjust all callers. - * malloc/hooks.c: Adjust malloc_printf_nc callers. +2006-12-11 Ulrich Drepper <drepper@redhat.com> -2004-09-08 Roland McGrath <roland@redhat.com> + * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand + separators also if no non-zero digits found. + * stdlib/Makefile (tests): Add tst-strtod3. - * malloc/mcheck.c: Don't use __P. - Use prototypes definitions for static functions. +2006-12-09 Ulrich Drepper <drepper@redhat.com> -2004-09-08 Ulrich Drepper <drepper@redhat.com> + [BZ #3664] + * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize + empty parsed strings. + * stdlib/Makefile (tests): Add tst-strtod2. + * stdlib/tst-strtod2.c: New file. - * sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW. + [BZ #3673] + * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit + computation. + * stdlib/Makefile (tests): Add tst-atof2. + * stdlib/tst-atof2.c: New file. -2004-09-08 Ulrich Drepper <drepper@redhat.com> - Jakub Jelinek <jakub@redhat.com> + [BZ #3674] + * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value + correctly if removing trailing zero of hex-float. + * stdlib/Makefile (tests): Add tst-atof1. + * stdlib/tst-atof1.c: New file. - * nscd/nscd-client.h: Add a few #includes. - - * nscd/Makefile (nscd-modules): Add nscd_setup_thread. - * nscd/connections.c (nscd_run): Call setup_thread for maintenance - threads. - * nscd/nscd-client.h (struct database_pers_head): Add - nscd_certainly_running field. - * nscd/nscd.h: Declare setup_thread. - * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if - nscd_certainly_running is nonzero. - * sysdeps/generic/nscd_setup_thread.c: New file. - * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file. - -2004-09-08 Ulrich Drepper <drepper@redhat.com> - - * nscd/connections.c: Implement r/o sharing of nscd's cache with client - processes via shared memory. - * nscd/nscd-client.h: Likewise. - * nscd/nscd.h: Likewise. - * nscd/nscd_conf.c: Likewise. - * nscd/nscd_getgr_r.c: Likewise. - * nscd/nscd_getpw_r.c: Likewise. - * nscd/nscd_gethst_r.c: Likewise. - * nscd/nscd.conf: Add new config parameters. - * nscd/Makefile (aux): Add nscd_helper. - * nscd/nscd_helper.c: New file. - * nscd/mem.c (gc): Indicate beginning and end of the gc cycle. - - * nscd/hstcache.c: Simplify a lot. We cache only the request itself, - no derived information. - * connections.c (nscd_init): Fix bug in testing size of the persistent. - - * nis/Makefile (aux): Add nis_hash. - * nis/nis_hash.c: New file. Split out from nis_util.c. - * nis/nis_util.c: Move __nis_hash code in separate file. - - * csu/tst-atomic.c: Improve atomic_increment_val test which would - not have found a ppc bug. - - * sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes. - - * malloc/arena.c: Remove __MALLOC_P uses. - * malloc/malloc.c: Likewise. - - * malloc/mtrace.c: Remove __P uses. - * malloc/mcheck-init.c: Likewise. - -2004-09-07 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/powerpc/powerpc64/configure.in: New file. - * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add. - * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove. - * sysdeps/powerpc/powerpc64/sysdep.h: Formatting. - (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX, - BODY_PREFIX): Define. - (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support - HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols, - USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries. - * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h. - (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros. - -2004-09-07 Ulrich Drepper <drepper@redhat.com> - - * malloc/malloc.h: Don't define __THROW if it is already defined. - - * sysdeps/powerpc/bits/atomic.h (atomic_increment): Define. - (atomic_decrement): Define. - - * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and - atomic_decrement_val. - * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise. - * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise. - - * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val - and atomic_decrement_val. +2007-01-03 Ulrich Drepper <drepper@redhat.com> - * include/atomic.h: Define atomic_increment_val, atomic_decrement_val, - and atomic_delay is not already defined. - * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay. - * sysdeps/x86_64/bits/atomic.h: Likewise. + * string/Makefile (tst-strxfrm2-ENV): Define. - * miscd/sys/cdefs.h (__NTH): New macro. - (__THROW): Define using nothrow attribute for C code and gcc >= 3.2. - (__REDIRECT_NTH): New macro. - * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary. - * ctype/ctype.h: Likewise. - * dirent/dirent.h: Likewise. - * io/fcntl.h: Likewise. - * io/sys/sendfile.h: Likewise. - * io/sys/stat.h: Likewise. - * io/sys/statfs.h: Likewise. - * io/sys/statvfs.h: Likewise. - * libio/bits/stdio.h: Likewise. - * misc/sys/mman.h: Likewise. - * posix/unistd.h: Likewise. - * resource/sys/resource.h: Likewise. - * rt/aio.h: Likewise. - * signal/signal.h: Likewise. - * stdlib/stdlib.h: Likewise. - * string/argz.h: Likewise. - * string/string.h: Likewise. - * sysdeps/generic/inttypes.h: Likewise. - * sysdeps/i386/fpu/bits/mathinline.h: Likewise. - * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise. - * sysdeps/s390/fpu/bits/mathinline.h: Likewise. - * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise. - * sysdeps/unix/sysv/linux/bits/socket.h: Likewise. - * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise. - * wcsmbs/wchar.h: Likewise. +2006-11-10 Jakub Jelinek <jakub@redhat.com> - * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate. + * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization + if N is one bigger than return value. + * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1 + and l1 last arguments, if buf is defined, verify the return value + equals to strlen (buf) and verify no byte beyond passed length + is modified. - * resolv/gethnamaddr.c (getanswer): Remove __P use in variable - definition. +2006-11-09 Ulrich Drepper <drepper@redhat.com> - * io/sys/poll.h: Remove __THROW from poll prototype, it's a - cancellation point. + * string/Makefile (tests): Add tst-strxfrm2. + * string/tst-strxfrm2.c: New file. - * io/fts.c (fts_open): Remove uses of __P. +2006-11-08 Jakub Jelinek <jakub@redhat.com> - * include/stdlib.h: No need to use __THROW in this header. + * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal + optimization even if needed > n. -2004-09-06 Roland McGrath <roland@frob.com> +2006-12-22 Gavin Romig-Koch <gavin@redhat.com> - * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD - validity, since __assert_fail gets to here anyway. Just fail. + * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't + blacklist the group till after we look it up. -2004-09-06 Ulrich Drepper <drepper@redhat.com> +2006-12-21 Ulrich Drepper <drepper@redhat.com> - * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with - AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6 - addresses. + * include/atomic.h (atomic_forced_read): New macro. -2004-09-05 Richard Henderson <rth@redhat.com> +2006-12-19 Jakub Jelinek <jakub@redhat.com> - * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file. - * sysdeps/unix/sysv/linux/kernel-features.h - (__ASSUME_IEEE_RAISE_EXCEPTION): New. - * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file. - * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file. - * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it. - * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise. + * stdlib/Makefile (tests): Add tst-makecontext. + * stdlib/tst-makecontext.c: New test. -2004-09-05 Richard Henderson <rth@redhat.com> + * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S + (__makecontext): Don't realign uc_mcontext.uc_regs. - * sysdeps/alpha/div.S: Save and restore FPCR around fp operations. - * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S, - sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S, - sysdeps/alpha/remqu.S: Likewise. - * sysdeps/alpha/div_libc.h (FRAME): Increase to 64. +2006-12-13 Jakub Jelinek <jakub@redhat.com> -2004-09-05 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include + kernel-features.h. - * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and - GETHOSTBYADDRv6 requests. +2006-12-19 Jakub Jelinek <jakub@redhat.com> -2004-09-04 Ulrich Drepper <drepper@redhat.com> + * nss/getXXbyYY_r.c: Include atomic.h. + (INTERNAL (REENTRANT_NAME)): Write startp after start_fct, + add atomic_write_barrier () in between. - * nscd/pwdcache.c (cache_addpw): Use correct key length in - cache_add calls. - * nscd/grpcache.c (cache_addgr): Likewise. +2006-12-18 Jakub Jelinek <jakub@redhat.com> -2004-09-03 Alfred M. Szmidt <ams@kemisten.nu> + [BZ #3747] + * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the + [-231 .. 231) range. + * stdlib/tst-rand48.c (main): Fix expected values for 64-bit + targets. + * stdlib/tst-rand48-2.c: New test. + * stdlib/Makefile (tests): Add tst-rand48-2. - * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV - to `dtv_t *'. +2006-12-14 Jakub Jelinek <jakub@redhat.com> -2004-09-03 Ulrich Drepper <drepper@redhat.com> + * misc/tst-pselect.c (do_test): Fix sigblock argument. - * nscd/nscd.c (parse_opt): Use writev instead of two write for - invalidate command. +2006-12-14 Ulrich Drepper <drepper@redhat.com> -2004-09-02 Ulrich Drepper <drepper@redhat.com> + * misc/tst-pselect.c (do_test): Make sure the helper process is + terminating when the test is aborted. - * nscd/connections.c (nscd_run): Check early for invalid request types. +2006-12-13 Ulrich Drepper <drepper@redhat.com> -2004-09-02 Roland McGrath <roland@frob.com> + [BZ #2337] + * libio/Makefile (tests): Add tst-setvbuf1. + * libio/tst-setvbuf1.c: New file. - * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro. - (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word. - (THREAD_SELF): New macro. +2006-12-08 Jakub Jelinek <jakub@redhat.com> -2004-09-02 Steven Munroe <sjmunroe@us.ibm.com> + [BZ #2337] + * libio/genops.c (__uflow): Fix a typo. + * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat + nor set _IO_LINE_BUF bit here. Size the wide buffer based on + the narrow buffer size. - [BZ #357] - * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber. - (main): Call test_stack. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S - (__getcontext): Push stack frame then save parms in local frame. - Improve instruction scheduling. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S - (__swapcontext): Likewise. +2006-11-24 Jakub Jelinek <jakub@redhat.com> -2004-09-01 Andreas Schwab <schwab@suse.de> + [BZ #2337] + * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define. + * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set + _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit + in _flags. + * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf, + _IO_wstr_finish): Likewise. + * libio/wmemstream.c (open_wmemstream): Likewise. + * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp] + even for wide streams. - * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use - __builtin_offsetof. +2006-12-09 Jakub Jelinek <jakub@redhat.com> -2004-09-01 Jakub Jelinek <jakub@redhat.com> + * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest. + Start searching for next comma at p rather than rest. + * misc/Makefile (tests): Add tst-mntent2. + * misc/tst-mntent2.c: New test. - [BZ #361] - * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch - to normal_bracket after fetching the next character. - * posix/tst-fnmatch.input: Add 25 new tests. - Reported by Markus Oberhumer <markus@oberhumer.com>. +2006-12-09 Ulrich Drepper <drepper@redhat.com> -2004-09-01 Ulrich Drepper <drepper@redhat.com> + [BZ #3632] + * include/features.h: Fix comment about default value for + _POSIX_C_SOURCE. - * elf/rtld.c (dl_main): First check existence of ld.so.preload - with access. +2006-12-09 Jakub Jelinek <jakub@redhat.com> -2004-09-01 Roland McGrath <roland@redhat.com> + * misc/getusershell.c (initshells): Check for integer overflows. + Make strings buffer one bigger as fgets always succeeds when second + argument is 1. Don't use calloc for shells array. Disallow + / as shell. - * sysdeps/unix/sysv/linux/bits/waitflags.h - (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros. - * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL): - New macro. - * sysdeps/unix/sysv/linux/waitid.c: New file. Use new syscall when - available, or fall back to the waitpid-based generic code. +2006-12-05 Jakub Jelinek <jakub@redhat.com> -2004-08-14 Alfred M. Szmidt <ams@kemisten.nu> + * nis/nis_subr.c (nis_getnames): Revert last change. - * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc - clobber the `ebp' register. - * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed. - Reverts change from 2004-05-07 by Jeroen Dekkers. +2006-10-11 Jakub Jelinek <jakub@redhat.com> - * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of - NEWSP from `void *' to `int *'. Changed all casts accordingly. + * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice. -2004-08-31 Jakub Jelinek <jakub@redhat.com> + * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv. + * sysdeps/generic/unsecvars.h: Add NIS_PATH. - * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden - before return type. - * locale/localename.c (__current_locale_name): Likewise. +2006-12-04 Jakub Jelinek <jakub@redhat.com> -2004-08-30 Roland McGrath <roland@frob.com> + * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h. + (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY. + * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h. + (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to + ENOTTY. + * io/Makefile: Add rules to build and run tst-ttyname_r test. + * io/tst-ttyname_r.c: New test. - * scripts/extract-abilist.awk: If `lastversion' variable defined, omit - later sets from output. - * Makerules (check-abi): Pass option to set that with value of - LIB-abi-frozen variable if one is set. +2006-11-28 Jakub Jelinek <jakub@redhat.com> - * abilist/libcidn.abilist: New file (empty). + * elf/dl-support.c: Include dl-procinfo.h. + * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4, + PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS, + PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X): + Define. + (_dl_string_platform): Use PPC_PLATFORM_* macros instead of + hardcoded constants. + * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use + PPC_PLATFORM_* macros for array designators. -2004-08-30 Jakub Jelinek <jakub@redhat.com> +2006-11-11 Steven Munroe <sjmunroe@us.ibm.com> - * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If - not __USE_XOPEN2K, use the Unix98 mandated values. + * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap + names to the beginning. + (_dl_powerpc_platforms): Add "power6x". + * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease. + (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP. + (_DL_PLATFORMS_COUNT): Increase. + (_dl_string_platform): Handle power6x case. + * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP, + PPC_FEATURE_POWER6_EXT): Define. + (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment. -2004-08-27 Roland McGrath <roland@redhat.com> +2006-11-27 Jakub Jelinek <jakub@redhat.com> - * configure.in (usetls): Default to yes. - * configure: Regenerated. + [BZ #3559] + * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if + malloc crashed. -2004-08-26 Roland McGrath <roland@redhat.com> +2006-11-14 Jakub Jelinek <jakub@redhat.com> - * configure.in (add_ons_automatic): New variable, set to yes or no - indicating --enable-add-ons with no explicit list. - (running add-on fragments): Allow a fragment to modify $libc_add_on - and have that affect its place in the list of add-ons to use. - * configure: Regenerated. + * nss/nss_files/files-alias.c (get_next_alias): Set line back + to first_unused after parsing :include: file. -2004-08-26 Ulrich Drepper <drepper@redhat.com> +2006-11-14 Ulrich Drepper <drepper@redhat.com> - * nscd/cache.c: Major rewrite. The data is now optionally kept in - a mmaped memory region which is automatically mirrored on disk. - This implements persistent data storage. The Memory handled - needed to be completely revamped, it now uses a garbage collection - mechanism instead of malloc. - * nscd/connections.c: Likewise. - * nscd/nscd.c: Likewise. - * nscd/nscd.h: Likewise. - * nscd/nscd_conf.c: Likewise. - * nscd/nscd_stat.c: Likewise. - * nscd/grpcache.c: Likewise. - * nscd/hstcache.c:: Likewise. - * nscd/pwdcache.c:: Likewise. - * nscd/Makefile: Add rules to build mem.c. - * nscd/mem.c: New file. - * nscd/nscd.conf: Describe new configuration options. + * po/nl.po: Update from translation team. -2004-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp> +2006-11-10 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if - NO_SGIDEFS_H isn't defined. - * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. - * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise. + * po/sv.po: Update from translation team. - * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and - _MIPS_SIM. - * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise. - * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise. - * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise. +2006-11-01 Ulrich Drepper <drepper@redhat.com> -2004-08-26 Ulrich Drepper <drepper@redhat.com> + * po/sv.po: Update from translation team. - * nscd/connections.c (nscd_run): atomic_increment was not missing. +2006-10-29 Ulrich Drepper <drepper@redhat.com> - * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval. - Patch by Greg Schafer. + * po/sv.po: Update from translation team. -2004-08-25 Richard Henderson <rth@redhat.com> +2006-10-09 Ulrich Drepper <drepper@redhat.com> - * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind - instead of $31. Zero $15. - * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise. + * po/sv.po: Update from translation team. -2004-08-25 Ulrich Drepper <drepper@redhat.com> +2006-10-07 Ulrich Drepper <drepper@redhat.com> - * sysdeps/powerpc/powerpc64/bits/atomic.h - (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval - is negative. - (__arch_compare_and_exchange_bool_32_rel): Likewise. + * po/tr.po: Update from translation team. - * nscd/connections.c: Make socket nonblocking so that threads - don't get stuck on accept. Fix locking. +2006-10-06 Ulrich Drepper <drepper@redhat.com> - * nscd/grpcache.c (cache_addgr): Use copy of original key in hash - entry with alternative key. - * nscd/pwdcache.c (cache_addpw): Likewise. + * po/pl.po: Update from translation team. -2004-08-25 Richard Sandiford <rsandifo@redhat.com> +2006-11-10 Ulrich Drepper <drepper@redhat.com> - * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set - __libc_stack_end. + [BZ #3451] + * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode + change atomic. + (ceil): Likewise. -2004-08-23 Ulrich Drepper <drepper@redhat.com> +2006-11-09 Ulrich Drepper <drepper@redhat.com> - * sysdeps/gnu/netinet/udp.h: Cosmetic changes. Remove unnecessary - __BEGIN_DECLS/__END_DECLS. + * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add + noinline attribute. -2004-08-23 Andreas Jaeger <aj@suse.de> +2006-11-10 Jakub Jelinek <jakub@redhat.com> - [BZ #341] - * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define. - * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise. - * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise. - * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise. - * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise. - * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise. - * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise. - * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise. - * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise. - * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise. - * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise. - * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise. - * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise. + * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add + noinline attribute. -2004-08-21 Ulrich Drepper <drepper@redhat.com> +2006-11-05 Ulrich Drepper <drepper@redhat.com> - * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c. - (check_action): Likewise. - When printing error messages, use malloc_printf_nc now instead of - fiddling with the streams cancellation flag in every place. - * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition. Change - default to 3. - (check_action): New variable. - (unlink): Print error message and eventually terminate in case list - is corrupted. - (malloc_printf_nc): New function. Use it in _int_free. - Change proposed by Arjan van de Ven. - - * dlfcn/Makefile: Don't build eval.c anymore. - -2004-08-20 Roland McGrath <roland@frob.com> - - * csu/Makefile ($(objpfx)version-info.h): Use printf in place - of echo -e for POSIX.2 portability. - Reported by Paul Jarc <prj@po.cwru.edu>. - -2004-08-19 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in - list generation. - - * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use - getcanonname_r function if AI_CANONNAME flag is not set in - request. - - * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): - Initialize mysize with limits only if latter is >= 0. Use mysize - in malloc call. - -2004-08-19 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *) - to avoid warning. - - * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize - status to NSS_STATUS_UNAVAIL. - -2004-08-19 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the - cannoname lookup since it has the FQDN even if the original NAME - value has not. - -2004-08-18 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter - pointer in new variable ORIG_NAME and use this pointer when - determination of canonical name failed, not the possibly IDN - translated value of NAME. - -2004-08-17 Ulrich Drepper <drepper@redhat.com> - - * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT. - * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option. - Reset RES_NOIP6DOTINT flag in this case.. - - * sysdeps/posix/getaddrinfo.c: Fix memory handling of - ai_canonname. - -2004-08-16 Ulrich Drepper <drepper@redhat.com> - - * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use - CNAME records, we better follow the chain of CNAME records which - can be accomplished with A/AAAA lookups. - -2004-08-15 Roland McGrath <roland@redhat.com> - - * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): - Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro. - * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise. - * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise. - * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise. - -2004-08-15 Roland McGrath <roland@frob.com> - - * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to - this, not ... - (static-only-routines): ... this. - * sysdeps/ia64/Makefile: Likewise. - * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise. - * sysdeps/sparc/sparc64/Makefile: Likewise. - * sysdeps/x86_64/Makefile: Likewise. - * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change. - * sysdeps/ia64/hp-timing.c: Likewise. - * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise. - * sysdeps/sparc/sparc64/hp-timing.c: Likewise. - - * csu/elf-init.c: Update copyright terms including special exception - for these trivial files, which are statically linked into executables - that use dynamic linking for the significant library code. - * io/fstat.c: Likewise. - * io/fstat64.c: Likewise. - * io/lstat.c: Likewise. - * io/lstat64.c: Likewise. - * io/stat.c: Likewise. - * io/stat64.c: Likewise. - * stdlib/atexit.c: Likewise. - * sysdeps/alpha/elf/initfini.c: Likewise. - * sysdeps/alpha/elf/start.S: Likewise. - * sysdeps/arm/elf/start.S: Likewise. - * sysdeps/cris/elf/start.S: Likewise. - * sysdeps/generic/initfini.c: Likewise. - * sysdeps/generic/mknod.c: Likewise. - * sysdeps/hppa/elf/initfini.c: Likewise. - * sysdeps/hppa/elf/start.S: Likewise. - * sysdeps/i386/elf/start.S: Likewise. - * sysdeps/i386/i686/hp-timing.c: Likewise. - * sysdeps/ia64/elf/initfini.c: Likewise. - * sysdeps/ia64/elf/start.S: Likewise. - * sysdeps/ia64/hp-timing.c: Likewise. - * sysdeps/m68k/elf/start.S: Likewise. - * sysdeps/mach/start.c: 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-32/initfini.c: Likewise. - * sysdeps/s390/s390-64/elf/start.S: Likewise. - * sysdeps/s390/s390-64/initfini.c: Likewise. - * sysdeps/sh/elf/initfini.c: Likewise. - * sysdeps/sh/elf/start.S: Likewise. - * sysdeps/sparc/sparc32/elf/start.S: Likewise. - * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise. - * sysdeps/sparc/sparc64/elf/start.S: Likewise. - * sysdeps/sparc/sparc64/hp-timing.c: Likewise. - * sysdeps/standalone/i386/start.S: Likewise. - * sysdeps/standalone/i960/start.S: Likewise. - * sysdeps/standalone/m68k/m68020/start.S: Likewise. - * sysdeps/unix/arm/start.c: Likewise. - * sysdeps/unix/bsd/osf/alpha/start.S: Likewise. - * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise. - * sysdeps/unix/sparc/start.c: Likewise. - * sysdeps/unix/start.c: Likewise. - * sysdeps/unix/sysv/aix/start.s: Likewise. - * sysdeps/unix/sysv/irix4/start.c: Likewise. - * sysdeps/x86_64/elf/initfini.c: Likewise. - * sysdeps/x86_64/elf/start.S: Likewise. - -2004-08-15 Roland McGrath <roland@redhat.com> - - [BZ #227] - * sysdeps/unix/sysv/linux/kernel-features.h - (__ASSUME_BRK_PAGE_ROUNDED): New macro. - * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk) - [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within - the partial page after the dynamic linker's own data segment. - -2004-08-15 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of - v4-mapped addresses a bit. - (gethosts): Move alloca out of macro, so that it is done only once. - - * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of - addr to avoid casts. - (gethosts): Removed. - (gethosts2): Renamed to gethosts. Make it usable for family != - AF_UNSPEC. Fix AI_V4MAPPED. - (gaih_inet): Remove use of old gethosts. Always use what used to be - gethosts2. If entry is found, try to use the same NSS module's - getcanonname_r function. Use gethostbyaddr for AI_CANONNAME only - if getcanonname_r was not available. Fix filtering of AI_V4MAPPED - addresses. Numerous cleanups. - * resolv/nss_dns/dns-canon.c: New file. - * resolv/Makefile (libnss_dns-routines): Add dns-canon. - * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r. - - * elf/Makefile: Add rules to build and run tst-dlopenrpath. - * elf/tst-dlopenrpath.c: New file. - * elf/tst-dlopenrpathmod.c: New file. - - * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8. - * intl/tst-gettext.c: Likewise. - - * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses. - - * nss/getent.c: Allow queries for getaddrinfo with AF_INET and - AF_INET6. - -2004-08-14 Ulrich Drepper <drepper@redhat.com> - - * po/de.po: Update from translation team. - -2004-08-14 Roland McGrath <roland@frob.com> - - * sysdeps/mach/configure: Regenerated. - * sysdeps/mach/hurd/configure: Regenerated. - -2004-08-14 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is - performed, make sure it is still the first entry after sorting - that has the ai_canonname information. - - * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname - only in one entry. - -2004-08-13 Daniel Jacobowitz <dan@debian.org> - - * scripts/output-format.sed: Handle default case of three-argument - OUTPUT_FORMAT. - - * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as - __attribute_used__. - -2004-08-13 Ulrich Drepper <drepper@redhat.com> - - * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the - first returned entry. Print name only if not NULL. - - * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct - __netgrent object passed in instead of global variables. - Optimize. - * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data - in struct __netgrent object passed in instead of global variables. - * inet/netgroup.h (struct __netgrent): Add service_user field. - Move cursor in anonymous union, add new field location to that - union. - * inet/getnetgrent_r.c: Extensive rewrite to really enable - concurrent uset of set/get/endnetgrent and innetgr. - Reported by Chuck Simmons. - - * inet/netgroup.h (struct name_list): Replace name pointer with - zero-sized array. - * inet/getnetgrent_r.c: Adjust code for change in name_list - layout. Numerous strdup and free calls removed. - - * elf/sprof.c (read_symbols): When comparing aliases, prefer - non-hidden over hidden symbols and strong over weak symbols - if both don't start with '_'. + * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): + Update handling of cache descriptor 0x49 for new models. + * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): + Likewise. - * malloc/malloc.c: Use strong_alias instead of weak_alias wherever - possible. +2006-11-08 Jakub Jelinek <jakub@redhat.com> -2004-08-12 Jakub Jelinek <jakub@redhat.com> + * elf/dl-load.c (decompose_rpath): Return bool rather than void. + If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and + return false, otherwise return true. + (cache_rpath): Return decompose_rpath return value. - * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard - RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly. - * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise. - * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise. - * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise. - Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros - accordingly. +2006-11-02 Jakub Jelinek <jakub@redhat.com> -2004-08-11 Andreas Schwab <schwab@suse.de> + * malloc/memusage.c (dest): Reset not_me back to false after + printing statistics. - * resolv/res_libc.c: Move definition of __res_initstamp ... - * resolv/res_init.c: ... here. +2006-10-27 Ulrich Drepper <drepper@redhat.com> -2004-08-10 GOTO Masanori <gotom@debian.or.jp> + * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and + split out locking and parameter checking. + (_dl_close): Call _dl_close_worker after locking and checking. + * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of + _dl_close. + * elf/Makefile: Add rules to build and run tst-thrlock. + * elf/tst-thrlock.c: New file. - * locale/C-time.c: Change default ERA value from NULL to "". - * locale/tst-C-locale.c: Add test case for ERA keywords. + [BZ #3429] + * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until + we are sure we do not need it anymore for _dl_close. Also move + the asserts inside the lock region. + Patch mostly by Suzuki <suzuki@in.ibm.com>. -2004-08-12 Ulrich Drepper <drepper@redhat.com> +2006-10-17 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard - RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly. - * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise. - * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise. + * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses + as signed longs, check for x_base + pos overflow. + * sunrpc/Makefile (tests): Add tst-xdrmem2. + * sunrpc/tst-xdrmem2.c: New test. -2004-08-12 Jakub Jelinek <jakub@redhat.com> +2006-10-16 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING, - RLIMIT_MSGQUEUE): Add. - (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust. - * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING, - RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add. - (RLIM_NLIMITS): Adjust. - * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING, - RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add. - (RLIM_NLIMITS): Adjust. - * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING, - RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add. - (RLIM_NLIMITS): Adjust. + [BZ #3369] + * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4 + and 7. -2004-08-12 Jakub Jelinek <jakub@redhat.com> +2006-10-13 Ulrich Drepper <drepper@redhat.com> - * resolv/res_query.c (__libc_res_nsearch): Protect the debugging - printf with #ifdef DEBUG and RES_DEBUG check. + * elf/dl-minimal.c (realloc): Optimize last patch. - * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after - __USE_MISC #endif. - * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize - declaration. - * sysdeps/gnu/bits/shm.h: Likewise. - * sysdeps/unix/sysv/linux/alpha/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. +2006-10-12 Richard Sandiford <richard@codesourcery.com> -2004-08-12 Ulrich Drepper <drepper@redhat.com> + [BZ #3352] + * elf/dl-minimal.c (realloc): Let malloc() return a new pointer, + and use memcpy() if it does. - * po/ca.po: Update from translation team. +2006-10-11 Ulrich Drepper <drepper@redhat.com> -2004-08-11 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset. - * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for - __getpagesize declaration. +2006-10-10 Ulrich Drepper <drepper@redhat.com> -2004-08-11 Roland McGrath <roland@redhat.com> + * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH + components which lack them. - * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around - commands inside &&. - Reported by Andreas Schwab <schwab@suse.de>. - * configure: Regenerated. + * nis/nis_subr.c (nis_getnames): Make sure that we always return + at least one entry consisting of the parameter concatenated with + the domain. - * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL. +2006-10-09 Jakub Jelinek <jakub@redhat.com> -2004-08-11 Ulrich Drepper <drepper@redhat.com> + * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0 + rather than r->r_brk. - * time/tzset.c (tzset_internal): Add new parameter which is - nonzero if called through tzset. Use TZDEFAULT name including - name comparison if the new parameter is zero. This means implicit - tzset calls will not cause files to be opened and read by tzfile.c - all the time. +2006-10-06 Ulrich Drepper <drepper@redhat.com> -2004-08-11 Jakub Jelinek <jakub@redhat.com> + * nis/nis_table.c (nis_list): If __follow_path fails in the new + code, make sure the nis_freeresult call doesn't crash and that the + result is reported correctly. - * rt/tst-timer2.c (do_test): If timer_create fails, just continue. - * rt/tst-timer4.c (do_test): If one of the timer_create calls fails, - return 1 immediately. +2006-09-27 Jakub Jelinek <jakub@redhat.com> - * time/tzfile.c (__tzfile_read): Free transitions only if it will - not be reused. + * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS + when callback is NULL. - * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>. - * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed. + * nis/Versions (libnss_nisplus): Add + _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE. + * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups. + * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len, + _nss_create_tablename): Rename to... + (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename): + ... these. No longer static. + (internal_setgrent): Adjust users. + (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise. + Don't use locking around _nss_grp_create_tablename call. + * nis/nss_nisplus/nisplus-initgroups.c: New file. - * stdio-common/tst-popen.c: Include <string.h>. +2006-10-06 Andreas Jaeger <aj@suse.de> - * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG. + * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now. - * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn - attribute. Return NULL instead of calling pthread_exit at the end. +2006-10-06 Ulrich Drepper <drepper@redhat.com> -2004-08-11 Roland McGrath <roland@redhat.com> + * po/pl.po: Update from translation team. - * iconvdata/testdata/ISO-2022-JP-3: Regenerated. + * nscd/nscd.c (main): Fix typo in message. + Patch by Jakub Bogsz <qboosh@pld-linux.org>. -2004-08-10 Alfred M. Szmidt <ams@kemisten.nu> +2006-10-02 Jakub Jelinek <jakub@redhat.com> - * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition. + [BZ #3291] + * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include + errno.h, signal.h, unistd.h and sysdep-cancel.h. + (__sigprocmask): Define. -2004-08-10 Jakub Jelinek <jakub@redhat.com> +2006-10-02 Ulrich Drepper <drepper@redhat.com> - * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t). - (fwrite_unlocked): When checking if size * n is <= 8, cast each - argument to size_t individually. Cast n to (void) instead of - (size_t), surround with (), return (size_t) 0 if one of n or size - is 0. [BZ #316] - * stdio-common/Makefile (tests): Add tst-unlockedio. - * stdio-common/tst-unlockedio.c: New test. + * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is + used. -2004-08-09 Roland McGrath <roland@frob.com> +2006-10-02 Jakub Jelinek <jakub@redhat.com> - * manual/install.texi (Supported Configurations): Replace bug-glibc - mention with web URL. - * INSTALL: Regenerated. - * locale/iso-3166.def: Likewise, in comment. - * locale/iso-4217.def: Likewise. - * locale/iso-639.def: Likewise. - * posix/cpio.h: Remove bug reporting comment. + * nscd/mem.c (mempool_alloc): Round array size to 16 bytes + in oldtotal and newtotal calculation. + * nscd/nscd-client.h (struct mapped_database): Add datasize + field. + * nscd/nscd_helper.c (get_mapping): Initialize datasize field. + (__nscd_get_map_ref): Get a new mapping even if mapping's data_size + increased. + (__nscd_cache_search): Add checks to make sure we never reference + data beyond the current mapping. -2004-08-09 Ulrich Drepper <drepper@redhat.com> +2006-10-02 Dmitry V. Levin <ldv@altlinux.org> - * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t) - casts to handle funny calls with floating point argument values - and signed values correctly and without warning. - (fwrite_unlocked): Likewise. [BZ #309] + * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val + variables const to avoid compiler warnings. - * malloc/memusage.c (me): Use creat64, not creat. - * malloc/memusagestat.c: Fix handling of very large sizes. [BZ #285] - Patch by Guy Maor <guymaor@yahoo.com>. + * io/fts.c (fts_close): Remove redundant checks. + (fts_build): Likewise. + (fts_palloc): Likewise. - * elf/ldconfig.c (options): Mark parameter option names as - translatable. [BZ #253] Patch by Jakub Bogusz <qboosh@pld-linux.org>. + * manual/message.texi (Advanced gettext functions, + Using gettextized software): Fix typos. - * iconv/gconv_charset.h (strip): Also allow comma which is what is - used to separate options. [BZ #194] +2006-09-30 Ulrich Drepper <drepper@redhat.com> -2004-08-09 Roland McGrath <roland@redhat.com> + * posix/glob.c (glob_in_dir): Add some comments and asserts to + explain why there are no leaks. - * FAQ.in: Refer to web pages instead of bug-glibc. - * FAQ: Regenerated. +2006-09-29 Ulrich Drepper <drepper@redhat.com> - * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change. + * libio/wmemstream.c: Include <wchar.h>. + * libio/bug-wmemstream1.c: Likewise. + * libio/tst-wmemstream1.c: Likewise. + * libio/tst-wmemstream2.c: Likewise. -2004-08-09 Ulrich Drepper <drepper@redhat.com> + * version.h (RELEASE): Bump to 2.5. + * README: Regenerated. - * time/tzset.c (tzset_internal): If TZ is not set do not compare - old and new tz value since it might be /etc/localtime in both - cases although the file changed. [BZ #154] - Patch by Christian Franke <franke@computer.org>. + * locale/iso-3166.def: Add Aaland Islands and Montenegro. - * time/tzfile.c (__tzfile_read): Determine dev/ino of file. - Compare with values of previously opened file. Don't do anything - is they match. + [BZ #3273] + * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have + found no group members. + Patch by Petr Baudis. -2004-08-08 Ulrich Drepper <drepper@redhat.com> +2006-09-29 Jakub Jelinek <jakub@redhat.com> - * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set, - reset loader before the actual loading. - * elf/dl-open.c (dl_open_worker): If file name contains no path - element determine map of caller. Pass caller map in this case to - _dl_map_object. Set __RTLD_CALLMAP in mode. - * include/dlfcn.h (__RTLD_CALLMAP): Define. [BZ #116] - Patch by Greg Wolodkin <greg@mathworks.com>. + * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't + assert bootstrap_map.l_tls_modid is zero. + (_dl_start): Initialize bootstrap_map.l_tls_modid to 0 + if USE___THREAD. - * misc/syslog.c (openlog_internal): Always try both UDP and TCP. - [BZ #108] Patch mainly by Bjorn Andersson <bjorn@iki.fi>. +2006-09-27 Ulrich Drepper <drepper@redhat.com> - * configure.in: Also recognize i786. [BZ #106] - Patch by <pluto@pld-linux.org>. + * libio/stdio.h: Move open_wmemstream prototype to ... + * wcsmbs/wchar.h: ... here. - * resolv/res_query.c (__libc_res_nsearch): Correctly test whether - name contains any dots. [BZ #95] +2006-09-25 Jakub Jelinek <jakub@redhat.com> - * resolv/res_send.c: Compiling with DEBUG defined works again. - * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf. Adjust all - callers. + [BZ #3252] + * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only + fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call + __{,l}chown to handle the rest. + * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only + fchownat syscall and __ASSUME_32BITUIDS case inline, call + __{,l}chown to handle the rest. + * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include + i386/fchownat.c. + * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise. + * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise. - * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is - available the process is not killed. [BZ #41] + [BZ #3253] + * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a + time, rather allocate increasingly bigger arrays of pointers, if + possible with alloca, if too large with malloc. - * intl/tst-gettext.c (main): Improve some messages. [BZ #33] +2006-09-24 Jakub Jelinek <jakub@redhat.com> - * time/strptime_l.c (__strptime_internal): Fix handling of %Ey. - [BZ #28] + * sysdeps/powerpc/fpu/libm-test-ulps: Updated. - * po/sv.po: Update from translation team. + * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos. -2004-08-07 Ulrich Drepper <drepper@redhat.com> +2006-09-24 Ulrich Drepper <drepper@redhat.com> - * inet/netinet/in.h: Add more const to the setipv4soucefilter, - getsourcefilter, and setsourcefilter parameter list. - * sysdeps/generic/setipv4sourcefilter.c: Likewise. - * sysdeps/generic/getsourcefilter.c: Likewise. - * sysdeps/generic/setsourcefilter.c: Likewise. - * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise. - * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise. - * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise. + * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4, + home addresses. + * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize + IFA_F_HOMEADDRESS flag for interfaces. + * include/ifaddrs.h (struct in6addrinfo): Define + in6ai_homeaddress. - * po/tr.po: Update from translation team. +2006-09-21 Jakub Jelinek <jakub@redhat.com> -2004-08-06 Ulrich Drepper <drepper@redhat.com> - - * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo. - Reported by Paolo Bonzini. - -2004-08-06 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add - always_inline. - * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup, - elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise. - - * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h - before including linux/atalk.h. - - * resolv/res_libc.c: Include atomic.h. - - * intl/finddomain.c (free_mem): Rename to... - (_nl_finddomain_subfreeres): ... this. Add - __libc_freeres_fn_section. - * intl/loadmsgcat.c (_nl_unload_domain): Add - __libc_freeres_fn_section. - * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC. - Add attribute_hidden. - (_nl_findomain_subfreeres): New prototype. - * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres. - -2004-07-30 Guido Guenther <agx@sigxcpu.org> - - * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to - test if the key is numeric or not. - (group_keys): Likewise. - -2004-08-05 Ulrich Drepper <drepper@redhat.com> - - * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE, - struct group_filter, and GROUP_FILTER_SIZE. - * include/sys/socket.h: Declare __getsockopt. - * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file. - * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file. - * sysdeps/unix/sysv/linux/setsourcefilter.c: New file. - * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211] - - * po/ko.po: Update from translation team. - -2004-08-04 Jakub Jelinek <jakub@redhat.com> - - * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc + - memset. - (__hesiod_res_set): Free nsaddrs. - - * include/resolv.h (__res_maybe_init): Add prototype. - * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field. - * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE. - * resolv/res_libc.c (__res_initstamp, lock): New variables. - (res_init): Increase __res_initstamp. - (__res_maybe_init): New function. - * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp. - * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead - of RES_INIT check and {res_ninit,__res_ninit,res_init} call. - * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise. - * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r, - _nss_dns_gethostbyaddr_r): Likewise. - * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r, - _nss_dns_getnetbyaddr_r): Likewise. - * resolv/gethnamaddr.c (gethostbyname, gethostbyname2, - gethostbyaddr): Likewise. - * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate, - res_isourserver, res_sendsigned, res_update, res_search, - res_querydomain): Likewise. - * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise. - * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise. - * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r): + [BZ #3225] + * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3, + PTR_DEMANGLE3): Define. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3, + PTR_DEMANGLE3): Likewise. + * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them. + * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Likewise. - -2004-08-05 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for - V4-mapped IPv6 addresses and req->ai_family==AF_INET. - Reported by A. Guru <a.guru@sympatico.ca>. - - * po/sv.po: Update from translation team. - * po/sk.po: Likewise. + * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise. + +2006-09-20 Jakub Jelinek <jakub@redhat.com> + + * po/libc.pot: Regenerated. + * po/be.po: Updated. + * po/ca.po: Likewise. + * po/cs.po: Likewise. + * po/da.po: Likewise. + * po/de.po: Likewise. + * po/el.po: Likewise. + * po/en_GB.po: Likewise. + * po/es.po: Likewise. + * po/fi.po: Likewise. + * po/fr.po: Likewise. + * po/gl.po: Likewise. + * po/hr.po: Likewise. + * po/hu.po: Likewise. + * po/ja.po: Likewise. + * po/ko.po: Likewise. + * po/nb.po: Likewise. + * po/nl.po: Likewise. * po/pl.po: Likewise. + * po/pt_BR.po: Likewise. + * po/ru.po: Likewise. + * po/rw.po: Likewise. + * po/sk.po: Likewise. + * po/sv.po: Likewise. + * po/tr.po: Likewise. + * po/zh_CN.po: Likewise. + * po/zh_TW.po: Likewise. + + [BZ #3137] + * iconv/iconv_prog.c (main): Fix spelling in error message. + * iconv/iconvconfig.c (main): Likewise. + * locale/programs/ld-collate.c (handle_ellipsis): Likewise. + * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise. + * locale/programs/localedef.c (main): Likewise. + * locale/programs/repertoire.c (repertoire_read): Likewise. + * timezone/zdump.c (main): Likewise. + * nscd/connections.c (handle_request): Fix spelling in log message. + Patch by Malcolm Parsons <malcolm.parsons@gmail.com>. + +2006-09-20 Ulrich Drepper <drepper@redhat.com> + + * inet/inet6_option.c: Also emit linker warnings for the RFC 2292 + interfaces. + +2006-09-20 Andreas Jaeger <aj@suse.de> + + * math/libm-test.inc (lrint_test_upward): Fix typo. + +2006-06-17 Joseph S. Myers <joseph@codesourcery.com> + + [BZ #2592] + * math/libm-test.inc (lrint_test_tonearest): New function. + (lrint_test_towardzero): New function. + (lrint_test_downward): New function. + (lrint_test_upward): New function. + (main): Run these new tests. + * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding + of values near to 0. + (two52): Use double not long double. + * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise. + * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise. + (two23): Use float not double. + * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise. + (two23): Use float not double. + * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise. + * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise. + * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise. + * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise. + +2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com> + + * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext): + Cast sp to unsigned long to avoid compiler warning. + Use __makecontext_ret function instead of a trampoline on the stack. + (__makecontext_ret): New function. + * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise. + +2006-09-19 Jakub Jelinek <jakub@redhat.com> + + * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but + platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM + bits. + +2006-09-19 Ulrich Drepper <drepper@redhat.com> + + * elf/dl-close.c (_dl_close): If dependency is not unloaded make + sure no reference to the unloaded map's search list remains in the + dependency's scope. + +2006-09-16 Jakub Jelinek <jakub@redhat.com> + + * elf/Makefile: Add rules to build and run unload7 test. + * elf/unload7.c: New test. + * elf/unload7mod1.c: New file. + * elf/unload7mod2.c: New file. + +2006-09-18 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto. + * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS, + PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. + * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS, + PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise. + * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS, + PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise. + * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS, + PTRACE_GETEVENTMSG): Likewise. + (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent + values. -2004-08-04 Jakub Jelinek <jakub@redhat.com> - Ulrich Drepper <drepper@redhat.com> - - * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input - characters than necessary. - -2004-08-05 Ulrich Drepper <drepper@redhat.com> - - * wcsmbs/Makefile (tests): Add tst-mbsrtowcs. - * wcsmbs/tst-mbsrtowcs.c: New file. - - * po/fr.po: Update from translation team. - -2004-08-04 Jakub Jelinek <jakub@redhat.com> - - * resolv/inet_pton.c (inet_pton4): Disallow octal numbers. Reported - by A. Guru <a.guru@sympatico.ca>. [BZ #295] - -2004-08-05 Ulrich Drepper <drepper@redhat.com> - - * po/nl.po: Update from translation team. - - * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4 - numeric address formats inet_addr knows. - (getaddrinfo): Allow AI_NUMERICSERV flag. - If neither IPv4 nor IPv6 interface is present we cannot make any - decision for AI_ADDRCONFIG. Fail if AI_NUMERICSERV is set and the - string is not just a number. Remove useless freeaddrinfo call. - * resolv/netdb.h (AI_NUMERICSERV): Define. - Based on a patch by a.guru@sympatico.ca. - -2004-08-04 Jakub Jelinek <jakub@redhat.com> - - * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure - instead of trying to initialize some, but not all, fields one by - one. - * stdio-common/printf_size.c (printf_size): Initialize fb_info - structure with *info instead of trying to initialize some, but not - all, fields from it. - - * nscd/connections.c (handle_request): Check if req->type is in - LASTDBREQ .. LASTREQ range instead of req. - - * locale/programs/linereader.c (lr_create): Initialize - lr->return_widestr to 0. - - * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section. - (free_mem): Call free_slotinfo just once. - - * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead - of NULL. - - * locale/localeinfo.h (_nl_locale_subfreeres): New prototype. - * locale/setlocale.c (free_category): Add __libc_freeres_fn_section. - (free_mem): Rename to _nl_locale_subfreeres. - * iconv/gconv_db.c: Include locale/localeinfo.h. - (free_derivation, free_modules_db): Add __libc_freeres_fn_section. - (free_mem): Call _nl_locale_subfreeres. - * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section. - -2004-08-04 Roland McGrath <roland@frob.com> - - * Makeconfig ($(common-objpfx)config.status): - Fix typo: $(add_ons) -> $(add-ons). - (Makeconfig-add-on): New variable. When doing $(sysdep-makeconfigs) - include, use black magic to get it set to an add-on's name during the - include of the add-on's Makeconfig. - - * configure.in: Use variable name `libc_add_on' when sourcing add-on - configure fragments, so they can refer to this. - * configure: Regenerated. - -2004-08-04 Roland McGrath <roland@redhat.com> - - * posix/tst-waitid.c (test_child): Sleep a second before stopping. - (do_test): Bump sleep to three seconds. - (sigchld, check_sigchld): New functions. - (do_test): Handle SIGCHLD and check for getting the right details. - - * posix/tst-waitid.c (do_test): Kill the child process when bailing - out early on some failure. - [WCONTINUED]: Test WCONTINUED functionality. - -2004-08-03 Ulrich Drepper <drepper@redhat.com> - - * nscd/connections.c (handle_request): Print more descriptive - message for invalid request types. - -2004-08-02 Jakub Jelinek <jakub@redhat.com> - - * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff. - Always treat high as highest number in range + 1. - * iconvdata/ibm943.c (BODY): Likewise. - -2004-07-31 Bruno Haible <bruno@clisp.org> - - * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004. - * iconvdata/jisx0213.c (__jisx0213_to_ucs_main, - __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1, - __jisx0213_from_ucs_level2): Regenerated. - * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function. - * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from - JISX0213_1_set. - (JISX0213_1_2004_set): New enum value. - (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O. - (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O - when possible, ESC $ ( Q when needed. - * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters. - * iconvdata/testdata/EUC-JISX0213..UTF8: Update. - * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters. - * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update. - * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters. - * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update. - -2004-07-22 Bruno Haible <bruno@clisp.org> - - * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003. - -2004-07-29 David S. Miller <davem@redhat.com> - - * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize - better for smaller than 256 byte copies. Also, use only one - unrolled loop instead of two for the large copy case. - -2004-07-30 Richard Henderson <rth@redhat.com> - - * sysdeps/alpha/divq.S: Save t3 before it gets clobbered. - * sysdeps/alpha/remq.S: Likewise. - * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the - new division algorithms in divl.S and divq.S respectively. - -2004-07-28 GOTO Masanori <gotom@debian.or.jp> - - * timezone/asia: Update from tzdata2004b. - * timezone/backward: Likewise. - * timezone/europe: Likewise. - * timezone/iso3166.tab: Likewise. - * timezone/leapseconds: Likewise. - * timezone/northamerica: Likewise. - * timezone/southamerica: Likewise. - * timezone/zone.tab: Likewise. - - * timezone/private.h: Update from tzcode2004b. - * timezone/zic.c: Likewise. - -2004-07-27 Ulrich Drepper <drepper@redhat.com> - - * nscd/grpcache.c (cache_addgr): If necessary, add entry also - under the name the user provided. - * nscd/pwdcache.c (cache_addpw): Likewise. - -2004-07-26 Roland McGrath <roland@redhat.com> - - * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for - call to __waitpid. - -2004-07-26 Ulrich Drepper <drepper@redhat.com> - - * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to - memory leaks. +2006-09-17 Mike Frysinger <vapier@gentoo.org> + + * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS, + PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. + * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS, + PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO. + +2006-09-16 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't + write '\0' to the fd. + * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise. + * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise. + Change regs to unsigned long pointer from unsigned int, fix fscr + offset. + +2006-09-14 Jakub Jelinek <jakub@redhat.com> + + * io/Makefile (CFLAGS-fstatat.c): Set. + (CFLAGS-fstatat64.c): Likewise. + (CFLAGS-mknodat.c): Likewise. + + * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes. + * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise. + * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten. + * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten. + +2006-09-14 Jakub Jelinek <jakub@redhat.com> + Steven Munroe <sjmunroe@us.ibm.com> + + * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap + names to the beginning. Rename "cell" to "cellbe". + (_dl_powerpc_platforms): New. + * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease. + (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell. + (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define. + (_DL_HWCAP_PLATFORM): Define to new mask. + (_dl_platform_string, _dl_string_platform): New functions. + * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT, + PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define. + +2006-09-12 Jakub Jelinek <jakub@redhat.com> + + [BZ #2526] + * README.libm: Fix a thinko in sqrt algorithm description. + + [BZ #3143] + * manual/string.texi (argz_delete): Fix prototype. + Patch by <alpt@freaknet.org>. + +2006-08-26 Joseph Myers <joseph@codesourcery.com> + + [BZ #3138] + * io/test-lfs.c (do_prepare): Give name_len type size_t. + * io/tst-fcntl.c (do_prepare): Likewise. + * posix/tst-exec.c (do_prepare): Likewise. + * posix/tst-preadwrite.c (do_prepare): Likewise. + * posix/tst-spawn.c (do_prepare): Likewise. + * posix/tst-truncate.c (do_prepare): Likewise. + * rt/tst-aio.c (do_prepare): Likewise. + * rt/tst-aio64.c (do_prepare): Likewise. + * stdlib/test-canon2.c (do_prepare): Give test_dir_len type + size_t. + +2006-09-09 Ulrich Drepper <drepper@redhat.com> + + [BZ #2821] + * time/mktime.c (guess_time_tm): Fix overflow detection. + * time/Makefile (tests): Add bug-mktime1. + * time/bug-mktime1.c: New file. + + [BZ #3189, #3188] + * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE. + (mremap): Likewise. + +2006-09-07 Jakub Jelinek <jakub@redhat.com> + + [BZ #1006] + * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): + Ensure relocation doesn't clobber any bits outside of the + immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30, + R_SPARC_HI22 and R_SPARC_H44. + + [BZ #2775] + * malloc/malloc.c (sYSMALLOc): Only call grow_heap if + (long) (MINSIZE + nb - old_size) is positive. + + * malloc/arena.c (grow_heap): When growing bail even if new_size + is negative. - * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for - new buffer at the right time. - Reported by Jakub Bogusz <qboosh@pld-linux.org>. + [BZ #3155] + * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access + stack below r1. -2004-07-25 Ulrich Drepper <drepper@redhat.com> +2006-09-06 Jakub Jelinek <jakub@redhat.com> - * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter, - getsourcefilter, setipv4sourcefilter, and setsourcefilter. - * inet/Makefile (routines): Likewise. - * inet/netinet/in.h: Add prototypes for getipv4sourcefilter, - getsourcefilter, setipv4sourcefilter, and setsourcefilter. - * sysdeps/generic/getipv4sourcefilter.c: New file. - * sysdeps/generic/setipv4sourcefilter.c: New file. - * sysdeps/generic/getsourcefilter.c: New file. - * sysdeps/generic/setsourcefilter.c: New file. + * posix/regex_internal.c (re_string_reconstruct): Handle + offset < pstr->valid_raw_len && pstr->offsets_needed case. + Ensure no bytes read before raw_mbs array. Pass a saved copy of + pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to + re_string_context_at. + * posix/Makefile: Add rules to build and run bug-regex26 test. + * posix/bug-regex26.c: New test. -2004-07-17 Steven Munroe <sjmunroe@us.ibm.com> + * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free + rather than col_sym_free. Move seqp declaration earlier. - * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling - for POWER4 machines. + * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized. -2004-07-21 Jakub Jelinek <jakub@redhat.com> +2006-09-05 Jakub Jelinek <jakub@redhat.com> - [BZ #274] - * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >= - BITS_PER_MP_LIMB shifting up. - * stdlib/tst-strtod.c (main): Add new tests. + * nscd/initgrcache.c (addinitgroupsX): Move any_success + decl before first goto out. -2004-07-23 Jakub Jelinek <jakub@redhat.com> +2006-09-04 Jakub Jelinek <jakub@redhat.com> - [BZ #282] - * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of - _IO_no_init. Remove wd from struct locked_FILE. - (_IO_wproc_jumps): Remove. - Reported by Andrew Josey <a.josey@opengroup.org>. - * stdio-common/Makefile (tests): Add tst-popen. - * stdio-common/tst-popen.c: New test. + * Makerules (shlib.lds): If have-hash-style, put .hash section + at the end of the RO segment. -2004-07-23 Ulrich Drepper <drepper@redhat.com> +2006-09-04 Ulrich Drepper <drepper@redhat.com> - * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and - _POSIX_OPEN_MAX. Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX, - _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX. - Reported by Andrew Josey. + * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new + style hash table format is used. - * include/features.h: Document _POSIX_C_SOURCE == 200112L. +2006-09-04 Jakub Jelinek <jakub@redhat.com> - * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined. - * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined. - * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t, - off_t, time_t, and uid_t if __USE_XOPEN2K is defined. - * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined. - * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and - useconds_t if __USE_XOPEN2K is defined. - * io/utime.h: Define time_t if __USE_XOPEN2K is defined. - * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined. + * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after + randomization rather than before. + * resolv/res_init.c (res_randomid): Don't call gettimeofday here. -2004-07-19 Thorsten Kukuk <kukuk@suse.de> +2006-08-31 Jakub Jelinek <jakub@redhat.com> - * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't - allocate memory for large temporary variables with alloca. + * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so. -2004-07-22 Ulrich Drepper <drepper@redhat.com> + * malloc/malloc.c (_int_malloc): Use full list insert and not + shortcut which assumes the list is empty for large requests + too. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility - code must have version GLIBC_2.0. Patch by Dwayne McConnell. + * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf". - * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL - pointer and zero length. +2006-08-30 Jakub Jelinek <jakub@redhat.com> -2004-07-21 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin + and offout arguments to the prototype. + * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise. + * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise. + * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise. + * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise. + * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise. + * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise. + * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise. + * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string. - * nscd/cache.c (prune_cache): Print correct list when debugging. +2006-08-28 Ulrich Drepper <drepper@redhat.com> -2004-07-21 Jakub Jelinek <jakub@redhat.com> + * elf/dl-load.c (_dl_init_paths): Expand DSTs. - * resolv/res_libc.c (res_init): If RES_INIT is set and - _res.nscount > 0, call __res_nclose and free nsaddrs. - * resolv/Makefile: Add rules to build and run tst-leaks2. - * resolv/tst-leaks2.c: New test. + * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in + dlopen parameters. -2004-07-21 Ulrich Drepper <drepper@redhat.com> +2006-08-28 Jakub Jelinek <jakub@redhat.com> - * intl/libintl.h: Don't define macros for C++. - Patch by Goto Masanori. - -2004-07-22 GOTO Masanori <gotom@debian.or.jp> - - [BZ #276] - * include/arpa/inet.h: Change inet_aton type from in_addr_t to int. - * inet/arpa/inet.h: Likewise. - * resolv/inet_addr.c: Likewise. - -2004-07-21 Alexandre Oliva <aoliva@redhat.com> - - * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop. - -2004-07-20 Roland McGrath <roland@redhat.com> - - * configure.in (add_ons): Substitute this. Move $add_ons handling - after AC_CANONICAL_HOST and default setting of $machine et al. - Don't set $subdirs from $add_ons. - Instead, source add-on/configure fragments early on. - (base_machine): If it's already set, don't set it based on $machine. - (libc_config_ok): New variable, set to no. If an add-on fragment sets - it to yes, skip the tuple sanity check as if --enable-hacker-mode. - (sysnames): Try appending add-on names after machine as well. - * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@. - * Makeconfig ($(common-objpfx)config.status): Also depend on configure - files in $(add_ons) dirs. - - * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove - definition, now in netinet/in.h proper. - -2004-07-20 Alexandre Oliva <aoliva@redhat.com> - - * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h): - Sort by syscalls. Make sure we get headers such as sgidefs.h from - the build tree before just-installed ones. - - * sysdeps/mips/atomicity.h: Use standard names for ABI macros, - include sgidefs.h where appropriate. - * sysdeps/mips/dl-machine.h: Likewise. - * sysdeps/mips/machine-gmon.h: Likewise. - * sysdeps/mips/bits/setjmp.h: Likewise. - * sysdeps/mips/fpu/bits/mathdef.h: Likewise. - * sysdeps/mips/mips64/__longjmp.c: Likewise. - * sysdeps/mips/mips64/setjmp_aux.c: Likewise. - * sysdeps/unix/sysv/linux/mips/kernel_stat.h: 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/sigcontextinfo.h: Likewise. - * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise. - * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise. - * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise. - * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise. - * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise. - * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise. - * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise. - * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise. - * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h): - Likewise. - * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): - Likewise. + * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno + only if herrno is NETDB_INTERNAL. Handle errors other than + ERANGE outside of the loops, handle TRY_AGAIN. - * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use - _dl_lookup_symbol_x. - (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error. - -2004-07-20 Ulrich Drepper <drepper@redhat.com> - - * inet/netinet/in.h: Define struct ip_mreq and struct - ip_mreq_source. - Define struct group_req and struct group_source_req. - * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE, - IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP, - IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP, - MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP, - MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and - MCAST_MSFILTER. - Define MCAST_INCLUDE and MCAST_EXCLUDE. - - * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244]. - -2004-07-19 Jakub Jelinek <jakub@redhat.com> - - [BZ #258] - * math/libm-test.inc (max_value, min_value): New variables. - (initialize): Initialize them. - (pow_test): Add a couple of new tests. - * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid - exception if |y| >= 1U<<31. - * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid - exception if |y| >= 1L<<63. - * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise. - If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN. - * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise. - -2004-07-18 Ulrich Drepper <drepper@redhat.com> + * locale/programs/ld-ctype.c (translit_flatten): Issue error + if other's ctype category was missing. + * locale/programs/ld-collate.c (collate_read): Return if + copy_locale's collate category is missing. - * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful - lookup a bit. - * nscd/grpcache.c (cache_addgr): Likewise. - * nscd/hstcache.c (cache_addhst): Likewise. +2006-08-27 Ulrich Drepper <drepper@redhat.com> -2004-07-10 GOTO Masanori <gotom@debian.or.jp> + [BZ #2684] + * malloc/malloc.c (public_rEALLOc): Try harder by using other + arenas if allocation failed. + Patch mostly by Jan Edler <jan.edler@indexengines.com>. - * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw. - * sysdeps/s390/s390-64/elf/start.S: Likewise. +2006-08-26 Ulrich Drepper <drepper@redhat.com> -2004-04-16 Andreas Schwab <schwab@suse.de> - - * sysdeps/ia64/bits/atomic.h: Cast first argument of - __sync_bool_compare_and_swap_si correct to void*. - -2004-07-17 Ulrich Drepper <drepper@redhat.com> - - * iconv/iconv_prog.c (print_known_names): Make machine-readable - output even less cluttered. + * malloc/malloc.c (bin_at): Rewrite to be more clear and to not + waste bins[0..1]. + (malloc_state): Reduce bins size by 2. + (_int_malloc): Fix test for large enough buffer for early termination. + When no unsorted block matches perfectly and an exiting block has + to be split, use full list insert and not shortcut which assumes + the list is empty. -2004-07-16 Steven Munroe <sjmunroe@us.ibm.com> - - [BZ #269] - * setjmp/Makefile (tests): Add bug269-setjmp. - * setjmp/bug269-setjmp.c: New file. - * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]: - Store R2 from jmpbuf in callers TOC save area. - * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]: - Store R2 in TOC save area. - * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]: - Copy TOC save area from previous frame as R2 (TOC) in jmpbuf. + * locale/programs/ld-ctype.c (ctype_read): Better patch for read + failure. -2004-07-16 Jakub Jelinek <jakub@redhat.com> +2006-08-24 Ulrich Drepper <drepper@redhat.com> - * locale/newlocale.c: Include bits/libc-lock.h. - (__libc_setlocale_lock): Extern decl. - (__newlocale): Use it. - Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>. + * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't + do anything. -2004-07-15 Jakub Jelinek <jakub@redhat.com> + * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined + symbol require exact match (these are PLTs). + * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h + (_dl_ppc64_addr_sym_match): Likewise. - * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove - static inline __attribute ((always_inline)). Don't define if - NO_CANCELLATION. - (__libc_fcntl): Use INLINE_SYSCALL directly instead of - __fcntl_nocancel. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel): - Remove static inline __attribute ((always_inline)). Don't define - if NO_CANCELLATION. - (__libc_fcntl): Use INLINE_SYSCALL directly instead of - __fcntl_nocancel. - * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to - __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0. - Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0. - (__libc_fcntl): Don't define if __fcntl_nocancel is a macro. + [BZ #2683] + * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols. + If symbol has a value use it. + * elf/tst-dladdr1.c: New file. + * elf/Makefile: Add rules to build and run tst-addr1. - [BZ #262] - * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF - for main. - * elf/Makefile: Add rules to build and run tst-pie1. - * elf/tst-pie1.c: New test. - * elf/tst-piemod1.c: New file. +2006-08-24 Jakub Jelinek <jakub@redhat.com> -2004-07-14 Jakub Jelinek <jakub@redhat.com> + * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP + keeps failing and heap growth or new heap creation isn't + successful either. + * malloc/tst-malloc.c (main): Add new tests. - [BZ #266] - * manual/string.texi (l64a): Note that the static buffer is 7 bytes - long. Rewrite example code so that it takes into account l64a output - shorter than 6 characters. - Reported by Julian Graham <julian.graham@aya.yale.edu>. +2006-08-24 Ulrich Drepper <drepper@redhat.com> -2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp> + [BZ #2734] + * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions + as in the x86-64 code to use bswap. - * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here. - (elf_machine_rela_relative): Remove unused valiable. +2006-05-21 Joseph S. Myers <joseph@codesourcery.com> -2004-07-12 Paul Eggert <eggert@cs.ucla.edu> + [BZ #2680] + * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not + __USE_UNIX98. + * posix/bits/unistd.h: Likewise. - [BZ #263] - * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store - outside the buffer if the read returns 0. __strtod_l can't set - endp to NULL, so remove a test for that case. +2006-05-15 Mike Frysinger <vapier@gentoo.org> -2004-07-12 Roland McGrath <roland@redhat.com> + [BZ #2751] + * string/strchr.c: Add cast to avoid warning. - * manual/signal.texi (Interrupted Primitives): Make clear that - TEMP_FAILURE_RETRY evaluates its expression as long int and compares - it to -1 to define "failure". +2006-08-21 Ulrich Drepper <drepper@redhat.com> -2004-07-10 Ulrich Drepper <drepper@redhat.com> + * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit + platforms define as 512K. For 64-bit platforms as 32MB. The lower + limit is needed to avoid the exploding of the address space + requirement for secondary heaps. + * malloc/arena.c (HEAP_MAX_SIZE): Define using + DEFAULT_MMAP_THRESHOLD_MAX if it is defined. - * elf/ldconfig.c: Define PROCINFO_CLASS as static before including - ldsodefs.h. - * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not - already defined. - * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not - already defined. +2006-07-30 Joseph S. Myers <joseph@codesourcery.com> - * elf/rtld.c (print_statistics): Mark with noinline attribute. - * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline - attribute. - (elf_machine_rel_relative): Likewise. + [BZ #3018] + * Makerules (depfiles): Handle extra-test-objs the same as + extra-objs. + (common-mostlyclean): Likewise. + * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs + instead. + * elf/Makefile (extra-objs): Likewise. + * stdlib/Makefile (extra-objs): Likewise. - * include/string.h: Add libc_hidden_proto for __strtok_r and - __strsep_g. - * sysdeps/generic/strsep.c: Add libc_hidden_def. - * sysdeps/generic/strtok_r.c: Likewise. - * sysdeps/i386/strtok_r.S: Add alias for internal symbol. - * sysdeps/i386/i686/strtok_r.S: Likewise. - * sysdeps/x86_64/strtok_r.S: Likewise. +2006-08-14 Eric Blake <ebb9@byu.net> -2004-07-09 Alexandre Oliva <aoliva@redhat.com> + [BZ #3044] + * misc/error.h: Assume C89 or better. + * misc/error.c: Likewise. - * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden - instead of internal-linkage, such that we can alias to it. - (internal_endnetgrent, internal_getnetgrent_r): Likewise. +2006-08-21 Ulrich Drepper <drepper@redhat.com> -2004-07-09 Ulrich Drepper <drepper@redhat.com> + [BZ #3040] + * sysdeps/unix/sysv/linux/openat.c: Fix compilation if + __ASSUME_ATFCTS is defined. - * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute - to the front for gcc 3.5+. - * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise. - * include/fcntl.h: Don't declare __fcntl_nocancel here if - NO_CANCELLATION is defined. +2006-08-19 Ulrich Drepper <drepper@redhat.com> -2004-07-07 Jakub Jelinek <jakub@redhat.com> + * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks + to sort in each call. - * elf/dl-fini.c (_dl_fini): Add nloaded variable, load - GL(dl_nloaded) into it while still in critical section. + * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map + is empty simply return and use next service. + * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise. -2004-07-06 Thorsten Kukuk <kukuk@suse.de> + * locale/programs/charmap.c (charmap_read): Add new parameter. It + tells us when not finding a charmap file is an error. + * locale/programs/charmap.h: Adjust charmap_read prototype. + * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we + cannot find a charmap. + * locale/programs/localedef.c (main): Adjust charmap_read call. - * nss/getent.c (print_group, print_passwd): Use %lu format for - `unsigned long int' values. +2006-08-15 Jakub Jelinek <jakub@redhat.com> - * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax - error typos in goto statements. + * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use + sysdeps/posix/pause.c implementation instead. -2004-07-07 Roland McGrath <roland@frob.com> +2006-08-09 Jakub Jelinek <jakub@redhat.com> - * Makefile (dist-separate): New variable. - (glibc-%.tar rule): Make separate tar files for add-ons listed there. - Depend on their configure files. - (dist-do-separate-dirs): New canned sequence to do that. - (dist-separate-libidn, dist-separate-linuxthreads): New variables. - (dist): Depend on add-on tar files based on $(dist-separate). - (dist-version): New variable, default to $(version). - (tag-for-dist, dist): Use that in place of $(version) in deps. + * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority + to EPERM. -2004-07-07 Ulrich Drepper <drepper@redhat.com> +2006-08-13 Andreas Schwab <schwab@suse.de> - * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock - before the loop running the destructors. + * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve): + Don't clobber caller's LRSAVE. + (_dl_prof_resolve): Likewise. -2004-05-18 Andreas Schwab <schwab@suse.de> +2006-08-14 Ulrich Drepper <drepper@redhat.com> - * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of - the first segment for mprotect, not l_text_end. + [BZ #1996] + * libio/memstream.c (open_memstream): Allocate initial buffer with + calloc. + * libio/wmemstream.c (open_wmemstream): Likewise. + * libio/strops.c: Pretty printing. + (_IO_str_overflow): Clear uninitialized part of the new buffer. + (enlarge_userbuf): New function. + (_IO_str_seekoff): Call it if seek position is larger than current + buffer. + * libio/wstrops.c: Likewise. + * libio/vasprintf.c: Add comment as to why we do not have to use + calloc instead of malloc to allocate initial buffer. + * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1. + * libio/bug-memstream1.c: New file. + * libio/bug-wmemstream1.c: New file. -2004-07-05 Ulrich Drepper <drepper@redhat.com> - - * elf/dl-profile.c (_dl_start_profile): Compact error handling. - Remove hashfraction variable. Make kcount and kcountsize local - variables. +2006-08-13 Ulrich Drepper <drepper@redhat.com> - * elf/dl-init.c: Don't define and use _dl_starting_up if - HAVE_INLINED_SYSCALLS is defined and the variable is not used. - * elf/dl-support.c: Likewise. - * elf/rtld.c: Likewise. - * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly - if HAVE_INLINED_SYSCALLS is defined. - * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up - here. - * sysdeps/powerpc/powerpc32/dl-start.S: Likewise. - * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS. - * config.h.in: Add entry for HAVE_INLINED_SYSCALLS. - - * sysdeps/posix/profil.c: If compiled for ld.so, omit code which - is needed to stop profiling. - * elf/dl-open.c (dl_open_worker): If a newly opened object is to be - profile make sure it cannot be unloaded. - - * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall. - - * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation - support, make sure the helper function is inlined. - * sysdeps/unix/sysv/linux/pread.c: Likewise. - * sysdeps/unix/sysv/linux/pwrite.c: Likewise. - * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise. - -2004-07-05 Jakub Jelinek <jakub@redhat.com> - - * include/string.h (ffs): Add libc_hidden_builtin_proto. - * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def. - * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise. - * sysdeps/alpha/ffs.S (ffs): Likewise. - * sysdeps/s390/ffs.c (ffs): Likewise. - * sysdeps/powerpc/ffs.c (ffs): Likewise. - * sysdeps/i386/ffs.c (ffs): Likewise. - * sysdeps/i386/i686/ffs.c (ffs): Likewise. - * sysdeps/m68k/ffs.c (ffs): Likewise. - * sysdeps/generic/ffs.c (ffs): Likewise. - * sysdeps/m88k/ffs.c (ffs): Likewise. - * sysdeps/am29k/ffs.c (ffs): Likewise. - * sysdeps/i960/ffs.c (ffs): Likewise. - * sysdeps/x86_64/ffs.c (ffs): Likewise. - - * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0. - - * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp, - __libc_siglongjmp): Remove symbol_version. - * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp): - Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4. - * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias - unconditionally. - * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove. - * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use - strong_alias instead of default_symbol_version, remove - symbol_version. - * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise. - * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change - into strong_alias to __novmxsetjmp. - (__vmx__setjmp): Similarly with __vmxsetjmp. - (__setjmp): Make it strong_alias to __vmx__setjmp, remove - default_symbol_version and symbol_version. - * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change - into strong_alias to __novmxsetjmp. - (__vmx__setjmp): Similarly with __vmxsetjmp. - (__setjmp): Make it strong_alias to __vmx__setjmp, remove - default_symbol_version and symbol_version. - - * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h. - -2004-07-05 Ulrich Drepper <drepper@redhat.com> - - * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro. - -2004-07-04 Matthew Reppert <arashi@kai.vm.bytemark.co.uk> - - * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver - instead of libc_hidden_def. - -2004-07-01 Roland McGrath <roland@redhat.com> - - * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT. - - * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level - $(..)shlib-versions file to last in deps list. This lets add-ons give - more-specific matches that override defaults in the top-level file. - - * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was - already set, don't set it or libc_cv_gcc_unwind_find_fde. - * sysdeps/unix/sysv/linux/configure: Regenerated. - -2004-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com> - - * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES] - (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction. - (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction. - * sysdeps/s390/fpu/e_sqrt.c: New file. - * sysdeps/s390/fpu/e_sqrtf.c: New file. - * sysdeps/s390/Implies: New file. - * sysdeps/s390/s390-32/Implies: Remove ieee754, move - ieee754/dbl-64 and ieee754/flt-32 to s390/Implies. - * sysdeps/s390/s390-64/Implies: Likewise. - -2004-06-30 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h. - * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise. - - * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start): - DO_CALL (exit, 1) instead of branching to _exit. - * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start): - Likewise. + * libio/wstrops.c: Remove dead macro definitions and comments. + * libio/strops.c: Likewise. - * sysdeps/s390/fpu/bits/mathinline.h: New file. + [BZ #2764] + * login/utmpname.c (__utmpname): Remove unnecessary test. - * include/glob.h (glob64): Add libc_hidden_proto. - * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def. - * sysdeps/gnu/glob64.c (glob64): Likewise. - * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise. +2006-06-08 Joseph Myers <jsm28@gcc.gnu.org> -2004-06-11 Jakub Jelinek <jakub@redhat.com> + [BZ #2832] + * math/gen-libm-test.pl (clean_up_number): Do not remove trailing + 0s from integers. - * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4. - * sysdeps/s390/fpu/libm-test-ulps: Likewise. +2006-08-13 Ulrich Drepper <drepper@redhat.com> -2004-06-11 Dwayne Grant McConnell <dgm69@us.ibm.com> + [BZ #2987] + * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall + for CPU clocks. + * sysdeps/unix/clock_settime.c: Add support for platform-specific + setting of CPU clocks. - * sysdeps/powerpc/fpu/s_lround.c: Removed. - * sysdeps/powerpc/fpu/s_lroundf.c: Removed. - * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file. - * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file. - * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file. - * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file. - * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed. - * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file. - * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file. - * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file. - * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file. - * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file. - * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file. - * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file. - * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file. - * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file. +2006-06-23 Paul Eggert <eggert@cs.ucla.edu> -2004-06-30 Ulrich Drepper <drepper@redhat.com> + [BZ #2841] + * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U', + since C99 requires the result to promote to 'int' when uint_least8_t + and uint_least16_t promote to 'int'. - * include/net/if.h: Handle if_nameindex and if_freenameindex with - libc_proto_hidden. - * sysdeps/unix/sysv/linux/netlinkaccess.h: New file. - * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions. - * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using - netlink if possible. Fall back on ioctl method if necessary. - * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h. +2006-08-12 Ulrich Drepper <drepper@redhat.com> - * include/unistd.h: Declare __truncate. - * sysdeps/generic/truncate.c: Also define __truncate. - * sysdeps/mach/hurd/truncate.c: Likewise. - * sysdeps/unix/common/syscalls.list: Likewise. - * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate. + [BZ #3013] + * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix + lenght of one output field, correct bitmask creation. + * locale/programs/ld-time.c: Add alignment. -2004-06-29 Ulrich Drepper <drepper@redhat.com> + [BZ #2997] + * misc/error.c: Add space between program name and message if file + name is missing. - * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize - info.extra. Patch by Marcus Meissner. +2006-08-03 Eric Blake <ebb9@byu.net> -2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp> + [BZ #2998] + * misc/error.c (error_tail) [_LIBC]: Avoid invalid free. - * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER): - Fix branch offset for a PLT entry. +2006-08-09 Ulrich Drepper <drepper@redhat.com> -2004-06-20 Jim Meyering <jim@meyering.net> + * malloc/memusagestat.c: Silence warnings. - * malloc/obstack.h (obstack_base): Cast to `void *', to align with - documentation. + * malloc/malloc.c: Dynamically size mmap treshold if the program + frees mmaped blocks. + Patch by Valerie Henson and Arjan van de Ven. -2004-06-28 Ulrich Drepper <drepper@redhat.com> +2006-08-08 Jakub Jelinek <jakub@redhat.com> - * inet/bug-if1.c (do_test): Simply use 0 as invalid index. - Workaround for [BZ #232]. + * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with + __USE_GNU. - * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca. + * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab, + __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare. + (DEF): Don't put the var into .gnu.linkonce.r.* section. + Only provide var definitions in strtol_l (or for *ull* + in strtoll_l). -2004-06-28 GOTO Masanori <gotom@debian.or.jp> + * stdio-common/bug16.c (tests): New array. + (do_tests): Allow the first hexadecimal digit + to be 1, 2, 4 or 8. Do 3 additional tests. - * iconv/gconv_simple.c: Use get16/put16 for user given buffer - in ucs2/ucs2reverse when unaligned memory access is attempted. - * iconv/tst-iconv5.c: New file. - * iconv/Makefile (tests): Add tst-iconv5. + * sysdeps/s390/fpu/libm-test-ulps: Update. -2004-06-28 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use + fchownat syscall if available. + * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise. + * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise. + * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise. - * inet/bug-if1.c: Include <string.h>. +2006-08-07 Ulrich Drepper <drepper@redhat.com> -2004-06-19 Roland McGrath <roland@redhat.com> + * nis/nis_xdr.c: Avoid some function calls. - * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function - under this macro name instead. - [NO_DO_WAITID]: Don't define it at all. - (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are - defined, then return ENOTSUP for combinations of selection bits other - than WEXITED and WEXITED|WSTOPPED, which this version cannot support. +2006-08-07 Jakub Jelinek <jakub@redhat.com> + Ulrich Drepper <drepper@redhat.com> - * posix/tst-waitid.c: New file. - * posix/Makefile (tests): Add it. + * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take + short cut if only one name component is stripped away. + +2006-08-07 Ulrich Drepper <drepper@redhat.com> + + * nis/nis_call.c: Minor cleanups throughout. + (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array. + (first_shoot): Add search_parent_first parameter. Only if it is set + search parent server first. + If directory for table found through cold start cache is not the same + as referenced in the cache, don't use it. + (__nisfind_server): Take additional parameter. Pass it on to + first_shoot. + (__prepare_niscall): Adjust __nisfind_server call. + * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype. + * nis/nis_table.c: Adjust __nisfind_server call. + * nis/nis_lookup.c: Likewise. + (nis_lookup): Don't loop endlessly if name is reduced to ".". -2004-06-28 Jakub Jelinek <jakub@redhat.com> +2006-08-03 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo. + [BZ #2182] + * math/s_cacosh.c: Return values from positive branch. + * math/s_cacoshf.c: Likewise. + * math/s_cacoshl.c: Likewise. - [BZ #231] - * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp - relocation in librt.so. + [BZ #2883] + * sysvipc/sys/msg.h: Change return value to ssize_t. + * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. + * sysvipc/msgrcv.c: Likewise. + * include/sys/msg.h: Likewise. - [BZ #230] - * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load - _dl_skip_args. Patch by Jakub Bogusz <qboosh@pld-linux.org>. + * grp/initgroups.c (internal_getgrouplist): Remove unnecessary + test introduced in patch for bz #661. + (getgrouplist): Simplify code a bit. Don't allocate one additional + element for NEWGROUPS. -2004-06-27 Ulrich Drepper <drepper@redhat.com> + [BZ #2908] + * stdio-common/printf_fphex.c (__printf_fphex): When rounding up + 'f', use '1' as leading digit not '\1'. + * stdio-common/Makefile (tests): Add bug16. + * stdio-common/bug16.c: New file. - * elf/ldconfig.c (add_dir): Take chroot into account. - Based on changes by HJ Lu and Hideki Iwamoto. + [BZ #2914] + * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE + and don't try to open it. The patch introducing the macro + contained a bug and used the same file name as the new file + instead of using /var/adm/hostid. Nobody complaint so I'm taking + this out completely. - * nscd/connections.c (invalidate_cache): If the host cache has to - be invalidated, re-read resolv.conf. + [BZ #2926] + * assert/assert.h: Move cast to void inside ?: to quiet gcc. + Patch by Jerry James <Jerry.James@usu.edu>. - * resolv/resolv.h (RES_NOIP6DOTINT): Define. - * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option. - * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int - if RES_NOIP6DOTINT flag is set. - * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise. + * rt/Makefile (tests): Add tst-clock2. + * rt/tst-clock2.c: New file. -2004-06-25 Jakub Jelinek <jakub@redhat.com> + [BZ #2978] + * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread + function and its parameters and pass it to new thread. + (__gai_notify): Add support for alternative waiting for completion. + * resolv/gai_suspend.c (gai_suspend): Add support for alternative + waiting for completion. + * resolv/getaddrinfo_a.c: Likewise. + * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative + waiting for completion is used. + * resolv/gai_misc.c: Allow overwriting code to start helper thread. + * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h". + * resolv/gai_error.c: Likewise. + * resolv/gai_sigqueue.c: Likewise. - * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to... - * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here. - * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to... - * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file. +2006-08-02 Thomas Schwinge <tschwinge@gnu.org> - * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK, - F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64. + * hurd/getdport.c (__getdport): Don't return EBADF; instead set + errno to EBADF and return MACH_PORT_NULL. -2004-06-21 Jakub Jelinek <jakub@redhat.com> +2006-06-23 Joseph Myers <joseph@codesourcery.com> - [BZ #231] - * sysdeps/unix/alpha/Makefile: New file. - * sysdeps/unix/alpha/rt-sysdep.S: New file. - Reported by Jakub Bogusz <qboosh@pld-linux.org>. + [BZ #2980] + * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables. -2004-06-18 Ulrich Drepper <drepper@redhat.com> +2006-08-02 Ulrich Drepper <drepper@redhat.com> - * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME, - determine the canonical name only for the first returned entry. + * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present, + walk them instead of the symbol table. - * inet/bug-if1.c: New file. - * inet/Makefile (tests): Add bug-if1. +2006-08-01 Ulrich Drepper <drepper@redhat.com> -2004-06-18 Roland McGrath <roland@frob.com> + [BZ #2098] + * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by + status of NSS calls, not the number of returned entries. - * Makerules (compile-mkdep-flags): Add -MT $@. + * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key, + request_key, keyctl. - * Makefile (dist, tag-for-dist): New targets. - (files-for-dist, tag-of-stem): New variables. - (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule. - Make tar files using cvs export. - (%.bz2, %.gz, tag-%): New pattern rules. - (distribute): Variable removed. - (+subdir_targets): Remove distinfo targets. - (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed. - (rpm/%): Pattern rule removed. - * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed. - * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist): - Targets removed. - * Makerules (dist, subdir_distinfo): Targets removed. - ($(objpfx)distinfo): Depend on $(distribute). - * Make-dist: File removed. +2006-07-31 Ulrich Drepper <drepper@redhat.com> - * NEWS: Fix a typo. Update bug-reporting instructions. + * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include. -2004-06-17 Thorsten Kukuk <kukuk@suse.de> +2006-07-16 Jeff Bailey <jbailey@ubuntu.com> - * sysdeps/unix/sysv/linux/sched_setaffinity.c - (__sched_setaffinity_new): Set errno to EINVAL and return -1 if - cpuset is wrongly set. + * elf/tst-auditmod1.c: Fix typo in #error. -2004-06-15 Steven Munroe <sjmunroe@us.ibm.com> +2006-07-31 Ulrich Drepper <drepper@redhat.com> - * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling - for POWER4 machines. + * elf/tst-auditmod1.c: Remove code for unsupported architectures. -2004-06-14 Jakub Jelinek <jakub@redhat.com> + * iconvdata/run-iconv-test.sh: Run cmp in C locale. - [BZ #218] - * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next - in a local variable, point rp to that local variable afterwards. +2006-07-20 Adam Nemet <anemet@caviumnetworks.com> -2004-06-11 Jakub Jelinek <jakub@redhat.com> + * stdlib/test-canon.c (do_test): Close fd before unlinking file so + that the directory is empty even on non-POSIX filesystems. - * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special - cases properly. +2006-07-31 Ulrich Drepper <drepper@redhat.com> -2004-06-17 Ulrich Drepper <drepper@redhat.com> + * elf/dl-open.c (dl_open_worker): Add branch prediction. - * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct - error value for unknown interface. [BZ #198] + * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into + the backend NSS module. If backend setgrent call failed, don't have + internal_setgrent fail. Just remember this until it is needed. + * nis/nss_compat/compat-pwd.c: Likewise. + * nis/nss_compat/compat-spwd.c: Likewise. + +2006-07-30 Roland McGrath <roland@redhat.com> + + * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed. + * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed. + * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed. + * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed. + + * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro. + (nanosleep_not_cancel): New macro. + (sigsuspend_not_cancel): new macro. + * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS] + (do_sigsuspend): Define as inline. + (__sigsuspend): Always use do_sigsuspend. + [! NO_CANCELLATION] (__sigsuspend_nocancel): New function. + * include/signal.h: Declare __sigsuspend_nocancel. + * sysdeps/posix/pause.c + [! NO_CANCELLATION] (__pause_nocancel): New function. + + * include/unistd.h (__pause_nocancel): Add attribute_hidden. + * include/time.h (__nanosleep_nocancel): Likewise. + +2006-07-30 Ulrich Drepper <drepper@redhat.com> + + * locale/programs/localedef.c (add_to_readlist): Rename local + variables to avoid confusion. + + * locale/programs/charmap.c (charmap_read): Emit error message if + charmap couldn't be found or read. -2004-06-13 Jakub Jelinek <jakub@redhat.com> +2006-07-28 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/kernel-features.h: Define + __ASSUME_FUTEX_LOCK_PI. + * include/time.h: Declare __nanosleep_nocancel. + * include/unistd.h: Declare __pause_nocancel. - * sysdeps/i386/bits/string.h (memcpy): Add () around arguments. - (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c, - __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory - the asm uses as its input, either of size __n where __n is known or - 0xfffffff. - (strstr): Add "memory" clobber. + * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of + LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we + get the __stack_chk_fail_local definition when it's needed. -2004-06-14 Jakub Jelinek <jakub@redhat.com> +2006-07-26 Ulrich Drepper <drepper@redhat.com> - [BZ #219] - * nss/nsswitch.c (free_mem): Don't try to close a library handle - if the handle is invalid. Patch by David Kimdon <kimdon@esrf.fr>. + * dlfcn/Makefile: Add rules to build and run bug-atexit3. + * dlfcn/bug-atexit3.c: New file. + * dlfcn/bug-atexit3-lib.cc: New file. -2004-06-11 Dmitry V. Levin <ldv@altlinux.org> + * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be + used when the namespace is not the base namespace. - [BZ #217] - * debug/xtrace.sh: Fix typo in error diagnostics. +2006-07-26 Gavin Romig-Koch <gavin@redhat.com> -2004-06-14 Andreas Schwab <schwab@suse.de> + * stdlib/cxa_atexit.c (__new_exitfn_called): New variable. + (__new_exitfn): Bump it in every successful call. + * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered + more exit handlers, call them right away. + * stdlib/exit.h: Declare __new_exitfn_called. - * stdio-common/psignal.c (psignal): Don't use BUF when asprintf - failed. +2006-07-25 Ulrich Drepper <drepper@redhat.com> -2004-06-15 Steven Munroe <sjmunroe@us.ibm.com> + * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when + calling registered handler. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto - that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto - that clobbers r19. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto - that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: - Fix setting of sigcontext.v_regs. Fix pasto that clobbers r19. - Fix pasto that overflowed sigcontext.v_reserve. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: - Fix pasto that clobbers r19. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting - of sigcontext.v_regs. Fix pasto that clobbers r19. Fix pasto that - overflowed sigcontext.v_reserve. + * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment. + * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise. -2004-05-04 H.J. Lu <hongjiu.lu@intel.com> +2006-07-10 Ulrich Drepper <drepper@redhat.com> - [BZ #150] - * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r." - instead of ".gnu.linkonce.ro." as the prefix for linkonce - read-only section name. + * elf/dl-lookup.c (dl_new_hash): New functions. + (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute + value here. Compute new-style hash value. Pass new hash value + and reference to variable with the old value to do_lookup_x. + (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not + old-style hash table. + (_dl_debug_bindings): Pass new hash value and reference to variable + with the old value to do_lookup_x. + * elf/do-lookup.h (do_lookup_x): Accept additional parameter with + new-style hash value and change old-style hash value parameter to + be a reference. Reoganize functions to determine whether + new-style hash table is available. Only fall back on old-style + table. If old-style hash value is needed, compute it here. + * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH + entry. + * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT, + DT_TLSDEC_GOT. Adjust DT_ADDRNUM. + * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits, + l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero. + * Makeconfig: If linker supports --hash-style option add it to all + linker command lines to build DSOs. + * config.make.in: Define have-hash-style. + * configure.in: Test whether linker supports --hash-style option. -2004-06-14 Richard Henderson <rth@redhat.com> + * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const. + * sysdeps/generic/ldsodefs.h: Adjust prototype. - * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp". - (_ITOFT, _FTOIT, _ITOFT2): Likewise. +2006-06-27 Ulrich Drepper <drepper@redhat.com> -2004-06-08 Jakub Jelinek <jakub@redhat.com> + * elf/dl-load.c (open_path): Fix test to determine whether DSO is + auditing. - * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED. - (unwind_backtrace, unwind_getip): Define #ifndef SHARED. - (__backtrace): Don't call init #ifndef SHARED. - * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED. - (unwind_backtrace, unwind_getip): Define #ifndef SHARED. - (__backtrace): Don't call init #ifndef SHARED. - * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED. - (unwind_backtrace, unwind_getip): Define #ifndef SHARED. - (__backtrace): Don't call init #ifndef SHARED. + * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at + RPATH of main map twice. + +2006-06-22 Ulrich Drepper <drepper@redhat.com> + + * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't + look further, return original strings. + (_nl_find_msg): Do not return found translation if the conversion + failed. Either signal the string is unusable or that something went + wrong and the original should be used. -2004-06-11 Roland McGrath <roland@redhat.com> +2006-06-21 Ulrich Drepper <drepper@redhat.com> - * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian. - From Krzysztof Halasa <khc@pm.waw.pl>. + * string/_strerror.c (__strerror_r): Add __builtin_expect. -2004-06-10 Jakub Jelinek <jakub@redhat.com> +2006-06-14 Jakub Jelinek <jakub@redhat.com> - * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14. + [BZ #2766] + * misc/insremque.c (insque): Handle prev == NULL. + * misc/Makefile (tests): Add tst-insremque. + * misc/tst-insremque.c: New test. + +2006-06-17 Ulrich Drepper <drepper@redhat.com> + + [BZ #2792] + * elf/dl-deps.c (expand_dst): Rename __cnt variable to not + conflict with DL_DST_REQUIRED. + +2006-06-16 Ulrich Drepper <drepper@redhat.com> + + * nis/nis_subr.c (nis_getnames): Fix the implementation to better + match what Solaris does. + +2006-06-04 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and + local_setegid instead of seteuid and setegid. + * sysdeps/generic/local-setxid.h: New file. + * sysdeps/unix/sysv/linux/local-setxid.h: New file. + + * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces. + + * string/Makefile (tests): Add bug-envz1. + * string/bug-envz1.c: New file. + +2006-06-02 Jakub Jelinek <jakub@redhat.com> + + * posix/regex_internal.c (re_string_skip_chars): If no character has + been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc + to the byte which couldn't be converted. + (re_string_reconstruct): Don't clear valid_raw_len before calling + re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set + tip_context using re_string_context_at. + * posix/Makefile: Add rules to build and run bug-regex25 test. + * posix/bug-regex25.c: New test. + +2006-06-02 Ryan S. Arnold <rsa@us.ibm.com> + + [BZ #2703] + * string/envz.c (envz_strip): Correct erroneously reversed src + and dest parameters to memmove() invocation. + +2006-05-30 Jakub Jelinek <jakub@redhat.com> + + * nscd/nscd.h (prune_cache): Add fd argument to prototype. + * nscd/nscd.c (parse_opt): Read response from INVALIDATE request + to make sure the database has been already invalidated. + * nscd/cache.c (prune_cache): Add fd argument. Write response to fd + after the cache has been invalidated. Use pthread_mutex_lock rather + than pthread_mutex_trylock if fd != -1. + * nscd/connections.c (invalidate_cache): Add fd argument, write + response to fd if not calling prune_cache, pass fd to prune_cache. + (handle_request): Adjust invalidate_cache caller. + (nscd_run): Pass -1 as fd to prune_cache. + +2006-05-30 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in + the correct place. + +2006-05-29 Ulrich Drepper <drepper@redhat.com> + + * nscd/nscd.h (struct database_dyn): Add prunelock field. + * nscd/cache.c (prune_cache): Take prunelock before starting the + work. Just return in case it is already taken. + * nscd/connections.c (dbs): Initialize .prunelock. + +2006-05-25 Ulrich Drepper <drepper@redhat.com> + + * nis/nis_removemember.c (nis_removemember): Avoid unnecessary + copying. No need to allocate new array for group members. Just + move the pointers and update the size. + + * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying. + Avoid memory leak in case realloc fails. Simplification for + better code generation. + + Avoid deprecation warning because of libc_hidden_proto for + inet6_option_alloc. + * inet/inet6_option.c (option_alloc): Renamed from + inet6_option_alloc. Made static. + (inet6_option_alloc): Now a simple wrapper around option_alloc. + (inet6_option_append): Call option_alloc. + * include/netinet/in.h: Remove libc_hidden_proto for + inet6_option_alloc. + + * nis/nis_callback.c (__nis_create_callback): Always call xdr_free + for cleanup when cb!=NULL [Coverity CID 233]. + +2006-05-24 Ulrich Drepper <drepper@redhat.com> + + [BZ #2693] + * inet/Makefile (routines): Add inet6_opt and inet6_rth. + * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init, + inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next, + inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init, + inet6_rth_add, inet6_rth_reverse, inet6_rth_segments, + and inet6_rth_getaddr. + * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible + array. + * inet/netinet/in.h (struct ip6_mtuinfo): Define. + Mark inet6_option_* interfaces as deprecated. + Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish, + inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val, + inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse, + inet6_rth_segments, and inet6_rth_getaddr. + * inet/inet6_opt.c: New file. + * inet/inet6_rth.c: New file. + + * inet/netinet/icmp6.h: Pretty printing. + + [BZ #2683] + * elf/dl-addr.c (_dl_addr): Don't match undefined references. + +2006-05-23 Ulrich Drepper <drepper@redhat.com> + + * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of + doing it all here. When server does not know the answer do not + fail immediate, try parent first. + + * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer + overflow test. + +2006-05-20 Ulrich Drepper <drepper@redhat.com> + + * nis/nis_call.c (__prepare_niscall): New function. Split out + from __do_niscall. + * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request + and exported. + (__follow_path): New function. Split out from nis_list. + * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and + _xdr_nis_result. + * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and + _xdr_nis_result. + * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request, + and __follow_path. + * nis/Versions: Export __prepare_niscall, __create_ib_request, + __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result + from libnsl for version GLIBC_PRIVATE. + * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk. + Remove entry parameter from _nss_nisplus_parse_pwent and + _nss_nisplus_parse_grent. + * nis/nss_nisplus/nisplus-parser.c: Likewise. + * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ + again. Rewrite getpwent handling to not use nis_first_entry and + nis_next_entry. Roll out own niscall handling. + * nis/nss_nisplus/nisplus-grp.c: Likewise. + + * sunrpc/xdr_rec.c: Fix typo in comment. + +2006-05-19 Ulrich Drepper <drepper@redhat.com> + + * nis/nis_call.c (__do_niscall3): Avoid code duplication in error + handling. + + * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc + to allocate memory for my_pollfd. Better initialization of + cb_is_running. Use TEMP_FAILURE_RETRY. + + * malloc/memusage.sh (memusageso): Add quotes. + (memusagestat): Likewise. + * debug/xtrace.sh (pcprofileso): Likewise. + (pcprofiledump): Likewise. + * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR + replacement. + * malloc/Makefile ($(objpfx)memusage): Likewise. + + * nis/nis_callback.c (__nis_create_callback): Calls to + svcudp_bufcreate and svctcp_create can fail. Free ->xprt if + asprintf call fails. + + * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure + no uninitialized memory is passed to sendto. + +2006-05-18 Ulrich Drepper <drepper@redhat.com> + + * nis/nis_callback.c (__nis_create_callback): Use asprinf instead + of snprintf+strdup. Handle OOM. + * nis/nis_callback.c (__nis_create_callback): Allocate cb and + cb->serv together. Remove now obsolete free calls. + (__nis_destroy_callback): Remove now obsolete free call. + +2006-05-18 David Woodhouse <dwmw2@redhat.com> + + * sysdeps/posix/getaddrinfo.c: Add unique labels to the default + RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local + and ULA respectively). Set precedence for IPv4 address to 10 as + defined in RFC3484 for preferring IPv6. + * posix/gai.conf: Update to match the new default tables. + +2006-05-18 Jakub Jelinek <jakub@redhat.com> + + * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent + returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS. + * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise. + * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise. + + * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent): + Removed. + (init_nss_interface): Remove initialization of these variables. -2004-06-08 Jakub Jelinek <jakub@redhat.com> +2006-05-18 Ulrich Drepper <drepper@redhat.com> - [BZ #199] - * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc - succeeds. Reported by Miles Ohlrich <miles@cray.com>. + * nis/nis_call.c (rec_dirsearch): Little optimization: pull + nis_free_directory forward to avoid duplication. - * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc - fails. Avoid memory leak if realloc fails. +2006-05-17 Ulrich Drepper <drepper@redhat.com> -2004-06-09 Jakub Jelinek <jakub@redhat.com> + * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and + rec_dirsearch returning NULL. + (first_shoot): Handle __nis_finddirectory returning NULL. + (__nisfind_server): Fix leak when rec_dirsearch returns NULL. - * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is - NULL, "" or contains '=' character in it. Reported by - Michael T Kerrisk <mtk-lists@gmx.net>. - * stdlib/tst-environ.c: Include errno.h. - (main): Add tests for these arguments to setenv/unsetenv. + * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE, + IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD. -2004-06-07 Roland McGrath <roland@frob.com> +2006-05-17 Jakub Jelinek <jakub@redhat.com> - * NEWS: Update bug reporting instructions. Fix some typos. + * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if + pid changed. -2004-06-05 Ulrich Drepper <drepper@redhat.com> +2006-05-15 Ulrich Drepper <drepper@redhat.com> - * stdio-common/_itoa.h: Don't expand _itoa inline for libc. - * stdio-common/_itoa.c: Add _itoa implementation. + * include/rpc/pmap_prot.h: Mark all functions as hidden. - * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation - to also send request. Add parameter to allow this. - Change callers. - * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller. - * nscd/nscd_getpw_r.c: Likewise. - * nscd/nscd-client.h: Change __nscd_open_socket prototype. + * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden. + * nscd/nscd_getgr_r.c: Likewise. -2004-06-05 Andreas Jaeger <aj@suse.de> + * include/rpc/pmap_rmt.h: Mark all functions as hidden. - * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext): - Handle more than 6 args correctly. Based on a patch by Masahide - Washizawa <washi@jp.ibm.com>. + * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden. + * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise. -2004-06-04 Ulrich Drepper <drepper@redhat.com> + * stdlib/longlong.h (__clz_tab): Mark as hidden. - * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts - in all places, not __nss_not_use_nscd_group. - Reported by Philippe Gregoire. + * iconv/gconv_int.h: Mark __gconv_lock as hidden. -2004-06-03 Ulrich Drepper <drepper@redhat.com> + * include/rpc/key_prot.h: Mark all _internal functions as hidden. - * sysdeps/i386/i486/bits/atomic.h: Optimize a bit. - -2004-05-07 Dmitry V. Levin <ldv@altlinux.org> - - * argp/argp-help.c (__argp_error, __argp_failure): Check result - of __asprintf call and don't use string if it failed. - * stdio-common/psignal.c (psignal): Likewise. - * locale/programs/localedef.c (more_help): Likewise. - * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list, - arg_bool, parse_line): Check result of __asprintf calls and - don't use string if they failed. - * sunrpc/svc_simple.c (registerrpc, universal): Likewise. - * elf/ldconfig.c (parse_conf_include): Check result of __asprintf - call and exit if it failed. - -2004-05-10 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS, - _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO, - _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES, - _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION, - _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS, - _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR, - _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING, - _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT, - _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1. - * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) - <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1. - -2004-05-07 Jeroen Dekkers <jeroen@dekkers.cx> - - * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add - -momit-leaf-frame-pointer. - - * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with - #ifdef AF_PACKET. - - * sysdeps/mach/hurd/getcwd.c - (_hurd_canonicalize_directory_name_intern): Only realloc when - size is <= 0. - - * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset - isn't page aligned. - - * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to - new size. - - * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read, - __libc_write and __libc_lseek64. - -2004-05-29 Roland McGrath <roland@redhat.com> - - * elf/Makefile (shared-only-routines): Add dl-caller. - -2004-05-28 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/powerpc/configure.in: New file. - -2004-05-28 Steven Munroe <sjmunroe@us.ibm.com> - - * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine - "altivec" to enable VMX instructions. - * 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. - -2004-05-27 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using - __builtin_expm1l for GCC 3.5+. - (__expl): Define using __builtin_expl for GCC 3.4+. - (exp, expf, expl): Don't define for GCC 3.4+. - (tan, tanf, tanl): Don't define for GCC 3.5+. - (__atan2l): Define using __builtin_atan2l for GCC 3.4+. - (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__. - (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__. - (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99. - (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define - for GCC 3.4+. - (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl): - Don't define for GCC 3.5+. - (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__. - (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't - define for GCC 3.5+. - (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__. - * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't - define for GCC 3.2+. - -2004-05-27 Jakub Jelinek <jakub@redhat.com> - - * string/bits/string2.h (__bzero): Define even for GCC 3.0+. - * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def. - * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise. - * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise. - * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise. - * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise. - * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise. - * sysdeps/i386/stpcpy.S (stpcpy): Likewise. - * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise. - * sysdeps/generic/stpcpy.c (stpcpy): Likewise. - * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise. - * sysdeps/i386/i586/memcpy.S (memcpy): Remove - libc_hidden_builtin_def if MEMPCPY_P. - * sysdeps/x86_64/memcpy.S (memcpy): Likewise. - * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def. - * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise. - * sysdeps/generic/mempcpy.c (mempcpy): Likewise. - * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise. - -2004-05-26 Roland McGrath <roland@frob.com> - - * sysdeps/generic/bits/in.h - (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed. - These are long obsolete in BSD systems where they originated. - * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*' - -2004-05-26 Jakub Jelinek <jakub@redhat.com> - - * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto. - * string/bits/string2.h (memset): Disable macro for GCC 3.0+. - (__mempcpy): Use __builtin_mempcpy for GCC 3.4+. - (strchr): For GCC 3.2+, only use __rawmemchr if second argument is - constant '\0' and first argument is not constant. - (__stpcpy): Use __builtin_stpcpy for GCC 3.4+. - (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant. - For GCC 3.2+ use __builtin_strncpy. - (strncat): For GCC 3.2+ use __builtin_strncat. - (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are - constant. - (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function - if both arguments are constant. - -2004-05-26 Ulrich Drepper <drepper@redhat.com> - - * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4 - mapped addresses in gethostbyaddr. - -2004-05-25 Ulrich Drepper <drepper@redhat.com> - - * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and - flags parameter, convert afp to simple int parameter. Adjust code. - typep was never != NULL and flags therefore also unused. *afp is - never modified. - * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype. - * nss/getXXbyYY.c: Remove HAVE_TYPE handling. Adjust af parameter - handling for __nss_hostname_digits_dots calls. - * nss/getXXbyYY_r.c: Likewise. - - * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE. - -2004-05-25 Steven Munroe <sjmunroe@us.ibm.com> - - * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so. - * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES] - (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction. - (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction. - * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved - implementation from w_sqrt.c. - * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved - implementation from w_sqrtf.c. - * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation - using inline __ieee754_sqrt(). - * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation - using inline __ieee754_sqrtf(). - * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include - <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__. - * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define - PPC_FEATURE_* independent of __ASSEMBLER__. - -2004-05-25 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h - include. - (aio_start_notify_thread): Define if not defined. - (notify_func_wrapper): Use it. - * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h - include. - (aio_create_helper_thread): Define if not defined. - (__aio_create_helper_thread): New function. - (__aio_enqueue_request): Use aio_create_helper_thread. - - * nis/ypclnt.c (ypall_data, ypall_foreach): Remove. - (struct ypresp_all_data): New type. - (__xdr_ypresp_all): Change second argument to - struct ypresp_all_data *. Replace ypall_foreach and - ypall_data with objp->foreach and objp->data. - (yp_all): Remove status variable, add data. Replace - all uses of status with data.status. Initialize data.foreach - and data.data instead of ypall_foreach and ypall_data. - -2004-05-24 Jakub Jelinek <jakub@redhat.com> - - * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit - in l_flags_1, not in l_flags. - -2004-04-10 Robert Millan <robertmh@gnu.org> - - * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync - with sysdeps/generic/bits/in.h. - -2004-05-25 Roland McGrath <roland@frob.com> - - * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from - GCC GPL to standard glibc LGPL. - -2004-05-24 Ulrich Drepper <drepper@redhat.com> - - * manual/string.texi (Copying and Concatenation): Fixed second - concat example. - Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>. - -2004-05-23 Ulrich Drepper <drepper@redhat.com> - - * malloc/obstack.c: Don't allow linking with _obstack. - -2004-05-23 Andreas Schwab <schwab@suse.de> - - * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead - of separate "m" constraints. - -2004-05-15 Chris Demetriou <cgd@broadcom.com> - - * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE) - (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32 - and 64 ABIs, save and restore regs $10 and $11 (a6 and a7). + * include/rpc/auth.h: Mark xdr_des_block_internal and + xdr_opaque_auth_internal as hidden. -2004-05-20 Paul Eggert <eggert@cs.ucla.edu> + * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as + hidden. - * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used. - Add comment explaining why libc still defines it. + * include/rpc/xdr.h: Mark all _internal functions as hidden. -2004-05-19 Paul Eggert <eggert@cs.ucla.edu> + * misc/getusershell.c (okshells): Don't use static initializers, + do it dynamically. - * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast, - obstack_alignment_mask, obstack_alloc, obstack_base, - obstack_blank, obstack_blank_fast, obstack_chunk_size, - obstack_copy, obstack_copy0, obstack_finish, obstack_grow, - obstack_grow0, obstack_init, obstack_int_grow, - obstack_int_grow_fast, obstack_make_room, obstack_memory_used, - obstack_next_free, obstack_object_size, obstack_ptr_grow, - obstack_ptr_grow_fast, obstack_room): Remove declarations of - nonexistent functions. + * stdlib/fmtmsg.c (keywords): Change type of len element to + uint32_t to not waste space on 64bit machines. -2004-05-18 Steven Munroe <sjmunroe@us.ibm.com> + * locale/setlocale.c: Change _nl_category_names into a string. + Add new _nl_category_name_idxs. Change all users. + * locale/localeinfo.h: Adjust declaration of _nl_category_names. + Declare _nl_category_name_idxs. + * locale/findlocale.c: Adjust for _nl_category_names change. + * locale/loadlocale.c: Likewise. + * locale/newlocale.c: Likewise. + * intl/dcigettext.c: Likewise. - * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include - <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__. - [PIC]: Redundent for powerpc64, removed. - (ENTRY): Generate size and alignment for opd entry. - (EALIGN): Generate size and alignment for opd entry. - (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE. - (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE. + * iconv/gconv_conf.c (add_alias): Move actual alias handling to... + (add_alias2): ...here. New function. + (__gconv_read_conf): Simplify builtin alias handling. + (builtin_aliases): Convert to string to avoid relocations. + * iconv/gconv_builtin.h: Add comment about correct formatting. -2004-05-19 Ulrich Drepper <drepper@redhat.com> +2006-05-15 Jakub Jelinek <jakub@redhat.com> - * misc/regexp.h: Say the functions have been withdrawn. + * resolv/res_debug.c (loc_ntoa): Make error const. - * wcsmbs/tst-wcpncpy.c: Add more tests. +2006-05-14 Andreas Schwab <schwab@suse.de> -2004-05-18 Roland McGrath <roland@frob.com> + * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH. - * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to - standard glibc LGPL. - * sysdeps/generic/unwind-dw2.c: Likewise. - * sysdeps/generic/unwind-dw2-fde.c: Likewise. - * sysdeps/generic/unwind-dw2-fde.h: Likewise. - * sysdeps/generic/unwind-pe.h: Likewise. +2006-05-12 Jakub Jelinek <jakub@redhat.com> -2004-05-15 Petter Reinholdtsen <pere@hungry.com> + * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h. + (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than + sizeof (cpu_set_t). - * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND - MONTENEGRO" which have taken over the code 819. Patch from - Danilo Segan. [BZ #40] +2006-05-11 Ulrich Drepper <drepper@redhat.com> -2004-05-15 Jakub Jelinek <jakub@redhat.com> + * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer. - * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h - (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to - __sparc_get_pic_l7. + * include/arpa/nameser.h: Declare _ns_flagdata as hidden. -2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk> + * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master. + * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master. - * catgets/gencat.c: Update bug reporting instructions. - * csu/version.c: Likewise. - * debug/catchsegv.sh: Likewise. - * debug/pcprofiledump.c: Likewise. - * debug/xtrace.sh: Likewise. - * elf/ldd.bash.in: Likewise. - * iconv/iconv_prog.c: Likewise. - * iconv/iconvconfig.c: Likewise. - * locale/programs/locale.c: Likewise. - * locale/programs/localedef.c: Likewise. - * login/programs/pt_chown.c: Likewise. - * malloc/memusage.sh: Likewise. - * malloc/memusagestat.c: Likewise. - * malloc/mtrace.pl: Likewise. - * manual/crypt.texi: Likewise. - * manual/install.texi: Likewise. - * nss/makedb.c: Likewise. + * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp. + * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp. -2004-05-14 Jakub Jelinek <jakub@redhat.com> + * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data. + * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for + xdr_cback_data. - * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only - CHECK_STATIC_TLS if sym != NULL. - * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise. - * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise. + * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args. + * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for + xdr_ypupdate_args. -2004-05-12 Andreas Schwab <schwab@suse.de> + * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order. + * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order. - * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs - when translating. + * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist. + * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist. -2004-05-13 H.J. Lu <hongjiu.lu@intel.com> + * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p. + * include/rpcsvc/nis_callback.h: New file. - * Rules (xtests): Depend on tests. + * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val. + * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val. -2004-05-13 Jakub Jelinek <jakub@redhat.com> + * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey. + * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey. - * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if - count is negative, yet write_ptr < write_end. - (_IO_default_xsgetn): Avoid one underflow per char if count is - negative, yet read_ptr < read_end. + * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist. + * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist. -2004-05-12 Steven Munroe <sjmunroe@us.ibm.com> + * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey. + * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey. - * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS - equal to TAB3. + * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args. + * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for + xdr_ypdelete_args. -2004-05-12 Ulrich Drepper <drepper@redhat.com> + * nis/nis_xdr.h: Mark all functions as hidden. Remove + __BEGIN_DECLS and __END_DECLS, the header is not installed. - * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror - call. + * nis/nis_error.c: Remove table of strings. Use position + independent mechanism. + * nis/nis_error.h: New file. -2004-05-10 Roland McGrath <roland@frob.com> +2006-05-11 Jakub Jelinek <jakub@redhat.com> - * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "". - (__hurd_directory_name_split): Likewise. + * locale/programs/ld-time.c (time_finish): If wide era name or + format aren't provided, set both wname and wformat to L"". -2004-05-10 Ulrich Drepper <drepper@redhat.com> +2006-05-10 Ulrich Drepper <drepper@redhat.com> - * po/fr.po: Update from translation team. + * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store + results if the call was succesful. -2004-05-10 Andreas Jaeger <aj@suse.de> + * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden. - * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext): - Correctly compute alignment. - Patch by Michael Matz <matz@suse.de>. + * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count + as hidden. -2004-05-09 Ulrich Drepper <drepper@redhat.com> +2006-05-10 Jakub Jelinek <jakub@redhat.com> - * sysdeps/generic/sigpause.c: Prevent sigpause prototype. - * sysdeps/posix/sigpause.c: Likewise. - * signal/signal.h: Don't define sigpause macro unless needed. + * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros. -2004-05-08 Jakub Jelinek <jakub@redhat.com> +2006-05-10 Ulrich Drepper <drepper@redhat.com> - * configure.in (libc_cv_libgcc_s_suffix): New check. - (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix. - * config.make.in (libgcc_s_suffix): Set. - * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix). + * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the + caller makes sure this is not the case. + (wordexp): Simplify ifs_white creation. [Coverity CID 231] -2004-05-08 Ulrich Drepper <drepper@redhat.com> +2006-05-09 Ulrich Drepper <drepper@redhat.com> - * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred. + * posix/wordexp.c: Remove numerous NULL pointer tests before FREE + calls. -2004-04-29 Steven Munroe <sjmunroe@us.ibm.com> + * io/ftw.c (open_dir_stream): Return right away if REALLOC fails. + [Coverity CID 229, 230] - * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1, - LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6): - Load argument values into temporary variables. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1, - LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6): - Likewise. + * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and + DGETTEXT calls. + (hol_help): Likewise. [Coverity CID 226, 227] -2004-05-07 Ulrich Drepper <drepper@redhat.com> + * string/argz-replace.c (__argz_replace): Unconditionally call + free on SRC. [Coverity CID 225] - * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c - need to be compiled with exceptions. + * nis/nis_creategroup.c (nis_creategroup): No need to duplicate + the return value of __nis_default_owner and __nis_default_group, + it has been especially allocated. [Coverity CID 224] -2004-05-06 Ulrich Drepper <drepper@redhat.com> + * nis/nis_defaults.c (searchXYX): New functions. Used by both + searchgroup and searchowner. Significantly simplified. + (__nis_default_owner): Remove duplication. Do not locally copy the + string before duplicating it. + (__nis_default_group): Likewise. - * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling. - * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling. + * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory, + we must clear the variable before calling __nisfind_server. - * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that - realloc cannot fail. + * nis/nis_lookup.c (nis_lookup): Always free memory allocated with + nis_getnames. [Coverity CID 223] - * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot - be expanded. + * locale/programs/locfile.c (locfile_read): Use alloca instead of + xmalloc to allocate local repertoire name. [Coverity CID 222] - * nis/nis_table.c: Clean up memory handling. - * nis/nis_subr.c (nis_getnames): Clean up memory handling. - * nis/nis_removemember.c (nis_removemember): Add comment - explaining use of realloc. + * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically + allocate memory for the input to add_bytes. [Coverity CID 221] - * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL. - (carg): Likewise. - Patch by Lev S Bishop <lev.bishop@yale.edu>. + * posix/wordexp.c (w_addword): Free word if realloc fails and it + was allocated here. [Coverity CID 219, 220] - * math/bug-tgmath1.c (main): Test fabs and carg as well. + * posix/getconf.c (print_all): Free confstr data after printing. + [Coverity CID 218] -2004-05-06 Richard Henderson <rth@redhat.com> + * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if + list allocation fails. [Coverity CID 215] - * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE, - AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New. - * sysdeps/unix/sysv/linux/alpha/Versions: Export - __libc_alpha_cache_shape as a private symbol. - * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file. - * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file. + * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition. + [Coverity CID 213] -2004-05-06 Richard Henderson <rth@redhat.com> + * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if + string is NULL. [Coverity CID 212] + * argp/Makefile: Add rules to build and run bug-argp1. + * argp/bug-argp1.c: New file. - * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New. - * sysdeps/alpha/divl.S: Use them. - * sysdeps/alpha/divq.S: Likewise. - * sysdeps/alpha/divqu.S: Likewise. - * sysdeps/alpha/reml.S: Likewise. - * sysdeps/alpha/remq.S: Likewise. - * sysdeps/alpha/remqu.S: Likewise. + * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find + end of string. + * stdlib/canonicalize.c (__realpath): Likewise. -2004-05-06 Ulrich Drepper <drepper@redhat.com> + * locale/programs/ld-time.c (time_finish): Don't dereference NULL + pointer. [Coverity CID 206] - * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define. - (cimag): Use it. - (creal): Likewise. - * math/Makefile (tests): Add bug-tgmath1. - * math/bug-tgmath1.c: New file. + * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map + in statically linked code. + * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in + statically built code, be prepared to have no link map. + [Coverity CID 205] -2004-05-05 Jakub Jelinek <jakub@redhat.com> + * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in + dgettext calls. [Coverity CID 204] - * sysdeps/alpha/atomicity.h: Remove. - * sysdeps/generic/atomicity.h: Remove. + * argp/argp-help.c (struct uparams): Remove valid member. Change + the one user. + (uparam_names): Reduce size. Avoid relative relocations. + Moved to read-only segment. + (fill_in_uparams): Update for new layout. -2004-05-05 H.J. Lu <hongjiu.lu@intel.com> + * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be + assumed to always be != NULL. [Coverity CID 202] - * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to - char *. + * argp/argp-help.c (hol_entry_help): Remove some dead code + [Coverity CID 200]. -2004-04-22 David Mosberger <davidm@hpl.hp.com> + * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize + away a few more unconditional yperr2nss calls. + (_nss_nis_getservbyname_r): Likewise. - * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention - rt-sysdep. - * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file. +2006-05-06 Ulrich Drepper <drepper@redhat.com> - * sysdeps/ia64/strcat.c: New file. - * sysdeps/ia64/strcat.S: Delete. + * sysdeps/generic/ldsodefs.h: Remove support for non-core + architectures. -2004-05-04 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure + that unused memory passed to sendto is nevertheless initialized. - * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove - defined. + [BZ #2499] + * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid + possibly unaligned memory accesses. -2004-04-23 Jakub Jelinek <jakub@redhat.com> + * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32. + * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort + and __putlong respectively. Correct buffer overflow check for + NS_NOTIFY_OP. - * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add - libc_hidden_proto. Define to __GI___libm_error_support for - assembly going into libc.so. - * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add - libc_hidden_def. + * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort. - * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define. - * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove. + * resolv/res_send.c (res_queriesmatch): Fix typo in comment. + (send_dg): Rewrite error handling to be more compact and avoid + double recomputation of timeouts. Pass MSG_NOSIGNAL to send. - * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access - gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno - if USE___THREAD. + * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32. -2004-05-03 Jakub Jelinek <jakub@redhat.com> + * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly + instead of ns_get16. + (res_queriesmatch): Likewise. Minor optimization. - * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if - __USE_BSD or __USE_UNIX98. - * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise. - * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise. - * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise. - * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise. - * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise. - * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN): - Likewise. - * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise. - * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise. - * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise. - -2004-05-01 Jakub Jelinek <jakub@redhat.com> - - * posix/Versions (libc): Remove __libc_wait, __libc_waitpid, - __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64, - __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE. - * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE. - * sysdeps/unix/sysv/linux/Versions (libc): Remove - __libc_sigaction@@GLIBC_PRIVATE. - * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove - __modify_ldt@@GLIBC_PRIVATE. - * socket/Versions (libc): Remove __libc_accept, __libc_send, - __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv, - __libc_sendto and __libc_connect @@GLIBC_PRIVATE. - * stdio-common/Versions (libc): Remove - _itoa_upper_digits@@GLIBC_PRIVATE. - * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE. - * misc/Versions (libc): Remove __libc_fsync, __libc_msync, - __libc_readv and __libc_writev @@GLIBC_PRIVATE. - * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE. - * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read, - __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and - __libc_lseek64 @@GLIBC_PRIVATE. - -2004-04-30 Jakub Jelinek <jakub@redhat.com> - - * elf/dl-load.c (open_verify): Move e_phentsize check after e_type - check. - -2004-04-29 Steven Munroe <sjmunroe@us.ibm.com> - - * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed. - * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed. - * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file. - * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file. - - * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX - mantissa for AIX long double format. - * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX - long double format. - * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise. - * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024] - (_fpioconst_pow10): AIX long double format has same exponent range as - double. - * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024] - (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range - as double. - -2004-04-23 Art Haas <ahaas@airmail.net> - - * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'. - -2004-04-28 Carlos O'Donell <carlos@baldric.uwo.ca> - - * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>. - * sysdeps/unix/sysv/linux/mq_notify.c: Likewise. - * sysdeps/unix/sysv/linux/mq_open.c: Likewise. - * sysdeps/unix/sysv/linux/mq_receive.c: Likewise. - * sysdeps/unix/sysv/linux/mq_send.c: Likewise. - -2004-04-29 Philip Blundell <pb@nexus.co.uk> - - * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT - entries. - -2004-04-29 Jakub Jelinek <jakub@redhat.com> - - * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix - prototypes and description [BZ #131]. - - * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130]. - Patch by Ed Catmur <ed@catmur.co.uk>. - * string/tst-inlcall.c (main): Add test for strpbrk. - - [BZ #140] - * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h - include. - (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not - yet defined, #undef back after including linux/sysctl.h if defined - here. - (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef - back after including linux/sysctl.h if defined here. - - * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31 - for single precision register, add it to __asm clobbers [BZ #139]. - * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31 - for single precision register, add it to __asm clobbers. - * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox - instead of fqtoi in QP_HANDLE_EXCEPTIONS. - * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise. - Reported by M. H. VanLeeuwen <vanl@megsinet.net>. - -2004-04-23 Andreas Schwab <schwab@suse.de> - - * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use - __attribute_used__. - -2004-04-22 Philip Blundell <philb@gnu.org> - - * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE - when calling _dl_signal_error. - (elf_machine_rel): Likewise. + [BZ #2499] + * resolv/res_query.c (__libc_res_nquery): If answerp != NULL, + __libc_res_nsend might reallocate the buffer for the answer. In + this case we have to reload the HP pointer. -2004-04-21 Ulrich Drepper <drepper@redhat.com> +2006-05-05 Ulrich Drepper <drepper@redhat.com> - * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp - and use it internally instead of __sigsetjmp. - * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f. - * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l. - * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4. - * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f. - * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l. - * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4. - * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4, - _GI___libm_frexp_4f, _GI___libm_frexp_4l. - * sysdeps/ia64/fpu/bits/mathinline.h: New file. - * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use - HIDDEN_JUMPTARGET for exit call. - * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for - _exit call. - * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call. - * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and - strcpy calls. + * stdio-common/vfscanf.c (memory_error): Remove definition. Add + some branch prediction hints. -2004-04-21 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*. + * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise. + * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise. - * posix/tst-chmod.c (do_test): Fix a typo. +2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com> - * elf/lateglobal.c (main): Fix error checks. - Patch by Stephen Clarke <stephen.clarke@st.com>. + * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation + by a GOT relocation to make Scrt1.o position independent. + * sysdeps/s390/s390-64/elf/start.S: Likewise. - * manual/ctype.texi (isblank, iswblank): Mark as ISO functions, - mention they have been added in ISO C99. - Reported by Ben Pfaff <blp@cs.stanford.edu>. + * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for + six system call parameters. + * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise. -2004-03-31 H.J. Lu <hongjiu.lu@intel.com> +2006-05-05 Ulrich Drepper <drepper@redhat.com> - * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo. + * sunrpc/svcauth_des.c (cache_init): Use calloc instead of + malloc&bzero. -2004-04-20 Jakub Jelinek <jakub@redhat.com> + * sunrpc/svc_udp.c (BZERO): Remove definition. + (CALLOC): Define. + (svc_enablecache): Use CALLOC instead of ALLOC&BZERO. - * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into - EACCES. + * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it. + (des_SPtrans): Use uint32_t type. + (des_skb): Likewise. -2004-04-20 Jakub Jelinek <jakub@redhat.com> + * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero. - * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace - handling change. - * stdio-common/tst-sscanf.c (int_tests): Adjust. +2006-05-05 Jakub Jelinek <jakub@redhat.com> - * nis/nss-nis.c: Include stdlib.h. + [BZ #2509] + * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even + on 32-bit arches. - * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a - warning. - * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from - libc_hidden_builtin_def. +2006-05-05 Ulrich Drepper <drepper@redhat.com> -2004-04-20 Jim Meyering <jim@meyering.net> + * locale/programs/ld-address.c (address_finish): Fix one more + place where the iso639 array might be accessed beyond the limits. - * misc/error.c (error_tail): Don't leak upon realloc failure. +2006-05-04 Ulrich Drepper <drepper@redhat.com> -2004-04-20 Martin Schwidefsky <schwidefsky@de.ibm.com> + * nis/nis_table.c (nis_list): Avoid clearing res twice before + filling it for the first time. - * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable): - Use RETURN_ADDRESS instead of __builtin_return_address. + * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath. + Adjust all callers. + Free res object content before returning. -2004-04-19 Ulrich Drepper <drepper@redhat.com> + * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero. - * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more - compact code. + * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free + client->cl_auth. -2004-04-20 Jakub Jelinek <jakub@redhat.com> + * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire + cleanup for initial thread, just the free call on TVP. - * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace, - do input_error () instead of conv_error () and don't look at errno. - Don't eat any whitespace before %% if skip_space == 0. - * stdio-common/tst-sscanf.c (int_tests): New array. - (main): Run int_tests. + * nscd/gai.c (__getline): Define. -See ChangeLog.14 for earlier changes. +See ChangeLog.16 for earlier changes. |