ARGSUSED */
| 382 | #endif |
| 383 | /* ARGSUSED */ |
| 384 | int |
| 385 | sys_clock_settime(struct thread *td, struct clock_settime_args *uap) |
| 386 | { |
| 387 | struct timespec ats; |
| 388 | int error; |
| 389 | |
| 390 | if ((error = copyin(uap->tp, &ats, sizeof(ats))) != 0) |
| 391 | return (error); |
| 392 | return (kern_clock_settime(td, uap->clock_id, &ats)); |
| 393 | } |
| 394 | |
| 395 | static int allow_insane_settime = 0; |
| 396 | SYSCTL_INT(_debug, OID_AUTO, allow_insane_settime, CTLFLAG_RWTUN, |
nothing calls this directly
no test coverage detected