mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-12 10:00:46 +01: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())))
|
||
|
}
|