Local file system service class.
More...
Local file system service class.
◆ __init__()
def wisp_ert.fs.LocalFS.__init__ |
( |
|
self, |
|
|
|
root_dir = "/" |
|
) |
| |
Local file system service constructor.
- Parameters
-
root_dir | Local file system root. |
◆ close()
def wisp_ert.fs.LocalFS.close |
( |
|
self, |
|
|
|
fd |
|
) |
| |
Close a file.
- Parameters
-
- Returns
- 0 on success, or negative error number on failure.
◆ functions()
def wisp_ert.fs.LocalFS.functions |
( |
|
self | ) |
|
Get ERT service functions.
◆ open()
def wisp_ert.fs.LocalFS.open |
( |
|
self, |
|
|
|
path, |
|
|
|
flags, |
|
|
|
mode = 0o666 |
|
) |
| |
Open a file with given flags and mode.
- Parameters
-
path | Path of the file. |
flags | Open flags. |
mode | File mode when a new file is going to be created. |
- Returns
- File descriptor on success, or negative error number on failure.
◆ read()
def wisp_ert.fs.LocalFS.read |
( |
|
self, |
|
|
|
fd, |
|
|
|
size |
|
) |
| |
Read given size of data from file.
- Parameters
-
fd | LocalFS virtual file descriptor. |
size | Size of data to read. |
- Returns
- : Data and its size on success, or negative error number on failure.
◆ _close
◆ _fd_mapping
wisp_ert.fs.LocalFS._fd_mapping |
|
private |
◆ _read
◆ _root_dir
wisp_ert.fs.LocalFS._root_dir |
|
private |
◆ constants
list wisp_ert.fs.LocalFS.constants |
|
static |
Initial value:= [
(os.O_CREAT, I16),
(os.O_RDONLY, I16),
(os.O_WRONLY, I16),
(os.O_RDWR, I16),
(os.O_CREAT, I16),
(os.SEEK_SET, I16),
(os.SEEK_CUR, I16),
(os.SEEK_END, I16),
(errno.EBADF, I16),
(errno.EINVAL, I16),
]
ERT constants.
◆ lseek
wisp_ert.fs.LocalFS.lseek = urpc_sig([I16, I16, I16], [I16], _proxy_sys("lseek")) |
|
static |
◆ write
wisp_ert.fs.LocalFS.write = urpc_sig([I16, VARY], [I16], _proxy_sys("write")) |
|
static |
The documentation for this class was generated from the following file: