]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - ChangeLog
Move remaining nptl_db headers to sysdeps/nptl
[thirdparty/glibc.git] / ChangeLog
index ba5998ca405f40b02405d3e4840fdb065183b412..9c23b7bd957cf0c7ffcead14081cdb3718353f18 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,418 @@
+2019-02-15  Florian Weimer  <fweimer@redhat.com>
+
+       * nptl_db/proc_service.h: Move to ...
+       * sysdeps/nptl/proc_service.h: ... here.
+       * nptl_db/thread_db.h: Move to ...
+       * sysdeps/nptl/thread_db.h: ... here.
+       * nptl/descr.h: Include <thread_db.h>.
+
+2019-02-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       * io/Makefile (tests): Add tst-lockf.
+       * io/lockf.c (lockf): Use __fcntl and only define for
+       !__OFF_T_MATCHES_OFF64_T.
+       * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
+       __OFF_T_MATCHES_OFF64_T case.
+       * io/tst-lockf.c: New file.
+       * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
+       * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
+       * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
+       * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
+       * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
+       * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
+       * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
+
+2019-02-15  Florian Weimer  <fweimer@redhat.com>
+
+       [BZ #24211]
+       * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
+       pd->result after the thread descriptor has been freed.
+
+2019-02-15  Joseph Myers  <joseph@codesourcery.com>
+
+       * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
+       from function return type.
+
+       * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
+
+2019-02-14  Jan Kratochvil <jan.kratochvil@redhat.com>
+
+       * scripts/test_printers_common.py: Set TERM to a known harmless
+       value.
+
+2019-02-14  Joseph Myers  <joseph@codesourcery.com>
+
+       * sunrpc/xdr.c (xdr_int): Add fall-through comment.
+       (xdr_u_int): Likewise.
+       (xdr_enum): Likewise.
+       (xdr_bytes): Reword fall-through comment.
+       (xdr_string): Likewise.
+
+2019-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       [BZ #2421]
+       * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
+       (tests): Add tst-join8 tst-join9.
+       * nptl/lll_timedwait_tid.c: Remove file.
+       * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
+       * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
+       * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
+       * nptl/pthread_join_common.c (timedwait_tid): New function.
+       (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
+       is set.
+       * nptl/tst-join5.c (thread_join): New function.
+       (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
+       check.
+       * nptl/tst-join8.c: New file.
+       * nptl/tst-join9.c: Likewise.
+       * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
+       lll_futex_timed_wait_cancel): Add generic macros.
+       * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
+       Remove definitions.
+       * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
+       * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
+       Remove function.
+       * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
+       Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
+       * sysdeps/unix/sysv/linux/lowlevellock-futex.h
+       (lll_futex_timed_wait_cancel): New macro.
+
+2019-02-14  Wilco Dijkstra  <wdijkstr@arm.com>
+
+       * benchtests/Makefile: Add malloc-simple benchmark.
+       * benchtests/bench-malloc-simple.c: New benchmark.
+
+2019-02-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
+
+       * benchtests/bench-memmove.c (do_one_test): Remove unused
+       ORIG_SRC.
+       (do_test): Adjust.
+       * benchtests/bench-memmove-large.c (do_one_test): Remove unused
+       ORIG_SRC.
+       (do_test): Adjust.
+
+2019-01-13  Jim Wilson  <jimw@sifive.com>
+
+       [BZ #24040]
+       * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
+       * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
+       (func): New.
+       (main): If USE_PTHREADS, call pthread_create to run func.  Otherwise
+       call func directly.
+       * nptl/Makefile (tests): Add tst-unwind-thread.
+       (CFLAGS-tst-unwind-thread.c): Define.
+       * nptl/tst-unwind-thread.c: New file.
+       * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
+       as undefined.
+
+2019-02-13  Joseph Myers  <joseph@codesourcery.com>
+
+       * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
+       comment wording.
+       * nis/nis_call.c (__do_niscall3): Likewise.
+
+       * catgets/gencat.c (normalize_line): Use braces around empty
+       'else' body.
+       * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
+       (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
+       [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
+       [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
+       [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
+       [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
+       * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
+       definition.
+
+       * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
+       execlp returns.
+
+2019-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
+
+       * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
+       * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
+       * benchtests/bench-strchr.c (stupid_strchr): Remove.
+       * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
+       * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
+       * benchtests/bench-strlen.c (builtin_strlen): Remove.
+       * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
+       * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
+       * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
+       * benchtests/bench-strspn.c (stupid_strspn): Remove.
+       * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
+       * benchtests/bench-bcopy.c: Delete file.
+       * benchtests/bench-bzero.c: Likewise.
+       * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
+       (simple_memccpy): Remove.
+       (generic_memccpy): Add function.
+       * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
+       * benchtests/bench-memmove.c (simple_bcopy): Remove.
+       * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
+       (generic_mempcpy): Add new function.
+       * benchtests/bench-memset.c (simple_bzero): Remove.
+       (builtin_bzero): Remove.
+       (builtin_memset): Remove.
+       * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
+       (generic_rawmemchr): Add new function.
+
+2019-02-12  Florian Weimer  <fweimer@redhat.com>
+
+       * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
+
+2019-02-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       [BZ #24122]
+       * elf/Makefile (tests): Add tst-audit13.
+       (modules-names): Add tst-audit13mod1.
+       (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
+       rule.
+       * elf/tst-audit13.c: New file.
+       * elf/tst-audit13mod1.c: Likewise.
+
+2019-02-12  Florian Weimer  <fweimer@redhat.com>
+
+       [BZ #24122]
+       * elf/rtld.c (unload_audit_module): New function.
+       (report_audit_module_load_error): Likewise.
+       (load_audit_module): Likewise.  Extracted from dl_main.  Call
+       _dl_close if the laversion symbol cannot be found.  Use early
+       returns for error handling.  Add malloc error check.  Check for a
+       zero return value from la_version.  Remove spurious comment about
+       static TLS initialization.  Remove useless casts.
+       (notify_audit_modules_of_loaded_object): New function.  Extracted
+       from dl_main.
+       (load_audit_module): Likewise.
+       (dl_main): Call load_audit_modules.
+
+2019-02-12  Joseph Myers  <joseph@codesourcery.com>
+
+       * elf/dl-exception.c (_dl_exception_create_format): Add
+       fall-through comments.
+       * elf/ldconfig.c (parse_conf_include): Likewise.
+       * elf/rtld.c (print_statistics): Likewise.
+       * locale/programs/charmap.c (parse_charmap): Likewise.
+       * misc/mntent_r.c (__getmntent_r): Likewise.
+       * posix/wordexp.c (parse_arith): Likewise.
+       (parse_backtick): Likewise.
+       * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
+       * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
+       * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
+
+2019-02-11  Paul A. Clarke  <pc@us.ibm.com>
+
+       * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
+       Use float instead of double.
+
+2019-02-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
+
+       * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
+
+2019-02-08  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/powerpc/bits/mathinline.h: Remove.
+
+2019-02-08  Florian Weimer  <fweimer@redhat.com>
+
+       math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
+       * math/bits/math-finite.h: Move to ...
+       * bits/math-finite.h: ... here.
+
+2019-02-08  Florian Weimer  <fweimer@redhat.com>
+
+       * sysdeps/generic/bits/unistd_ext.h: Move to ...
+       * bits/unistd_ext.h: here.
+
+2019-02-08  Patsy Griffin Franklin  <pfrankli@redhat.com>
+
+       [BZ #21915]
+       * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
+       * nss/tst-nss-files-hosts-long.c: New file.
+       * nss/tst-nss-files-hosts-long.root: New directory.
+       * nss/tst-nss-files-hosts-long.root/etc: Likewise.
+       * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
+
+2019-02-08  Florian Weimer  <fweimer@redhat.com>
+
+       * include/bits/unistd_ext.h: Remove file.
+       * posix/bits/unistd_ext.h: Move to ...
+       * sysdeps/generic/bits/unistd_ext.h: ... here.
+
+2019-02-08  Florian Weimer  <fweimer@redhat.com>
+
+       * include/bits/unistd_ext.h: New file.
+
+2019-02-08  TAMUKI Shoichi  <tamuki@linet.gr.jp>
+
+       * time/tst-strftime2.c: Use array_length macros instead of magic
+       numbers.
+
+2019-02-08  Florian Weimer  <fweimer@redhat.com>
+
+       [BZ #24161]
+       * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
+       argument.
+       * nptl/register-atfork.c (__run_fork_handlers): Only perform
+       locking if the new do_locking argument is true.
+       * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
+       __run_fork_handlers.
+
+2019-02-08  Florian Weimer  <fweimer@redhat.com>
+
+       [BZ #6399]
+       Linux: Add gettid system call wrapper.
+       * posix/Makefile (headers): Add bits/unistd_ext.h.
+       * posix/bits/unistd_ext.h: New file.
+       * posix/unistd.h: Include it.
+       * manual/process.texi (Process Identification): Document gettid.
+       * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
+       tst-gettid, tst-gettid-kill.
+       (tst-gettid): Link with $(shared-thread-library).
+       * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
+       * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
+       * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
+       * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
+       * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
+       * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
+       Add gettid.
+       * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
+       * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
+       (GLIBC_2.30): Likewise.
+       * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
+       (GLIBC_2.30): Likewise.
+       * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
+       (GLIBC_2.30): Likewise.
+       * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
+       (GLIBC_2.30): Likewise.
+       * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
+       (GLIBC_2.30): Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
+       (GLIBC_2.30): Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
+       (GLIBC_2.30): Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
+       (GLIBC_2.30): Likewise.
+       * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
+       * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
+       Likewise.
+       * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
+
+2019-02-07  Florian Weimer  <fweimer@redhat.com>
+
+       * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
+       compatibility symbols.
+
+2019-02-07  Stefan Liebler  <stli@linux.ibm.com>
+
+       [BZ #24180]
+       * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
+       Add compiler barriers and comments.
+
+2019-02-07  Florian Weimer  <fweimer@redhat.com>
+
+       * include/array_length.h (array_length): Do not use a statement
+       expression and _Static_assert, so that array_length can be used at
+       file scope and as a constant expression.
+
+2019-02-07  Florian Weimer  <fweimer@redhat.com>
+
+       * support/xdlfcn.h (xdlmopen): Declare.
+       * support/xdlmopen.c: New file.
+       * support/Makefile (libsupport-routines): Add xdlmopen.
+
+2019-02-06  Joseph Myers  <joseph@codesourcery.com>
+
+       * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
+       before return type, without separate inline.
+       * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
+       * elf/dl-tunables.h (tunable_is_name): Likewise.
+       * malloc/malloc.c (do_set_trim_threshold): Likewise.
+       (do_set_top_pad): Likewise.
+       (do_set_mmap_threshold): Likewise.
+       (do_set_mmaps_max): Likewise.
+       (do_set_mallopt_check): Likewise.
+       (do_set_perturb_byte): Likewise.
+       (do_set_arena_test): Likewise.
+       (do_set_arena_max): Likewise.
+       (do_set_tcache_max): Likewise.
+       (do_set_tcache_count): Likewise.
+       (do_set_tcache_unsorted_limit): Likewise.
+       * nis/nis_subr.c (count_dots): Likewise.
+       * nptl/allocatestack.c (advise_stack_range): Likewise.
+       * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
+       (do_sin): Likewise.
+       (reduce_sincos): Likewise.
+       (do_sincos): Likewise.
+       * sysdeps/unix/sysv/linux/x86/elision-conf.c
+       (do_set_elision_enable): Likewise.
+       (TUNABLE_CALLBACK_FNDECL): Likewise.
+
+2019-02-06  Florian Weimer  <fweimer@redhat.com>
+
+       * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
+       (xdlsym): Use dlerror to detect a NULL symbol.
+
+2019-02-06  Florian Weimer  <fweimer@redhat.com>
+
+       * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
+       <stap-probe.h>.
+       * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
+
+2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
+
+       * libio/tst-bz24153.c (wide): Use wide char format specifier.
+
+2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
+
+       * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
+       __wmemcmp and weak alias to wmemcmp.
+
+2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
+
+       [BZ #23403]
+       * nptl/allocatestack.c (allocate_stack): Align pointer pd for
+       TLS_TCB_AT_TP tls variant.
+       * nptl/tst-tls1.c: Migrate to support/test-driver.c.
+       Add alignment checks.
+       * support/Makefile (libsupport-routines): Add xposix_memalign and
+       xpthread_setstack.
+       * support/support.h: Add xposix_memalign.
+       * support/xthread.h: Add xpthread_attr_setstack.
+       * support/xposix_memalign.c: New File.
+       * support/xpthread_attr_setstack.c: Likewise.
+
 2019-02-05  Florian Weimer  <fweimer@redhat.com>
 
        [BZ #24164]