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

     1  //go:build !windows
     2  
     3  package sysfs
     4  
     5  import (
     6  	"os"
     7  
     8  	"github.com/tetratelabs/wazero/experimental/sys"
     9  )
    10  
    11  func fsync(f *os.File) sys.Errno {
    12  	return sys.UnwrapOSError(f.Sync())
    13  }