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:47 +0200 |
| commit | 793042c63c511f5280e960108b2f0b13e115245d (patch) | |
| tree | 5c2afbb5a1afd55877a90aba20dd12538af4397d | |
| parent | 1ae60ae74ff43cf7a28bace42d91cb6281bd50fc (diff) | |
| download | glibc-793042c63c511f5280e960108b2f0b13e115245d.tar.xz glibc-793042c63c511f5280e960108b2f0b13e115245d.zip | |
nptl: Move sem_post 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 d0410f6827..36c0f270b9 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -156,6 +156,7 @@ routines = \ sem_getvalue \ sem_init \ sem_open \ + sem_post \ sem_routines \ tpp \ unwind \ @@ -208,7 +209,6 @@ libpthread-routines = \ pthread_sigqueue \ pthread_timedjoin \ pthread_tryjoin \ - sem_post \ sem_timedwait \ sem_unlink \ sem_wait \ diff --git a/nptl/Versions b/nptl/Versions index 428cb43c9d..df3967516f 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -65,6 +65,7 @@ libc { sem_destroy; sem_getvalue; sem_init; + sem_post; } GLIBC_2.1 { pthread_attr_init; @@ -86,6 +87,7 @@ libc { sem_destroy; sem_getvalue; sem_init; + sem_post; } GLIBC_2.1.1 { sem_close; @@ -264,6 +266,7 @@ libc { sem_getvalue; sem_init; sem_open; + sem_post; thrd_exit; tss_create; tss_delete; @@ -329,7 +332,6 @@ libpthread { pthread_detach; pthread_join; pthread_sigmask; - sem_post; sem_trywait; sem_wait; } @@ -344,7 +346,6 @@ libpthread { pthread_create; pthread_getconcurrency; pthread_setconcurrency; - sem_post; sem_trywait; sem_wait; } diff --git a/nptl/sem_post.c b/nptl/sem_post.c index c888fa6a9b..d56a6ed983 100644 --- a/nptl/sem_post.c +++ b/nptl/sem_post.c @@ -76,10 +76,13 @@ __new_sem_post (sem_t *sem) return 0; } -versioned_symbol (libpthread, __new_sem_post, sem_post, GLIBC_2_1); +versioned_symbol (libpthread, __new_sem_post, sem_post, GLIBC_2_34); +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34) +compat_symbol (libpthread, __new_sem_post, sem_post, GLIBC_2_1); +#endif -#if SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_1) +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_1) int attribute_compat_text_section __old_sem_post (sem_t *sem) diff --git a/sysdeps/unix/sysv/linux/aarch64/libc.abilist b/sysdeps/unix/sysv/linux/aarch64/libc.abilist index 8ce12a9a8d..64f966289f 100644 --- a/sysdeps/unix/sysv/linux/aarch64/libc.abilist +++ b/sysdeps/unix/sysv/linux/aarch64/libc.abilist @@ -1665,6 +1665,7 @@ GLIBC_2.17 sem_destroy F GLIBC_2.17 sem_getvalue F GLIBC_2.17 sem_init F GLIBC_2.17 sem_open F +GLIBC_2.17 sem_post F GLIBC_2.17 semctl F GLIBC_2.17 semget F GLIBC_2.17 semop F @@ -2358,6 +2359,7 @@ GLIBC_2.34 sem_destroy F GLIBC_2.34 sem_getvalue F GLIBC_2.34 sem_init F GLIBC_2.34 sem_open F +GLIBC_2.34 sem_post F GLIBC_2.34 thrd_exit F GLIBC_2.34 tss_create F GLIBC_2.34 tss_delete F diff --git a/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist b/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist index cc05c4ec42..e2a5c2b8e0 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_post F GLIBC_2.17 sem_timedwait F GLIBC_2.17 sem_trywait F GLIBC_2.17 sem_unlink F diff --git a/sysdeps/unix/sysv/linux/alpha/libc.abilist b/sysdeps/unix/sysv/linux/alpha/libc.abilist index 355e6ee05c..08ac2067c9 100644 --- a/sysdeps/unix/sysv/linux/alpha/libc.abilist +++ b/sysdeps/unix/sysv/linux/alpha/libc.abilist @@ -1014,6 +1014,7 @@ GLIBC_2.0 select 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 GLIBC_2.0 semctl F GLIBC_2.0 semget F GLIBC_2.0 semop F @@ -1640,6 +1641,7 @@ GLIBC_2.1 select 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 GLIBC_2.1 sendfile F GLIBC_2.1 setitimer F GLIBC_2.1 setrlimit64 F @@ -2442,6 +2444,7 @@ GLIBC_2.34 sem_destroy F GLIBC_2.34 sem_getvalue F GLIBC_2.34 sem_init F GLIBC_2.34 sem_open F +GLIBC_2.34 sem_post F GLIBC_2.34 thrd_exit F GLIBC_2.34 tss_create F GLIBC_2.34 tss_delete F diff --git a/sysdeps/unix/sysv/linux/alpha/libpthread.abilist b/sysdeps/unix/sysv/linux/alpha/libpthread.abilist index 04dca3fb17..1e04fed446 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_post F GLIBC_2.0 sem_trywait F GLIBC_2.0 sem_wait F GLIBC_2.1 pthread_attr_getguardsize F @@ -21,7 +20,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_post F GLIBC_2.1 sem_trywait F GLIBC_2.1 sem_wait F GLIBC_2.1.1 sem_unlink F diff --git a/sysdeps/unix/sysv/linux/arc/libc.abilist b/sysdeps/unix/sysv/linux/arc/libc.abilist index 951fbad9b2..a4b209fdbc 100644 --- a/sysdeps/unix/sysv/linux/arc/libc.abilist +++ b/sysdeps/unix/sysv/linux/arc/libc.abilist @@ -1607,6 +1607,7 @@ GLIBC_2.32 sem_destroy F GLIBC_2.32 sem_getvalue F GLIBC_2.32 sem_init F GLIBC_2.32 sem_open F +GLIBC_2.32 sem_post F GLIBC_2.32 semctl F GLIBC_2.32 semget F GLIBC_2.32 semop F @@ -2117,6 +2118,7 @@ GLIBC_2.34 sem_destroy F GLIBC_2.34 sem_getvalue F GLIBC_2.34 sem_init F GLIBC_2.34 sem_open F +GLIBC_2.34 sem_post F GLIBC_2. |
