github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/sysfs/open_file_tinygo.go (about) 1 //go:build tinygo 2 3 package sysfs 4 5 import ( 6 "io/fs" 7 "os" 8 9 "github.com/tetratelabs/wazero/experimental/sys" 10 ) 11 12 const supportedSyscallOflag = sys.Oflag(0) 13 14 func 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 23 func openFile(path string, oflag sys.Oflag, perm fs.FileMode) (*os.File, sys.Errno) { 24 return nil, sys.ENOSYS 25 }