diff options
| author | Florian Weimer <fweimer@redhat.com> | 2021-05-05 17:15:57 +0200 |
|---|---|---|
| committer | Florian Weimer <fweimer@redhat.com> | 2021-05-05 17:19:40 +0200 |
| commit | 4b729cca87ea2f14bcb526588f992cdd931ef362 (patch) | |
| tree | 00e802d8ab4fe80ed9031c0756d93908c8bf1b51 | |
| parent | 0b7d48d1062e4383b4a78e0bb78c5f0f29479780 (diff) | |
| download | glibc-4b729cca87ea2f14bcb526588f992cdd931ef362.tar.xz glibc-4b729cca87ea2f14bcb526588f992cdd931ef362.zip | |
nptl: Move sem_destroy into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
64 files changed, 84 insertions, 42 deletions
diff --git a/nptl/Makefile b/nptl/Makefile index ab24222c1d..f8416b240c 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -152,6 +152,7 @@ routines = \ pthread_yield \ sem_clockwait \ sem_close \ + sem_destroy \ sem_open \ sem_routines \ tpp \ @@ -205,7 +206,6 @@ libpthread-routines = \ pthread_sigqueue \ pthread_timedjoin \ pthread_tryjoin \ - sem_destroy \ sem_getvalue \ sem_init \ sem_post \ diff --git a/nptl/Versions b/nptl/Versions index 4a9e5a0305..c59bbd8736 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -62,6 +62,7 @@ libc { pthread_setspecific; pthread_sigmask; pthread_testcancel; + sem_destroy; } GLIBC_2.1 { pthread_attr_init; @@ -80,6 +81,7 @@ libc { pthread_rwlockattr_init; pthread_rwlockattr_setkind_np; pthread_rwlockattr_setpshared; + sem_destroy; } GLIBC_2.1.1 { sem_close; @@ -254,6 +256,7 @@ libc { pthread_testcancel; sem_clockwait; sem_close; + sem_destroy; sem_open; thrd_exit; tss_create; @@ -320,7 +323,6 @@ libpthread { pthread_detach; pthread_join; pthread_sigmask; - sem_destroy; sem_getvalue; sem_init; sem_post; @@ -338,7 +340,6 @@ libpthread { pthread_create; pthread_getconcurrency; pthread_setconcurrency; - sem_destroy; sem_getvalue; sem_init; sem_post; diff --git a/nptl/sem_destroy.c b/nptl/sem_destroy.c index 3a105e9c65..fd8f2024ce 100644 --- a/nptl/sem_destroy.c +++ b/nptl/sem_destroy.c @@ -29,8 +29,11 @@ __new_sem_destroy (sem_t *sem) /* Nothing to do. */ return 0; } -versioned_symbol (libpthread, __new_sem_destroy, sem_destroy, GLIBC_2_1); -#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1) +versioned_symbol (libc, __new_sem_destroy, sem_destroy, GLIBC_2_34); +#if OTHER_SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1) strong_alias (__new_sem_destroy, __old_sem_destroy) compat_symbol (libpthread, __old_sem_destroy, sem_destroy, GLIBC_2_0); #endif +#if OTHER_SHLIB_COMPAT(libpthread, GLIBC_2_1, GLIBC_2_34) +compat_symbol (libpthread, __new_sem_destroy, sem_destroy, GLIBC_2_1); +#endif diff --git a/sysdeps/unix/sysv/linux/aarch64/libc.abilist b/sysdeps/unix/sysv/linux/aarch64/libc.abilist index e8b79d1ccd..56d335bcd3 100644 --- a/sysdeps/unix/sysv/linux/aarch64/libc.abilist +++ b/sysdeps/unix/sysv/linux/aarch64/libc.abilist @@ -1661,6 +1661,7 @@ GLIBC_2.17 seed48_r F GLIBC_2.17 seekdir F GLIBC_2.17 select F GLIBC_2.17 sem_close F +GLIBC_2.17 sem_destroy F GLIBC_2.17 sem_open F GLIBC_2.17 semctl F GLIBC_2.17 semget F @@ -2351,6 +2352,7 @@ GLIBC_2.34 pthread_spin_unlock F GLIBC_2.34 pthread_testcancel F GLIBC_2.34 sem_clockwait F GLIBC_2.34 sem_close F +GLIBC_2.34 sem_destroy F GLIBC_2.34 sem_open F GLIBC_2.34 thrd_exit F GLIBC_2.34 tss_create F diff --git a/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist b/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist index f8dc604dfa..612c9f2e31 100644 --- a/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist @@ -39,7 +39,6 @@ GLIBC_2.17 pthread_setschedprio F GLIBC_2.17 pthread_sigqueue F GLIBC_2.17 pthread_timedjoin_np F GLIBC_2.17 pthread_tryjoin_np F -GLIBC_2.17 sem_destroy F GLIBC_2.17 sem_getvalue F GLIBC_2.17 sem_init F GLIBC_2.17 sem_post F diff --git a/sysdeps/unix/sysv/linux/alpha/libc.abilist b/sysdeps/unix/sysv/linux/alpha/libc.abilist index f3b6d7b129..15839ba989 100644 --- a/sysdeps/unix/sysv/linux/alpha/libc.abilist +++ b/sysdeps/unix/sysv/linux/alpha/libc.abilist @@ -1011,6 +1011,7 @@ GLIBC_2.0 seed48 F GLIBC_2.0 seed48_r F GLIBC_2.0 seekdir F GLIBC_2.0 select F +GLIBC_2.0 sem_destroy F GLIBC_2.0 semctl F GLIBC_2.0 semget F GLIBC_2.0 semop F @@ -1634,6 +1635,7 @@ GLIBC_2.1 readdir64_r F GLIBC_2.1 rtime F GLIBC_2.1 scandir64 F GLIBC_2.1 select F +GLIBC_2.1 sem_destroy F GLIBC_2.1 sendfile F GLIBC_2.1 setitimer F GLIBC_2.1 setrlimit64 F @@ -2432,6 +2434,7 @@ GLIBC_2.34 pthread_spin_unlock F GLIBC_2.34 pthread_testcancel F GLIBC_2.34 sem_clockwait F GLIBC_2.34 sem_close F +GLIBC_2.34 sem_destroy F GLIBC_2.34 sem_open F GLIBC_2.34 thrd_exit F GLIBC_2.34 tss_create F diff --git a/sysdeps/unix/sysv/linux/alpha/libpthread.abilist b/sysdeps/unix/sysv/linux/alpha/libpthread.abilist index 8cc7e9bc57..f489e4d96f 100644 --- a/sysdeps/unix/sysv/linux/alpha/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/alpha/libpthread.abilist @@ -9,7 +9,6 @@ GLIBC_2.0 pthread_cancel F GLIBC_2.0 pthread_create F GLIBC_2.0 pthread_detach F GLIBC_2.0 pthread_join F -GLIBC_2.0 sem_destroy F GLIBC_2.0 sem_getvalue F GLIBC_2.0 sem_init F GLIBC_2.0 sem_post F @@ -24,7 +23,6 @@ GLIBC_2.1 pthread_attr_setstacksize F GLIBC_2.1 pthread_create F GLIBC_2.1 pthread_getconcurrency F GLIBC_2.1 pthread_setconcurrency F -GLIBC_2.1 sem_destroy F GLIBC_2.1 sem_getvalue F GLIBC_2.1 sem_init F GLIBC_2.1 sem_post F diff --git a/sysdeps/unix/sysv/linux/arc/libc.abilist b/sysdeps/unix/sysv/linux/arc/libc.abilist index e16e32264c..d8eec8053f 100644 --- a/sysdeps/unix/sysv/linux/arc/libc.abilist +++ b/sysdeps/unix/sysv/linux/arc/libc.abilist @@ -1603,6 +1603,7 @@ GLIBC_2.32 seekdir F GLIBC_2.32 select F GLIBC_2.32 sem_clockwait F GLIBC_2.32 sem_close F +GLIBC_2.32 sem_destroy F GLIBC_2.32 sem_open F GLIBC_2.32 semctl F GLIBC_2.32 semget F @@ -2110,6 +2111,7 @@ GLIBC_2.34 pth |
