package sys
import (
"io/fs"
"github.com/tetratelabs/wazero/sys"
)
type UnimplementedFS struct {}
func (UnimplementedFS ) OpenFile (path string , flag Oflag , perm fs .FileMode ) (File , Errno ) {
return nil , ENOSYS
}
func (UnimplementedFS ) Lstat (path string ) (sys .Stat_t , Errno ) {
return sys .Stat_t {}, ENOSYS
}
func (UnimplementedFS ) Stat (path string ) (sys .Stat_t , Errno ) {
return sys .Stat_t {}, ENOSYS
}
func (UnimplementedFS ) Readlink (path string ) (string , Errno ) {
return "" , ENOSYS
}
func (UnimplementedFS ) Mkdir (path string , perm fs .FileMode ) Errno {
return ENOSYS
}
func (UnimplementedFS ) Chmod (path string , perm fs .FileMode ) Errno {
return ENOSYS
}
func (UnimplementedFS ) Rename (from , to string ) Errno {
return ENOSYS
}
func (UnimplementedFS ) Rmdir (path string ) Errno {
return ENOSYS
}
func (UnimplementedFS ) Link (_ , _ string ) Errno {
return ENOSYS
}
func (UnimplementedFS ) Symlink (_ , _ string ) Errno {
return ENOSYS
}
func (UnimplementedFS ) Unlink (path string ) Errno {
return ENOSYS
}
func (UnimplementedFS ) Utimens (path string , atim , mtim int64 ) Errno {
return ENOSYS
}
type UnimplementedFile struct {}
func (UnimplementedFile ) Dev () (uint64 , Errno ) {
return 0 , 0
}
func (UnimplementedFile ) Ino () (sys .Inode , Errno ) {
return 0 , 0
}
func (UnimplementedFile ) IsDir () (bool , Errno ) {
return false , 0
}
func (UnimplementedFile ) IsAppend () bool {
return false
}
func (UnimplementedFile ) SetAppend (bool ) Errno {
return ENOSYS
}
func (UnimplementedFile ) Stat () (sys .Stat_t , Errno ) {
return sys .Stat_t {}, ENOSYS
}
func (UnimplementedFile ) Read ([]byte ) (int , Errno ) {
return 0 , ENOSYS
}
func (UnimplementedFile ) Pread ([]byte , int64 ) (int , Errno ) {
return 0 , ENOSYS
}
func (UnimplementedFile ) Seek (int64 , int ) (int64 , Errno ) {
return 0 , ENOSYS
}
func (UnimplementedFile ) Readdir (int ) (dirents []Dirent , errno Errno ) {
return nil , ENOSYS
}
func (UnimplementedFile ) Write ([]byte ) (int , Errno ) {
return 0 , ENOSYS
}
func (UnimplementedFile ) Pwrite ([]byte , int64 ) (int , Errno ) {
return 0 , ENOSYS
}
func (UnimplementedFile ) Truncate (int64 ) Errno {
return ENOSYS
}
func (UnimplementedFile ) Sync () Errno {
return 0
}
func (UnimplementedFile ) Datasync () Errno {
return 0
}
func (UnimplementedFile ) Utimens (int64 , int64 ) Errno {
return ENOSYS
}
func (UnimplementedFile ) Close () (errno Errno ) { return }
The pages are generated with Golds v0.8.2 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .