]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: move __pthread_stack_alloc into libc.
authorgfleury <gfleury@disroot.org>
Fri, 15 Aug 2025 18:14:45 +0000 (20:14 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 15 Aug 2025 23:15:37 +0000 (01:15 +0200)
Message-ID: <20250815181500.107433-5-gfleury@disroot.org>

htl/Makefile
htl/Versions
htl/pt-internal.h
sysdeps/mach/htl/pt-stack-alloc.c

index 1b2b501feffeea49e32868349a9577788c92494a..88d02ca8a277dd988133f3d767431ddbcb0bee0c 100644 (file)
@@ -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 \
index 851a2a5398f0a5a95f18586bb74435342bce4700..8d9dad887cde6ff5207b1d8dcc5bf7dfc51ae07b 100644 (file)
@@ -245,6 +245,7 @@ libc {
     __pthread_sigstate;
     __pthread_sigstate_destroy;
     __pthread_sigmask;
+    __pthread_stack_alloc;
     __pthread_timedblock;
     __pthread_timedblock_intr;
     __pthread_wakeup;
index 54385630b14903742f766a9bf07cb2ae03f3e1bc..28b7785045fc79547d24da1b53a174e0af151c70 100644 (file)
@@ -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);
index 3e196f8ca7cbeb343e85f86797e3a42cc08ec451..64cc18657ef569e828723d6ea3d98a844611e0a9 100644 (file)
@@ -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)