aboutsummaryrefslogtreecommitdiff
path: root/syscall_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'syscall_darwin.go')
-rw-r--r--syscall_darwin.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/syscall_darwin.go b/syscall_darwin.go
index de34193..cb9a20c 100644
--- a/syscall_darwin.go
+++ b/syscall_darwin.go
@@ -6,11 +6,15 @@ import (
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) {
- // err = (EACCES, EBADF, EINVAL, ENODEV, ENOMEM, ENXIO, EOVERFLOW)
return syscall.Mmap(fd, offset, length, prot, flags)
}
+
+func (o *syssyscall) Munmap(b []byte) error {
+ return syscall.Munmap(b)
+}