mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 03:31:07 +00:00
nptl: Move pthread_attr_setdetachstate implementation into libc
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
61d3db4281
commit
ffced383cd
61
ChangeLog
61
ChangeLog
@ -1,3 +1,64 @@
|
||||
2019-08-28 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
nptl: Move pthread_attr_setdetachstate implementation into libc.
|
||||
* nptl/Makefile (routines): Add pthread_attr_setdetachstate.
|
||||
(libpthread-routines): Remove pthread_attr_setdetachstate.
|
||||
* nptl/Versions (libpthread GLIBC_2.0): Remove
|
||||
pthread_attr_setdetachstate.
|
||||
* nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
|
||||
* nptl/nptl-init.c (pthread_functions): Remove initializer for
|
||||
ptr_pthread_attr_setdetachstate.
|
||||
* sysdeps/nptl/pthread-functions.h (struct pthread_functions):
|
||||
Remove ptr_pthread_attr_setdetachstate member.
|
||||
* sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
|
||||
Remove pthread_attr_setdetachstate.
|
||||
* 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-28 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
[BZ #24902]
|
||||
|
@ -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 \
|
||||
|
@ -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;
|
||||
|
@ -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),
|
||||
|
@ -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,
|
||||
|
@ -30,7 +30,6 @@ struct xid_command;
|
||||
the thread functions. */
|
||||
struct pthread_functions
|
||||
{
|
||||
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);
|
||||
int (*ptr_pthread_attr_getschedparam) (const pthread_attr_t *,
|
||||
|
@ -80,7 +80,6 @@ GLIBC_2.17 pthread_attr_getstack F
|
||||
GLIBC_2.17 pthread_attr_getstackaddr F
|
||||
GLIBC_2.17 pthread_attr_getstacksize F
|
||||
GLIBC_2.17 pthread_attr_setaffinity_np F
|
||||
GLIBC_2.17 pthread_attr_setdetachstate F
|
||||
GLIBC_2.17 pthread_attr_setguardsize F
|
||||
GLIBC_2.17 pthread_attr_setinheritsched F
|
||||
GLIBC_2.17 pthread_attr_setschedparam F
|
||||
|
@ -50,7 +50,6 @@ GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_getscope F
|
||||
GLIBC_2.0 pthread_attr_setdetachstate F
|
||||
GLIBC_2.0 pthread_attr_setinheritsched F
|
||||
GLIBC_2.0 pthread_attr_setschedparam F
|
||||
GLIBC_2.0 pthread_attr_setschedpolicy F
|
||||
|
@ -114,7 +114,6 @@ GLIBC_2.4 pthread_attr_getstack F
|
||||
GLIBC_2.4 pthread_attr_getstackaddr F
|
||||
GLIBC_2.4 pthread_attr_getstacksize F
|
||||
GLIBC_2.4 pthread_attr_setaffinity_np F
|
||||
GLIBC_2.4 pthread_attr_setdetachstate F
|
||||
GLIBC_2.4 pthread_attr_setguardsize F
|
||||
GLIBC_2.4 pthread_attr_setinheritsched F
|
||||
GLIBC_2.4 pthread_attr_setschedparam F
|
||||
|
@ -88,7 +88,6 @@ GLIBC_2.29 pthread_attr_getstack F
|
||||
GLIBC_2.29 pthread_attr_getstackaddr F
|
||||
GLIBC_2.29 pthread_attr_getstacksize F
|
||||
GLIBC_2.29 pthread_attr_setaffinity_np F
|
||||
GLIBC_2.29 pthread_attr_setdetachstate F
|
||||
GLIBC_2.29 pthread_attr_setguardsize F
|
||||
GLIBC_2.29 pthread_attr_setinheritsched F
|
||||
GLIBC_2.29 pthread_attr_setschedparam F
|
||||
|
@ -80,7 +80,6 @@ GLIBC_2.2 pthread_attr_getscope F
|
||||
GLIBC_2.2 pthread_attr_getstack F
|
||||
GLIBC_2.2 pthread_attr_getstackaddr F
|
||||
GLIBC_2.2 pthread_attr_getstacksize F
|
||||
GLIBC_2.2 pthread_attr_setdetachstate F
|
||||
GLIBC_2.2 pthread_attr_setguardsize F
|
||||
GLIBC_2.2 pthread_attr_setinheritsched F
|
||||
GLIBC_2.2 pthread_attr_setschedparam F
|
||||
|
@ -50,7 +50,6 @@ GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_getscope F
|
||||
GLIBC_2.0 pthread_attr_setdetachstate F
|
||||
GLIBC_2.0 pthread_attr_setinheritsched F
|
||||
GLIBC_2.0 pthread_attr_setschedparam F
|
||||
GLIBC_2.0 pthread_attr_setschedpolicy F
|
||||
|
@ -80,7 +80,6 @@ GLIBC_2.2 pthread_attr_getscope F
|
||||
GLIBC_2.2 pthread_attr_getstack F
|
||||
GLIBC_2.2 pthread_attr_getstackaddr F
|
||||
GLIBC_2.2 pthread_attr_getstacksize F
|
||||
GLIBC_2.2 pthread_attr_setdetachstate F
|
||||
GLIBC_2.2 pthread_attr_setguardsize F
|
||||
GLIBC_2.2 pthread_attr_setinheritsched F
|
||||
GLIBC_2.2 pthread_attr_setschedparam F
|
||||
|
@ -114,7 +114,6 @@ GLIBC_2.4 pthread_attr_getstack F
|
||||
GLIBC_2.4 pthread_attr_getstackaddr F
|
||||
GLIBC_2.4 pthread_attr_getstacksize F
|
||||
GLIBC_2.4 pthread_attr_setaffinity_np F
|
||||
GLIBC_2.4 pthread_attr_setdetachstate F
|
||||
GLIBC_2.4 pthread_attr_setguardsize F
|
||||
GLIBC_2.4 pthread_attr_setinheritsched F
|
||||
GLIBC_2.4 pthread_attr_setschedparam F
|
||||
|
@ -50,7 +50,6 @@ GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_getscope F
|
||||
GLIBC_2.0 pthread_attr_setdetachstate F
|
||||
GLIBC_2.0 pthread_attr_setinheritsched F
|
||||
GLIBC_2.0 pthread_attr_setschedparam F
|
||||
GLIBC_2.0 pthread_attr_setschedpolicy F
|
||||
|
@ -80,7 +80,6 @@ GLIBC_2.18 pthread_attr_getstack F
|
||||
GLIBC_2.18 pthread_attr_getstackaddr F
|
||||
GLIBC_2.18 pthread_attr_getstacksize F
|
||||
GLIBC_2.18 pthread_attr_setaffinity_np F
|
||||
GLIBC_2.18 pthread_attr_setdetachstate F
|
||||
GLIBC_2.18 pthread_attr_setguardsize F
|
||||
GLIBC_2.18 pthread_attr_setinheritsched F
|
||||
GLIBC_2.18 pthread_attr_setschedparam F
|
||||
|
@ -50,7 +50,6 @@ GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_getscope F
|
||||
GLIBC_2.0 pthread_attr_setdetachstate F
|
||||
GLIBC_2.0 pthread_attr_setinheritsched F
|
||||
GLIBC_2.0 pthread_attr_setschedparam F
|
||||
GLIBC_2.0 pthread_attr_setschedpolicy F
|
||||
|
@ -50,7 +50,6 @@ GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_getscope F
|
||||
GLIBC_2.0 pthread_attr_setdetachstate F
|
||||
GLIBC_2.0 pthread_attr_setinheritsched F
|
||||
GLIBC_2.0 pthread_attr_setschedparam F
|
||||
GLIBC_2.0 pthread_attr_setschedpolicy F
|
||||
|
@ -80,7 +80,6 @@ GLIBC_2.21 pthread_attr_getstack F
|
||||
GLIBC_2.21 pthread_attr_getstackaddr F
|
||||
GLIBC_2.21 pthread_attr_getstacksize F
|
||||
GLIBC_2.21 pthread_attr_setaffinity_np F
|
||||
GLIBC_2.21 pthread_attr_setdetachstate F
|
||||
GLIBC_2.21 pthread_attr_setguardsize F
|
||||
GLIBC_2.21 pthread_attr_setinheritsched F
|
||||
GLIBC_2.21 pthread_attr_setschedparam F
|
||||
|
@ -50,7 +50,6 @@ GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_getscope F
|
||||
GLIBC_2.0 pthread_attr_setdetachstate F
|
||||
GLIBC_2.0 pthread_attr_setinheritsched F
|
||||
GLIBC_2.0 pthread_attr_setschedparam F
|
||||
GLIBC_2.0 pthread_attr_setschedpolicy F
|
||||
|
@ -101,7 +101,6 @@ GLIBC_2.3 pthread_attr_getscope F
|
||||
GLIBC_2.3 pthread_attr_getstack F
|
||||
GLIBC_2.3 pthread_attr_getstackaddr F
|
||||
GLIBC_2.3 pthread_attr_getstacksize F
|
||||
GLIBC_2.3 pthread_attr_setdetachstate F
|
||||
GLIBC_2.3 pthread_attr_setguardsize F
|
||||
GLIBC_2.3 pthread_attr_setinheritsched F
|
||||
GLIBC_2.3 pthread_attr_setschedparam F
|
||||
|
@ -80,7 +80,6 @@ GLIBC_2.17 pthread_attr_getstack F
|
||||
GLIBC_2.17 pthread_attr_getstackaddr F
|
||||
GLIBC_2.17 pthread_attr_getstacksize F
|
||||
GLIBC_2.17 pthread_attr_setaffinity_np F
|
||||
GLIBC_2.17 pthread_attr_setdetachstate F
|
||||
GLIBC_2.17 pthread_attr_setguardsize F
|
||||
GLIBC_2.17 pthread_attr_setinheritsched F
|
||||
GLIBC_2.17 pthread_attr_setschedparam F
|
||||
|
@ -77,7 +77,6 @@ GLIBC_2.27 pthread_attr_getstack F
|
||||
GLIBC_2.27 pthread_attr_getstackaddr F
|
||||
GLIBC_2.27 pthread_attr_getstacksize F
|
||||
GLIBC_2.27 pthread_attr_setaffinity_np F
|
||||
GLIBC_2.27 pthread_attr_setdetachstate F
|
||||
GLIBC_2.27 pthread_attr_setguardsize F
|
||||
GLIBC_2.27 pthread_attr_setinheritsched F
|
||||
GLIBC_2.27 pthread_attr_setschedparam F
|
||||
|
@ -50,7 +50,6 @@ GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_getscope F
|
||||
GLIBC_2.0 pthread_attr_setdetachstate F
|
||||
GLIBC_2.0 pthread_attr_setinheritsched F
|
||||
GLIBC_2.0 pthread_attr_setschedparam F
|
||||
GLIBC_2.0 pthread_attr_setschedpolicy F
|
||||
|
@ -82,7 +82,6 @@ GLIBC_2.2 pthread_attr_getscope F
|
||||
GLIBC_2.2 pthread_attr_getstack F
|
||||
GLIBC_2.2 pthread_attr_getstackaddr F
|
||||
GLIBC_2.2 pthread_attr_getstacksize F
|
||||
GLIBC_2.2 pthread_attr_setdetachstate F
|
||||
GLIBC_2.2 pthread_attr_setguardsize F
|
||||
GLIBC_2.2 pthread_attr_setinheritsched F
|
||||
GLIBC_2.2 pthread_attr_setschedparam F
|
||||
|
@ -80,7 +80,6 @@ GLIBC_2.2 pthread_attr_getscope F
|
||||
GLIBC_2.2 pthread_attr_getstack F
|
||||
GLIBC_2.2 pthread_attr_getstackaddr F
|
||||
GLIBC_2.2 pthread_attr_getstacksize F
|
||||
GLIBC_2.2 pthread_attr_setdetachstate F
|
||||
GLIBC_2.2 pthread_attr_setguardsize F
|
||||
GLIBC_2.2 pthread_attr_setinheritsched F
|
||||
GLIBC_2.2 pthread_attr_setschedparam F
|
||||
|
@ -50,7 +50,6 @@ GLIBC_2.0 pthread_attr_getinheritsched F
|
||||
GLIBC_2.0 pthread_attr_getschedparam F
|
||||
GLIBC_2.0 pthread_attr_getschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_getscope F
|
||||
GLIBC_2.0 pthread_attr_setdetachstate F
|
||||
GLIBC_2.0 pthread_attr_setinheritsched F
|
||||
GLIBC_2.0 pthread_attr_setschedparam F
|
||||
GLIBC_2.0 pthread_attr_setschedpolicy F
|
||||
|
@ -80,7 +80,6 @@ GLIBC_2.2 pthread_attr_getscope F
|
||||
GLIBC_2.2 pthread_attr_getstack F
|
||||
GLIBC_2.2 pthread_attr_getstackaddr F
|
||||
GLIBC_2.2 pthread_attr_getstacksize F
|
||||
GLIBC_2.2 pthread_attr_setdetachstate F
|
||||
GLIBC_2.2 pthread_attr_setguardsize F
|
||||
GLIBC_2.2 pthread_attr_setinheritsched F
|
||||
GLIBC_2.2 pthread_attr_setschedparam F
|
||||
|
@ -80,7 +80,6 @@ GLIBC_2.2.5 pthread_attr_getscope F
|
||||
GLIBC_2.2.5 pthread_attr_getstack F
|
||||
GLIBC_2.2.5 pthread_attr_getstackaddr F
|
||||
GLIBC_2.2.5 pthread_attr_getstacksize F
|
||||
GLIBC_2.2.5 pthread_attr_setdetachstate F
|
||||
GLIBC_2.2.5 pthread_attr_setguardsize F
|
||||
GLIBC_2.2.5 pthread_attr_setinheritsched F
|
||||
GLIBC_2.2.5 pthread_attr_setschedparam F
|
||||
|
@ -80,7 +80,6 @@ GLIBC_2.16 pthread_attr_getstack F
|
||||
GLIBC_2.16 pthread_attr_getstackaddr F
|
||||
GLIBC_2.16 pthread_attr_getstacksize F
|
||||
GLIBC_2.16 pthread_attr_setaffinity_np F
|
||||
GLIBC_2.16 pthread_attr_setdetachstate F
|
||||
GLIBC_2.16 pthread_attr_setguardsize F
|
||||
GLIBC_2.16 pthread_attr_setinheritsched F
|
||||
GLIBC_2.16 pthread_attr_setschedparam F
|
||||
|
Loading…
Reference in New Issue
Block a user