From: Ben Gras Date: Fri, 1 Jul 2005 09:59:49 +0000 (+0000) Subject: Added for [gs]etpriority() call. X-Git-Tag: v3.1.0~660 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.named.html?a=commitdiff_plain;h=83f0f501f8f3c69d6be98f0ad715a5052fc05cd0;p=minix.git Added for [gs]etpriority() call. --- diff --git a/include/sys/resource.h b/include/sys/resource.h new file mode 100755 index 000000000..b9bd59905 --- /dev/null +++ b/include/sys/resource.h @@ -0,0 +1,19 @@ + +#ifndef _SYS_RESOURCE_H +#define _SYS_RESOURCE_H + +/* Priority range for the get/setpriority() interface. + * It isn't a mapping on the internal minix scheduling + * priority. + */ +#define PRIO_MIN -20 +#define PRIO_MAX 20 + +#define PRIO_PROCESS 0 +#define PRIO_PGRP 1 +#define PRIO_USER 2 + +int getpriority(int, int); +int setpriority(int, int, int); + +#endif