blob: 9ca644bb804c1b2f054497ff5a6a73c245e24c26 [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 (
func init() {
mapFile = func(fd int, offset int64, length int) (data []byte, err error) {
return unix.Mmap(fd, offset, length, syscall.PROT_READ, syscall.MAP_SHARED)