summaryrefslogtreecommitdiff
path: root/lib/libc_r/uthread/uthread_attr_setschedparam.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-01-19 23:49:33 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-01-19 23:49:33 +0000
commitc7d21fbd347633d602d10bff760f1a8b99f03778 (patch)
treecdb204b15900fcb7dc3436e0c7673d525dded260 /lib/libc_r/uthread/uthread_attr_setschedparam.c
parent33f51fbe1592131dee92e0a5e874264066f8d9a5 (diff)
Instead of ifdef around ENOTSUP, move it to pthread_private.h and make
it EOPNOTSUPP.
Diffstat (limited to 'lib/libc_r/uthread/uthread_attr_setschedparam.c')
-rw-r--r--lib/libc_r/uthread/uthread_attr_setschedparam.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libc_r/uthread/uthread_attr_setschedparam.c b/lib/libc_r/uthread/uthread_attr_setschedparam.c
index eb7bda9f92f..d1071fa4314 100644
--- a/lib/libc_r/uthread/uthread_attr_setschedparam.c
+++ b/lib/libc_r/uthread/uthread_attr_setschedparam.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_attr_setschedparam.c,v 1.3 2001/08/09 12:00:59 fgsch Exp $ */
+/* $OpenBSD: uthread_attr_setschedparam.c,v 1.4 2002/01/19 23:49:32 fgsch Exp $ */
/*
* Copyright (c) 1998 Daniel Eischen <eischen@vigrid.com>.
* All rights reserved.
@@ -45,19 +45,11 @@ pthread_attr_setschedparam(pthread_attr_t *attr, const struct sched_param *param
if ((attr == NULL) || (*attr == NULL))
ret = EINVAL;
else if (param == NULL) {
-#ifdef NOT_YET
ret = ENOTSUP;
-#else
- ret = EOPNOTSUPP;
-#endif
} else if ((param->sched_priority < PTHREAD_MIN_PRIORITY) ||
(param->sched_priority > PTHREAD_MAX_PRIORITY)) {
/* Return an unsupported value error. */
-#ifdef NOT_YET
ret = ENOTSUP;
-#else
- ret = EOPNOTSUPP;
-#endif
} else
(*attr)->prio = param->sched_priority;