github.com/gaukas/wazerofs@v0.1.0/sysfs/open_file_unsupported.go (about)

     1  //go:build !darwin && !linux && !windows && !illumos && !solaris && !freebsd
     2  
     3  package sysfs
     4  
     5  import (
     6  	"github.com/tetratelabs/wazero/experimental/sys"
     7  )
     8  
     9  const supportedSyscallOflag = sys.Oflag(0)
    10  
    11  func 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  }