Lines Matching defs:rl
228 int rlimit_format(const struct rlimit *rl, char **ret) {
231 assert(rl);
234 if (rl->rlim_cur >= RLIM_INFINITY && rl->rlim_max >= RLIM_INFINITY)
236 else if (rl->rlim_cur >= RLIM_INFINITY)
237 (void) asprintf(&s, "infinity:" RLIM_FMT, rl->rlim_max);
238 else if (rl->rlim_max >= RLIM_INFINITY)
239 (void) asprintf(&s, RLIM_FMT ":infinity", rl->rlim_cur);
240 else if (rl->rlim_cur == rl->rlim_max)
241 (void) asprintf(&s, RLIM_FMT, rl->rlim_cur);
243 (void) asprintf(&s, RLIM_FMT ":" RLIM_FMT, rl->rlim_cur, rl->rlim_max);