summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_setprio.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1997-02-05 23:26:09 +0000
committerjulian <julian@FreeBSD.org>1997-02-05 23:26:09 +0000
commitc2f7c3e4893b6b5c4494d549b3645e06664bc1b1 (patch)
treeb2e6d3017e236268263978b585f2150cd10b1689 /lib/libc_r/uthread/uthread_setprio.c
parent321f03c8eddd8cf5aa81836ff1932a74156d30cb (diff)
downloadFreeBSD-src-c2f7c3e4893b6b5c4494d549b3645e06664bc1b1.zip
FreeBSD-src-c2f7c3e4893b6b5c4494d549b3645e06664bc1b1.tar.gz
Submitted by: John Birrell
uthreads update from the author.
Diffstat (limited to 'lib/libc_r/uthread/uthread_setprio.c')
-rw-r--r--lib/libc_r/uthread/uthread_setprio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_setprio.c b/lib/libc_r/uthread/uthread_setprio.c
index e052ec3..4b49ed0 100644
--- a/lib/libc_r/uthread/uthread_setprio.c
+++ b/lib/libc_r/uthread/uthread_setprio.c
@@ -45,7 +45,7 @@ pthread_setprio(pthread_t pthread, int prio)
/* Check if the priority is invalid: */
if (prio < PTHREAD_MIN_PRIORITY || prio > PTHREAD_MAX_PRIORITY) {
/* Return an invalid argument error: */
- _thread_seterrno(_thread_run, EINVAL);
+ errno = EINVAL;
rval = -1;
} else {
/* Block signals: */
@@ -63,7 +63,7 @@ pthread_setprio(pthread_t pthread, int prio)
/* Check if the thread pointer is NULL: */
if (pthread == NULL || pthread_p == NULL) {
/* Return a 'search' error: */
- _thread_seterrno(_thread_run, ESRCH);
+ errno = ESRCH;
rval = -1;
} else {
/* Set the thread priority: */
OpenPOWER on IntegriCloud