| 1 | //go:build !(windows || linux || darwin) |
| 2 | |
| 3 | package sysfs |
| 4 | |
| 5 | import ( |
| 6 | "github.com/tetratelabs/wazero/experimental/sys" |
| 7 | ) |
| 8 | |
| 9 | func utimens(path string, atim, mtim int64) sys.Errno { |
| 10 | return chtimes(path, atim, mtim) |
| 11 | } |
| 12 | |
| 13 | func futimens(fd uintptr, atim, mtim int64) error { |
| 14 | // Go exports syscall.Futimes, which is microsecond granularity, and |
| 15 | // WASI tests expect nanosecond. We don't yet have a way to invoke the |
| 16 | // futimens syscall portably. |
| 17 | return sys.ENOSYS |
| 18 | } |