summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old/attr.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-24 17:41:01 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-24 17:41:01 +0000
commitb0403788201afc178b376735f889c3790efc2a06 (patch)
tree605c4c9a1d0a123f6748b17c3b546cca2086a67d /libpthread/linuxthreads.old/attr.c
parent48143d8a8f92fd69d95564516fd1b7cf122511b1 (diff)
Don't use __getpid/__getpagesize
Diffstat (limited to 'libpthread/linuxthreads.old/attr.c')
-rw-r--r--libpthread/linuxthreads.old/attr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libpthread/linuxthreads.old/attr.c b/libpthread/linuxthreads.old/attr.c
index 287f2636d..9deeee0ef 100644
--- a/libpthread/linuxthreads.old/attr.c
+++ b/libpthread/linuxthreads.old/attr.c
@@ -15,7 +15,6 @@
/* changed for uClibc */
#define __sched_get_priority_min sched_get_priority_min
#define __sched_get_priority_max sched_get_priority_max
-#define __getpagesize getpagesize
/* Handling of thread attributes */
@@ -33,7 +32,7 @@
//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;
@@ -155,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);