diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/resource.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sys/resource.h b/include/sys/resource.h index b9189028..cb39923f 100644 --- a/include/sys/resource.h +++ b/include/sys/resource.h @@ -9,6 +9,10 @@ extern "C" { #define __NEED_time_t #define __NEED_struct_timeval +#ifdef _GNU_SOURCE +#define __NEED_pid_t +#endif + #include <bits/alltypes.h> typedef unsigned long long rlim_t; @@ -49,6 +53,10 @@ int getrusage (int, struct rusage *); int getpriority (int, id_t); int setpriority (int, id_t, int); +#ifdef _GNU_SOURCE +int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); +#endif + #define PRIO_PROCESS 0 #define PRIO_PGRP 1 #define PRIO_USER 2 |