nptl: Move pthread_attr_getdetachstate implementation into libc
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
4745f4c1ca
commit
1d714fd95d
61
ChangeLog
61
ChangeLog
@ -1,3 +1,64 @@
|
||||
2019-08-16 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
nptl: Move pthread_attr_getdetachstate implementation into libc.
|
||||
* nptl/Makefile (routines): Add pthread_attr_getdetachstate.
|
||||
(libpthread-routines): Remove pthread_attr_getdetachstate.
|
||||
* nptl/Versions (libpthread GLIBC_2.0): Remove
|
||||
pthread_attr_getdetachstate.
|
||||
* nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
|
||||
* nptl/nptl-init.c (pthread_functions): Remove initializer for
|
||||
ptr_pthread_attr_getdetachstate.
|
||||
* sysdeps/nptl/pthread-functions.h (struct pthread_functions):
|
||||
Remove ptr_pthread_attr_getdetachstate member.
|
||||
* sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
|
||||
Remove pthread_attr_getdetachstate.
|
||||
* sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
|
||||
Likewise.
|
||||
* sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
|
||||
Likewise.
|
||||
* sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
|
||||
Likewise.
|
||||
* sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
|
||||
Likewise.
|
||||
* sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
|
||||
Likewise.
|
||||
* sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
|
||||
Likewise.
|
||||
* sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
|
||||
(GLIBC_2.4): Likewise.
|
||||
* sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
|
||||
(GLIBC_2.0): Likewise.
|
||||
* sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
|
||||
(GLIBC_2.18): Likewise.
|
||||
* sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
|
||||
(GLIBC_2.0): Likewise.
|
||||
* sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
|
||||
(GLIBC_2.0): Likewise.
|
||||
* sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
|
||||
Likewise.
|
||||
* sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
|
||||
(GLIBC_2.0): Likewise.
|
||||
* sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
|
||||
(GLIBC_2.3): Likewise.
|
||||
* sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
|
||||
(GLIBC_2.17): Likewise.
|
||||
* sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
|
||||
(GLIBC_2.27): Likewise.
|
||||
* sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
|
||||
(GLIBC_2.0): Likewise.
|
||||
* sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
|
||||
(GLIBC_2.2): Likewise.
|
||||
* sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
|
||||
Likewise.
|
||||
* sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
|
||||
(GLIBC_2.0): Likewise.
|
||||
* sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
|
||||
(GLIBC_2.2): Likewise.
|
||||
* sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
|
||||
(GLIBC_2.2.5): Likewise.
|
||||
* sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
|
||||
(GLIBC_2.16): Likewise.
|
||||
|
||||
2019-08-16 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* math/libm-test-compat_totalorder.inc (do_test)
|
||||
|
@ -31,7 +31,7 @@ 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_destroy pthread_attr_init pthread_attr_getdetachstate
|
||||
shared-only-routines = forward
|
||||
static-only-routines = pthread_atfork
|
||||
|
||||
@ -54,7 +54,7 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \
|
||||
pthread_getconcurrency pthread_setconcurrency \
|
||||
pthread_getschedparam pthread_setschedparam \
|
||||
pthread_setschedprio \
|
||||
pthread_attr_getdetachstate pthread_attr_setdetachstate \
|
||||
pthread_attr_setdetachstate \
|
||||
pthread_attr_getguardsize pthread_attr_setguardsize \
|
||||
pthread_attr_getschedparam pthread_attr_setschedparam \
|
||||
pthread_attr_getschedpolicy pthread_attr_setschedpolicy \
|
||||
|
@ -49,7 +49,7 @@ libpthread {
|
||||
|
||||
pthread_getschedparam; pthread_setschedparam;
|
||||
|
||||
pthread_attr_getdetachstate; pthread_attr_setdetachstate;
|
||||
pthread_attr_setdetachstate;
|
||||
pthread_attr_getschedparam; pthread_attr_setschedparam;
|
||||
pthread_attr_getschedpolicy; pthread_attr_setschedpolicy;
|
||||
pthread_attr_getinheritsched; pthread_attr_setinheritsched;
|
||||
|
@ -56,9 +56,6 @@ name decl \
|
||||
FORWARD2 (name, int, decl, params, return defretval)
|
||||
|
||||
|
||||
FORWARD (pthread_attr_getdetachstate,
|
||||
(const pthread_attr_t *attr, int *detachstate), (attr, detachstate),
|
||||
0)
|
||||
FORWARD (pthread_attr_setdetachstate, (pthread_attr_t *attr, int detachstate),
|
||||
(attr, detachstate), 0)
|
||||
|
||||
|
@ -72,7 +72,6 @@ void __nptl_set_robust (struct pthread *);
|
||||
#ifdef SHARED
|
||||
static const struct pthread_functions pthread_functions =
|
||||
{
|
||||
.ptr_pthread_attr_getdetachstate = __pthread_attr_getdetachstate,
|
||||
.ptr_pthread_attr_setdetachstate = __pthread_attr_setdetachstate,
|
||||
.ptr_pthread_attr_getinheritsched = __pthread_attr_getinheritsched,
|
||||
.ptr_pthread_attr_setinheritsched = __pthread_attr_setinheritsched,
|
||||
|
@ -30,7 +30,6 @@ struct xid_command;
|
||||
the thread functions. */
|
||||
struct pthread_functions
|
||||
{
|
||||
int (*ptr_pthread_attr_getdetachstate) (const pthread_attr_t *, int *);
|
||||
int (*ptr_pthread_attr_setdetachstate) (pthread_attr_t *, int);
|
||||
int (*ptr_pthread_attr_getinheritsched) (const pthread_attr_t *, int *);
|
||||
int (*ptr_pthread_attr_setinheritsched) (pthread_attr_t *, int);
|
||||
|
@ -71,7 +71,6 @@ GLIBC_2.17 pause F
|
||||
GLIBC_2.17 pread F
|
||||
GLIBC_2.17 pread64 F
|
||||
GLIBC_2.17 pthread_attr_getaffinity_np F
|
||||
GLIBC_2.17 pthread_attr_getdetachstate F
|
||||
GLIBC_2.17 pthread_attr_getguardsize F
|
||||
GLIBC_2.17 pthread_attr_getinheritsched F
|
||||
GLIBC_2.17 pthread_attr_getschedparam F
|
||||
|
@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause F
|
||||
GLIBC_2.0 pthread_atfork F
|
||||
GLIBC_2.0 pthread_attr_getdetachstate F
|
||||
GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
|
@ -105,7 +105,6 @@ GLIBC_2.4 pause F
|
||||
GLIBC_2.4 pread F
|
||||
GLIBC_2.4 pread64 F
|
||||
GLIBC_2.4 pthread_attr_getaffinity_np F
|
||||
GLIBC_2.4 pthread_attr_getdetachstate F
|
||||
GLIBC_2.4 pthread_attr_getguardsize F
|
||||
GLIBC_2.4 pthread_attr_getinheritsched F
|
||||
GLIBC_2.4 pthread_attr_getschedparam F
|
||||
|
@ -79,7 +79,6 @@ GLIBC_2.29 pause F
|
||||
GLIBC_2.29 pread F
|
||||
GLIBC_2.29 pread64 F
|
||||
GLIBC_2.29 pthread_attr_getaffinity_np F
|
||||
GLIBC_2.29 pthread_attr_getdetachstate F
|
||||
GLIBC_2.29 pthread_attr_getguardsize F
|
||||
GLIBC_2.29 pthread_attr_getinheritsched F
|
||||
GLIBC_2.29 pthread_attr_getschedparam F
|
||||
|
@ -72,7 +72,6 @@ GLIBC_2.2 pause F
|
||||
GLIBC_2.2 pread F
|
||||
GLIBC_2.2 pread64 F
|
||||
GLIBC_2.2 pthread_atfork F
|
||||
GLIBC_2.2 pthread_attr_getdetachstate F
|
||||
GLIBC_2.2 pthread_attr_getguardsize F
|
||||
GLIBC_2.2 pthread_attr_getinheritsched F
|
||||
GLIBC_2.2 pthread_attr_getschedparam F
|
||||
|
@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause F
|
||||
GLIBC_2.0 pthread_atfork F
|
||||
GLIBC_2.0 pthread_attr_getdetachstate F
|
||||
GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
|
@ -72,7 +72,6 @@ GLIBC_2.2 pause F
|
||||
GLIBC_2.2 pread F
|
||||
GLIBC_2.2 pread64 F
|
||||
GLIBC_2.2 pthread_atfork F
|
||||
GLIBC_2.2 pthread_attr_getdetachstate F
|
||||
GLIBC_2.2 pthread_attr_getguardsize F
|
||||
GLIBC_2.2 pthread_attr_getinheritsched F
|
||||
GLIBC_2.2 pthread_attr_getschedparam F
|
||||
|
@ -105,7 +105,6 @@ GLIBC_2.4 pause F
|
||||
GLIBC_2.4 pread F
|
||||
GLIBC_2.4 pread64 F
|
||||
GLIBC_2.4 pthread_attr_getaffinity_np F
|
||||
GLIBC_2.4 pthread_attr_getdetachstate F
|
||||
GLIBC_2.4 pthread_attr_getguardsize F
|
||||
GLIBC_2.4 pthread_attr_getinheritsched F
|
||||
GLIBC_2.4 pthread_attr_getschedparam F
|
||||
|
@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause F
|
||||
GLIBC_2.0 pthread_atfork F
|
||||
GLIBC_2.0 pthread_attr_getdetachstate F
|
||||
GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
|
@ -71,7 +71,6 @@ GLIBC_2.18 pause F
|
||||
GLIBC_2.18 pread F
|
||||
GLIBC_2.18 pread64 F
|
||||
GLIBC_2.18 pthread_attr_getaffinity_np F
|
||||
GLIBC_2.18 pthread_attr_getdetachstate F
|
||||
GLIBC_2.18 pthread_attr_getguardsize F
|
||||
GLIBC_2.18 pthread_attr_getinheritsched F
|
||||
GLIBC_2.18 pthread_attr_getschedparam F
|
||||
|
@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause F
|
||||
GLIBC_2.0 pthread_atfork F
|
||||
GLIBC_2.0 pthread_attr_getdetachstate F
|
||||
GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
|
@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause F
|
||||
GLIBC_2.0 pthread_atfork F
|
||||
GLIBC_2.0 pthread_attr_getdetachstate F
|
||||
GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
|
@ -71,7 +71,6 @@ GLIBC_2.21 pause F
|
||||
GLIBC_2.21 pread F
|
||||
GLIBC_2.21 pread64 F
|
||||
GLIBC_2.21 pthread_attr_getaffinity_np F
|
||||
GLIBC_2.21 pthread_attr_getdetachstate F
|
||||
GLIBC_2.21 pthread_attr_getguardsize F
|
||||
GLIBC_2.21 pthread_attr_getinheritsched F
|
||||
GLIBC_2.21 pthread_attr_getschedparam F
|
||||
|
@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause F
|
||||
GLIBC_2.0 pthread_atfork F
|
||||
GLIBC_2.0 pthread_attr_getdetachstate F
|
||||
GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
|
@ -93,7 +93,6 @@ GLIBC_2.3 open64 F
|
||||
GLIBC_2.3 pause F
|
||||
GLIBC_2.3 pread F
|
||||
GLIBC_2.3 pread64 F
|
||||
GLIBC_2.3 pthread_attr_getdetachstate F
|
||||
GLIBC_2.3 pthread_attr_getguardsize F
|
||||
GLIBC_2.3 pthread_attr_getinheritsched F
|
||||
GLIBC_2.3 pthread_attr_getschedparam F
|
||||
|
@ -71,7 +71,6 @@ GLIBC_2.17 pause F
|
||||
GLIBC_2.17 pread F
|
||||
GLIBC_2.17 pread64 F
|
||||
GLIBC_2.17 pthread_attr_getaffinity_np F
|
||||
GLIBC_2.17 pthread_attr_getdetachstate F
|
||||
GLIBC_2.17 pthread_attr_getguardsize F
|
||||
GLIBC_2.17 pthread_attr_getinheritsched F
|
||||
GLIBC_2.17 pthread_attr_getschedparam F
|
||||
|
@ -68,7 +68,6 @@ GLIBC_2.27 pause F
|
||||
GLIBC_2.27 pread F
|
||||
GLIBC_2.27 pread64 F
|
||||
GLIBC_2.27 pthread_attr_getaffinity_np F
|
||||
GLIBC_2.27 pthread_attr_getdetachstate F
|
||||
GLIBC_2.27 pthread_attr_getguardsize F
|
||||
GLIBC_2.27 pthread_attr_getinheritsched F
|
||||
GLIBC_2.27 pthread_attr_getschedparam F
|
||||
|
@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause F
|
||||
GLIBC_2.0 pthread_atfork F
|
||||
GLIBC_2.0 pthread_attr_getdetachstate F
|
||||
GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
|
@ -74,7 +74,6 @@ GLIBC_2.2 pause F
|
||||
GLIBC_2.2 pread F
|
||||
GLIBC_2.2 pread64 F
|
||||
GLIBC_2.2 pthread_atfork F
|
||||
GLIBC_2.2 pthread_attr_getdetachstate F
|
||||
GLIBC_2.2 pthread_attr_getguardsize F
|
||||
GLIBC_2.2 pthread_attr_getinheritsched F
|
||||
GLIBC_2.2 pthread_attr_getschedparam F
|
||||
|
@ -72,7 +72,6 @@ GLIBC_2.2 pause F
|
||||
GLIBC_2.2 pread F
|
||||
GLIBC_2.2 pread64 F
|
||||
GLIBC_2.2 pthread_atfork F
|
||||
GLIBC_2.2 pthread_attr_getdetachstate F
|
||||
GLIBC_2.2 pthread_attr_getguardsize F
|
||||
GLIBC_2.2 pthread_attr_getinheritsched F
|
||||
GLIBC_2.2 pthread_attr_getschedparam F
|
||||
|
@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause F
|
||||
GLIBC_2.0 pthread_atfork F
|
||||
GLIBC_2.0 pthread_attr_getdetachstate F
|
||||
GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
|
@ -72,7 +72,6 @@ GLIBC_2.2 pause F
|
||||
GLIBC_2.2 pread F
|
||||
GLIBC_2.2 pread64 F
|
||||
GLIBC_2.2 pthread_atfork F
|
||||
GLIBC_2.2 pthread_attr_getdetachstate F
|
||||
GLIBC_2.2 pthread_attr_getguardsize F
|
||||
GLIBC_2.2 pthread_attr_getinheritsched F
|
||||
GLIBC_2.2 pthread_attr_getschedparam F
|
||||
|
@ -72,7 +72,6 @@ GLIBC_2.2.5 pause F
|
||||
GLIBC_2.2.5 pread F
|
||||
GLIBC_2.2.5 pread64 F
|
||||
GLIBC_2.2.5 pthread_atfork F
|
||||
GLIBC_2.2.5 pthread_attr_getdetachstate F
|
||||
GLIBC_2.2.5 pthread_attr_getguardsize F
|
||||
GLIBC_2.2.5 pthread_attr_getinheritsched F
|
||||
GLIBC_2.2.5 pthread_attr_getschedparam F
|
||||
|
@ -71,7 +71,6 @@ GLIBC_2.16 pause F
|
||||
GLIBC_2.16 pread F
|
||||
GLIBC_2.16 pread64 F
|
||||
GLIBC_2.16 pthread_attr_getaffinity_np F
|
||||
GLIBC_2.16 pthread_attr_getdetachstate F
|
||||
GLIBC_2.16 pthread_attr_getguardsize F
|
||||
GLIBC_2.16 pthread_attr_getinheritsched F
|
||||
GLIBC_2.16 pthread_attr_getschedparam F
|
||||
|
Loading…
Reference in New Issue
Block a user