Files
wazero/internal/sysfs/futimens_unsupported.go
Crypt Keeper fb6147ca94
Some checks failed
Release CLI / Pre-release build (push) Has been cancelled
Release CLI / Pre-release test (macos-12) (push) Has been cancelled
Release CLI / Pre-release test (ubuntu-22.04) (push) Has been cancelled
Release CLI / Pre-release test (windows-2022) (push) Has been cancelled
Release CLI / Release (push) Has been cancelled
Emulates AT_SYMLINK_NOFOLLOW instead of sometimes implementing it (#1588)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-22 08:03:47 +08:00

27 lines
591 B
Go

//go:build !windows && !linux && !darwin
package sysfs
import (
"syscall"
"github.com/tetratelabs/wazero/experimental/sys"
)
// Define values even if not used except as sentinels.
const (
_UTIME_NOW = -1
_UTIME_OMIT = -2
)
func utimens(path string, times *[2]syscall.Timespec) error {
return utimensPortable(path, times)
}
func futimens(fd uintptr, times *[2]syscall.Timespec) error {
// Go exports syscall.Futimes, which is microsecond granularity, and
// WASI tests expect nanosecond. We don't yet have a way to invoke the
// futimens syscall portably.
return sys.ENOSYS
}