glibc.git
6 months agogit-SEM_VALUE_MAX
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-SEM_VALUE_MAX

Commited in 2.32

commit 5e77ec7c6e64d67f048caa5d4dd81f10fca3dffc
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 22:44:08 2020 +0000

    htl: Add support for semaphore maximum value

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-SEM_VALUE_MAX.diff

6 months agogit-libpthread-testcancel
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-libpthread-testcancel

Commited in 2.32

commit 59b7fe99f2593682ba779fe0faa8f1156d48d087
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 22:23:52 2020 +0000

    htl: Add support for libc cancellation points

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-libpthread-testcancel.diff

6 months agogit-pthread_get_cleanup_stack
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-pthread_get_cleanup_stack

Commited in 2.32

commit f1cd3407e4c6767e0bbe2ca122b713c6581b8d67
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 23:13:24 2020 +0000

    htl: clean __pthread_get_cleanup_stack hidden proto

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-pthread_get_cleanup_stack.diff

6 months agogit-libc-open
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-libc-open

Commited for 2.33

commit a6c9f54a3471a527ff502f26e3a1c1b03ab39d6e
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 13:29:25 2020 +0000

    hurd: Add __libc_open and __libc_close

    Needed by libpthread for sem_open and sem_close

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-libc-open.diff

6 months agogit-futex-internal
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-futex-internal

Commited for 2.33

commit 65e43d5ad22ff527fd534679d357245f515bf308
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 11:06:27 2020 +0000

    htl: Add futex-internal.h

    That provides futex_supports_pshared

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-futex-internal.diff

6 months agogit-lll-private
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-lll-private

Commited for 2.33

commit bcbabb9e6c14db9f35ed83862e88a6d986fc7a69
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 13:31:22 2020 +0000

    hurd: Add LLL_PRIVATE and LLL_SHARED

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-lll-private.diff

6 months agogit-lll-wait-intr
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-lll-wait-intr

Commited for 2.33

commit 1c3c8e342a3973fc5e1ddcba7d3e9b68dfe9a25b
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 11:01:52 2020 +0000

    hurd: Add __lll_abstimed_wait_intr

    For semaphores, we need an interruptible version of low-level locks.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-lll-wait-intr.diff

6 months agogit-ld-library-path-checks
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-ld-library-path-checks

Commited for 2.33

commit 3dbbd2ff92b1a0a2465461ee049e3e2813b73fa4
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Fri Nov 13 19:37:41 2020 +0000

    Add {,sysdep-}ld-library-path make variable

    On GNU/Hurd we not only need $(common-objpfx) in LD_LIBRARY_PATH when loading
    dynamic objects, but also $(common-objpfx)/mach and $(common-objpfx)/hurd. This
    adds an ld-library-path variable to be used as LD_LIBRARY_PATH basis in
    Makefiles, and a sysdep-ld-library-path variable for sysdeps to add some
    more paths, here mach/ and hurd/.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-ld-library-path-checks.diff

6 months agogit-lll-ptr
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-lll-ptr

Commited for 2.33

commit 3934901a7444329d18b5edc6cb0d91fed35aeaaf
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 10:37:24 2020 +0000

    hurd: make lll_* take a variable instead of a ptr

    To be coherent with other ports, let's make lll_* take a variable, and
    rename those that keep taking a ptr into __lll_*.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-lll-ptr.diff

6 months agosysvshm-lll
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
sysvshm-lll

To be folded into tg-sysvshm.diff once upgraded to 2.33

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name sysvshm-lll.diff

6 months agogit-lll-initializer
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-lll-initializer

Commited for 2.33

commit 059e60887b3244eb7ec0d764defe515fd525f513
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Dec 13 10:16:55 2020 +0000

    hurd: Rename LLL_INITIALIZER to LLL_LOCK_INITIALIZER

    To get coherent with other ports.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-lll-initializer.diff

6 months agogit-libpthread_plt
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-libpthread_plt

Commited for 2.33

commit 7c331116971d38e57703af4097ed13ab6bef91d0
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Thu Dec 3 12:21:47 2020 +0100

    htl: Add hidden def for __pthread_create/detach

    to avoid a PLT.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-libpthread_plt.diff

6 months agogit-cthreads-symbols
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-cthreads-symbols

Commited for 2.33

commit f9ba73d056721ff61160a46438fd8ebf11d9aeee
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Thu Dec 3 10:48:27 2020 +0100

    htl: Add missing symbols

    hurd/hurdsig.c needs to detect whether __pthread_detach and
    __pthread_create are available, so they need to be exposed.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-cthreads-symbols.diff

6 months agogit-cthreads
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-cthreads

Commited for 2.33

commit 9446e02b0d2e94da4ebe9df6e2c5d23adc0f1d7d
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat Nov 14 23:35:35 2020 +0000

    hurd: Remove some remnants of cthreads

    Libc has actually been using mach's lock-internal.h mutex for a long
    time already.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-cthreads.diff

6 months agogit-libpthread-nodelete
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-libpthread-nodelete

Commited for 2.32

commit e2b9d562d1e024fda6d10f0f272521bf20fa664f
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Jun 14 15:47:14 2020 +0000

    htl: initialize first and prevent from unloading

    libc does not have codepaths for reverting the load of a libpthread.

    * htl/Makefile (LDFLAGS-pthread.so): Pass -z nodelete -z initfirst to
    linker.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-libpthread-nodelete.diff

6 months agogit-libpthread_syms
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-libpthread_syms

commited for 2.32

commit bc9cf8fbe8eafe375719ad869ab81609cfc3529c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Wed Jun 10 20:03:52 2020 +0000

    htl: Fix linking static tests by factorizing the symbols list

    libpthread_syms.a will contain the symbols that libc tries to get from
    libpthread, to be used by the system, but also by tests.

    * htl/libpthread.a, htl/libpthread_pic.a: Link libpthread_syms.a and Move EXTERN
    references to...
    * htl/libpthread_syms.a: ... new file. Add missing
    __pthread_enable_asynccancel reference.
    * htl/Makefile: Install libpthread_syms.a and link it into static tests.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-libpthread_syms.diff

6 months agogit-pthread_link_tests
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-pthread_link_tests

Committed for 2.32

commit dd7a8ad7ba25cb2269b306758c7d97d4a95527e6
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Jun 8 13:32:08 2020 +0200

    pthread: Move back linking rules to nptl and htl

    d6d74ec16 ('htl: Enable more tests') moved the linking rules from
    nptl/Makefile and htl/Makefile to the shared sysdeps/pthread/Makefile.  But
    e.g. on powerpc some tests are added in sysdeps/powerpc/Makefile, which is
    included *after* sysdeps/pthread/Makefile, and thus the tests don't get
    affected by the rules and fail to link.  For now let's just copy over the
    set of rules in both nptl/Makefile and htl/Makefile.

    * sysdeps/pthread/Makefile: Move libpthread linking rules to...
    * htl/Makefile: ... here and...
    * nptl/Makefile: ... there.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-pthread_link_tests.diff

6 months agogit-WAIT
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-WAIT

Committed for 2.33

commit c57fe5462ba5eb7331a223bbb7abd8ae273747c1
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Nov 23 00:24:03 2020 +0000

    hurd S_msg_report_wait: Fix reporting ports

    This fixes the parameter order of MSG_EXAMINE, thus fixing the detection
    of e.g. fd ports for nicer output in ps WAIT output.

commit dba88fb3ed3e70d2ad797f447a2a894b0891a5d7
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Nov 23 00:25:26 2020 +0000

    hurd S_msg_report_wait: Fix detecting fd ports

    _hurd_init_dtable stays set to non-NULL, so we have to run through both
    _hurd_init_dtable and _hurd_dtable.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-WAIT.diff

6 months agogit-raise
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-raise

Committed in 2.32

commit 785ec62dbd37b0b236c9a7fcc0ac71a2aeb472de
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Jun 7 01:35:18 2020 +0200

    hurd: Reject raising invalid signals

    * hurd/hurd-raise.c (_hurd_raise_signal): Return  EINVAL if signo <= 0
    or signo >= NSI.

commit fab94894d5c5b25d24010f823515fb53822d6623
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Jun 7 01:55:54 2020 +0200

    hurd: Fix hang in _hurd_raise_signal from pthread_kill

    When ss is not NULL, it is assumed to be locked.

    * hurd/hurd-raise.c (_hurd_raise_signal): Unlock before returning an
    error if ss is not NULL.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-raise.diff

6 months agogit-clock-cputime
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-clock-cputime

Committed for glibc 2.33

commit 5a619c1f46c49dbb9706beeb74f4a466696394fc
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Oct 11 13:59:01 2020 +0000

    hurd: support clock_gettime(CLOCK_PROCESS/THREAD_CPUTIME_ID)

    * sysdeps/mach/clock_gettime.c (__clock_gettime): Add support for
    CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-clock-cputime.diff

6 months agogit-bsd4.3-ioctls
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-bsd4.3-ioctls

Committed for glibc 2.33

commit cd41ffeb0bbca641a02e1030e13ab317ce7d645c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Thu Aug 27 13:35:58 2020 +0200

    hurd: define BSD 4.3 ioctls only under __USE_MISC

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-bsd4.3-ioctls.diff

6 months agogit-pthread_atfork-hidden
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-pthread_atfork-hidden

Committed for glibc 2.32

commit 15e995a8fb94a00d76da03756579ae6ff645b161
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Jun 7 23:29:44 2020 +0000

    htl: Fix registration of atfork handlers in modules

    We really need modules to use their own pthread_atfork so that
    __dso_handle properly identifies them.

    * sysdeps/htl/pt-atfork.c (__pthread_atfork): Hide function.
    (pthread_atfork): Hide alias.
    * sysdeps/htl/old_pt-atfork.c (pthread_atfork): Rename macro to
    __pthread_atfork to fix building the compatibility alias.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-pthread_atfork-hidden.diff

6 months agogit-sched_sets
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-sched_sets

Committed for glibc 2.33

commit ce625044886da0a6e348f4def83f746e28587a0c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Wed Aug 5 23:46:14 2020 +0200

    hurd: Implement basic sched_get/setscheduler

    * sysdeps/mach/hurd/sched_gets.c: New file.
    * sysdeps/mach/hurd/sched_sets.c: New file.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-sched_sets.diff

6 months agogit-fix-longjmp
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-fix-longjmp

Committed for glibc 2.32

commit 115bcf921a52005b89ff2859ccae4a8fc6d6deed
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat Jul 18 15:08:03 2020 +0200

    hurd: Fix longjmp early in initialization

    When e.g. an LD_PRELOAD fails, _dl_signal_exception/error longjmps, but TLS
    is not initialized yet, let along signal state.  We thus mustn't look at
    them within __longjmp.

    * sysdeps/mach/hurd/i386/____longjmp_chk.S,__longjmp.S: Check for
    initialized value of %gs, and that sigstate is non-NULL.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-fix-longjmp.diff

6 months agolocal-tls-ie-align
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-tls-ie-align

The elf/tst-tls-ie* tests try to load modules with 8-byte-aligned TLS data that
will get allocated in the static TLS area, so we need at least 8-byte alignment.
8-byte alignment requirement is not that uncommon on i386 anyway.

And upstream happens to have 32-byte alignment from
0c76fc3c2b34 ('Linux: Perform rseq registration at C startup and thread
creation') which just rounds up max_align to 32 anyway.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-tls-ie-align.diff

6 months agogit-strtol-test
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-strtol-test

Committed for glibc 2.32

commit 183083c35972611e7786c7ee0c96d7da571631ed
Author: Carlos O'Donell <carlos@redhat.com>
Date:   Wed Apr 29 16:31:29 2020 -0400

    support: Set errno before testing it.

    In test-conainer we should set errno to 0 before calling strtol,
    and check after with TEST_COMPARE.

    In tst-support_capture_subprocess we should set errno to 0 before
    checking it after the call to strtol.

    Tested on x86_64.

Reviewed-by: DJ Delorie <dj@redhat.com>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-strtol-test.diff

6 months agogit-intr-msg-unwind
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-intr-msg-unwind

Committed for glibc 2.32

commit 337a7b74faed2c8daf8c91cbb3038dc4984f3207
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Jun 7 17:51:21 2020 +0000

    hurd: Fix unwinding over interruptible RPC

    * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Set CFA register to
    %ecx while %esp is altered.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-intr-msg-unwind.diff

6 months agogit-longjmp-onstack
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-longjmp-onstack

Committed for glibc 2.32

commit 02937d825a71636c13b3f4229e5d6c9e54e327d5
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat Jun 6 20:21:22 2020 +0200

    hurd: fix clearing SS_ONSTACK when longjmp-ing from sighandler

    * sysdeps/i386/htl/Makefile: New file.
    * sysdeps/i386/htl/tcb-offsets.sym: New file.
    * sysdeps/mach/hurd/i386/Makefile [setjmp] (gen-as-const-headers): Add
    signal-defines.sym.
    * sysdeps/mach/hurd/i386/____longjmp_chk.S: Include tcb-offsets.h.
    (____longjmp_chk): Harmonize with i386's __longjmp. Clear SS_ONSTACK
    when jumping off the alternate stack.
    * sysdeps/mach/hurd/i386/__longjmp.S: New file.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-longjmp-onstack.diff

6 months agogit-holes
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-holes

Committed for glibc 2.32

commit 3f6e4fc4542b5b881906bf2f83eb4b8359b0dcd4
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Thu Jun 4 20:52:19 2020 +0200

    support: Fix detecting hole support on >2KB-block filesystems

    When detecting hole support, we write at 16MiB, and filesystems will
    typically need two levels of data to record that. On filesystems with
    8KB block, the two indirection blocks will require a total of 16KB
    overhead, thus 32 512-byte sectors.

    Spotted on GNU/Hurd with a 4KB blocks filesystem, but also happens on Linux
    with 4KB or 8KB blocks filesystems.

    * support/support_descriptor_supports_holes.c
    (support_descriptor_supports_holes): Set block_headroom to 32.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-holes.diff

6 months agogit-cond_destroy
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-cond_destroy

Committed for glibc 2.32

commit faae4b2bdd692d929037c80c3315f716f02f3b00
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 19:19:25 2020 +0000

    htl: make pthread_cond_destroy return EBUSY on waiters

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-cond_destroy.diff

6 months agogit-fexecve
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-fexecve

Committed for glibc 2.32

commit 6544999083437dabdadcec18185a1b2169b9637a
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Thu May 28 23:28:07 2020 +0000

    hurd: Fix fexecve

    * sysdeps/mach/hurd/fexecve.c (fexecve): Re-lookup fd with O_EXEC before
    calling _hurd_exec_paths.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-fexecve.diff

6 months agogit-pselect
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-pselect

Committed for glibc 2.32

commit f9011787497a276f84ef79ae233992692a626dc7
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Wed May 27 23:42:24 2020 +0000

    hurd: Fix pselect atomicity

    In case the signal arrives before the __mach_msg call, we need to catch
    between the sigprocmask call and the __mach_msg call.  Let's just reuse
    the support for sigsuspend to make the signal send a message that
    our __mach_msg call will just receive.

    * hurd/hurdselect.c (_hurd_select): Add sigport and ss variables. When
    sigmask is not NULL, create a sigport port and register as
    ss->suspended.  Add it to the portset.  When we receive a message on it,
    set error to EINTR.  Clean up sigport and portset appropriately.

    * hurd/hurdsig.c (wake_sigsuspend): Note that pselect also uses it.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-pselect.diff

6 months agogit-tst-udp
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-tst-udp

Committed for glibc 2.32

commit cbfc16122e9c4948b3a17224aeb5f8b70f02417d
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat May 16 19:29:50 2020 +0200

    sunrpc/tst-udp-*: Fix timeout value

    Following on 00c3da43a ('sunrpc/tst-udp-timeout: Fix timeout value').

    While e.g. 2.5 timeout can be represented exactly with doubles, time stamps
    may not be represented that exactly, and thus with coarse-grain clocks (e.g.
    10ms) we may end up with 2.499-ish values due to rounding errors.

    * sunrpc/tst-udp-timeout.c (test_udp_server): Add more timeout slack.
    * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-tst-udp.diff

6 months agogit-ss_init
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-ss_init

Committed for glibc 2.32

commit 61416e19218605a54e94edd9740bbe9d2785af6d
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon May 11 01:30:29 2020 +0200

    hurd: Add missing sigstate members initialization

    * hurd/hurdsig.c (_hurd_thread_sigstate): Initialize
      critical_section_lock, active_resources, cancel, and cancel_hook fields.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-ss_init.diff

6 months agogit-trunc-times
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-trunc-times

Committed for glibc 2.32

commit e095db0bc6c53a0b7ac3d915c5feb7678049dc33
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Mar 29 19:42:55 2020 +0200

    hurd: Make O_TRUNC update mtime/ctime

    * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Call
    __file_utimens after __file_set_size.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-trunc-times.diff

6 months agogit-pthread_self
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-pthread_self

Committed for glibc 2.32

commit ca843defbcbd2dc95b9342189e5dc430e9bcb743
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat Feb 15 14:31:50 2020 +0000

    htl: Only check pthread_self coherency when DEBUG is set

    htl has been widely tested for a long time now with this coherency
    checked successfully.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-pthread_self.diff

6 months agogit-register-atfork2
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-register-atfork2

Committed for glibc 2.32

commit 05039737d306b4c065ff65d4f90042f3ec8f6ddf
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Jun 7 02:57:04 2020 +0200

    htl: fix register-atfork ordering

    * htl/register-atfork.c (__register_atfork): Add new hooks at the end of
    the list instead of the beginning.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-register-atfork2.diff

6 months agogit-register-atfork
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-register-atfork

Committed for glibc 2.32

commit 6db1094f7af6ddd7ff37dbba82ff5074871a90d5
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 17:55:37 2020 +0000

    htl: Move __register_atfork from forward to own file

    Since we need it also in the static linking case.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-register-atfork.diff

6 months agogit-sem-intr
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-sem-intr

Committed for glibc 2.32

commit b2cdf72e5c496153050551f0ce704e9ef08ffeac
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Feb 10 00:52:50 2020 +0000

    htl: Make sem_wait/sem_timedwait interruptible

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-sem-intr.diff

6 months agogit-barrier-1
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-barrier-1

Committed for glibc 2.32

commit 29bc8736d1fdb80d2416b3920080dad58b32bf44
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 23:02:13 2020 +0000

    htl: Fix barrier_wait with one thread

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-barrier-1.diff

6 months agogit-spin_lock
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-spin_lock

Committed for glibc 2.32

commit 900778283ac3cfbd274abc55840b5cdae9b7745f
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 16:54:58 2020 +0000

    htl: make pthread_spin_lock really spin

    __spin_lock would actually use gsync_wait to block, which is not what
    pthread_spin_lock is about.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-spin_lock.diff

6 months agogit-fork-pthread_exit
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-fork-pthread_exit

Committed for glibc 2.32

commit 19a64d9f6eda12cd4b802aac470c645d208a1216
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 17:01:06 2020 +0100

    htl: Fix calling pthread_exit in the child of a fork

    We need to reset the threads counter, otherwise pthread_exit() would not
    call exit(0).

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-fork-pthread_exit.diff

6 months agolocal-exec_filename
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-exec_filename

Keep compatibility with experimental implementation

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-exec_filename.diff

6 months agolocal-no_unsupported_ioctls
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-no_unsupported_ioctls

These ioctls are not actually supported (and will probably not be in the
close future), and are not available on Linux either, so don't expose
them to application at the risk of them complaining that they don't work
(e.g. xterm using TIOCLSET).

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-no_unsupported_ioctls.diff

6 months ago[PATCH] XXX: make libc_rwlock recursive
Samuel Thibault [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
[PATCH] XXX: make libc_rwlock recursive

Without making the rwlocks recursive, running fakeroot-tcp gets this:

#0  0x0106e91c in mach_msg_trap () at /usr/src/glibc-2.24/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2
#1  0x0106f090 in __mach_msg (msg=0x20034a0, option=3, send_size=64, rcv_size=32, rcv_name=421, timeout=0, notify=0) at msg.c:110
#2  0x0125a241 in __gsync_wait (task=1, addr=19101080, val1=2, val2=0, msec=0, flags=0)
    at /usr/src/glibc-2.24/build-tree/hurd-i386-libc/mach/RPC_gsync_wait.c:175
#3  0x010b0743 in __dcigettext (domainname=0x8050740 <_libc_intl_domainname@@GLIBC_2.2.6> "libc",
    msgid1=0x8051d88 "undefined symbol: acl_get_fd", msgid2=0x0, plural=0, n=0, category=5) at dcigettext.c:527
#4  0x010af776 in __dcgettext (domainname=0x8050740 <_libc_intl_domainname@@GLIBC_2.2.6> "libc",
    msgid=0x8051d88 "undefined symbol: acl_get_fd", category=5) at dcgettext.c:47
#5  0x0124e427 in __dlerror () at dlerror.c:94
#6  0x01035ae3 in load_library_symbols () from /usr/lib/i386-gnu/libfakeroot/libfakeroot-tcp.so
#7  0x01035cc3 in tmp___fxstat64 () from /usr/lib/i386-gnu/libfakeroot/libfakeroot-tcp.so
#8  0x01036cd6 in __fxstat64 () from /usr/lib/i386-gnu/libfakeroot/libfakeroot-tcp.so
#9  0x010ad831 in _nl_load_locale_from_archive (category=category@entry=0, namep=namep@entry=0x200399c) at loadarchive.c:211
#10 0x010ac45b in _nl_find_locale (locale_path=0x0, locale_path_len=0, category=category@entry=0, name=0x200399c) at findlocale.c:154
#11 0x010abde7 in setlocale (category=0, locale=0x804c2e4 "") at setlocale.c:417
#12 0x0804947f in main (argc=2, argv=0x2003ad4) at programs/locale.c:191

That's very unfortunate: libfakeroot gets initialized from a section
where __libc_setlocale_lock is already locked, and thus the dlerror()
call hangs inside __dcigettext. It happens that Linux doesn't have
the problem probably because pthread_rwlock_wrlock returns a EDEADLK
error instead of hanging, and then the first unlock unlocks, and the
second unlock probably returns an EINVAL. This is all very unsafe, but
that's fakeroot-tcp's matter (see http://bugs.debian.org/845930 for the
follow-up)...

We only use it when constructing the debian installer for -s -r options
anyway.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-libc_rwlock_recursive.diff

6 months agotg-eintr
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
tg-eintr

commit 230b85f414291ac955827aba15cfbd103ab6ebdd
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Thu Jun 9 01:15:10 2016 +0200

    Fix pipe() call returning EINTR sometimes

    because it uses a critical section

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-eintr.diff

6 months agolocal-mach_print
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-mach_print

TODO: glibc 2.32 will provide it. Once it is uploaded, rebuild binaries

which might be referencing the 2.21-versioned symbol, and drop this
patch.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-mach_print.diff

6 months agotg-bootstrap
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
tg-bootstrap

This dependency is missing, but would pose problem on Darwin

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-bootstrap.diff

6 months agosubmitted-bind_umask2
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
submitted-bind_umask2

2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>

Fix bind when umask is e.g. 0777.

        * sysdeps/mach/hurd/bind.c (__bind): Pass mode 0666 to __dir_mkfile
        instead of final mode, so that call __ifsock_getsockaddr can always
        succeed, before calling __file_chmod to fix the mode according to umask,
        before calling __dir_link to show the file.

Part of the original fix was committed, the other hasn't been yet, see Roland's
"Harumph" reply to
https://sourceware.org/ml/libc-alpha/2014-08/msg00408.html

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name submitted-bind_umask2.diff

6 months agogit-sigstate_thread_reference
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-sigstate_thread_reference

Committed for 2.33

From: Richard Braun <rbraun@sceen.net>
Subject: [PATCH] Hurd: make sigstates hold a reference on thread ports

This change is required in order to correctly release per-thread
resources. Directly reusing the threading library reference isn't
possible since the sigstate is also used early in the main thread,
before threading is initialized.

* hurd/hurd/signal.h (_hurd_self_sigstate): Drop thread reference after
calling _hurd_thread_sigstate.
(_hurd_critical_section_lock): Likewise.
* hurd/hurdsig.c (_hurd_thread_sigstate): Add a reference on the thread.
(_hurd_sigstate_delete): Drop thread reference.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-sigstate_thread_reference.diff

6 months agosubmitted-path_mounted
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
submitted-path_mounted

http://sourceware.org/ml/libc-alpha/2013-08/msg00207.html

To: libc-alpha@sourceware.org
Subject: [PATCH 2/2] Define _PATH_MOUNTED as "/etc/mtab"
Date: Thu, 15 Aug 2013 10:43:35 +0200

Change the definition of _PATH_MOUNTED to "/etc/mtab". This is the
value used on Linux.

The change is motivated by the fact that on Debian /etc/mtab is a
symbolic link to /proc/mounts. This patch adjusts the macro for
non-linux systems such as Hurd. Changing this using
sysdeps/mach/hurd/paths.h causes build problems because
/usr/include/hurd/paths.h is shadowed by this file. This change is
proposed in the hope that aligning the non-linux targets with the
glibc for Linux is perceived as a good thing while fixing this problem
on Debian/Hurd along the way.

* sysdeps/generic/paths.h (_PATH_MOUNTED): Change value to "/etc/mtab".

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name submitted-path_mounted.diff

6 months agounsubmitted-clock_t_centiseconds
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
unsubmitted-clock_t_centiseconds

Some applications assume centisecond precision, or at most millisecond precision
(e.g. guile).  This is a work-around for them.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name unsubmitted-clock_t_centiseconds.diff

6 months ago[PATCH] t/EGREGIOUS-fr
Samuel Thibault [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
[PATCH] t/EGREGIOUS-fr

Fix grammar in french translation for EGREGIOUS

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-EGREGIOUS-fr.diff

6 months ago[PATCH] Correction traduction « Computer bought the farm »
Samuel Thibault [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
[PATCH] Correction traduction « Computer bought the farm »

* po/fr.po: Fix EIEIO french translation.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-EIEIO-fr.diff

6 months ago[PATCH] Workaround to add IPv6 support to getifaddrs
Samuel Thibault [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
[PATCH] Workaround to add IPv6 support to getifaddrs

ifreq only contains sockaddr structures, which are not big enough for
IPv6 addresses. This takes another, ugly, approach, by parsing fsysopts
/servers/socket/2 options...

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-ifaddrs_v6.diff

6 months agogit-sbrk-end
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-sbrk-end

Committed for glibc 2.33

commit 8c6beab4e1c03ac57150241015486e3f497c17cc
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Wed Aug 5 23:48:58 2020 +0200

    hurd: Rework sbrk

    Making the brk start exactly at the end of the main application binary was
    requiring to get it through the _end symbol, which does not work any more
    with recent toolchains, and actually produces in libc.so a confusing
    external _end symbol that produces odd results, see
    https://sourceware.org/bugzilla/show_bug.cgi?id=23499

    Trying to do so is quite outdated anyway with the tendency for address
    randomization.

    Using _end was also allowing to include the main binary data within
    the RLIMIT_DATA, but this also seems outdated with dynamic library
    loading, and nowadays' memory consumption via malloc and mmap rather than
    statically-allocated data.

    This adds a BRK_START macro in <vm_param.h> that just tells where we
    want to start the brk, and thus removes the _end symbol.

    * sysdeps/mach/hurd/i386/vm_param.h: New file.
    * sysdeps/mach/hurd/brk.c: Use BRK_START as brk start instead of _end.
    Also ignore __data_start.
    * hurd/Versions: Remove _end symbol.
    * sysdeps/mach/hurd/i386/libc.abilist: Remove _end symbol.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-sbrk-end.diff

6 months agolocal-usr
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-usr

Upstream uses prefix= while we use prefix=/usr

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-usr.diff

6 months ago[PATCH] t/hooks
Samuel Thibault [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
[PATCH] t/hooks

Add link rules to sort hooks, otherwise they are not properly recorded

2012-04-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>

        * Makerules (shlib.lds): Add hurd hooks sorting rules.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-hooks.diff

6 months agogit-hurdsig-SA_SIGINFO
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-hurdsig-SA_SIGINFO

Committed for 2.33

From: Jeremie Koenig <jk@jk.fr.eu.org>
Subject: [PATCH] implement SA_SIGINFO signal handlers.

    52baaca Hurd signals: Copy bits/sigaction.h
    4232c66 Hurd signals: SA_SIGINFO support
    1831cfe Hurd signals: Use POSIX sigcodes

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-hurdsig-SA_SIGINFO.diff

6 months agolocal-madvise_warn
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-madvise_warn

Do not warn about madvise not being implemented. It does not have any real
semantic anyway, and that brings some -Werror FTBFS.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-madvise_warn.diff

6 months agolocal-ED
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-ED

This is a long funny story, but even if it's standard-compliant, it poses too
many problems.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-ED.diff

6 months ago[PATCH] Add -lmachuser -lhurduser to libc.so on GNU/Hurd.
Samuel Thibault [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
[PATCH] Add -lmachuser -lhurduser to libc.so on GNU/Hurd.

http://lists.gnu.org/archive/html/bug-hurd/2011-03/msg00112.html

2011-03-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>

        * Makerules ($(inst_libdir)/libc.so): Add -lmachuser -lhurduser to
        libc.so on GNU/Hurd.

It's still unclear what we want to aim for.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-mach-hurd-link.diff

6 months ago[PATCH] hurd: SCM_CREDS support
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
[PATCH] hurd: SCM_CREDS support

Svante Signell  <svante.signell@gmail.com>
Samuel Thibault  <samuel.thibault@ens-lyon.org>

* sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): On SCM_CREDS
control messages, record uids, pass a rendez-vous port in the
control message, and call __auth_user_authenticate_request to
make auth send credentials on that port.  Do not wait for a
reply.
* sysdeps/mach/hurd/recvmsg.c (contains_uid, contains_gid,
check_auth): New functions.
(__libc_recvmsg): On SCM_CREDS control messages, call check_auth
to check the passed credentials thanks to the answer from the
auth server.
* hurd/Makefile (user-interfaces): Add auth_request and
auth_reply.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-sendmsg-SCM_CREDS.diff

6 months agolocal-disable-ioctls
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-disable-ioctls

struct ortentry and struct ifalias req are actually not defined
struct arpreq is defined, but can not be passed to an ioctl on the Hurd.
so let's make packages not believe these are available.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-disable-ioctls.diff

6 months ago[PATCH] Allow the kernel to start earlier than VM_MAX_ADDRESS
Samuel Thibault [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
[PATCH] Allow the kernel to start earlier than VM_MAX_ADDRESS

VM_MAX_ADDRESS shouldn't be hardcoded in libc, the kernel should be able to
decide about it dynamically. This fixes glibc into supporting that. It's however
a bit hackish.

This kludge will however go out once we have a recent enough gnumach,
anyway.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-bigmem.diff

6 months ago[PATCH] The critical section lock _can_ be held in these place.
Samuel Thibault [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
[PATCH] The critical section lock _can_ be held in these place.

At least since hurd_thread_cancel can be called by another thread and lock our
critical lock.

http://bugs.debian.org/46859


Thomas suggested that there is no need to take the critical section
lock.  I believe that taking the critical section lock is necessary to
prevent the target thread from entering a signal handler.  Roland will
look into the problem.


Taking the critical section lock makes these assertions bogus.

It happens that hurd_thread_cancel is only called from libports and inside
/hurd/term so this is rare in practice.

A reproducer can be found here:

http://lists.gnu.org/archive/html/bug-hurd/2014-05/msg00025.html

2006-08-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>

       * hurd/thread-cancel.c (hurd_thread_cancel): Do not assert that
       `&ss->critical_section_lock' is unlocked.
       * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise, and take
       critical section lock before taking the sigstate lock.
       * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-thread-cancel.diff

6 months ago[PATCH] Implement SysV shared memory for GNU/Hurd.
Marcus Brinkmann [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
[PATCH] Implement SysV shared memory for GNU/Hurd.

2005-07-11  Marcus Brinkmann  <marcus@gnu.org>

        * hurd/Makefile (routines): Add sysvshm.
        (distribute): Add sysvshm.h.
        * hurd/sysvshm.h: New file.
        * hurd/sysvshm.c: New file.
        * sysdeps/mach/hurd/bits/stat.h (S_IMMAP0): New macro.
        (S_ISPARE): Unset the S_IMMAP0 flag.
        * sysdeps/mach/hurd/ftok.c: New file.
        * sysdeps/mach/hurd/shmat.c: New file.
        * sysdeps/mach/hurd/shmctl.c: New file.
        * sysdeps/mach/hurd/shmdt.c: New file.
        * sysdeps/mach/hurd/bits/posix_opt.h: Define _XOPEN_SHM to 1.

TODO:

> +  char filename[sizeof (SHM_DIR) - 1 + SHM_NAMEMAX];
> +  struct stat statbuf;
> +
> +  sprintf (filename, SHM_DIR SHM_NAMEPRI, id);
> +  /* SysV requires read access for IPC_STAT.  */
> +  fd = __open (filename, O_NORW);
> +  if (fd < 0)
> +    {
> +      if (errno == ENOENT)
> +     errno = EINVAL;
> +      return -1;
> +    }

Since this is repeated in more than one function, put it into an
internal subroutine.  Then we have only one place doing the
name-generation logic.



> +    case IPC_RMID:
> +      res = __unlink (filename);
> +      /* FIXME: Check error (mapping ENOENT to EINVAL).  */

Fix it.


Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-sysvshm.diff

6 months agolocal-enable-ldconfig
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-enable-ldconfig

# DP: Description: Enable ldconfig and such on hurd-i386
# DP: Author: Jeff Bailey <jbailey@nisa.net>
# DP: Related Bugs: #309489
# DP: Upstream status: Not submitted
# DP: Status Details: Upstream disagrees with this patch, but I'm
# DP: putting it in so that we have expected Debian behaviour on the
# DP: Hurd.  We should review this when the ELF standard supports runpath.
# DP: Date: 08 Apr 2003

# DP: Description: Enable ldconfig and such on hurd-i386
# DP: Author: Jeff Bailey <jbailey@nisa.net>
# DP: Related Bugs: #309489
# DP: Upstream status: Not submitted
# DP: Status Details: Upstream disagrees with this patch, but I'm
# DP: putting it in so that we have expected Debian behaviour on the
# DP: Hurd.  We should review this when the ELF standard supports runpath.
# DP: Date: 08 Apr 2003

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-enable-ldconfig.diff

6 months agogit-posix_openpt
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-posix_openpt

https://sourceware.org/ml/libc-alpha/2019-12/msg00799.html

Committed for 2.33

Author: Samuel Thibault <samuel.thibault@ens-lyon.org>

    Rearrange bsd_getpt vs bsd_openpt and implement posix_openpt on BSD

    * sysdeps/unix/bsd/getpt.c (__getpt): Add oflag parameter, pass
    it to the _open call and rename to...
    (__bsd_openpt): ... new function.
    [!HAVE_GETPT] (__getpt): Reimplement on top of __bsd_openpt.
    (__posix_openpt): Replace stub with implementation on top of __bsd_openpt.
    (posix_openpt): Remove stub warning.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-posix_openpt.diff

6 months agolocal-inlining
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-inlining

Increase the maximal overall growth of the compilation unit caused
by inlining for dl-reloc.c on hppa. This remove some warnings and
strangely it reduces the size of the final binary.

Gbp-Pq: Topic hppa
Gbp-Pq: Name local-inlining.diff

6 months agoLie about futex_atomic_cmpxchg_inatomic kernel support.
Adam Conrad [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
Lie about futex_atomic_cmpxchg_inatomic kernel support.

Bug-Ubuntu: https://launchpad.net/bugs/1436162
Bug-Debian: https://bugs.debian.org/788799
Last-Update: 2015-03-25

In past versions of glibc, we incorrectly assumed all ARM kernels
in all configurations supported futex_atomic_cmpxchg_inatomic. This
was clearly a lie, however it was a lie that we relied on, because
the fallback implementation appears to not play nicely with certain
applications like pulseaudio.  Restore the lie for kernels > 2.6.32
and plug our ears and scream "LA LA LA" about how wrong this is.

Gbp-Pq: Topic arm
Gbp-Pq: Name local-arm-futex.diff

6 months agounsubmitted-ldso-multilib
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
unsubmitted-ldso-multilib

Gbp-Pq: Topic arm
Gbp-Pq: Name unsubmitted-ldso-multilib.diff

6 months agoWork around broken compilers (like fpc) on armhf
Adam Conrad [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
Work around broken compilers (like fpc) on armhf

Forwarded: no

patches/arm/local-vfp-sysdeps.diff: Force the Tag_ABI_HardFP_use
and Tag_ABI_VFP_args EABI tags when building for armhf, so compilers
only linking crti.o will generate what appear to be armhf binaries.

Gbp-Pq: Topic arm
Gbp-Pq: Name local-vfp-sysdeps.diff

6 months agolocal-soname-hack
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-soname-hack

For backward compatibility with armhf binaries built with the
old linker SONAME, we need to fake out the linker to believe
the new is the old, until such a point as everything is rebuilt

Gbp-Pq: Topic arm
Gbp-Pq: Name local-soname-hack.diff

6 months agounsubmitted-ldconfig-cache-abi
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
unsubmitted-ldconfig-cache-abi

Gbp-Pq: Topic arm
Gbp-Pq: Name unsubmitted-ldconfig-cache-abi.diff

6 months agolocal-sigaction
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-sigaction

Gbp-Pq: Topic arm
Gbp-Pq: Name local-sigaction.diff

6 months agosubmitted-makecontext
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
submitted-makecontext

2018-03-01  Aurelien Jarno  <aurelien@aurel32.net>

[BZ #22910]
* sysdeps/unix/sysv/linux/alpha/setcontext.S (__startcontext): Set
up CFI directive to forbid further backtracing.

Gbp-Pq: Topic alpha
Gbp-Pq: Name submitted-makecontext.diff

6 months agosubmitted-fts64
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
submitted-fts64

2016-03-22  Aurelien Jarno  <aurelien@aurel32.net>

* sysdeps/unix/sysv/linux/alpha/fts.c: New file.
* sysdeps/unix/sysv/linux/alpha/fts64.c: New file.

Gbp-Pq: Topic alpha
Gbp-Pq: Name submitted-fts64.diff

6 months agolocal-string-functions
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-string-functions

The alpha assembly version of various string functions do not work
correctly on some corner cases, and thus doesn't pass the testsuite.
This patch removes them.

Gbp-Pq: Topic alpha
Gbp-Pq: Name local-string-functions.diff

6 months agosubmitted-dl-support
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
submitted-dl-support

older versions of glibc would build dl-sysdep as shared-only and dl-support as
static-only.  alpha hooks in a cache variable via dl-auxv.h.  newer versions of
glibc build dl-sysdep as both shared and static which means we now have symbol
duplication for static builds with dl-sysdep and dl-support.  since dl-sysdep
is both shared/static, there is no point in hooking dl-support anymore, so we
can punt it.

Gbp-Pq: Topic alpha
Gbp-Pq: Name submitted-dl-support.diff

6 months agolocal-gcc4.1
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
local-gcc4.1

2006-05-30  Falk Hueffner <falk@debian.org>

* sysdeps/unix/sysv/linux/alpha/ioperm.c: force the architecture
  to ev6 in assembly code.

{standard input}: Assembler messages:
{standard input}:341: Error: macro requires $at register while noat in effect
{standard input}:374: Error: macro requires $at register while noat in effect
{standard input}:438: Error: macro requires $at register while noat in effect
{standard input}:471: Error: macro requires $at register while noat in effect
make[3]: *** [/tmp/buildd/glibc-2.3.6/build-tree/alpha-libc/misc/ioperm.o] Error 1

Hrm. gcc puts .arch ev4 into the .s, and this overrides -mev6 for as.
I cannot really think of anything better than

Gbp-Pq: Topic alpha
Gbp-Pq: Name local-gcc4.1.diff

6 months agogit-unicode-13-support
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-unicode-13-support

commit 8645f624697afecfaa4d97ac584bc0a943cbca17
Author: Mike FABIAN <mfabian@redhat.com>
Date:   Tue Apr 14 18:43:13 2020 +0200

    Bug 25819: Update to Unicode 13.0.0

    Unicode 13.0.0 Support: Character encoding, character type info, and
    transliteration tables are all updated to Unicode 13.0.0, using
    the generator scripts contributed by Mike FABIAN (Red Hat).

    Total added characters in newly generated CHARMAP: 5930
    Total added characters in newly generated WIDTH: 5536

Gbp-Pq: Topic localedata
Gbp-Pq: Name git-unicode-13-support.diff

6 months agosubmitted-es_MX-decimal_point
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
submitted-es_MX-decimal_point

2012-06-06  Aurelien Jarno  <aurelien@aurel32.net>

* locales/es_MX (LC_MONETARY): Set mon_thousands_sep to space
( ).

Gbp-Pq: Topic localedata
Gbp-Pq: Name submitted-es_MX-decimal_point.diff

6 months agolocale-C
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
locale-C

Gbp-Pq: Topic localedata
Gbp-Pq: Name locale-C.diff

6 months agotailor-iso14651_t1
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
tailor-iso14651_t1

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Rewrite collation rules to include iso14651_t1
# DP:  ar_SA cs_CZ et_EE hr_HR lt_LT pl_PL sl_SI tr_TR: not
# DP:    submitted yet.
# DP: Related bugs: BZ664 BZ672
# DP: Dpatch author: Denis Barbier
# DP: Patch author: Denis Barbier, Pablo Saratxaga
# DP: Upstream status: BZ664 BZ672
# DP: Date: 2006-01-18

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Rewrite collation rules to include iso14651_t1
# DP:  ar_SA cs_CZ et_EE hr_HR lt_LT pl_PL sl_SI tr_TR: not
# DP:    submitted yet.
# DP: Related bugs: BZ664 BZ672
# DP: Dpatch author: Denis Barbier
# DP: Patch author: Denis Barbier, Pablo Saratxaga
# DP: Upstream status: BZ664 BZ672
# DP: Date: 2006-01-18

2008-08-08  Aurelien Jarno <aurel32@debian.org>

        Loosy update for glibc 2.8.

2007-05-25  Pierre Habouzit <madcoder@debian.org>

        Loosy update for glibc 2.6.

2005-01-16  Denis Barbier  <barbier@linuxfr.org>

[BZ #672]
        Replace current collation rules by including iso14651_t1 and adding
        extra rules if needed.  There should be no noticeable changes in
        sorted text. only ligatures and ignoreable characters have modified
        weights.
* locales/da_DK: Likewise.

Gbp-Pq: Topic localedata
Gbp-Pq: Name tailor-iso14651_t1.diff

6 months agolocale-zh_TW
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
locale-zh_TW

See BTS #352600.
Not submitted yet.

Gbp-Pq: Topic localedata
Gbp-Pq: Name locale-zh_TW.diff

6 months agolocale-en_DK
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
locale-en_DK

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Improve en_DK and add en_DK.ISO-8859-15 to SUPPORTED
# DP:   This locale is only useful to provide ISO8601 date formats.
# DP: Related bugs: #323159
# DP: Dpatch author: Denis Barbier
# DP: Patch author: Jakob Bohm <jbj@image.dk>
# DP: Upstream status: not submitted
# DP: Date: 2006-01-16

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Improve en_DK and add en_DK.ISO-8859-15 to SUPPORTED
# DP:   This locale is only useful to provide ISO8601 date formats.
# DP: Related bugs: #323159
# DP: Dpatch author: Denis Barbier
# DP: Patch author: Jakob Bohm <jbj@image.dk>
# DP: Upstream status: not submitted
# DP: Date: 2006-01-16

Gbp-Pq: Topic localedata
Gbp-Pq: Name locale-en_DK.diff

6 months agolocales-fr
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
locales-fr

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Various fixes for all French locales
# DP: Related bugs: #248377  #351786 #345481
# DP: Dpatch author: Denis Barbier <barbier@debian.org>
# DP: Patch author: Denis Barbier
# DP: Upstream status: not submitted
# DP: Date: 2006-01-10

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Various fixes for all French locales
# DP: Related bugs: #248377  #351786 #345481
# DP: Dpatch author: Denis Barbier <barbier@debian.org>
# DP: Patch author: Denis Barbier
# DP: Upstream status: not submitted
# DP: Date: 2006-01-10

Gbp-Pq: Topic localedata
Gbp-Pq: Name locales-fr.diff

6 months agofo_FO-date_fmt
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
fo_FO-date_fmt

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Fix d_t_fmt and date_fmt in fo_FO
# DP: Related bugs: #307194
# DP: Dpatch author: Denis Barbier
# DP: Patch author: Jacob Sparre Andersen <sparre@nbi.dk>
# DP: Upstream status: not submitted
# DP: Date: 2006-01-10

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Fix d_t_fmt and date_fmt in fo_FO
# DP: Related bugs: #307194
# DP: Dpatch author: Denis Barbier
# DP: Patch author: Jacob Sparre Andersen <sparre@nbi.dk>
# DP: Upstream status: not submitted
# DP: Date: 2006-01-10

Gbp-Pq: Topic localedata
Gbp-Pq: Name fo_FO-date_fmt.diff

6 months agolocale-ku_TR
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
locale-ku_TR

# DP: Description: Please add Kurdish locale
# DP: Related bugs: BZ870
# DP: Dpatch author: Denis Barbier <barbier@debian.org>
# DP: Patch author: Kader DILSIZ, Pablo Saratxaga
# DP: Upstream status: Version 0.1 submitted in the original bugreport
# DP:   has been committed, this new version has been sent just after.
# DP: Date: 2006-01-06

# DP: Description: Please add Kurdish locale
# DP: Related bugs: BZ870
# DP: Dpatch author: Denis Barbier <barbier@debian.org>
# DP: Patch author: Kader DILSIZ, Pablo Saratxaga
# DP: Upstream status: Version 0.1 submitted in the original bugreport
# DP:   has been committed, this new version has been sent just after.
# DP: Date: 2006-01-06

Gbp-Pq: Topic localedata
Gbp-Pq: Name locale-ku_TR.diff

6 months agolocale-eu_FR
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
locale-eu_FR

# DP: Description: #257840: locales: Please add the eu_FR locale
# DP: Related bugs: #257840
# DP: Dpatch author: GOTO Masanori <gotom@debian.org>
# DP: Patch author: Christian Perrier <bubulle@debian.org>
# DP: Upstream status: Not submitted
# DP: Status Details: sending upstream
# DP: Date: 2004-07-31

# DP: Description: #257840: locales: Please add the eu_FR locale
# DP: Related bugs: #257840
# DP: Dpatch author: GOTO Masanori <gotom@debian.org>
# DP: Patch author: Christian Perrier <bubulle@debian.org>
# DP: Upstream status: Not submitted
# DP: Status Details: sending upstream
# DP: Date: 2004-07-31

Gbp-Pq: Topic localedata
Gbp-Pq: Name locale-eu_FR.diff

6 months agosupported
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
supported

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Add several locales to localedata.SUPPORTED
# DP: - ru_RU.CP1251 was requested in #225516
# DP: - uz_UZ.UTF-8 was clearly missing, uz_UZ had no UTF-8 variant
# DP: - da_DK.ISO-8859-15, en_GB.ISO-8859-15, en_US.ISO-8859-15, no_NO.UTF-8,
# DP:   no_NO and sv_SE.ISO-8859-15 are found in fedora-branch CVS branch.
# DP: Related bugs: #225516 (ru_RU.CP1251)
# DP: Dpatch author: Denis Barbier
# DP: Upstream status: not submitted
# DP: Date: 2006-01-10

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Add several locales to localedata.SUPPORTED
# DP: - ru_RU.CP1251 was requested in #225516
# DP: - uz_UZ.UTF-8 was clearly missing, uz_UZ had no UTF-8 variant
# DP: - da_DK.ISO-8859-15, en_GB.ISO-8859-15, en_US.ISO-8859-15, no_NO.UTF-8,
# DP:   no_NO and sv_SE.ISO-8859-15 are found in fedora-branch CVS branch.
# DP: Related bugs: #225516 (ru_RU.CP1251)
# DP: Dpatch author: Denis Barbier
# DP: Upstream status: not submitted
# DP: Date: 2006-01-10

Gbp-Pq: Topic localedata
Gbp-Pq: Name supported.diff

6 months agosort-UTF8-first
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
sort-UTF8-first

Gbp-Pq: Topic localedata
Gbp-Pq: Name sort-UTF8-first.diff

6 months agoLC_IDENTIFICATION-optional-fields
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
LC_IDENTIFICATION-optional-fields

In LC_IDENTIFICATION, audience, application and abbreviation keywords
are optional, thus do not report an error if they are not defined.

# DP: Dpatch author: Denis Barbier
# DP: Patch author: Denis Barbier
# DP: Upstream status: not submitted
# DP: Date: 2006-01-08

Gbp-Pq: Topic locale
Gbp-Pq: Name LC_IDENTIFICATION-optional-fields.diff

6 months agolocale-print-LANGUAGE
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
locale-print-LANGUAGE

Comments tell that LANG has to be the first value, and LC_ALL the last
one.  Thus LANGUAGE is printed between them.

# DP: Dpatch author: Denis Barbier
# DP: Patch author: Denis Barbier
# DP: Upstream status: not submitted
# DP: Date: 2006-01-08

Gbp-Pq: Topic locale
Gbp-Pq: Name locale-print-LANGUAGE.diff

6 months agocheck-unknown-symbols
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
check-unknown-symbols

Check for unknown symbols in collation rules.  This is useful to detect
broken locales since unknown symbols are always wrong.

This request has not been submitted upstream yet.

# DP: Dpatch author: Denis Barbier
# DP: Patch author: Denis Barbier
# DP: Upstream status: not submitted
# DP: Date: 2006-01-08

Gbp-Pq: Topic locale
Gbp-Pq: Name check-unknown-symbols.diff

6 months agogit-updates
GNU Libc Maintainers [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
git-updates

GIT update of https://sourceware.org/git/glibc.git/release/2.31/master from glibc-2.31

GIT update of https://sourceware.org/git/glibc.git/release/2.31/master from glibc-2.31

Gbp-Pq: Name git-updates.diff

6 months agoglibc (2.31-13+deb11u13) bullseye-security; urgency=high
Sean Whitton [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
glibc (2.31-13+deb11u13) bullseye-security; urgency=high

  * Non-maintainer upload by the LTS Security Team.
  * debian/patches/local-CVE-2025-4802-{1,2,3,4}.diff:
    Fix untrusted LD_LIBRARY_PATH env var vulnerability (CVE-2025-4802).

[dgit import unpatched glibc 2.31-13+deb11u13]

6 months agoImport glibc_2.31-13+deb11u13.debian.tar.xz
Sean Whitton [Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)]
Import glibc_2.31-13+deb11u13.debian.tar.xz

[dgit import tarball glibc 2.31-13+deb11u13 glibc_2.31-13+deb11u13.debian.tar.xz]

5 years agoImport glibc_2.31.orig.tar.xz
Aurelien Jarno [Thu, 12 Mar 2020 06:10:01 +0000 (07:10 +0100)]
Import glibc_2.31.orig.tar.xz

[dgit import orig glibc_2.31.orig.tar.xz]