From 03d029f134f6886d414e869610af3f09054ef37e Mon Sep 17 00:00:00 2001 From: jasone Date: Tue, 2 May 2000 06:51:40 +0000 Subject: Add missing man pages. Fix various compliance bugs, mostly having to do with error return values. Implement pthread_mutexattr_gettype(). PR: docs/16537, docs/17538 --- lib/libpthread/thread/thr_attr_setschedparam.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/libpthread/thread/thr_attr_setschedparam.c') diff --git a/lib/libpthread/thread/thr_attr_setschedparam.c b/lib/libpthread/thread/thr_attr_setschedparam.c index 5746fe2..6c4166b 100644 --- a/lib/libpthread/thread/thr_attr_setschedparam.c +++ b/lib/libpthread/thread/thr_attr_setschedparam.c @@ -41,9 +41,11 @@ pthread_attr_setschedparam(pthread_attr_t *attr, const struct sched_param *param { int ret = 0; - if ((attr == NULL) || (*attr == NULL) || (param == NULL)) + if ((attr == NULL) || (*attr == NULL)) ret = EINVAL; - else + else if (param == NULL) { + ret = ENOTSUP; + } else (*attr)->prio = param->sched_priority; return(ret); -- cgit v1.1