github.com/tetratelabs/wazero@v1.2.1/internal/sysfs/datasync_unsupported.go (about) 1 //go:build !linux 2 3 package sysfs 4 5 import ( 6 "os" 7 "syscall" 8 ) 9 10 func datasync(f *os.File) syscall.Errno { 11 // Attempt to sync everything, even if we only need to sync the data. 12 return fsync(f) 13 }