summaryrefslogtreecommitdiff
path: root/libpthread
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-13 08:39:27 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-13 08:39:27 +0000
commit0c3a70aa5385e1f2d65cea8dd0bc2b4609e3a040 (patch)
tree472dabeaad7185d437b209fcebadc0af40c55021 /libpthread
parent42c9f525369ba06742d53d7a89ad00153b317de6 (diff)
Disable deprecated stuff in new linuxthreads
Diffstat (limited to 'libpthread')
-rw-r--r--libpthread/linuxthreads/attr.c6
-rw-r--r--libpthread/linuxthreads/internals.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/attr.c b/libpthread/linuxthreads/attr.c
index a79bd78c4..e60f2ed32 100644
--- a/libpthread/linuxthreads/attr.c
+++ b/libpthread/linuxthreads/attr.c
@@ -163,6 +163,7 @@ int __pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize)
}
weak_alias (__pthread_attr_getguardsize, pthread_attr_getguardsize)
+#if 0 /* uClibc: deprecated stuff disabled */
int __pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr)
{
attr->__stackaddr = stackaddr;
@@ -186,6 +187,7 @@ weak_alias (__pthread_attr_getstackaddr, pthread_attr_getstackaddr)
link_warning (pthread_attr_getstackaddr,
"the use of `pthread_attr_getstackaddr' is deprecated, use `pthread_attr_getstack'")
+#endif
int __pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
@@ -213,7 +215,7 @@ int __pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
return 0;
}
-#if PTHREAD_STACK_MIN == 16384
+#if PTHREAD_STACK_MIN == 16384 || defined __UCLIBC__
weak_alias (__pthread_attr_setstacksize, pthread_attr_setstacksize)
#else
versioned_symbol (libpthread, __pthread_attr_setstacksize,
@@ -281,7 +283,7 @@ int __pthread_attr_setstack (pthread_attr_t *attr, void *stackaddr,
return err;
}
-#if PTHREAD_STACK_MIN == 16384
+#if PTHREAD_STACK_MIN == 16384 || defined __UCLIBC__
weak_alias (__pthread_attr_setstack, pthread_attr_setstack)
#else
versioned_symbol (libpthread, __pthread_attr_setstack, pthread_attr_setstack,
diff --git a/libpthread/linuxthreads/internals.h b/libpthread/linuxthreads/internals.h
index a04995f41..9be272fe7 100644
--- a/libpthread/linuxthreads/internals.h
+++ b/libpthread/linuxthreads/internals.h
@@ -303,10 +303,12 @@ extern int __pthread_attr_setguardsize (pthread_attr_t *__attr,
size_t __guardsize);
extern int __pthread_attr_getguardsize (const pthread_attr_t *__attr,
size_t *__guardsize);
+#if 0 /* uClibc: deprecated stuff disabled */
extern int __pthread_attr_setstackaddr (pthread_attr_t *__attr,
void *__stackaddr);
extern int __pthread_attr_getstackaddr (const pthread_attr_t *__attr,
void **__stackaddr);
+#endif
extern int __pthread_attr_setstacksize (pthread_attr_t *__attr,
size_t __stacksize);
extern int __pthread_attr_getstacksize (const pthread_attr_t *__attr,