diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-24 17:41:01 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-24 17:41:01 +0000 |
commit | b0403788201afc178b376735f889c3790efc2a06 (patch) | |
tree | 605c4c9a1d0a123f6748b17c3b546cca2086a67d /libpthread/linuxthreads.old/attr.c | |
parent | 48143d8a8f92fd69d95564516fd1b7cf122511b1 (diff) |
Don't use __getpid/__getpagesize
Diffstat (limited to 'libpthread/linuxthreads.old/attr.c')
-rw-r--r-- | libpthread/linuxthreads.old/attr.c | 5 |
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); |