github.com/df-mc/goleveldb@v1.1.9/leveldb/storage/file_storage_nacl.go (about) 1 // Copyright (c) 2012, Suryandaru Triandana <syndtr@gmail.com> 2 // All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style license that can be 5 // found in the LICENSE file. 6 7 // +build nacl 8 9 package storage 10 11 import ( 12 "os" 13 "syscall" 14 ) 15 16 func newFileLock(path string, readOnly bool) (fl fileLock, err error) { 17 return nil, syscall.ENOTSUP 18 } 19 20 func setFileLock(f *os.File, readOnly, lock bool) error { 21 return syscall.ENOTSUP 22 } 23 24 func rename(oldpath, newpath string) error { 25 return syscall.ENOTSUP 26 } 27 28 func isErrInvalid(err error) bool { 29 return false 30 } 31 32 func syncDir(name string) error { 33 return syscall.ENOTSUP 34 }