gitee.com/quant1x/gox@v1.21.2/cache/mmap_plan9.go (about) 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 5 package cache 6 7 import "syscall" 8 9 func mmap(len int, inprot, inflags, fd uintptr, off int64) ([]byte, error) { 10 return nil, syscall.EPLAN9 11 } 12 13 func (m MMap) flush() error { 14 return syscall.EPLAN9 15 } 16 17 func (m MMap) lock() error { 18 return syscall.EPLAN9 19 } 20 21 func (m MMap) unlock() error { 22 return syscall.EPLAN9 23 } 24 25 func (m MMap) unmap() error { 26 return syscall.EPLAN9 27 }