Lines Matching refs:rlim
390 struct rlimit64 rlim; in show_limits() local
398 if (pr_getrlimit64(Pr, resource, &rlim) != 0) in show_limits()
408 limit_adjust(&rlim, 1024); in show_limits()
411 limit_adjust(&rlim, 1024 * 1024); in show_limits()
414 limit_adjust(&rlim, 512); in show_limits()
420 limit_adjust(&rlim, 1024 * 1024); in show_limits()
423 limit_adjust(&rlim, 1024); in show_limits()
429 limit_adjust(&rlim, 1024 * 1024); in show_limits()
432 limit_adjust(&rlim, 1024); in show_limits()
438 limit_adjust(&rlim, 1024); in show_limits()
441 limit_adjust(&rlim, 1024 * 1024); in show_limits()
444 limit_adjust(&rlim, 512); in show_limits()
453 limit_adjust(&rlim, 1024 * 1024); in show_limits()
456 limit_adjust(&rlim, 1024); in show_limits()
465 (void) printf("%s%s\n", s, limit_values(&rlim)); in show_limits()
472 struct rlimit64 rlim; in set_one_limit() local
478 if (pr_getrlimit64(Pr, which, &rlim) != 0) { in set_one_limit()
486 cur = rlim.rlim_cur; in set_one_limit()
488 max = rlim.rlim_max; in set_one_limit()
493 if (max > rlim.rlim_max && Pr != NULL) in set_one_limit()
495 rlim.rlim_cur = cur; in set_one_limit()
496 rlim.rlim_max = max; in set_one_limit()
549 if (pr_setrlimit64(Pr, which, &rlim) != 0) { in set_one_limit()