Signed-off-by: Adrian Cole <adrian@tetrate.io> Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com> Co-authored-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
24 lines
631 B
Go
24 lines
631 B
Go
//go:build !windows && !linux && !darwin
|
|
|
|
package sysfs
|
|
|
|
import "syscall"
|
|
|
|
// Define values even if not used except as sentinels.
|
|
const (
|
|
_UTIME_NOW = -1
|
|
_UTIME_OMIT = -2
|
|
SupportsSymlinkNoFollow = false
|
|
)
|
|
|
|
func utimens(path string, times *[2]syscall.Timespec, symlinkFollow bool) error {
|
|
return utimensPortable(path, times, symlinkFollow)
|
|
}
|
|
|
|
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 syscall.ENOSYS
|
|
}
|