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

     1  //go:build linux
     2  
     3  package sysfs
     4  
     5  import (
     6  	"os"
     7  	"syscall"
     8  
     9  	"github.com/tetratelabs/wazero/experimental/sys"
    10  )
    11  
    12  func datasync(f *os.File) sys.Errno {
    13  	return sys.UnwrapOSError(syscall.Fdatasync(int(f.Fd())))
    14  }