github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/sysfs/dirfs_unsupported.go (about)

     1  //go:build tinygo
     2  
     3  package sysfs
     4  
     5  import (
     6  	"io/fs"
     7  
     8  	experimentalsys "github.com/tetratelabs/wazero/experimental/sys"
     9  )
    10  
    11  // Link implements the same method as documented on sys.FS
    12  func (d *dirFS) Link(oldName, newName string) experimentalsys.Errno {
    13  	return experimentalsys.ENOSYS
    14  }
    15  
    16  // Unlink implements the same method as documented on sys.FS
    17  func (d *dirFS) Unlink(path string) (err experimentalsys.Errno) {
    18  	return experimentalsys.ENOSYS
    19  }
    20  
    21  // Rename implements the same method as documented on sys.FS
    22  func (d *dirFS) Rename(from, to string) experimentalsys.Errno {
    23  	return experimentalsys.ENOSYS
    24  }
    25  
    26  // Chmod implements the same method as documented on sys.FS
    27  func (d *dirFS) Chmod(path string, perm fs.FileMode) experimentalsys.Errno {
    28  	return experimentalsys.ENOSYS
    29  }
    30  
    31  // Symlink implements the same method as documented on sys.FS
    32  func (d *dirFS) Symlink(oldName, link string) experimentalsys.Errno {
    33  	return experimentalsys.ENOSYS
    34  }