diff options
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/Makefile | 2 | ||||
-rw-r--r-- | nptl/Versions | 5 | ||||
-rw-r--r-- | nptl/sem_post.c | 7 |
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) |