diff options
Diffstat (limited to 'syscall_linux.go')
-rw-r--r-- | syscall_linux.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/syscall_linux.go b/syscall_linux.go index de34193..65daad4 100644 --- a/syscall_linux.go +++ b/syscall_linux.go @@ -6,6 +6,7 @@ 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{} @@ -14,3 +15,7 @@ func (o *syssyscall) Mmap(fd int, offset int64, length int, prot int, flags int) // 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) +} |