aboutsummaryrefslogtreecommitdiff
path: root/syscall_linux.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-03-23 08:59:45 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-03-23 08:59:45 -0700
commita10ce47f54a5c57292d11faec14e398f11b7ae4f (patch)
tree9eab120d9749dec8835e8420e22985d18af79d3d /syscall_linux.go
parentMerge branch 'fdatasync' of https://github.com/tv42/bolt into fsync (diff)
downloaddedo-a10ce47f54a5c57292d11faec14e398f11b7ae4f.tar.gz
dedo-a10ce47f54a5c57292d11faec14e398f11b7ae4f.tar.xz
Consolidate syscall files.
Diffstat (limited to 'syscall_linux.go')
-rw-r--r--syscall_linux.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/syscall_linux.go b/syscall_linux.go
new file mode 100644
index 0000000..351b65a
--- /dev/null
+++ b/syscall_linux.go
@@ -0,0 +1,10 @@
+package bolt
+
+import (
+ "os"
+ "syscall"
+)
+
+func fdatasync(f *os.File) error {
+ return syscall.Fdatasync(int(f.Fd()))
+}