получить / установить ограничения ресурсов (get/set resource limits)
Синопсис (Synopsis)
#include <sys/resource.h>
int getrlimit(int
resource, struct rlimit *
rlim);
int setrlimit(int
resource, const struct rlimit *
rlim);
int prlimit(pid_t
pid, int
resource, const struct rlimit *
new_limit,
struct rlimit *
old_limit);
Feature Test Macro Requirements for glibc (see
feature_test_macros(7)):
prlimit
():
_GNU_SOURCE