~niemeyer/gommap/trunk

« back to all changes in this revision

Viewing changes to mmap_linux_amd64.go

  • Committer: Gustavo Niemeyer
  • Date: 2011-04-25 22:11:03 UTC
  • Revision ID: gustavo@niemeyer.net-20110425221103-b9o5jyu3qyw6cg4u
Fixed compatibility with 386.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package gommap
 
2
 
 
3
import "syscall"
 
4
 
 
5
func mmap_syscall(addr, length, prot, flags, fd uintptr, offset int64) (uintptr, uintptr) {
 
6
        addr, _, errno := syscall.Syscall6(syscall.SYS_MMAP, addr, length, prot, flags, fd, uintptr(offset))
 
7
        return addr, errno
 
8
}