summaryrefslogtreecommitdiff
path: root/libpthread/nptl/pthread_attr_setstack.c
diff options
context:
space:
mode:
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
commit8f14fbdfe239485f1f9267be8cad07a7ee7d6b29 (patch)
tree29dd17b1b3e76343b9818ca0f19a44fece5a5044 /libpthread/nptl/pthread_attr_setstack.c
parent8ba0998b77685cabdeb878c57de3af99965ef62a (diff)
More glibc backward compatibility cruft. Oh the horror!
Diffstat (limited to 'libpthread/nptl/pthread_attr_setstack.c')
-rw-r--r--libpthread/nptl/pthread_attr_setstack.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/libpthread/nptl/pthread_attr_setstack.c b/libpthread/nptl/pthread_attr_setstack.c
index 622e4a225..88a98d8d2 100644
--- a/libpthread/nptl/pthread_attr_setstack.c
+++ b/libpthread/nptl/pthread_attr_setstack.c
@@ -49,41 +49,4 @@ __pthread_attr_setstack (attr, stackaddr, stacksize)
return 0;
}
-#if PTHREAD_STACK_MIN == 16384
strong_alias (__pthread_attr_setstack, pthread_attr_setstack)
-#else
-# include <shlib-compat.h>
-versioned_symbol (libpthread, __pthread_attr_setstack, pthread_attr_setstack,
- GLIBC_2_3_3);
-
-# if SHLIB_COMPAT(libpthread, GLIBC_2_2, GLIBC_2_3_3)
-
-int
-__old_pthread_attr_setstack (pthread_attr_t *attr, void *stackaddr,
- 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;
-
-# ifdef EXTRA_PARAM_CHECKS
- EXTRA_PARAM_CHECKS;
-# endif
-
- iattr->stacksize = stacksize;
- iattr->stackaddr = (char *) stackaddr + stacksize;
- iattr->flags |= ATTR_FLAG_STACKADDR;
-
- return 0;
-}
-
-compat_symbol (libpthread, __old_pthread_attr_setstack, pthread_attr_setstack,
- GLIBC_2_2);
-# endif
-
-#endif