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:43 +0200 |
| commit | 61878689c228cdf324d609b98db3314d8a81f24d (patch) | |
| tree | 1831b8815f9a3f84ddd65731314314c1ada057d9 | |
| parent | 4b729cca87ea2f14bcb526588f992cdd931ef362 (diff) | |
| download | glibc-61878689c228cdf324d609b98db3314d8a81f24d.tar.xz glibc-61878689c228cdf324d609b98db3314d8a81f24d.zip | |
nptl: Move sem_getvalue into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
64 files changed, 86 insertions, 42 deletions
diff --git a/nptl/Makefile b/nptl/Makefile index f8416b240c..8c32937d82 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -153,6 +153,7 @@ routines = \ sem_clockwait \ sem_close \ sem_destroy \ + sem_getvalue \ sem_open \ sem_routines \ tpp \ @@ -206,7 +207,6 @@ libpthread-routines = \ pthread_sigqueue \ pthread_timedjoin \ pthread_tryjoin \ - sem_getvalue \ sem_init \ sem_post \ sem_timedwait \ diff --git a/nptl/Versions b/nptl/Versions index c59bbd8736..dd1c1c7e9e 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -63,6 +63,7 @@ libc { pthread_sigmask; pthread_testcancel; sem_destroy; + sem_getvalue; } GLIBC_2.1 { pthread_attr_init; @@ -82,6 +83,7 @@ libc { pthread_rwlockattr_setkind_np; pthread_rwlockattr_setpshared; sem_destroy; + sem_getvalue; } GLIBC_2.1.1 { sem_close; @@ -257,6 +259,7 @@ libc { sem_clockwait; sem_close; sem_destroy; + sem_getvalue; sem_open; thrd_exit; tss_create; @@ -323,7 +326,6 @@ libpthread { pthread_detach; pthread_join; pthread_sigmask; - sem_getvalue; sem_init; sem_post; sem_trywait; @@ -340,7 +342,6 @@ libpthread { pthread_create; pthread_getconcurrency; pthread_setconcurrency; - sem_getvalue; sem_init; sem_post; sem_trywait; diff --git a/nptl/sem_getvalue.c b/nptl/sem_getvalue.c index 967a0a016b..7d3a596e8c 100644 --- a/nptl/sem_getvalue.c +++ b/nptl/sem_getvalue.c @@ -42,8 +42,13 @@ __new_sem_getvalue (sem_t *sem, int *sval) return 0; } -versioned_symbol (libpthread, __new_sem_getvalue, sem_getvalue, GLIBC_2_1); -#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1) +versioned_symbol (libc, __new_sem_getvalue, sem_getvalue, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT(libpthread, GLIBC_2_1, GLIBC_2_34) +compat_symbol (libpthread, __new_sem_getvalue, sem_getvalue, GLIBC_2_1); +#endif + +#if OTHER_SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1) int __old_sem_getvalue (sem_t *sem, int *sval) { diff --git a/sysdeps/unix/sysv/linux/aarch64/libc.abilist b/sysdeps/unix/sysv/linux/aarch64/libc.abilist index 56d335bcd3..a6bc62b515 100644 --- a/sysdeps/unix/sysv/linux/aarch64/libc.abilist +++ b/sysdeps/unix/sysv/linux/aarch64/libc.abilist @@ -1662,6 +1662,7 @@ 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_getvalue F GLIBC_2.17 sem_open F GLIBC_2.17 semctl F GLIBC_2.17 semget F @@ -2353,6 +2354,7 @@ 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_getvalue 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 612c9f2e31..87bcb6bd08 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_getvalue F GLIBC_2.17 sem_init F GLIBC_2.17 sem_post F GLIBC_2.17 sem_timedwait F diff --git a/sysdeps/unix/sysv/linux/alpha/libc.abilist b/sysdeps/unix/sysv/linux/alpha/libc.abilist index 15839ba989..e9a402474e 100644 --- a/sysdeps/unix/sysv/linux/alpha/libc.abilist +++ b/sysdeps/unix/sysv/linux/alpha/libc.abilist @@ -1012,6 +1012,7 @@ 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 sem_getvalue F GLIBC_2.0 semctl F GLIBC_2.0 semget F GLIBC_2.0 semop F @@ -1636,6 +1637,7 @@ GLIBC_2.1 rtime F GLIBC_2.1 scandir64 F GLIBC_2.1 select F GLIBC_2.1 sem_destroy F +GLIBC_2.1 sem_getvalue F GLIBC_2.1 sendfile F GLIBC_2.1 setitimer F GLIBC_2.1 setrlimit64 F @@ -2435,6 +2437,7 @@ 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_getvalue 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 f489e4d96f..37eba5d526 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_getvalue F GLIBC_2.0 sem_init F GLIBC_2.0 sem_post F GLIBC_2.0 sem_trywait F @@ -23,7 +22,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_getvalue F GLIBC_2.1 sem_init F GLIBC_2.1 sem_post F GLIBC_2.1 sem_trywait F diff --git a/sysdeps/unix/sysv/linux/arc/libc.abilist b/sysdeps/unix/sysv/linux/arc/libc.abilist index d8eec8053f..e78867eb11 100644 --- a/sysdeps/unix/sysv/linux/arc/libc.abilist +++ b/sysdeps/unix/sysv/linux/arc/libc.abilist @@ -1604,6 +1604,7 @@ 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_getvalue F GLIBC_2.32 sem_open F GLIBC_2.32 semctl F GLIBC_2.32 semget F @@ -2112,6 +2113,7 @@ GLIBC_2.34 pthread_testcancel F GLIBC_2 |
