diff options
author | gfleury <gfleury@disroot.org> | 2025-08-15 20:14:45 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-08-16 01:15:37 +0200 |
commit | 450912d5dbcbdb0b34e71cd24d2a795e9674bd19 (patch) | |
tree | c46111da6c0aa8fbb0026c1e0ff1770625651399 | |
parent | 2522a3f3ae127356f15170d769398469151c786d (diff) | |
download | glibc-450912d5dbcbdb0b34e71cd24d2a795e9674bd19.zip glibc-450912d5dbcbdb0b34e71cd24d2a795e9674bd19.tar.gz glibc-450912d5dbcbdb0b34e71cd24d2a795e9674bd19.tar.bz2 |
htl: move __pthread_stack_alloc into libc.
Message-ID: <20250815181500.107433-5-gfleury@disroot.org>
-rw-r--r-- | htl/Makefile | 2 | ||||
-rw-r--r-- | htl/Versions | 1 | ||||
-rw-r--r-- | htl/pt-internal.h | 1 | ||||
-rw-r--r-- | sysdeps/mach/htl/pt-stack-alloc.c | 2 |
4 files changed, 5 insertions, 1 deletions
diff --git a/htl/Makefile b/htl/Makefile index 1b2b501..88d02ca 100644 --- a/htl/Makefile +++ b/htl/Makefile @@ -37,7 +37,6 @@ libpthread-routines := \ pt-mutex-transfer-np \ pt-hurd-cond-wait \ pt-hurd-cond-timedwait \ - pt-stack-alloc \ pt-thread-alloc \ pt-thread-start \ pt-thread-terminate \ @@ -208,6 +207,7 @@ routines := \ pt-sigmask \ pt-sigstate \ pt-sigstate-destroy \ + pt-stack-alloc \ pt-timedblock \ pt-timedblock-intr \ pt-wakeup \ diff --git a/htl/Versions b/htl/Versions index 851a2a5..8d9dad8 100644 --- a/htl/Versions +++ b/htl/Versions @@ -245,6 +245,7 @@ libc { __pthread_sigstate; __pthread_sigstate_destroy; __pthread_sigmask; + __pthread_stack_alloc; __pthread_timedblock; __pthread_timedblock_intr; __pthread_wakeup; diff --git a/htl/pt-internal.h b/htl/pt-internal.h index 5438563..28b7785 100644 --- a/htl/pt-internal.h +++ b/htl/pt-internal.h @@ -229,6 +229,7 @@ libc_hidden_proto (__pthread_dealloc_finish) /* Allocate a stack of size STACKSIZE. The stack base shall be returned in *STACKADDR. */ extern int __pthread_stack_alloc (void **stackaddr, size_t stacksize); +libc_hidden_proto (__pthread_stack_alloc) /* Deallocate the stack STACKADDR of size STACKSIZE. */ extern void __pthread_stack_dealloc (void *stackaddr, size_t stacksize); diff --git a/sysdeps/mach/htl/pt-stack-alloc.c b/sysdeps/mach/htl/pt-stack-alloc.c index 3e196f8..64cc186 100644 --- a/sysdeps/mach/htl/pt-stack-alloc.c +++ b/sysdeps/mach/htl/pt-stack-alloc.c @@ -21,6 +21,7 @@ #include <mach.h> #include <pt-internal.h> +#include <ldsodefs.h> /* Allocate a new stack of size STACKSIZE. If successful, store the address of the newly allocated stack in *STACKADDR and return 0. @@ -44,3 +45,4 @@ __pthread_stack_alloc (void **stackaddr, size_t stacksize) err = EAGAIN; return err; } +libc_hidden_def (__pthread_stack_alloc) |