Subject: question about sched.h
To: None <netbsd-users@netbsd.org>
From: Rui-Xiang Guo <rxg@ms25.url.com.tw>
List: netbsd-users
Date: 03/08/2002 21:26:23
Hi, all
when I try to port a program from FreeBSD to NetBSD, I get some trobules
about including sched.h file.
1. We don't have struct "sched_param", I find someone post the method is to
declare a new one, like this:

struct sched_param {
  int sched_priority;
};

Would it be fine?

2. We don't have sched_get_priority_min() but we have getpriority().
So, should we need to replace sched_get_priority_min() with getpriority(),
or just to comment it?
(it just is a one line statement, like this:
sched_param.sched_priority = sched_get_priority_min(SCHED_OTHER);)

Could please someone help me? Thanks! :)

-rxg