]> Zhao Yanbai Git Server - minix.git/commitdiff
Added <sys/resource.h> for [gs]etpriority() call.
authorBen Gras <ben@minix3.org>
Fri, 1 Jul 2005 09:59:49 +0000 (09:59 +0000)
committerBen Gras <ben@minix3.org>
Fri, 1 Jul 2005 09:59:49 +0000 (09:59 +0000)
include/sys/resource.h [new file with mode: 0755]

diff --git a/include/sys/resource.h b/include/sys/resource.h
new file mode 100755 (executable)
index 0000000..b9bd599
--- /dev/null
@@ -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