ARGSUSED */
| 227 | #endif |
| 228 | /* ARGSUSED */ |
| 229 | int |
| 230 | sys_clock_gettime(struct thread *td, struct clock_gettime_args *uap) |
| 231 | { |
| 232 | struct timespec ats; |
| 233 | int error; |
| 234 | |
| 235 | error = kern_clock_gettime(td, uap->clock_id, &ats); |
| 236 | if (error == 0) |
| 237 | error = copyout(&ats, uap->tp, sizeof(ats)); |
| 238 | |
| 239 | return (error); |
| 240 | } |
| 241 | |
| 242 | static inline void |
| 243 | cputick2timespec(uint64_t runtime, struct timespec *ats) |
nothing calls this directly
no test coverage detected