_kern_setrlimit
extern int _kern_setrlimit(int resource, const struct rlimit * rlp);
int status = _kern_setrlimit(resource, rlimit);