ARGSUSED */
| 786 | #endif |
| 787 | /* ARGSUSED */ |
| 788 | int |
| 789 | sys_getrlimit(struct thread *td, struct __getrlimit_args *uap) |
| 790 | { |
| 791 | struct rlimit rlim; |
| 792 | int error; |
| 793 | |
| 794 | if (uap->which >= RLIM_NLIMITS) |
| 795 | return (EINVAL); |
| 796 | lim_rlimit(td, uap->which, &rlim); |
| 797 | error = copyout(&rlim, uap->rlp, sizeof(struct rlimit)); |
| 798 | return (error); |
| 799 | } |
| 800 | |
| 801 | /* |
| 802 | * Transform the running time and tick information for children of proc p |
nothing calls this directly
no test coverage detected