From 736befab6ca9069a9ff7d92b1db3f32655512307 Mon Sep 17 00:00:00 2001 From: gfleury Date: Mon, 18 Nov 2024 13:21:33 +0200 Subject: htl: move pthread_attr_destroy into libc. Signed-off-by: gfleury --- htl/Makefile | 2 +- htl/Versions | 2 +- htl/forward.c | 2 -- htl/pt-initialize.c | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) (limited to 'htl') 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, -- cgit v1.2.3