From 6af69de3d38f97904ed3dcfef30f350614e051f3 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 19 Dec 2007 22:27:00 +0000 Subject: 2007-12-19 Jeff Johnston * libc/string/strcasestr.c: Remove id macro. * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority field reference to be __sched_priority. * libc/sys/linux/linuxthreads/joinrace.c: Ditto. * libc/sys/linux/linuxthreads/manager.c: Ditto. * libc/sys/linux/stdlib/collate.c: Remove id macro. * libc/sys/linux/stdlib/collcmp.c: Ditto. * libc/sys/linux/stdlib/engine.c: Ditto. * libc/sys/linux/stdlib/fnmatch.c: Ditto. * libc/sys/linux/stdlib/glob.c: Ditto. * libc/sys/linux/stdlib/reallocf.c: Ditto. * libc/sys/linux/stdlib/regcomp.c: Ditto. * libc/sys/linux/stdlib/regerror.c: Ditto. * libc/sys/linux/stdlib/regexec.c: Ditto. * libc/sys/linux/stdlib/regfree.c: Ditto. * libc/sys/linux/sys/cdefs.h: Replace with latest version. * libc/sys/linux/include/argp.h: Ditto. * libc/sys/linux/sys/libc-lock.h: New file. * libc/sys/linux/sys/stdint.h: Ditto. * libc/sys/linux/include/sched.h: New file. --- newlib/libc/sys/linux/linuxthreads/attr.c | 4 ++-- newlib/libc/sys/linux/linuxthreads/joinrace.c | 2 +- newlib/libc/sys/linux/linuxthreads/manager.c | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'newlib/libc/sys/linux/linuxthreads') diff --git a/newlib/libc/sys/linux/linuxthreads/attr.c b/newlib/libc/sys/linux/linuxthreads/attr.c index 4b3a8f434..dc964c925 100644 --- a/newlib/libc/sys/linux/linuxthreads/attr.c +++ b/newlib/libc/sys/linux/linuxthreads/attr.c @@ -29,7 +29,7 @@ int __pthread_attr_init_2_1(pthread_attr_t *attr) attr->__detachstate = PTHREAD_CREATE_JOINABLE; attr->__schedpolicy = SCHED_OTHER; - attr->__schedparam.sched_priority = 0; + attr->__schedparam.__sched_priority = 0; attr->__inheritsched = PTHREAD_EXPLICIT_SCHED; attr->__scope = PTHREAD_SCOPE_SYSTEM; attr->__guardsize = ps; @@ -47,7 +47,7 @@ int __pthread_attr_init_2_0(pthread_attr_t *attr) { attr->__detachstate = PTHREAD_CREATE_JOINABLE; attr->__schedpolicy = SCHED_OTHER; - attr->__schedparam.sched_priority = 0; + attr->__schedparam.__sched_priority = 0; attr->__inheritsched = PTHREAD_EXPLICIT_SCHED; attr->__scope = PTHREAD_SCOPE_SYSTEM; return 0; diff --git a/newlib/libc/sys/linux/linuxthreads/joinrace.c b/newlib/libc/sys/linux/linuxthreads/joinrace.c index 8e1064c98..163e0b2d3 100644 --- a/newlib/libc/sys/linux/linuxthreads/joinrace.c +++ b/newlib/libc/sys/linux/linuxthreads/joinrace.c @@ -35,7 +35,7 @@ main (void) return 1; } - sp1.sched_priority = 0; + sp1.__sched_priority = 0; istatus = pthread_setschedparam (thread1, SCHED_OTHER, &sp1); if (istatus != ESRCH) { diff --git a/newlib/libc/sys/linux/linuxthreads/manager.c b/newlib/libc/sys/linux/linuxthreads/manager.c index 7729903cf..492b95680 100644 --- a/newlib/libc/sys/linux/linuxthreads/manager.c +++ b/newlib/libc/sys/linux/linuxthreads/manager.c @@ -15,6 +15,7 @@ /* The "thread manager" thread: manages creation and termination of threads */ #include +#define __USE_MISC #include #include #include @@ -594,7 +595,7 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr, break; } new_thread->p_priority = - new_thread->p_start_args.schedparam.sched_priority; + new_thread->p_start_args.schedparam.__sched_priority; } /* Finish setting up arguments to pthread_start_thread */ new_thread->p_start_args.start_routine = start_routine; -- cgit v1.2.3