* Return the current (soft) limit for a particular system resource. * The which parameter which specifies the index into the rlimit array */
| 1284 | * The which parameter which specifies the index into the rlimit array |
| 1285 | */ |
| 1286 | rlim_t |
| 1287 | (lim_cur)(struct thread *td, int which) |
| 1288 | { |
| 1289 | struct rlimit rl; |
| 1290 | |
| 1291 | lim_rlimit(td, which, &rl); |
| 1292 | return (rl.rlim_cur); |
| 1293 | } |
| 1294 | |
| 1295 | rlim_t |
| 1296 | lim_cur_proc(struct proc *p, int which) |
nothing calls this directly
no test coverage detected