aboutsummaryrefslogtreecommitdiff
path: root/htl
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2024-11-18 13:21:33 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-11-19 01:08:14 +0100
commit736befab6ca9069a9ff7d92b1db3f32655512307 (patch)
tree4c9ecb61e6f4d3017ac79d83651870d10744db59 /htl
parentce13ab503375d6db3d97fe19c6ccf229330d3988 (diff)
downloadglibc-736befab6ca9069a9ff7d92b1db3f32655512307.tar.xz
glibc-736befab6ca9069a9ff7d92b1db3f32655512307.zip
htl: move pthread_attr_destroy into libc.
Signed-off-by: gfleury <gfleury@disroot.org>
Diffstat (limited to 'htl')
-rw-r--r--htl/Makefile2
-rw-r--r--htl/Versions2
-rw-r--r--htl/forward.c2
-rw-r--r--htl/pt-initialize.c1
4 files changed, 2 insertions, 5 deletions
diff --git a/htl/Makefile b/htl/Makefile
index c5d1c473a0..bd1afe8009 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -26,7 +26,6 @@ LCLHDRS :=
libpthread-routines := \
pt-attr \
- pt-attr-destroy \
pt-attr-getguardsize \
pt-attr-getscope \
pt-attr-getstack \
@@ -199,6 +198,7 @@ routines := \
forward \
htlfreeres \
libc_pthread_init \
+ pt-attr-destroy \
pt-attr-getdetachstate \
pt-attr-getinheritsched \
pt-attr-getschedparam \
diff --git a/htl/Versions b/htl/Versions
index 949c1867fe..34b1f87a5f 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -13,6 +13,7 @@ libc {
pthread_equal;
pthread_getschedparam;
pthread_setschedparam;
+ pthread_attr_destroy;
}
GLIBC_2.21 {
@@ -77,7 +78,6 @@ libpthread {
pthread_atfork;
- pthread_attr_destroy;
pthread_attr_getguardsize;
pthread_attr_getscope; pthread_attr_getstack; pthread_attr_getstackaddr;
pthread_attr_getstacksize; pthread_attr_init;
diff --git a/htl/forward.c b/htl/forward.c
index ee89e50b3c..579e8cba4c 100644
--- a/htl/forward.c
+++ b/htl/forward.c
@@ -53,8 +53,6 @@ name decl \
#define FORWARD(name, decl, params, defretval) \
FORWARD2 (name, int, decl, params, return defretval)
-FORWARD (pthread_attr_destroy, (pthread_attr_t *attr), (attr), 0)
-
FORWARD (pthread_attr_init, (pthread_attr_t *attr), (attr), 0)
FORWARD (pthread_attr_setschedparam,
diff --git a/htl/pt-initialize.c b/htl/pt-initialize.c
index 47b992fe06..0368bfa4c7 100644
--- a/htl/pt-initialize.c
+++ b/htl/pt-initialize.c
@@ -27,7 +27,6 @@
#if IS_IN (libpthread)
static const struct pthread_functions pthread_functions = {
- .ptr_pthread_attr_destroy = __pthread_attr_destroy,
.ptr_pthread_attr_init = __pthread_attr_init,
.ptr_pthread_attr_setschedparam = __pthread_attr_setschedparam,
.ptr_pthread_attr_getscope = __pthread_attr_getscope,