| 1046 | }; |
| 1047 | #endif |
| 1048 | int |
| 1049 | sys_getrusage(struct thread *td, struct getrusage_args *uap) |
| 1050 | { |
| 1051 | struct rusage ru; |
| 1052 | int error; |
| 1053 | |
| 1054 | error = kern_getrusage(td, uap->who, &ru); |
| 1055 | if (error == 0) |
| 1056 | error = copyout(&ru, uap->rusage, sizeof(struct rusage)); |
| 1057 | return (error); |
| 1058 | } |
| 1059 | |
| 1060 | int |
| 1061 | kern_getrusage(struct thread *td, int who, struct rusage *rup) |
nothing calls this directly
no test coverage detected