blob: 38176782faeb121424551a22e8259a15ef0d8c04 [file] [log] [blame]
// Copyright 2018 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.
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
package core
import "syscall"
func init() {
mapFile = func(fd int, offset int64, length int) (data []byte, err error) {
return syscall.Mmap(fd, offset, length, syscall.PROT_READ, syscall.MAP_SHARED)