futimens_unsupported.go

 1//go:build (!windows && !linux && !darwin) || tinygo
 2
 3package sysfs
 4
 5import (
 6	"github.com/tetratelabs/wazero/experimental/sys"
 7)
 8
 9func utimens(path string, atim, mtim int64) sys.Errno {
10	return chtimes(path, atim, mtim)
11}
12
13func 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}