Documentation
¶
Overview ¶
Package semihostfs provieds access to files located on a debuging host. Debuger or emulator must support it.
Example QEMU semihosting options:
-serial none -semihosting --semihosting-config enable=on,target=native,userspace=on
Index ¶
- type FS
- func (fsys *FS) Mkdir(name string, mode fs.FileMode) error
- func (fsys *FS) Name() string
- func (fsys *FS) Open(name string) (fs.File, error)
- func (fsys *FS) OpenWithFinalizer(name string, flag int, mode fs.FileMode, closed func()) (fs.File, error)
- func (fsys *FS) Remove(name string) error
- func (fsys *FS) Rename(oldname, newname string) error
- func (fsys *FS) Type() string
- func (fsys *FS) Usage() (usedItems, maxItems int, usedBytes, maxBytes int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
An FS represents a semihosting file system.
func (*FS) OpenWithFinalizer ¶
func (fsys *FS) OpenWithFinalizer(name string, flag int, mode fs.FileMode, closed func()) (fs.File, error)
OpenWithFinalizer implements the rtos.FS OpenWithFinalizer method.
Click to show internal directories.
Click to hide internal directories.