mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
htl: move pthread_attr_setguardsize into libc.
Signed-off-by: gfleury <gfleury@disroot.org>
This commit is contained in:
parent
f26b272a75
commit
1a1cedd635
@ -26,7 +26,6 @@ LCLHDRS :=
|
|||||||
|
|
||||||
libpthread-routines := \
|
libpthread-routines := \
|
||||||
pt-attr-init \
|
pt-attr-init \
|
||||||
pt-attr-setguardsize \
|
|
||||||
pt-barrier-destroy \
|
pt-barrier-destroy \
|
||||||
pt-barrier-init \
|
pt-barrier-init \
|
||||||
pt-barrier-wait \
|
pt-barrier-wait \
|
||||||
@ -199,6 +198,7 @@ routines := \
|
|||||||
pt-attr-getstackaddr \
|
pt-attr-getstackaddr \
|
||||||
pt-attr-getstacksize \
|
pt-attr-getstacksize \
|
||||||
pt-attr-setdetachstate \
|
pt-attr-setdetachstate \
|
||||||
|
pt-attr-setguardsize \
|
||||||
pt-attr-setinheritsched \
|
pt-attr-setinheritsched \
|
||||||
pt-attr-setschedparam \
|
pt-attr-setschedparam \
|
||||||
pt-attr-setschedpolicy \
|
pt-attr-setschedpolicy \
|
||||||
|
@ -19,6 +19,7 @@ libc {
|
|||||||
pthread_attr_getstacksize;
|
pthread_attr_getstacksize;
|
||||||
pthread_attr_getstackaddr;
|
pthread_attr_getstackaddr;
|
||||||
pthread_attr_getstack;
|
pthread_attr_getstack;
|
||||||
|
pthread_attr_setguardsize;
|
||||||
pthread_attr_setstacksize;
|
pthread_attr_setstacksize;
|
||||||
pthread_attr_setstackaddr;
|
pthread_attr_setstackaddr;
|
||||||
pthread_attr_setstack;
|
pthread_attr_setstack;
|
||||||
@ -61,6 +62,7 @@ libc {
|
|||||||
pthread_attr_setstacksize;
|
pthread_attr_setstacksize;
|
||||||
pthread_attr_setstackaddr;
|
pthread_attr_setstackaddr;
|
||||||
pthread_attr_setstack;
|
pthread_attr_setstack;
|
||||||
|
pthread_attr_setguardsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -107,7 +109,6 @@ libpthread {
|
|||||||
pthread_atfork;
|
pthread_atfork;
|
||||||
|
|
||||||
pthread_attr_init;
|
pthread_attr_init;
|
||||||
pthread_attr_setguardsize;
|
|
||||||
|
|
||||||
pthread_barrier_destroy; pthread_barrier_init; pthread_barrier_wait;
|
pthread_barrier_destroy; pthread_barrier_init; pthread_barrier_wait;
|
||||||
pthread_barrierattr_destroy; pthread_barrierattr_getpshared;
|
pthread_barrierattr_destroy; pthread_barrierattr_getpshared;
|
||||||
|
@ -17,11 +17,17 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
#include <shlib-compat.h>
|
||||||
#include <pt-internal.h>
|
#include <pt-internal.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
pthread_attr_setguardsize (pthread_attr_t *attr, size_t guardsize)
|
__pthread_attr_setguardsize (pthread_attr_t *attr, size_t guardsize)
|
||||||
{
|
{
|
||||||
attr->__guardsize = guardsize;
|
attr->__guardsize = guardsize;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
versioned_symbol (libpthread, __pthread_attr_setguardsize, pthread_attr_setguardsize, GLIBC_2_41);
|
||||||
|
|
||||||
|
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
|
||||||
|
compat_symbol (libpthread, __pthread_attr_setguardsize, pthread_attr_setguardsize, GLIBC_2_12);
|
||||||
|
#endif
|
||||||
|
@ -40,6 +40,7 @@ GLIBC_2.12 pthread_attr_getstack F
|
|||||||
GLIBC_2.12 pthread_attr_getstackaddr F
|
GLIBC_2.12 pthread_attr_getstackaddr F
|
||||||
GLIBC_2.12 pthread_attr_getstacksize F
|
GLIBC_2.12 pthread_attr_getstacksize F
|
||||||
GLIBC_2.12 pthread_attr_setdetachstate F
|
GLIBC_2.12 pthread_attr_setdetachstate F
|
||||||
|
GLIBC_2.12 pthread_attr_setguardsize F
|
||||||
GLIBC_2.12 pthread_attr_setinheritsched F
|
GLIBC_2.12 pthread_attr_setinheritsched F
|
||||||
GLIBC_2.12 pthread_attr_setschedparam F
|
GLIBC_2.12 pthread_attr_setschedparam F
|
||||||
GLIBC_2.12 pthread_attr_setschedpolicy F
|
GLIBC_2.12 pthread_attr_setschedpolicy F
|
||||||
@ -2497,6 +2498,7 @@ GLIBC_2.41 pthread_attr_getguardsize F
|
|||||||
GLIBC_2.41 pthread_attr_getstack F
|
GLIBC_2.41 pthread_attr_getstack F
|
||||||
GLIBC_2.41 pthread_attr_getstackaddr F
|
GLIBC_2.41 pthread_attr_getstackaddr F
|
||||||
GLIBC_2.41 pthread_attr_getstacksize F
|
GLIBC_2.41 pthread_attr_getstacksize F
|
||||||
|
GLIBC_2.41 pthread_attr_setguardsize F
|
||||||
GLIBC_2.41 pthread_attr_setstack F
|
GLIBC_2.41 pthread_attr_setstack F
|
||||||
GLIBC_2.41 pthread_attr_setstackaddr F
|
GLIBC_2.41 pthread_attr_setstackaddr F
|
||||||
GLIBC_2.41 pthread_attr_setstacksize F
|
GLIBC_2.41 pthread_attr_setstacksize F
|
||||||
|
@ -23,7 +23,6 @@ GLIBC_2.12 ftrylockfile F
|
|||||||
GLIBC_2.12 funlockfile F
|
GLIBC_2.12 funlockfile F
|
||||||
GLIBC_2.12 pthread_atfork F
|
GLIBC_2.12 pthread_atfork F
|
||||||
GLIBC_2.12 pthread_attr_init F
|
GLIBC_2.12 pthread_attr_init F
|
||||||
GLIBC_2.12 pthread_attr_setguardsize F
|
|
||||||
GLIBC_2.12 pthread_barrier_destroy F
|
GLIBC_2.12 pthread_barrier_destroy F
|
||||||
GLIBC_2.12 pthread_barrier_init F
|
GLIBC_2.12 pthread_barrier_init F
|
||||||
GLIBC_2.12 pthread_barrier_wait F
|
GLIBC_2.12 pthread_barrier_wait F
|
||||||
|
@ -1523,6 +1523,7 @@ GLIBC_2.38 pthread_attr_getstackaddr F
|
|||||||
GLIBC_2.38 pthread_attr_getstacksize F
|
GLIBC_2.38 pthread_attr_getstacksize F
|
||||||
GLIBC_2.38 pthread_attr_init F
|
GLIBC_2.38 pthread_attr_init F
|
||||||
GLIBC_2.38 pthread_attr_setdetachstate F
|
GLIBC_2.38 pthread_attr_setdetachstate F
|
||||||
|
GLIBC_2.38 pthread_attr_setguardsize F
|
||||||
GLIBC_2.38 pthread_attr_setinheritsched F
|
GLIBC_2.38 pthread_attr_setinheritsched F
|
||||||
GLIBC_2.38 pthread_attr_setschedparam F
|
GLIBC_2.38 pthread_attr_setschedparam F
|
||||||
GLIBC_2.38 pthread_attr_setschedpolicy F
|
GLIBC_2.38 pthread_attr_setschedpolicy F
|
||||||
@ -2195,6 +2196,7 @@ GLIBC_2.41 pthread_attr_getguardsize F
|
|||||||
GLIBC_2.41 pthread_attr_getstack F
|
GLIBC_2.41 pthread_attr_getstack F
|
||||||
GLIBC_2.41 pthread_attr_getstackaddr F
|
GLIBC_2.41 pthread_attr_getstackaddr F
|
||||||
GLIBC_2.41 pthread_attr_getstacksize F
|
GLIBC_2.41 pthread_attr_getstacksize F
|
||||||
|
GLIBC_2.41 pthread_attr_setguardsize F
|
||||||
GLIBC_2.41 pthread_attr_setstack F
|
GLIBC_2.41 pthread_attr_setstack F
|
||||||
GLIBC_2.41 pthread_attr_setstackaddr F
|
GLIBC_2.41 pthread_attr_setstackaddr F
|
||||||
GLIBC_2.41 pthread_attr_setstacksize F
|
GLIBC_2.41 pthread_attr_setstacksize F
|
||||||
|
@ -40,7 +40,6 @@ GLIBC_2.38 mtx_timedlock F
|
|||||||
GLIBC_2.38 mtx_trylock F
|
GLIBC_2.38 mtx_trylock F
|
||||||
GLIBC_2.38 mtx_unlock F
|
GLIBC_2.38 mtx_unlock F
|
||||||
GLIBC_2.38 pthread_attr_init F
|
GLIBC_2.38 pthread_attr_init F
|
||||||
GLIBC_2.38 pthread_attr_setguardsize F
|
|
||||||
GLIBC_2.38 pthread_barrier_destroy F
|
GLIBC_2.38 pthread_barrier_destroy F
|
||||||
GLIBC_2.38 pthread_barrier_init F
|
GLIBC_2.38 pthread_barrier_init F
|
||||||
GLIBC_2.38 pthread_barrier_wait F
|
GLIBC_2.38 pthread_barrier_wait F
|
||||||
|
Loading…
Reference in New Issue
Block a user