2010-12-10 Andreas Schwab * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under _GNU_SOURCE. 2010-12-10 Andreas Schwab * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict. * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset): Remove __restrict. (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy) (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict. 2010-12-09 Ulrich Drepper [BZ #11655] * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize are initialized. 2010-12-09 Jakub Jelinek * string/bits/string3.h (memmove, bcopy): Remove __restrict. 2010-08-11 Ulrich Drepper [BZ #11903] * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition. Patch by Evgeni Bikov . 2010-08-21 Mike Frysinger * configure.in: Move assembler checks to before sysdep dir checking. 2010-11-24 Andreas Schwab * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0 specially. (gaih_getanswer_slice): Likewise. 2010-05-31 Petr Baudis [BZ #11149] * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail silently even in the chroot mode. 2010-05-31 Petr Baudis [BZ #10085] * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix initialization of skip_initgroups_dyn. 2010-09-27 Andreas Schwab [BZ #11611] * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Mask out sign-bit copies when constructing f_fsid. 2010-11-19 Ulrich Drepper * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB. * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise. 2010-11-16 Ulrich Drepper * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define. 2010-11-11 Andreas Schwab * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca. * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem. (tst-fnmatch-ENV): Set MALLOC_TRACE. ($(objpfx)tst-fnmatch-mem): New rule. (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace. * posix/tst-fnmatch.c (main): Call mtrace. 2010-08-09 Ulrich Drepper [BZ #11883] * posix/fnmatch.c: Keep track of alloca use and fall back on malloc. * posix/fnmatch_loop.c: Likewise. 2010-11-10 Luis Machado * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force signed comparison. 2010-11-08 Ulrich Drepper [BZ #12194] * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16. * sysdeps/x86_64/bits/byteswap.h: Likewise. 2010-08-31 Mike Frysinger * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete. (epoll_create1): Declare. 2010-09-06 Andreas Schwab * manual/Makefile: Don't mix pattern rules with normal rules. 2010-08-12 Andreas Schwab [BZ #11904] * locale/programs/locale.c (print_assignment): New function. (show_locale_vars): Use it. 2010-10-26 Ulrich Drepper * elf/rtld.c (dl_main): Move assertion after the point where rtld map is added to the list. 2010-10-24 Ulrich Drepper [BZ #12140] * malloc/malloc.c (_int_free): Fill correct number of bytes when perturbing. 2010-09-09 Andreas Schwab * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%. (sysd-rules-targets): Remove duplicates. * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with rtld-%.$o dependency. 2010-10-18 Andreas Schwab * elf/dl-open.c (dl_open_worker): Don't expand DST here, let _dl_map_object do it. 2010-10-15 Andreas Schwab * scripts/data/localplt-s390-linux-gnu.data: New file. * scripts/data/localplt-s390x-linux-gnu.data: New file. 2010-10-12 Ulrich Drepper [BZ #12078] * posix/regcomp.c (parse_branch): One more memory leak plugged. * posix/bug-regex31.input: Add test case. 2010-10-11 Ulrich Drepper * posix/bug-regex31.c: Rewrite to run multiple tests from stdin. * posix/bug-regex31.input: New file. [BZ #12078] * posix/regcomp.c (parse_branch): Free memory when allocation failed. (parse_sub_exp): Fix last change, use postorder. 2010-10-11 Ulrich Drepper * posix/bug-regex31.c: New file. * posix/Makefile: Add rules to build and run bug-regex31. 2010-10-11 Ulrich Drepper * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls. [BZ #12078] * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used. 2010-10-11 Ulrich Drepper [BZ #12093] * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might be NULL. 2010-10-03 Ulrich Drepper [BZ #12005] * malloc/mcheck.c: Handle large requests. 2010-09-15 Joseph Myers * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When implementing getdents64 using getdents syscall, set d_type if __ASSUME_GETDENTS32_D_TYPE. 2010-09-14 Andreas Schwab * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register variables after CHECK_SP call. * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise. 2010-09-08 Chung-Lin Tang Ulrich Drepper [BZ #11968] * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (____longjmp_chk): Use %ebx for saving value across system call. Add unwind info. 2010-08-31 Mike Frysinger * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo. 2010-08-31 Andreas Schwab [BZ #7066] * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when shifting retval into place. 2010-09-14 Ulrich Drepper * resolv/res_init.c (__res_vinit): Count the default server we added. 2010-08-25 Ulrich Drepper [BZ #10851] * resolv/res_init.c (__res_vinit): When no server address at all is given default to loopback. 2010-08-12 H.J. Lu * sysdeps/i386/elf/Makefile: New file. 2010-07-31 Samuel Thibault * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down when converting to ms. 2010-07-29 Roland McGrath [BZ 11856] * manual/locale.texi (Yes-or-No Questions): Fix example code. 2010-07-27 Andreas Schwab * manual/memory.texi (Malloc Tunable Parameters): Document M_PERTURB. 2010-07-26 Roland McGrath [BZ #11840] * configure.in (-fgnu89-inline check): Set and substitute gnu89_inline, not libc_cv_gnu89_inline. * configure: Regenerated. * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@. 2010-07-20 Roland McGrath * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to dl_hwcap_mask as well as dl_hwcap. Without this, dsocaps matching in ld.so.cache was broken. With it, there is no way to disable dsocaps like LD_HWCAP_MASK can disable hwcaps. 2010-07-05 Roland McGrath * manual/arith.texi (Rounding Functions): Fix rint description implicit in round description. 2010-07-02 Ulrich Drepper * elf/Makefile: Fix linking for a few tests to make recent linker happy. 2010-06-02 Emilio Pozuelo Monfort * hurd/lookup-at.c (__file_name_lookup_at): Accept AT_SYMLINK_FOLLOW in AT_FLAGS. Fail with EINVAL if both AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present in AT_FLAGS. * hurd/hurd/fd.h (__file_name_lookup_at): Update comment. * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS. 2010-11-03 H.J. Lu [BZ #12191] * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New. (__x86_64_raw_data_cache_size_half): Likewise. (__x86_64_raw_shared_cache_size): Likewise. (__x86_64_raw_shared_cache_size_half): Likewise. * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New. (__x86_64_raw_data_cache_size_half): Likewise. (__x86_64_raw_shared_cache_size): Likewise. (__x86_64_raw_shared_cache_size_half): Likewise. (init_cacheinfo): Set __x86_64_raw_data_cache_size, __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size and __x86_64_raw_shared_cache_size_half. Round __x86_64_data_cache_size_half, __x86_64_data_cache_size __x86_64_shared_cache_size_half and __x86_64_shared_cache_size, to multiple of 256 bytes. 2010-11-03 Ulrich Drepper [BZ #12167] * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling of inacessible symlinks. Verify result of symlink before returning it. * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise. Patch mostly by Miklos Szeredi . 2010-10-20 Andreas Krebbel Ulrich Drepper * elf/dl-object.c (_dl_new_object): Don't append the new object to the global list here. Move code to... (_dl_add_to_namespace_list): ...here. New function. * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list. * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare. * elf/dl-load.c (lose): Don't remove the element from the list. (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list. (_dl_map_object): Likewise. 2010-10-25 Ulrich Drepper [BZ #12159] * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte into all bytes of SSE register. Patch by Richard Li . 2010-10-22 Andreas Schwab * include/dlfcn.h (__RTLD_SECURE): Define. * elf/dl-load.c (_dl_map_object): Remove preloaded parameter. Use mode & __RTLD_SECURE instead. (open_path): Rename preloaded parameter to secure. * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration. * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object. * elf/dl-deps.c (openaux): Likewise. * elf/rtld.c (struct map_args): Remove is_preloaded. (map_doit): Don't use it. (dl_main): Likewise. (do_preload): Use __RTLD_SECURE instead of is_preloaded. (dlmopen_doit): Add __RTLD_SECURE to mode bits. 2010-10-06 Ulrich Drepper * string/bug-strstr1.c: New file. * string/Makefile: Add rules to build and run bug-strstr1. 2010-10-05 Eric Blake [BZ #12092] * string/str-two-way.h (two_way_long_needle): Always clear memory when skipping input due to the shift table. 2010-10-03 Ulrich Drepper [BZ #12077] * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer for strncmp. * string/stratcliff.c: Add tests for strcmp and strncmp. * wcsmbs/wcsatcliff.c: Adjust for stratcliff change. 2010-08-19 Andreas Schwab * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check. 2010-08-06 Ulrich Drepper * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Also fail if tpwd after pwuid call is NULL. 2010-06-21 Andreas Schwab * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Restore proper fallback handling. 2010-06-19 Ulrich Drepper * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle OOM in getpwuid_r correctly. Return error number when the caller should return, otherwise -1. (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid call returning > 0 value. * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise. 2010-07-27 Andreas Schwab * version.h (VERSION): Bump for 2.12.1 release. 2010-06-02 Kirill A. Shutemov * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch requires it. 2010-06-02 Andreas Schwab * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer. 2010-06-07 Jakub Jelinek * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of __REDIRECT followed by __THROW. * wcsmbs/wchar.h (swscanf, vswscanf): Likewise. * posix/getopt.h (getopt): Likewise. 2010-05-26 H.J. Lu [BZ #11640] * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Properly check family and model. 2010-05-26 Takashi Yoshii * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size. 2010-05-21 Ulrich Drepper * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak symbol reference. 2010-05-19 Andreas Schwab * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak symbol reference. 2010-05-21 Andreas Schwab * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg and internal_recvmmsg. * sysdeps/unix/sysv/linux/recvmmsg.c: New file. * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file. * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define. * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove. 2010-05-21 Andreas Schwab * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break. * sunrpc/clnt_udp.c (clntudp_control): Likewise. * sunrpc/clnt_unix.c (clntunix_control): Likewise. 2010-05-20 Andreas Schwab * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH. 2010-05-12 Andrew Stubbs * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all exceptions. Return 0. 2010-05-07 Roland McGrath * elf/ldconfig.c (main): Add a const. 2010-05-06 Ulrich Drepper * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN. (args_options): Add no-idn option. (ahosts_keys_int): Add idn_flags to ai_flags. (parse_option): Handle 'i' option to clear idn_flags. * malloc/malloc.c (_int_free): Possible race in the most recently added check. Only act on the data if no current modification happened. See ChangeLog.17 for earlier changes.