20 #include <sys/resource.h> 26 #define PRIO_PROCESS 1 29 #define RLIMIT_NOFILE 0 31 #define RLIMIT_STACK 3 32 #define RLIM_INFINITY SIZE_MAX 35 #define RUSAGE_CHILDREN 0 36 #define RUSAGE_THREAD 0 38 using rlim_t = size_t;
64 int getrlimit(
int type, rlimit* dst);
65 int getrusage(
int who, rusage* usage);
66 int setrlimit(
int type, rlimit* src);
68 int getpriority(
int which,
int who);
69 int setpriority(
int which,
int who,
int value);
static const char *const value