Skip to content

Commit

Permalink
Added Darwin/x86-64 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
karlmoller committed Oct 12, 2012
1 parent f81d494 commit 9b9151d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mmap_darwin_amd64.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 9b9151d

Please sign in to comment.