diff options
author | deischen <deischen@FreeBSD.org> | 2006-03-13 00:59:51 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2006-03-13 00:59:51 +0000 |
commit | cc69a08fbfbd64dd13ebb80b18cc83824a3c8781 (patch) | |
tree | 0ff38bc0c45640883ff06a668902f099c9ff8641 /lib/libpthread/thread/thr_sem.c | |
parent | 11cbb2f2752487f0605f14afcc37e520331c8dbc (diff) | |
download | FreeBSD-src-cc69a08fbfbd64dd13ebb80b18cc83824a3c8781.zip FreeBSD-src-cc69a08fbfbd64dd13ebb80b18cc83824a3c8781.tar.gz |
Add compatibility symbol maps. libpthread (.so.1 and .so.2)
used LIBTHREAD_1_0 as its version definition, but now needs
to define its symbols in the same namespace used by libc.
The compatibility hooks allows you to use libraries and
binaries built and linked to libpthread before libc was
built with symbol versioning. The shims can be removed if
libpthread is given a version bump.
Reviewed by: davidxu
Diffstat (limited to 'lib/libpthread/thread/thr_sem.c')
-rw-r--r-- | lib/libpthread/thread/thr_sem.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_sem.c b/lib/libpthread/thread/thr_sem.c index 8312a87..1a01805 100644 --- a/lib/libpthread/thread/thr_sem.c +++ b/lib/libpthread/thread/thr_sem.c @@ -43,6 +43,14 @@ #include "libc_private.h" #include "thr_private.h" +LT10_COMPAT_PRIVATE(_sem_init); +LT10_COMPAT_DEFAULT(sem_init); +LT10_COMPAT_PRIVATE(_sem_wait); +LT10_COMPAT_DEFAULT(sem_wait); +LT10_COMPAT_PRIVATE(_sem_timedwait); +LT10_COMPAT_DEFAULT(sem_timedwait); +LT10_COMPAT_PRIVATE(_sem_post); +LT10_COMPAT_DEFAULT(sem_post); extern int pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *); extern int pthread_cond_timedwait(pthread_cond_t *, pthread_mutex_t *, |