open_file_unsupported.go
1//go:build !darwin && !linux && !windows && !illumos && !solaris && !freebsd
2
3package sysfs
4
5import (
6 "github.com/tetratelabs/wazero/experimental/sys"
7)
8
9const supportedSyscallOflag = sys.Oflag(0)
10
11func withSyscallOflag(oflag sys.Oflag, flag int) int {
12 // O_DIRECTORY not defined
13 // O_DSYNC not defined
14 // O_NOFOLLOW not defined
15 // O_NONBLOCK not defined
16 // O_RSYNC not defined
17 return flag
18}