From c3903d38a10fda3c9a366d62705e06ddc558eb2d Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Mon, 5 May 2014 07:56:54 -0600 Subject: 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. --- bolt_linux.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bolt_linux.go (limited to 'bolt_linux.go') 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())) +} -- cgit v1.2.3