summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2017-01-12 19:35:09 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-01-14 18:31:49 +0100
commitff530271e47b68345aaecf939988d8a0e1823956 (patch)
treeda7eef4cba57f408a34a82db3b6af7b8d34c507e
parentf4432e06555b0e8f250e6abc87cdf6e14320a52c (diff)
nptl: remove pthread_attr_init/pthread_create weak aliases
We do not support symbol versioning, so remove these weak aliases.
-rw-r--r--libpthread/nptl/pthreadP.h10
-rw-r--r--libpthread/nptl/pthread_attr_init.c3
-rw-r--r--libpthread/nptl/pthread_create.c3
3 files changed, 4 insertions, 12 deletions
diff --git a/libpthread/nptl/pthreadP.h b/libpthread/nptl/pthreadP.h
index a2aa5a089..013b91dd4 100644
--- a/libpthread/nptl/pthreadP.h
+++ b/libpthread/nptl/pthreadP.h
@@ -355,16 +355,10 @@ extern void __pthread_cleanup_upto (__jmp_buf target, char *targetframe);
hidden_proto (__pthread_cleanup_upto)
#endif
-
-/* Functions with versioned interfaces. */
-extern int __pthread_create_2_1 (pthread_t *newthread,
- const pthread_attr_t *attr,
- void *(*start_routine) (void *), void *arg);
-extern int __pthread_create_2_0 (pthread_t *newthread,
+extern int pthread_create (pthread_t *newthread,
const pthread_attr_t *attr,
void *(*start_routine) (void *), void *arg);
-extern int __pthread_attr_init_2_1 (pthread_attr_t *attr);
-extern int __pthread_attr_init_2_0 (pthread_attr_t *attr);
+extern int pthread_attr_init (pthread_attr_t *attr);
/* Event handlers for libthread_db interface. */
diff --git a/libpthread/nptl/pthread_attr_init.c b/libpthread/nptl/pthread_attr_init.c
index 3e38f37e8..610451840 100644
--- a/libpthread/nptl/pthread_attr_init.c
+++ b/libpthread/nptl/pthread_attr_init.c
@@ -29,7 +29,7 @@ int __attr_list_lock = LLL_LOCK_INITIALIZER;
int
attribute_protected
-__pthread_attr_init_2_1 (
+pthread_attr_init (
pthread_attr_t *attr)
{
struct pthread_attr *iattr;
@@ -47,4 +47,3 @@ __pthread_attr_init_2_1 (
return 0;
}
-weak_alias(__pthread_attr_init_2_1, pthread_attr_init)
diff --git a/libpthread/nptl/pthread_create.c b/libpthread/nptl/pthread_create.c
index 49497fe30..d39cb278c 100644
--- a/libpthread/nptl/pthread_create.c
+++ b/libpthread/nptl/pthread_create.c
@@ -428,7 +428,7 @@ static const struct pthread_attr default_attr =
int
-__pthread_create_2_1 (
+pthread_create (
pthread_t *newthread,
const pthread_attr_t *attr,
void *(*start_routine) (void *),
@@ -558,7 +558,6 @@ __pthread_create_2_1 (
return 0;
}
-weak_alias(__pthread_create_2_1, pthread_create)
/* Information for libthread_db. */