mmap_nomremap.go 391 B

1234567891011121314
  1. // Copyright 2023 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. //go:build aix || darwin || dragonfly || freebsd || openbsd || solaris
  5. // +build aix darwin dragonfly freebsd openbsd solaris
  6. package unix
  7. var mapper = &mmapper{
  8. active: make(map[*byte][]byte),
  9. mmap: mmap,
  10. munmap: munmap,
  11. }