summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads.old/attr.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-23 03:00:03 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-23 03:00:03 +0000
commitcec88156d8107b78c22b988de72e8c1002118d70 (patch)
tree07788f53223bc1bdc0383468cf9303a3e0b6637b /libpthread/linuxthreads.old/attr.c
parent0f2c86bee22bc756814129b430b0687c7e23df81 (diff)
downloaduClibc-alpine-cec88156d8107b78c22b988de72e8c1002118d70.tar.bz2
uClibc-alpine-cec88156d8107b78c22b988de72e8c1002118d70.tar.xz
Merge from trunk.
Diffstat (limited to 'libpthread/linuxthreads.old/attr.c')
-rw-r--r--libpthread/linuxthreads.old/attr.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libpthread/linuxthreads.old/attr.c b/libpthread/linuxthreads.old/attr.c
index a8dfb335e..9deeee0ef 100644
--- a/libpthread/linuxthreads.old/attr.c
+++ b/libpthread/linuxthreads.old/attr.c
@@ -25,8 +25,6 @@
#include "pthread.h"
#include "internals.h"
-extern int __getpagesize(void);
-
/* NOTE: With uClibc I don't think we need this versioning stuff.
* Therefore, define the function pthread_attr_init() here using
* a strong symbol. */
@@ -34,7 +32,7 @@ extern int __getpagesize(void);
//int __pthread_attr_init_2_1(pthread_attr_t *attr)
int pthread_attr_init(pthread_attr_t *attr)
{
- size_t ps = __getpagesize ();
+ size_t ps = getpagesize ();
attr->__detachstate = PTHREAD_CREATE_JOINABLE;
attr->__schedpolicy = SCHED_OTHER;
@@ -50,7 +48,7 @@ int pthread_attr_init(pthread_attr_t *attr)
/* uClibc: leave out this for now. */
#if DO_PTHREAD_VERSIONING_WITH_UCLIBC
-#if defined __HAVE_ELF__ && defined __PIC__ && defined DO_VERSIONING
+#if defined __PIC__ && defined DO_VERSIONING
default_symbol_version (__pthread_attr_init_2_1, pthread_attr_init, GLIBC_2.1);
int __pthread_attr_init_2_0(pthread_attr_t *attr)
@@ -156,7 +154,7 @@ int pthread_attr_getscope(const pthread_attr_t *attr, int *scope)
int __pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize)
{
- size_t ps = __getpagesize ();
+ size_t ps = getpagesize ();
/* First round up the guard size. */
guardsize = roundup (guardsize, ps);