projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
268375c
)
sys/resource.h: add PRIO_MIN and PRIO_MAX for getpriority and setpriority
author
Szabolcs Nagy
<nsz@port70.net>
Sun, 15 Sep 2013 15:32:07 +0000
(15:32 +0000)
committer
Szabolcs Nagy
<nsz@port70.net>
Mon, 16 Sep 2013 15:16:55 +0000
(15:16 +0000)
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)
include/sys/resource.h
patch
|
blob
|
history
diff --git
a/include/sys/resource.h
b/include/sys/resource.h
index 0cfbcf44349018614f34b575a749d50e39f06e63..7fd6a375b69f7b9946a3a28fe618ee9080896aaf 100644
(file)
--- 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