32c32
< * $FreeBSD: head/lib/libthr/thread/thr_getschedparam.c 160321 2006-07-13 06:35:43Z davidxu $
---
> * $FreeBSD: head/lib/libthr/thread/thr_getschedparam.c 160331 2006-07-13 22:45:19Z davidxu $
60,63c60,61
< ret = thr_getscheduler((pid_t)curthread->tid, policy, param,
< sizeof(param));
< if (ret == -1)
< ret = errno;
---
> *policy = curthread->attr.sched_policy;
> param->sched_priority = curthread->attr.prio;
64a63
> ret = 0;
70,73c69,70
< ret = thr_getscheduler(pthread->tid, policy, param,
< sizeof(param));
< if (ret == -1)
< ret = errno;
---
> *policy = pthread->attr.sched_policy;
> param->sched_priority = pthread->attr.prio;
< * $FreeBSD: head/lib/libthr/thread/thr_getschedparam.c 160321 2006-07-13 06:35:43Z davidxu $
---
> * $FreeBSD: head/lib/libthr/thread/thr_getschedparam.c 160331 2006-07-13 22:45:19Z davidxu $
60,63c60,61
< ret = thr_getscheduler((pid_t)curthread->tid, policy, param,
< sizeof(param));
< if (ret == -1)
< ret = errno;
---
> *policy = curthread->attr.sched_policy;
> param->sched_priority = curthread->attr.prio;
64a63
> ret = 0;
70,73c69,70
< ret = thr_getscheduler(pthread->tid, policy, param,
< sizeof(param));
< if (ret == -1)
< ret = errno;
---
> *policy = pthread->attr.sched_policy;
> param->sched_priority = pthread->attr.prio;