setrlimit - control maximum resource consumption
#include <sys/resource.h> int setrlimit(int resource, const struct rlimit *rlp);
Refer to getrlimit().