Source file src/syscall/linkname_unix.go

     1  // Copyright 2024 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  //go:build unix
     6  
     7  package syscall
     8  
     9  import _ "unsafe" // for linkname
    10  
    11  // mmap should be an internal detail,
    12  // but widely used packages access it using linkname.
    13  // Notable members of the hall of shame include:
    14  //   - modernc.org/memory
    15  //   - github.com/ncruces/go-sqlite3
    16  //
    17  // Do not remove or change the type signature.
    18  // See go.dev/issue/67401.
    19  //
    20  //go:linkname mmap
    21  

View as plain text