getrlimit_proc
static void getrlimit_proc(pid_t pid, int resource, struct rlimit *rlp);
getrlimit_proc(pid, i, &limits[i]);