mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-21 17:52:12 +00:00
15 lines
222 B
Go
15 lines
222 B
Go
|
//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())))
|
||
|
}
|