gotosocial/vendor/github.com/tetratelabs/wazero/internal/sysfs/datasync_linux.go

15 lines
222 B
Go
Raw Normal View History

//go:build linux && !tinygo
package sysfs
import (
"os"
"syscall"
"github.com/tetratelabs/wazero/experimental/sys"
)
func datasync(f *os.File) sys.Errno {
return sys.UnwrapOSError(syscall.Fdatasync(int(f.Fd())))
}