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