open_file_tinygo.go

 1//go:build tinygo
 2
 3package sysfs
 4
 5import (
 6	"io/fs"
 7	"os"
 8
 9	"github.com/tetratelabs/wazero/experimental/sys"
10)
11
12const supportedSyscallOflag = sys.Oflag(0)
13
14func withSyscallOflag(oflag sys.Oflag, flag int) int {
15	// O_DIRECTORY not defined
16	// O_DSYNC not defined
17	// O_NOFOLLOW not defined
18	// O_NONBLOCK not defined
19	// O_RSYNC not defined
20	return flag
21}
22
23func openFile(path string, oflag sys.Oflag, perm fs.FileMode) (*os.File, sys.Errno) {
24	return nil, sys.ENOSYS
25}