aboutsummaryrefslogtreecommitdiff
path: root/bolt_linux.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-05-05 07:56:54 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-05-05 07:56:54 -0600
commitc3903d38a10fda3c9a366d62705e06ddc558eb2d (patch)
tree504e0dcfc35536f7f9023aca59895c653bf68bee /bolt_linux.go
parentMerge pull request #152 from benbjohnson/remove-bolt-set (diff)
downloaddedo-c3903d38a10fda3c9a366d62705e06ddc558eb2d.tar.gz
dedo-c3903d38a10fda3c9a366d62705e06ddc558eb2d.tar.xz
Consolidate code for clarity.
This commit consolidates some of the smaller files into some of the larger files. The smaller files cluttered the file tree and made it harder to see the logical groupings of structs.
Diffstat (limited to 'bolt_linux.go')
-rw-r--r--bolt_linux.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/bolt_linux.go b/bolt_linux.go
new file mode 100644
index 0000000..351b65a
--- /dev/null
+++ b/bolt_linux.go
@@ -0,0 +1,10 @@
+package bolt
+
+import (
+ "os"
+ "syscall"
+)
+
+func fdatasync(f *os.File) error {
+ return syscall.Fdatasync(int(f.Fd()))
+}