github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/internal/sysfs/futimens_unsupported.go (about) 1 //go:build !windows && !linux && !darwin 2 3 package sysfs 4 5 import ( 6 "github.com/bananabytelabs/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 }