X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Fresource.h;h=58392d64ba8f0792d29b2302fcb774a62f383214;hb=0f2315b4af1c58cbfb7c7f9da69b495cd146cc18;hp=0cfbcf44349018614f34b575a749d50e39f06e63;hpb=9448b0513e2eec020fbca9c10412b83df5027a16;p=musl diff --git a/include/sys/resource.h b/include/sys/resource.h index 0cfbcf44..58392d64 100644 --- a/include/sys/resource.h +++ b/include/sys/resource.h @@ -15,6 +15,7 @@ extern "C" { #endif #include +#include typedef unsigned long long rlim_t; @@ -59,6 +60,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 @@ -75,11 +79,13 @@ int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); #define RLIMIT_DATA 2 #define RLIMIT_STACK 3 #define RLIMIT_CORE 4 +#ifndef RLIMIT_RSS #define RLIMIT_RSS 5 -#define RLIMIT_NOFILE 7 -#define RLIMIT_AS 9 #define RLIMIT_NPROC 6 +#define RLIMIT_NOFILE 7 #define RLIMIT_MEMLOCK 8 +#define RLIMIT_AS 9 +#endif #define RLIMIT_LOCKS 10 #define RLIMIT_SIGPENDING 11 #define RLIMIT_MSGQUEUE 12