| 427 | }; |
| 428 | #endif |
| 429 | int |
| 430 | sys_clock_getres(struct thread *td, struct clock_getres_args *uap) |
| 431 | { |
| 432 | struct timespec ts; |
| 433 | int error; |
| 434 | |
| 435 | if (uap->tp == NULL) |
| 436 | return (0); |
| 437 | |
| 438 | error = kern_clock_getres(td, uap->clock_id, &ts); |
| 439 | if (error == 0) |
| 440 | error = copyout(&ts, uap->tp, sizeof(ts)); |
| 441 | return (error); |
| 442 | } |
| 443 | |
| 444 | int |
| 445 | kern_clock_getres(struct thread *td, clockid_t clock_id, struct timespec *ts) |
nothing calls this directly
no test coverage detected