(seconds int64, nanoseconds int64)
| 11 | } |
| 12 | |
| 13 | func SetSystemTime(seconds int64, nanoseconds int64) error { |
| 14 | ts := timespec{Sec: seconds, Nsec: nanoseconds} |
| 15 | _, _, errno := syscall.Syscall(syscall.SYS_CLOCK_SETTIME, 0, uintptr(unsafe.Pointer(&ts)), 0) |
| 16 | if errno != 0 { |
| 17 | return errno |
| 18 | } |
| 19 | return nil |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected