* Return the hard limit for a particular system resource. The * which parameter specifies the index into the rlimit array. */
| 1262 | * which parameter specifies the index into the rlimit array. |
| 1263 | */ |
| 1264 | rlim_t |
| 1265 | lim_max(struct thread *td, int which) |
| 1266 | { |
| 1267 | struct rlimit rl; |
| 1268 | |
| 1269 | lim_rlimit(td, which, &rl); |
| 1270 | return (rl.rlim_max); |
| 1271 | } |
| 1272 | |
| 1273 | rlim_t |
| 1274 | lim_max_proc(struct proc *p, int which) |
no test coverage detected