Skip to content

Commit

Permalink
Add freebsd support
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Root committed Oct 15, 2020
1 parent f7881c3 commit e5cd19c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mmap_freebsd_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 e5cd19c

Please sign in to comment.