mmap_plan9.go 518 B

123456789101112131415161718192021222324252627
  1. // Copyright 2020 Evan Shaw. 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. package mmap
  5. import "syscall"
  6. func mmap(len int, inprot, inflags, fd uintptr, off int64) ([]byte, error) {
  7. return nil, syscall.EPLAN9
  8. }
  9. func (m MMap) flush() error {
  10. return syscall.EPLAN9
  11. }
  12. func (m MMap) lock() error {
  13. return syscall.EPLAN9
  14. }
  15. func (m MMap) unlock() error {
  16. return syscall.EPLAN9
  17. }
  18. func (m MMap) unmap() error {
  19. return syscall.EPLAN9
  20. }