]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - ChangeLog
nptl: Convert tst-sem5 & tst-sem13 to use libsupport
[thirdparty/glibc.git] / ChangeLog
index b51532c803eceba139e5ab3dbf243f2877ac6057..4fcf7db0420177cdde5122357d5b8942fa18c560 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,369 @@
+2019-03-25  Mike Crowe  <mac@mcrowe.com>
+
+       * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
+       (do_test) Use libsupport test macros rather than hand-coded
+       conditionals and error messages. Ensure that sem_init returns zero
+       rather than not -1. Use <support/test-driver.c> rather than
+       test-skeleton.c.
+
+       * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
+       test macros rather than hand-coded conditionals and error messages.
+       Use <support/test-driver.c> rather than test-skeleton.c.
+
+2019-03-25  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
+
+       * elf/elf.h (NT_ARM_PAC_MASK): New macro.
+       (NT_MIPS_MSA): Likewise.
+
+2019-03-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
+       * benchtests/README: Update description.
+       * benchtests/bench-timing.h: Default to hp-timing.
+       * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
+       HP_TIMING_PRINT): Remove.
+       (HP_TIMING_NOW): Add generic implementation.
+       (hp_timing_t): Change to uint64_t.
+
+       * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
+       HP_TIMING_INLINE.
+       * nptl/descr.h: Likewise.
+       * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
+       RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
+       (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
+       Abstract hp-timing usage with RTLD_* macros.
+       * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
+       (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
+       * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
+       HP_TIMING_NONAVAIL): Likewise.
+       * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
+       Likewise.
+       * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
+       HP_SMALL_TIMING_AVAIL): Likewise.
+       * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
+       HP_SMALL_TIMING_AVAIL): Likewise.
+       * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
+       HP_SMALL_TIMING_AVAIL): Likewise.
+       * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
+       HP_SMALL_TIMING_AVAIL): Likewise.
+       * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
+       Likewise.
+       * sysdeps/generic/hp-timing-common.h: Update comment with
+       HP_TIMING_AVAIL removal.
+
+       * include/random-bits.h: New file.
+       * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
+       (__res_context_mkquery): Remove usage hp-timing usage and replace with
+       random_bits.
+       * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
+       * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
+       Likewise.
+
+       * include/libc-internal.h (__get_clockfreq): Remove prototype.
+       * rt/Makefile (clock-routines): Remove get_clockfreq.
+       * rt/get_clockfreq.c: Remove file.
+       * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
+       * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
+       * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
+
+       * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
+       * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
+       * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
+       (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
+       _SC_CPUTIME, and _SC_THREAD_CPUTIME.
+
+       * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
+       pthread_clock_settime.
+       * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
+       * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
+       (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
+       * elf/rtld.c (_dl_start_final): Likewise.
+       * nptl/allocatestack.c (__find_thread_by_id): Remove function.
+       * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
+       Remove.
+       * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
+       (_dl_cpuclock_offset): Remove.
+       * nptl/descr.h (struct pthread): Rename cpuclock_offset to
+       cpuclock_offset_ununsed.
+       * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
+       cpuclock_offset set.
+       * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
+       * sysdeps/nptl/fork.c (__libc_fork): Likewise.
+       * nptl/pthread_clock_gettime.c: Remove file.
+       * nptl/pthread_clock_settime.c: Likewise.
+       * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
+       [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
+       and CLOCK_PROCESS_CPUTIME_ID support.
+       * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
+       [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
+       * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
+       [HP_TIMING_AVAIL] (__clock_getres): Likewise.
+       * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
+       Likewise.
+       (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
+
+2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
+
+       * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
+       * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
+       MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
+       New defines.
+       * sysdeps/s390/memmem-arch13.S: New file.
+       * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
+       if it is only used as fallback.
+       * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
+       * sysdeps/s390/multiarch/ifunc-impl-list.c
+       (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
+
+2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
+
+       * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
+       * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
+       STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
+       New defines.
+       * sysdeps/s390/multiarch/ifunc-impl-list.c
+       (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
+       * sysdeps/s390/strstr-arch13.S: New file.
+       * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
+       if it is only used as fallback.
+       * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
+
+2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
+
+       * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
+       HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
+       * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
+       * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
+       ifunc selector.
+       * sysdeps/s390/multiarch/ifunc-impl-list.c
+       (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
+       * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
+       S390_IS_ARCH13_MIE3): New defines.
+
+2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
+
+       * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
+       HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
+       * sysdeps/s390/configure.ac: Add checks for arch13 support.
+       * sysdeps/s390/configure: Regenerated.
+
+2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
+
+       * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
+       Add vxe2, vxp, dflt, sort flags.
+       * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
+       HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
+       capabilities.
+       (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
+       * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
+       (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
+       HWCAP_S390_DFLT): Define.
+
+2019-03-05  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
+
+       [BZ #24372]
+       * iconv/iconvconfig.c (write_output): Add parentheses to get rid
+       of compiler warning.
+       * locale/programs/ld-collate.c (collate_output): Likewise.
+
+2019-03-21  DJ Delorie  <dj@redhat.com>
+
+       [BZ #24372]
+       * iconv/iconvconfig.c (write_output): Replace floating point math
+       with integer math to avoid imprecise results.
+       * locale/programs/ld-collate.c (collate_output): Likewise.
+
+2019-03-21  Stefan Liebler  <stli@linux.ibm.com>
+
+       * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
+       Add HWCAP_S390_VX and HWCAP_S390_VXE.
+
+2019-03-20  mansayk  <6688000@gmail.com>
+
+       [BZ #24296]
+       * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
+       (abday): Likewise, but remove the trailing dots.
+
+2019-03-19  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
+       macro.
+       (HWCAP_PACA): Likewise.
+       (HWCAP_PACG): Likewise.
+       * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
+       Increase to 32.
+       (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
+
+2019-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
+       should be handled.
+
+2019-03-15  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
+       version to 5.0.
+       (old_getpagesize): New syscall.
+
+2019-03-15  Felix Yan  <felixonmars@archlinux.org>
+
+       [BZ #24293]
+       * localedata/locales/zh_TW (era): Add, support Minguo calendar.
+       * localedata/locales/cmn_TW (era): Likewise.
+       * localedata/locales/hak_TW (era): Likewise.
+       * localedata/locales/lzh_TW (era): Likewise.
+       * localedata/locales/nan_TW (era): Likewise.
+
+2019-03-14  Florian Weimer  <fweimer@redhat.com>
+
+       Remove obsolete, never-implemented XSI STREAMS declarations.
+       * manual/terminal.texi (Allocation): Remove portability note and
+       adjust example.
+       * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
+       _SC_STREAMS.
+       * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
+       * sysdeps/unix/inet/Subdirs (streams): Remove.
+       * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
+       (conformtest-headers-UNIX98): Likewise.
+       (conformtest-headers-XOPEN2K): Likewise.
+       (conformtest-headers-POSIX2008): Likewise.
+       * posix/compat-streams.c: New file.
+       * posix/Makefile (routines): Add it.
+       * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
+       getpmsg, isastream, putmsg, putpmsg.
+       (GLIBC_2.30): New section.
+       * bits/stropts.h: Remove file.
+       * bits/xtitypes.h: Likewise.
+       * conform/data/stropts.h-data: Likewise.
+       * include/stropts.h: Likewise.
+       * include/sys/stropts.h: Likewise.
+       * include/xtitypes.h: Likewise.
+       * streams/Makefile: Likewise.
+       * streams/fattach.c: Likewise.
+       * streams/fdetach.c: Likewise.
+       * streams/getmsg.c: Likewise.
+       * streams/getpmsg.c: Likewise.
+       * streams/isastream.c: Likewise.
+       * streams/putmsg.c: Likewise.
+       * streams/putpmsg.c: Likewise.
+       * streams/stropts.h: Likewise.
+       * streams/sys/stropts.h: Likewise.
+       * sysdeps/ia64/bits/xtitypes.h: Likewise.
+       * sysdeps/s390/bits/xtitypes.h: Likewise.
+       * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
+       * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
+       * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
+       * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
+       * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
+       * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
+       * sysdeps/x86/bits/xtitypes.h: Likewise.
+
+2019-03-14  Florian Weimer  <fweimer@redhat.com>
+
+       * nss/tst-nss-files-alias-truncated.c (do_test): Load
+       libnss_files.
+       * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
+       but not with libnss_files.
+       (tst-nss-files-alias-truncated.out): Depend on libnss_files.
+
+2019-03-14  Zack Weinberg  <zackw@panix.com>
+
+       * scripts/check-obsolete-constructs.py (HeaderChecker.check):
+       Specify encoding="utf-8" when opening headers to check.
+
+2019-03-13  Joseph Myers  <joseph@codesourcery.com>
+
+       * scripts/build-many-glibcs.py (Context.checkout): Default Linux
+       version to 5.0.
+       (Context.checkout_tar): Handle variable major version for Linux
+       kernel.
+
+2019-03-13  Florian Weimer  <fweimer@redhat.com>
+
+       [BZ #24047]
+       * sysdeps/mach/hurd/res_enable_icmp.c: New file.
+
+2019-03-13  Zack Weinberg  <zackw@panix.com>
+
+       * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
+       Move to stdlib.
+       * include/inttypes.h: Adjust to match.
+       * include/stdint.h: New wrapper.
+
+2019-03-13  Zack Weinberg  <zackw@panix.com>
+
+       * scripts/check-obsolete-constructs.py: New test script.
+       * scripts/check-installed-headers.sh: Remove tests for
+       obsolete typedefs, superseded by check-obsolete-constructs.py.
+       * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
+       as a special test.  Update commentary.
+       * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
+       (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
+       Update commentary.
+       * posix/sys/types.h (__u_intN_t): Remove.
+       (u_int8_t): Typedef using __uint8_t.
+       (u_int16_t): Typedef using __uint16_t.
+       (u_int32_t): Typedef using __uint32_t.
+       (u_int64_t): Typedef using __uint64_t.
+
+2019-03-13  Stefan Liebler  <stli@linux.ibm.com>
+
+       * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
+       call _dl_procinfo.
+       * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
+       Ignore types other than AT_HWCAP.
+       * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
+       * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
+       Likewise.
+       * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
+       in the case of falling back to generic output mechanism.
+       * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
+       Likewise.
+
+2019-03-12  Florian Weimer  <fweimer@redhat.com>
+
+       * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
+
+2019-03-12  Florian Weimer  <fweimer@redhat.com>
+
+       [BZ #24047]
+       resolv: Enable full ICMP errors for UDP DNS sockets
+       * resolv/res_enable_icmp.c: New file.
+       * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
+       * resolv/resolv-internal.h (__res_enable_icmp): Declare.
+       * resolv/res_send.c (reopen): Call __res_enable_icmp on new
+       socket.
+
+2019-03-11  Mao Han  <han_mao@c-sky.com>
+
+       * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
+       (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
+
+2019-03-11  Mao Han  <han_mao@c-sky.com>
+
+       * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
+       * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
+       * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
+
+2019-03-11  Mao Han  <han_mao@c-sky.com>
+
+       * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
+       directly.
+       * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
+       definition.
+
+2019-03-11  Mao Han  <han_mao@c-sky.com>
+
+       * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
+       * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
+       in mcontext_t
+
 2019-03-08  Mike FABIAN  <mfabian@redhat.com>
 
        [BZ #24307]
 
 2019-01-31  Paul Eggert  <eggert@cs.ucla.edu>
 
+       CVE-2019-9169
        regex: fix read overrun [BZ #24114]
        Problem found by AddressSanitizer, reported by Hongxu Chen in:
        https://debbugs.gnu.org/34140