Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-12-20 01:27:00 +0300
committerJeff Johnston <jjohnstn@redhat.com>2007-12-20 01:27:00 +0300
commit6af69de3d38f97904ed3dcfef30f350614e051f3 (patch)
tree59f7f3349a1422a1fe2ac7e2239f2a376bd51f0f /newlib/libc/sys/linux/linuxthreads
parent3cc8a378d117ead86181ed4d9b440d5a59b08779 (diff)
2007-12-19 Jeff Johnston <jjohnstn@redhat.com>
* 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.
Diffstat (limited to 'newlib/libc/sys/linux/linuxthreads')
-rw-r--r--newlib/libc/sys/linux/linuxthreads/attr.c4
-rw-r--r--newlib/libc/sys/linux/linuxthreads/joinrace.c2
-rw-r--r--newlib/libc/sys/linux/linuxthreads/manager.c3
3 files changed, 5 insertions, 4 deletions
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 <errno.h>
+#define __USE_MISC
#include <sched.h>
#include <stddef.h>
#include <stdio.h>
@@ -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;