diff options
Diffstat (limited to 'syscall_darwin.go')
-rw-r--r-- | syscall_darwin.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/syscall_darwin.go b/syscall_darwin.go deleted file mode 100644 index cb9a20c..0000000 --- a/syscall_darwin.go +++ /dev/null @@ -1,20 +0,0 @@ -package bolt - -import ( - "syscall" -) - -type _syscall interface { - Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) - Munmap([]byte) error -} - -type syssyscall struct{} - -func (o *syssyscall) Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) { - return syscall.Mmap(fd, offset, length, prot, flags) -} - -func (o *syssyscall) Munmap(b []byte) error { - return syscall.Munmap(b) -} |