From 7bb878ff695b89b62483dd6155f5815ad0d06258 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Tue, 11 Feb 2014 12:16:12 -0700 Subject: Mmap remap. --- syscall_darwin.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'syscall_darwin.go') 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) +} -- cgit v1.2.3