summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/pthread_attr_init.c
diff options
context:
space:
mode:
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
commit3f25366c3b89ac0573906b80f32e017091d007ea (patch)
treeb6144b02f6fea01ca43d36ed9df68aecfd74c49e /libpthread/nptl/pthread_attr_init.c
parentde94610a30e6e4d6fc0999104e7b278b57819fec (diff)
downloaduClibc-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_init.c')
-rw-r--r--libpthread/nptl/pthread_attr_init.c40
1 files changed, 1 insertions, 39 deletions
diff --git a/libpthread/nptl/pthread_attr_init.c b/libpthread/nptl/pthread_attr_init.c
index 9fd15c4e0..f07dfc7d9 100644
--- a/libpthread/nptl/pthread_attr_init.c
+++ b/libpthread/nptl/pthread_attr_init.c
@@ -23,8 +23,6 @@
#include <unistd.h>
#include "pthreadP.h"
-#include <shlib-compat.h>
-
struct pthread_attr *__attr_list;
lll_lock_t __attr_list_lock = LLL_LOCK_INITIALIZER;
@@ -49,40 +47,4 @@ __pthread_attr_init_2_1 (attr)
return 0;
}
-versioned_symbol (libpthread, __pthread_attr_init_2_1, pthread_attr_init,
- GLIBC_2_1);
-
-
-#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)
-int
-__pthread_attr_init_2_0 (attr)
- pthread_attr_t *attr;
-{
- /* This code is specific to the old LinuxThread code which has a too
- small pthread_attr_t definition. The struct looked like
- this: */
- struct old_attr
- {
- int detachstate;
- int schedpolicy;
- struct sched_param schedparam;
- int inheritsched;
- int scope;
- };
- struct pthread_attr *iattr;
-
- /* Many elements are initialized to zero so let us do it all at
- once. This also takes care of clearing the bytes which are not
- internally used. */
- memset (attr, '\0', sizeof (struct old_attr));
-
- iattr = (struct pthread_attr *) attr;
- iattr->flags |= ATTR_FLAG_OLDATTR;
-
- /* We cannot enqueue the attribute because that member is not in the
- old attribute structure. */
- return 0;
-}
-compat_symbol (libpthread, __pthread_attr_init_2_0, pthread_attr_init,
- GLIBC_2_0);
-#endif
+weak_alias(__pthread_attr_init_2_1, pthread_attr_init)