github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/link/internal/ld/outbuf_nommap.go (about)

     1  // Copyright 2019 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  // +build !darwin,!dragonfly,!freebsd,!linux,!openbsd,!windows
     6  
     7  package ld
     8  
     9  import "errors"
    10  
    11  var errNotSupported = errors.New("mmap not supported")
    12  
    13  func (out *OutBuf) Mmap(filesize uint64) error { return errNotSupported }
    14  func (out *OutBuf) Munmap()                    { panic("unreachable") }
    15  func (out *OutBuf) Msync() error               { panic("unreachable") }