package sysfs

Import Path
	github.com/tetratelabs/wazero/internal/sysfs (on go.dev)

Dependency Relation
	imports 14 packages, and imported by 2 packages

Involved Source Files adapter.go datasync_linux.go dir.go dirfs.go dirfs_supported.go file.go file_unix.go futimens.go futimens_linux.go ino.go nonblock_unix.go oflag.go open_file_linux.go open_file_notwindows.go osfile.go poll.go poll_linux.go readfs.go rename.go sock.go sock_supported.go sock_unix.go stat.go stat_linux.go sync.go Package sysfs includes a low-level filesystem interface and utilities needed for WebAssembly host functions (ABI) such as WASI. The name sysfs was chosen because wazero's public API has a "sys" package, which was named after https://github.com/golang/sys. unlink.go
Package-Level Type Names (total 2)
/* sort by: | */
FS fs.FS Chmod implements the same method as documented on sys.FS Link implements the same method as documented on sys.FS Lstat implements the same method as documented on sys.FS Mkdir implements the same method as documented on sys.FS OpenFile implements the same method as documented on sys.FS Readlink implements the same method as documented on sys.FS Rename implements the same method as documented on sys.FS Rmdir implements the same method as documented on sys.FS Stat implements the same method as documented on sys.FS String implements fmt.Stringer Symlink implements the same method as documented on sys.FS Unlink implements the same method as documented on sys.FS Utimens implements the same method as documented on sys.FS *AdaptFS : github.com/tetratelabs/wazero/experimental/sys.FS *AdaptFS : expvar.Var *AdaptFS : fmt.Stringer
FS experimentalsys.FS Chmod implements the same method as documented on sys.FS Link implements the same method as documented on sys.FS Lstat gets file status without following symbolic links. # Errors A zero Errno is success. The below are expected otherwise: - ENOSYS: the implementation does not support this function. - ENOENT: `path` doesn't exist. # Notes - This is like syscall.Lstat, except the `path` is relative to this file system. - This is like `lstat` in POSIX. See https://pubs.opengroup.org/onlinepubs/9699919799/functions/lstat.html - An fs.FileInfo backed implementation sets atim, mtim and ctim to the same value. - When the path is a symbolic link, the stat returned is for the link, not the file it refers to. Mkdir implements the same method as documented on sys.FS OpenFile implements the same method as documented on sys.FS Readlink reads the contents of a symbolic link. # Errors A zero Errno is success. The below are expected otherwise: - ENOSYS: the implementation does not support this function. - EINVAL: `path` is invalid. # Notes - This is like syscall.Readlink, except the path is relative to this filesystem. - This is like `readlink` in POSIX. See https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlink.html - On Windows, the path separator is different from other platforms, but to provide consistent results to Wasm, this normalizes to a "/" separator. Rename implements the same method as documented on sys.FS Rmdir implements the same method as documented on sys.FS Stat gets file status. # Errors A zero Errno is success. The below are expected otherwise: - ENOSYS: the implementation does not support this function. - ENOENT: `path` doesn't exist. # Notes - This is like syscall.Stat, except the `path` is relative to this file system. - This is like `stat` in POSIX. See https://pubs.opengroup.org/onlinepubs/9699919799/functions/stat.html - An fs.FileInfo backed implementation sets atim, mtim and ctim to the same value. - When the path is a symbolic link, the stat returned is for the file it refers to. Symlink implements the same method as documented on sys.FS Unlink implements the same method as documented on sys.FS Utimens implements the same method as documented on sys.FS *ReadFS : github.com/tetratelabs/wazero/experimental/sys.FS
Package-Level Functions (total 6)
func NewStdioFile(stdin bool, f fs.File) (fsapi.File, error)
NewTCPListenerFile creates a socketapi.TCPSock for a given *net.TCPListener.
Package-Level Constants (only one)
MSG_PEEK is the constant syscall.MSG_PEEK