aboutsummaryrefslogtreecommitdiff
path: root/syscall_linux.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-01-30 13:57:18 -0800
committerBen Johnson <benbjohnson@yahoo.com>2014-01-30 13:57:18 -0800
commit5f1c96f08a660a77da8c9579c3c7e6ff7afc19e8 (patch)
tree745670dcb19f08dd87bb209593052468ea5464f9 /syscall_linux.go
parentREADME (diff)
parentFix Linux build. (diff)
downloaddedo-5f1c96f08a660a77da8c9579c3c7e6ff7afc19e8.tar.gz
dedo-5f1c96f08a660a77da8c9579c3c7e6ff7afc19e8.tar.xz
Merge pull request #1 from benbjohnson/master
Fix Linux build.
Diffstat (limited to 'syscall_linux.go')
-rw-r--r--syscall_linux.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/syscall_linux.go b/syscall_linux.go
new file mode 100644
index 0000000..de34193
--- /dev/null
+++ b/syscall_linux.go
@@ -0,0 +1,16 @@
+package bolt
+
+import (
+ "syscall"
+)
+
+type _syscall interface {
+ Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error)
+}
+
+type syssyscall struct{}
+
+func (o *syssyscall) Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
+ // err = (EACCES, EBADF, EINVAL, ENODEV, ENOMEM, ENXIO, EOVERFLOW)
+ return syscall.Mmap(fd, offset, length, prot, flags)
+}