Skip to content

Commit

Permalink
Add darwin_arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
MMartyn authored May 6, 2021
1 parent 6edfc90 commit a0346d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mmap_darwin_arm64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package gommap

import "syscall"

func mmap_syscall(addr, length, prot, flags, fd uintptr, offset int64) (uintptr, error) {
addr, _, err := syscall.Syscall6(syscall.SYS_MMAP, addr, length, prot, flags, fd, uintptr(offset))
return addr, err
}

0 comments on commit a0346d1

Please sign in to comment.