diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-05 05:56:00 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-05 05:56:00 +0000 |
commit | 3f25366c3b89ac0573906b80f32e017091d007ea (patch) | |
tree | b6144b02f6fea01ca43d36ed9df68aecfd74c49e /libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c | |
parent | de94610a30e6e4d6fc0999104e7b278b57819fec (diff) | |
download | uClibc-alpine-3f25366c3b89ac0573906b80f32e017091d007ea.tar.bz2 uClibc-alpine-3f25366c3b89ac0573906b80f32e017091d007ea.tar.xz |
Get rid of versioning and shared library compatibility code. We want to start with as clean of a slate as possible. Whip me, beat me, make me shrink the code.
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c')
-rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c b/libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c index 1849f72a4..a07b1afe5 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c @@ -17,7 +17,6 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <shlib-compat.h> #include "compat-timer.h" #include <atomic.h> @@ -26,41 +25,4 @@ #include "../timer_create.c" #undef timer_create -versioned_symbol (librt, __timer_create_new, timer_create, GLIBC_2_3_3); - - -#if SHLIB_COMPAT (librt, GLIBC_2_2, GLIBC_2_3_3) -timer_t __compat_timer_list[OLD_TIMER_MAX] attribute_hidden; - - -int -__timer_create_old (clockid_t clock_id, struct sigevent *evp, int *timerid) -{ - timer_t newp; - - int res = __timer_create_new (clock_id, evp, &newp); - if (res == 0) - { - int i; - for (i = 0; i < OLD_TIMER_MAX; ++i) - if (__compat_timer_list[i] == NULL - && ! atomic_compare_and_exchange_bool_acq (&__compat_timer_list[i], - newp, NULL)) - { - *timerid = i; - break; - } - - if (__builtin_expect (i == OLD_TIMER_MAX, 0)) - { - /* No free slot. */ - (void) __timer_delete_new (newp); - __set_errno (EINVAL); - res = -1; - } - } - - return res; -} -compat_symbol (librt, __timer_create_old, timer_create, GLIBC_2_2); -#endif +weak_alias(__timer_create_new, timer_create) |