aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-05 17:15:57 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-05 17:19:47 +0200
commit793042c63c511f5280e960108b2f0b13e115245d (patch)
tree5c2afbb5a1afd55877a90aba20dd12538af4397d /nptl
parent1ae60ae74ff43cf7a28bace42d91cb6281bd50fc (diff)
downloadglibc-793042c63c511f5280e960108b2f0b13e115245d.tar
glibc-793042c63c511f5280e960108b2f0b13e115245d.tar.gz
glibc-793042c63c511f5280e960108b2f0b13e115245d.tar.bz2
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>
Diffstat (limited to 'nptl')
-rw-r--r--nptl/Makefile2
-rw-r--r--nptl/Versions5
-rw-r--r--nptl/sem_post.c7
3 files changed, 9 insertions, 5 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)