From 663a1af0674c37774d310541e9b30c60316f2055 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 3 Jul 2001 02:00:09 +0000 Subject: Cosmetic changes. --- sched.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sched.h') diff --git a/sched.h b/sched.h index 870087f..23a43cb 100644 --- a/sched.h +++ b/sched.h @@ -66,8 +66,18 @@ int sched_setscheduler (pid_t pid, int policy); int sched_getscheduler (pid_t pid); +/* + * Note that this macro returns ENOTSUP rather than + * ENOSYS as might be expected. However, returning ENOSYS + * should mean that sched_get_priority_{min,max} are + * not implemented as well as sched_rr_get_interval. + * This is not the case, since we just don't support + * round-robin scheduling. Therefore I have chosen to + * return the same value as sched_setscheduler when + * SCHED_RR is passed to it. + */ #define sched_rr_get_interval(_pid, _interval) \ - ( errno = ENOSYS, (int) -1 ) + ( errno = ENOTSUP, (int) -1 ) #ifdef __cplusplus -- cgit v1.2.3