Files
wazero/internal/sysfs/open_file_unsupported.go
2023-07-31 07:56:28 +08:00

19 lines
399 B
Go

//go:build !darwin && !linux && !windows && !illumos && !solaris && !freebsd
package sysfs
import (
"github.com/tetratelabs/wazero/experimental/sys"
)
const supportedSyscallOflag = sys.Oflag(0)
func withSyscallOflag(oflag sys.Oflag, flag int) int {
// O_DIRECTORY not defined
// O_DSYNC not defined
// O_NOFOLLOW not defined
// O_NONBLOCK not defined
// O_RSYNC not defined
return flag
}