aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-08-28 12:01:14 +0200
committerFlorian Weimer <fweimer@redhat.com>2019-08-28 12:01:14 +0200
commitffced383cd7e092a1c6e50ca50f692d2fe2a7dbe (patch)
tree744698018b44d359a03fa0f3985c4bbb2c0cb59d /nptl
parent61d3db428176d9d0822e4e680305fe34285edff2 (diff)
downloadglibc-ffced383cd7e092a1c6e50ca50f692d2fe2a7dbe.tar
glibc-ffced383cd7e092a1c6e50ca50f692d2fe2a7dbe.tar.gz
glibc-ffced383cd7e092a1c6e50ca50f692d2fe2a7dbe.tar.bz2
glibc-ffced383cd7e092a1c6e50ca50f692d2fe2a7dbe.zip
nptl: Move pthread_attr_setdetachstate implementation into libc
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl')
-rw-r--r--nptl/Makefile4
-rw-r--r--nptl/Versions1
-rw-r--r--nptl/forward.c3
-rw-r--r--nptl/nptl-init.c1
4 files changed, 2 insertions, 7 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index 4c7ae6a561..823241d3a0 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -31,7 +31,8 @@ routines = alloca_cutoff forward libc-lowlevellock libc-cancellation \
libc-cleanup libc_pthread_init libc_multiple_threads \
register-atfork pthread_atfork pthread_self thrd_current \
thrd_equal thrd_sleep thrd_yield pthread_equal \
- pthread_attr_destroy pthread_attr_init pthread_attr_getdetachstate
+ pthread_attr_destroy pthread_attr_init pthread_attr_getdetachstate \
+ pthread_attr_setdetachstate
shared-only-routines = forward
static-only-routines = pthread_atfork
@@ -54,7 +55,6 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \
pthread_getconcurrency pthread_setconcurrency \
pthread_getschedparam pthread_setschedparam \
pthread_setschedprio \
- pthread_attr_setdetachstate \
pthread_attr_getguardsize pthread_attr_setguardsize \
pthread_attr_getschedparam pthread_attr_setschedparam \
pthread_attr_getschedpolicy pthread_attr_setschedpolicy \
diff --git a/nptl/Versions b/nptl/Versions
index ae0a4cbb3f..1e055eaabe 100644
--- a/nptl/Versions
+++ b/nptl/Versions
@@ -49,7 +49,6 @@ libpthread {
pthread_getschedparam; pthread_setschedparam;
- pthread_attr_setdetachstate;
pthread_attr_getschedparam; pthread_attr_setschedparam;
pthread_attr_getschedpolicy; pthread_attr_setschedpolicy;
pthread_attr_getinheritsched; pthread_attr_setinheritsched;
diff --git a/nptl/forward.c b/nptl/forward.c
index 96454bcccf..163a3e5d5b 100644
--- a/nptl/forward.c
+++ b/nptl/forward.c
@@ -56,9 +56,6 @@ name decl \
FORWARD2 (name, int, decl, params, return defretval)
-FORWARD (pthread_attr_setdetachstate, (pthread_attr_t *attr, int detachstate),
- (attr, detachstate), 0)
-
FORWARD (pthread_attr_getinheritsched,
(const pthread_attr_t *attr, int *inherit), (attr, inherit), 0)
FORWARD (pthread_attr_setinheritsched, (pthread_attr_t *attr, int inherit),
diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c
index ea022eb0df..4594cf53ea 100644
--- a/nptl/nptl-init.c
+++ b/nptl/nptl-init.c
@@ -72,7 +72,6 @@ void __nptl_set_robust (struct pthread *);
#ifdef SHARED
static const struct pthread_functions pthread_functions =
{
- .ptr_pthread_attr_setdetachstate = __pthread_attr_setdetachstate,
.ptr_pthread_attr_getinheritsched = __pthread_attr_getinheritsched,
.ptr_pthread_attr_setinheritsched = __pthread_attr_setinheritsched,
.ptr_pthread_attr_getschedparam = __pthread_attr_getschedparam,