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/pthread_attr_setstacksize.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/pthread_attr_setstacksize.c')
-rw-r--r-- | libpthread/nptl/pthread_attr_setstacksize.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/libpthread/nptl/pthread_attr_setstacksize.c b/libpthread/nptl/pthread_attr_setstacksize.c index f84a9f68e..98339b12d 100644 --- a/libpthread/nptl/pthread_attr_setstacksize.c +++ b/libpthread/nptl/pthread_attr_setstacksize.c @@ -43,33 +43,7 @@ __pthread_attr_setstacksize (attr, stacksize) } #if PTHREAD_STACK_MIN == 16384 -strong_alias (__pthread_attr_setstacksize, pthread_attr_setstacksize) +strong_alias(__pthread_attr_setstacksize, pthread_attr_setstacksize) #else -# include <shlib-compat.h> -versioned_symbol (libpthread, __pthread_attr_setstacksize, - pthread_attr_setstacksize, GLIBC_2_3_3); - -# if SHLIB_COMPAT(libpthread, GLIBC_2_1, GLIBC_2_3_3) - -int -__old_pthread_attr_setstacksize (pthread_attr_t *attr, size_t stacksize) -{ - struct pthread_attr *iattr; - - assert (sizeof (*attr) >= sizeof (struct pthread_attr)); - iattr = (struct pthread_attr *) attr; - - /* Catch invalid sizes. */ - if (stacksize < 16384) - return EINVAL; - - iattr->stacksize = stacksize; - - return 0; -} - -compat_symbol (libpthread, __old_pthread_attr_setstacksize, - pthread_attr_setstacksize, GLIBC_2_1); -# endif - +weak_alias(__pthread_attr_setstacksize, pthread_attr_setstacksize) #endif |