github.com/miolini/go@v0.0.0-20160405192216-fca68c8cb408/src/runtime/mmap.go (about)

     1  // Copyright 2015 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // +build !plan9
     6  // +build !solaris
     7  // +build !windows
     8  // +build !nacl
     9  // +build !linux !amd64
    10  
    11  package runtime
    12  
    13  import "unsafe"
    14  
    15  // mmap calls the mmap system call. It is implemented in assembly.
    16  func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) unsafe.Pointer