1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-27 12:15:39 +03:00

htl: move __pthread_stack_alloc into libc.

Message-ID: <20250815181500.107433-5-gfleury@disroot.org>
This commit is contained in:
gfleury
2025-08-15 20:14:45 +02:00
committed by Samuel Thibault
parent 2522a3f3ae
commit 450912d5db
4 changed files with 5 additions and 1 deletions

View File

@@ -37,7 +37,6 @@ libpthread-routines := \
pt-mutex-transfer-np \ pt-mutex-transfer-np \
pt-hurd-cond-wait \ pt-hurd-cond-wait \
pt-hurd-cond-timedwait \ pt-hurd-cond-timedwait \
pt-stack-alloc \
pt-thread-alloc \ pt-thread-alloc \
pt-thread-start \ pt-thread-start \
pt-thread-terminate \ pt-thread-terminate \
@@ -208,6 +207,7 @@ routines := \
pt-sigmask \ pt-sigmask \
pt-sigstate \ pt-sigstate \
pt-sigstate-destroy \ pt-sigstate-destroy \
pt-stack-alloc \
pt-timedblock \ pt-timedblock \
pt-timedblock-intr \ pt-timedblock-intr \
pt-wakeup \ pt-wakeup \

View File

@@ -245,6 +245,7 @@ libc {
__pthread_sigstate; __pthread_sigstate;
__pthread_sigstate_destroy; __pthread_sigstate_destroy;
__pthread_sigmask; __pthread_sigmask;
__pthread_stack_alloc;
__pthread_timedblock; __pthread_timedblock;
__pthread_timedblock_intr; __pthread_timedblock_intr;
__pthread_wakeup; __pthread_wakeup;

View File

@@ -229,6 +229,7 @@ libc_hidden_proto (__pthread_dealloc_finish)
/* Allocate a stack of size STACKSIZE. The stack base shall be /* Allocate a stack of size STACKSIZE. The stack base shall be
returned in *STACKADDR. */ returned in *STACKADDR. */
extern int __pthread_stack_alloc (void **stackaddr, size_t stacksize); extern int __pthread_stack_alloc (void **stackaddr, size_t stacksize);
libc_hidden_proto (__pthread_stack_alloc)
/* Deallocate the stack STACKADDR of size STACKSIZE. */ /* Deallocate the stack STACKADDR of size STACKSIZE. */
extern void __pthread_stack_dealloc (void *stackaddr, size_t stacksize); extern void __pthread_stack_dealloc (void *stackaddr, size_t stacksize);

View File

@@ -21,6 +21,7 @@
#include <mach.h> #include <mach.h>
#include <pt-internal.h> #include <pt-internal.h>
#include <ldsodefs.h>
/* Allocate a new stack of size STACKSIZE. If successful, store the /* Allocate a new stack of size STACKSIZE. If successful, store the
address of the newly allocated stack in *STACKADDR and return 0. 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; err = EAGAIN;
return err; return err;
} }
libc_hidden_def (__pthread_stack_alloc)