Lines Matching refs:limits

286     struct rlimit limits[RLIM_NLIMITS];  in main()  local
375 getrlimit(i, &limits[i]); in main()
377 getrlimit_proc(pid, i, &limits[i]); in main()
379 getrlimit_proc(pid, i, &limits[i]); in main()
402 …val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_cur, limits[rcsw… in main()
403 limits[rcswhich].rlim_cur = resources[rcswhich].func(lc, str, val, val); in main()
406 …val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_max, limits[rcsw… in main()
407 limits[rcswhich].rlim_max = resources[rcswhich].func(lc, str, val, val); in main()
424 if (limits[rcswhich].rlim_max != RLIM_INFINITY) { in main()
425 if (limits[rcswhich].rlim_cur == RLIM_INFINITY) { in main()
426 limits[rcswhich].rlim_max = RLIM_INFINITY; in main()
428 } else if (limits[rcswhich].rlim_cur > limits[rcswhich].rlim_max) { in main()
430 limits[rcswhich].rlim_max = limits[rcswhich].rlim_cur; in main()
433 limits[rcswhich].rlim_cur = limits[rcswhich].rlim_max; in main()
449 limits[rcswhich].rlim_max = set_limits[rcswhich]; in main()
451 limits[rcswhich].rlim_cur = set_limits[rcswhich]; in main()
482 if (setrlimit(rcswhich, &limits[rcswhich]) == -1) in main()
496 setrlimit_proc(pid, rcswhich, &limits[rcswhich]); in main()
516 if (shellparm[shelltype].both && limits[rcswhich].rlim_cur == limits[rcswhich].rlim_max) { in main()
517 print_limit(limits[rcswhich].rlim_max, in main()
525 print_limit(limits[rcswhich].rlim_max, in main()
533 print_limit(limits[rcswhich].rlim_cur, in main()