14 lines
195 B
Go
14 lines
195 B
Go
//go:build !linux
|
|
|
|
package sysfs
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
func datasync(f *os.File) syscall.Errno {
|
|
// Attempt to sync everything, even if we only need to sync the data.
|
|
return fsync(f)
|
|
}
|