summaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/sys/unix/mmap_nomremap.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-08-07 08:13:55 +0000
committerLibravatar GitHub <noreply@github.com>2023-08-07 08:13:55 +0000
commit0242f03d36a519a90dcaa905e5d2e272f008512b (patch)
tree208e9c294e85b5ce32e120fabdd400925abb6d00 /vendor/golang.org/x/sys/unix/mmap_nomremap.go
parent[chore]: Bump golang.org/x/image from 0.9.0 to 0.11.0 (#2074) (diff)
downloadgotosocial-0242f03d36a519a90dcaa905e5d2e272f008512b.tar.xz
[chore]: Bump golang.org/x/crypto from 0.11.0 to 0.12.0 (#2077)
Diffstat (limited to 'vendor/golang.org/x/sys/unix/mmap_nomremap.go')
-rw-r--r--vendor/golang.org/x/sys/unix/mmap_nomremap.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/mmap_nomremap.go b/vendor/golang.org/x/sys/unix/mmap_nomremap.go
new file mode 100644
index 000000000..ca0513632
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/mmap_nomremap.go
@@ -0,0 +1,14 @@
+// Copyright 2023 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build aix || darwin || dragonfly || freebsd || openbsd || solaris
+// +build aix darwin dragonfly freebsd openbsd solaris
+
+package unix
+
+var mapper = &mmapper{
+ active: make(map[*byte][]byte),
+ mmap: mmap,
+ munmap: munmap,
+}