summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--pthread_getschedparam.c2
-rw-r--r--pthread_setschedparam.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9704802..65e1df4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-12 Ross Johnson <rpj@ise.canberra.edu.au>
+
+ * pthread_getschedparam.c (pthread_getschedparam): An invalid thread ID
+ parameter was returning an incorrect error value.
+ * pthread_setschedparam.c (pthread_setschedparam): Likewise.
+
2003-06-24 Piet van Bruggen <pietvb@newbridges.nl>
* pthread_spin_destroy.c (pthread_spin_destroy): Was not freeing the
diff --git a/pthread_getschedparam.c b/pthread_getschedparam.c
index e796a88..081bfe3 100644
--- a/pthread_getschedparam.c
+++ b/pthread_getschedparam.c
@@ -47,7 +47,7 @@ pthread_getschedparam(pthread_t thread, int *policy,
/* Validate the thread id. */
if (thread == NULL || thread->threadH == 0)
{
- return EINVAL;
+ return ESRCH;
}
/*
diff --git a/pthread_setschedparam.c b/pthread_setschedparam.c
index 2e795b9..1a24f1f 100644
--- a/pthread_setschedparam.c
+++ b/pthread_setschedparam.c
@@ -47,7 +47,7 @@ pthread_setschedparam(pthread_t thread, int policy,
/* Validate the thread id. */
if (thread == NULL || thread->threadH == 0)
{
- return EINVAL;
+ return ESRCH;
}
/* Validate the scheduling policy. */