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:
@@ -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 \
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user