about summary refs log tree commit diff
path: root/htl
diff options
context:
space:
mode:
authorGuy-Fleury Iteriteka <gfleury@disroot.org>2023-07-16 10:44:11 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-24 01:57:14 +0200
commit0f3a39072b5893bef6d06e15f98e2a06a11df856 (patch)
tree08a11ef5d405626ffbd5e10557d626b37a4eed20 /htl
parentfb2d92a5b31758900cb147ec8c6f656f404205ba (diff)
downloadglibc-0f3a39072b5893bef6d06e15f98e2a06a11df856.tar.gz
glibc-0f3a39072b5893bef6d06e15f98e2a06a11df856.tar.xz
glibc-0f3a39072b5893bef6d06e15f98e2a06a11df856.zip
htl: move pthread_attr_getschedpolicy into libc
Signed-off-by: Guy-Fleury Iteriteka <gfleury@disroot.org>
Message-Id: <20230716084414.107245-8-gfleury@disroot.org>
Diffstat (limited to 'htl')
-rw-r--r--htl/Makefile4
-rw-r--r--htl/Versions1
-rw-r--r--htl/forward.c2
-rw-r--r--htl/pt-initialize.c1
4 files changed, 2 insertions, 6 deletions
diff --git a/htl/Makefile b/htl/Makefile
index 0318d81166..ecdc977e11 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -26,7 +26,7 @@ LCLHDRS :=
 
 libpthread-routines := pt-attr pt-attr-destroy pt-attr-getdetachstate	    \
 	pt-attr-getguardsize                     			    \
-	pt-attr-getschedpolicy pt-attr-getscope	                            \
+	pt-attr-getscope	                                            \
 	pt-attr-getstack pt-attr-getstackaddr pt-attr-getstacksize	    \
 	pt-attr-init pt-attr-setdetachstate pt-attr-setguardsize	    \
 	pt-attr-setschedparam			                            \
@@ -166,7 +166,7 @@ distribute :=
 
 routines := forward libc_pthread_init alloca_cutoff htlfreeres pt-nthreads pt-pthread_self pt-self pt-equal \
 	pt-getschedparam pt-setschedparam pt-attr-getschedparam pt-attr-getinheritsched                     \
-	pt-attr-setinheritsched
+	pt-attr-setinheritsched pt-attr-getschedpolicy
 shared-only-routines = forward
 
 extra-libs := libpthread
diff --git a/htl/Versions b/htl/Versions
index 854ccceeff..ad493142cb 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -68,7 +68,6 @@ libpthread {
 
     pthread_attr_destroy; pthread_attr_getdetachstate;
     pthread_attr_getguardsize;
-    pthread_attr_getschedpolicy;
     pthread_attr_getscope; pthread_attr_getstack; pthread_attr_getstackaddr;
     pthread_attr_getstacksize; pthread_attr_init; pthread_attr_setdetachstate;
     pthread_attr_setguardsize;
diff --git a/htl/forward.c b/htl/forward.c
index adc64e87ad..76a420acd4 100644
--- a/htl/forward.c
+++ b/htl/forward.c
@@ -67,8 +67,6 @@ FORWARD (pthread_attr_setschedparam,
 	 (pthread_attr_t *attr, const struct sched_param *param),
 	 (attr, param), 0)
 
-FORWARD (pthread_attr_getschedpolicy,
-	 (const pthread_attr_t *attr, int *policy), (attr, policy), 0)
 FORWARD (pthread_attr_setschedpolicy, (pthread_attr_t *attr, int policy),
 	 (attr, policy), 0)
 
diff --git a/htl/pt-initialize.c b/htl/pt-initialize.c
index 01da6dae01..51a68f419a 100644
--- a/htl/pt-initialize.c
+++ b/htl/pt-initialize.c
@@ -32,7 +32,6 @@ static const struct pthread_functions pthread_functions = {
   .ptr_pthread_attr_getdetachstate = __pthread_attr_getdetachstate,
   .ptr_pthread_attr_setdetachstate = __pthread_attr_setdetachstate,
   .ptr_pthread_attr_setschedparam = __pthread_attr_setschedparam,
-  .ptr_pthread_attr_getschedpolicy = __pthread_attr_getschedpolicy,
   .ptr_pthread_attr_setschedpolicy = __pthread_attr_setschedpolicy,
   .ptr_pthread_attr_getscope = __pthread_attr_getscope,
   .ptr_pthread_attr_setscope = __pthread_attr_setscope,