| 739 | }; |
| 740 | #endif |
| 741 | int |
| 742 | sys_getitimer(struct thread *td, struct getitimer_args *uap) |
| 743 | { |
| 744 | struct itimerval aitv; |
| 745 | int error; |
| 746 | |
| 747 | error = kern_getitimer(td, uap->which, &aitv); |
| 748 | if (error != 0) |
| 749 | return (error); |
| 750 | return (copyout(&aitv, uap->itv, sizeof (struct itimerval))); |
| 751 | } |
| 752 | |
| 753 | int |
| 754 | kern_getitimer(struct thread *td, u_int which, struct itimerval *aitv) |
no test coverage detected