* Return the current (soft) limit for a particular system resource. * The which parameter which specifies the index into the rlimit array */
| 766 | * The which parameter which specifies the index into the rlimit array |
| 767 | */ |
| 768 | rlim_t |
| 769 | lim_cur(struct thread *td, int which) |
| 770 | { |
| 771 | struct rlimit rl; |
| 772 | |
| 773 | lim_rlimit(td, which, &rl); |
| 774 | return (rl.rlim_cur); |
| 775 | } |
| 776 | |
| 777 | rlim_t |
| 778 | lim_cur_proc(struct proc *p, int which) |
no test coverage detected