diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-05-11 23:53:20 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-05-11 23:53:20 +0000 |
commit | 8f14fbdfe239485f1f9267be8cad07a7ee7d6b29 (patch) | |
tree | 29dd17b1b3e76343b9818ca0f19a44fece5a5044 /libpthread/nptl/pthread_attr_setstacksize.c | |
parent | 8ba0998b77685cabdeb878c57de3af99965ef62a (diff) |
More glibc backward compatibility cruft. Oh the horror!
Diffstat (limited to 'libpthread/nptl/pthread_attr_setstacksize.c')
-rw-r--r-- | libpthread/nptl/pthread_attr_setstacksize.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/libpthread/nptl/pthread_attr_setstacksize.c b/libpthread/nptl/pthread_attr_setstacksize.c index f84a9f68e..7d847ef08 100644 --- a/libpthread/nptl/pthread_attr_setstacksize.c +++ b/libpthread/nptl/pthread_attr_setstacksize.c @@ -42,34 +42,4 @@ __pthread_attr_setstacksize (attr, stacksize) return 0; } -#if PTHREAD_STACK_MIN == 16384 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 - -#endif |