github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/internal/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/wasilibs/wazerox/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 }