Skip to content

Commit

Permalink
Fix build on Plan 9
Browse files Browse the repository at this point in the history
  • Loading branch information
fhs committed Sep 9, 2020
1 parent 904c4ce commit 2cf7ae6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions mmap_plan9.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2020 Evan Shaw. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package mmap

import "syscall"

func mmap(len int, inprot, inflags, fd uintptr, off int64) ([]byte, error) {
return nil, syscall.EPLAN9
}

func (m MMap) flush() error {
return syscall.EPLAN9
}

func (m MMap) lock() error {
return syscall.EPLAN9
}

func (m MMap) unlock() error {
return syscall.EPLAN9
}

func (m MMap) unmap() error {
return syscall.EPLAN9
}

0 comments on commit 2cf7ae6

Please sign in to comment.