summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-09-15 15:32:07 +0000
committerSzabolcs Nagy <nsz@port70.net>2013-09-16 15:16:55 +0000
commit90710df5ccd405743d570dcb255fc28d952ba651 (patch)
tree06f324adb9023a902a5b40afd11e9a183324992c /include
parent268375c1c017c0bdefeed1a330811e433c4dfaef (diff)
downloadmusl-90710df5ccd405743d570dcb255fc28d952ba651.tar.gz
sys/resource.h: add PRIO_MIN and PRIO_MAX for getpriority and setpriority
These constants are not specified by POSIX, but they are in the reserved namespace, glibc and bsd systems seem to provide them as well. (Note that POSIX specifies -NZERO and NZERO-1 to be the limits, but PRIO_MAX equals NZERO)
Diffstat (limited to 'include')
-rw-r--r--include/sys/resource.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sys/resource.h b/include/sys/resource.h
index 0cfbcf44..7fd6a375 100644
--- a/include/sys/resource.h
+++ b/include/sys/resource.h
@@ -59,6 +59,9 @@ int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
#define prlimit64 prlimit
#endif
+#define PRIO_MIN (-20)
+#define PRIO_MAX 20
+
#define PRIO_PROCESS 0
#define PRIO_PGRP 1
#define PRIO_USER 2