|
| int | pbl_fs_mount (struct pbl_fs_mount *mp) |
| | Mount a file system.
|
| |
| int | pbl_fs_unmount (struct pbl_fs_mount *mp) |
| | Unmount a file system.
|
| |
| int | pbl_fs_format (const char *mnt_point) |
| | Erase every file of a mounted file system.
|
| |
| int | pbl_fs_open (struct pbl_fs_file *file, const char *path, uint32_t flags) |
| | Open a file.
|
| |
| ssize_t | pbl_fs_read (struct pbl_fs_file *file, void *buf, size_t len) |
| | Read from the current position, then advance it.
|
| |
| ssize_t | pbl_fs_write (struct pbl_fs_file *file, const void *buf, size_t len) |
| | Write at the current position, then advance it.
|
| |
| off_t | pbl_fs_seek (struct pbl_fs_file *file, off_t offset, int whence) |
| | Set the current position.
|
| |
| off_t | pbl_fs_tell (struct pbl_fs_file *file) |
| | Get the current position.
|
| |
| off_t | pbl_fs_size (struct pbl_fs_file *file) |
| | Get the size of an open file.
|
| |
| int | pbl_fs_truncate (struct pbl_fs_file *file, off_t length) |
| | Set the size of a file.
|
| |
| int | pbl_fs_sync (struct pbl_fs_file *file) |
| | Flush cached data of a file to the storage.
|
| |
| int | pbl_fs_close (struct pbl_fs_file *file) |
| | Close a file.
|
| |
| int | pbl_fs_unlink (const char *path) |
| | Remove a file.
|
| |
| int | pbl_fs_rename (const char *from, const char *to) |
| | Rename a file, replacing to if it exists.
|
| |
| int | pbl_fs_mkdir (const char *path) |
| | Create a directory.
|
| |
| int | pbl_fs_stat (const char *path, struct pbl_fs_dirent *entry) |
| | Get the type and size of a file or directory.
|
| |
| int | pbl_fs_statvfs (const char *path, struct pbl_fs_statvfs *stat) |
| | Get the space of the file system holding a path.
|
| |
| int | pbl_fs_opendir (struct pbl_fs_dir *dir, const char *path) |
| | Open a directory.
|
| |
| int | pbl_fs_readdir (struct pbl_fs_dir *dir, struct pbl_fs_dirent *entry) |
| | Read the next entry of a directory.
|
| |
| int | pbl_fs_closedir (struct pbl_fs_dir *dir) |
| | Close a directory.
|
| |
| struct pbl_fs_watch * | pbl_fs_watch_add (const char *path, uint32_t events, pbl_fs_watch_cb_t cb, void *user_data) |
| | Watch a file for changes.
|
| |
| void | pbl_fs_watch_remove (struct pbl_fs_watch *watch) |
| | Stop watching a file.
|
| |