github.com/tetratelabs/wazero@v1.2.1/internal/sysfs/futimens_unsupported.go (about) 1 //go:build !windows && !linux && !darwin 2 3 package sysfs 4 5 import "syscall" 6 7 // Define values even if not used except as sentinels. 8 const ( 9 _UTIME_NOW = -1 10 _UTIME_OMIT = -2 11 SupportsSymlinkNoFollow = false 12 ) 13 14 func utimens(path string, times *[2]syscall.Timespec, symlinkFollow bool) error { 15 return utimensPortable(path, times, symlinkFollow) 16 } 17 18 func futimens(fd uintptr, times *[2]syscall.Timespec) error { 19 // Go exports syscall.Futimes, which is microsecond granularity, and 20 // WASI tests expect nanosecond. We don't yet have a way to invoke the 21 // futimens syscall portably. 22 return syscall.ENOSYS 23 }