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