L4Re Operating System Framework
Interface and Usage Documentation
|
Interface for a POSIX file that is a directory. More...
#include <vfs.h>
Public Member Functions | |
virtual int | faccessat (const char *path, int mode, int flags) noexcept=0 |
Check access permissions on the given file. | |
virtual int | mkdir (const char *path, mode_t mode) noexcept=0 |
Create a new subdirectory. | |
virtual int | unlink (const char *path) noexcept=0 |
Unlink the given file from that directory. | |
virtual int | rename (const char *src_path, const char *dst_path) noexcept=0 |
Rename the given file. | |
virtual int | link (const char *src_path, const char *dst_path) noexcept=0 |
Create a hard link (second name) for the given file. | |
virtual int | symlink (const char *src_path, const char *dst_path) noexcept=0 |
Create a symbolic link for the given file. | |
virtual int | rmdir (const char *path) noexcept=0 |
Delete an empty directory. | |
Interface for a POSIX file that is a directory.
This interface provides functionality for directory files in the L4Re::Vfs. However, real objects always use the combined L4Re::Vfs::File interface.
|
pure virtualnoexcept |
Check access permissions on the given file.
Backend function for POSIX access and faccessat functions.
path | The path relative to this directory. Note: path is relative to this directory and may contain subdirectories. |
mode | The access mode to check. |
flags | The flags as in POSIX faccessat (AT_EACCESS, AT_SYMLINK_NOFOLLOW). |
Implemented in L4Re::Vfs::Be_file.
|
pure virtualnoexcept |
Create a hard link (second name) for the given file.
Backend for the POSIX link and linkat functions.
src_path | The old name of the file. Note: src_path is relative to this directory and may contain subdirectories. |
dst_path | The new (second) name for the file. Note: dst_path is relative to this directory and may contain subdirectories. |
Implemented in L4Re::Vfs::Be_file.
|
pure virtualnoexcept |
Create a new subdirectory.
Backend for POSIX mkdir and mkdirat function calls.
path | The name of the subdirectory to create. Note: path is relative to this directory and may contain subdirectories. |
mode | The file mode to use for the new directory. |
Implemented in L4Re::Vfs::Be_file.
|
pure virtualnoexcept |
Rename the given file.
Backend for the POSIX rename, renameat functions.
src_path | The old name of the file to rename. Note: src_path is relative to this directory and may contain subdirectories. |
dst_path | The new name for the file. Note: dst_path is relative to this directory and may contain subdirectories. |
Implemented in L4Re::Vfs::Be_file.
|
pure virtualnoexcept |
Delete an empty directory.
Backend for POSIX rmdir, rmdirat functions.
path | The name of the directory to remove. Note: path is relative to this directory and may contain subdirectories. |
Implemented in L4Re::Vfs::Be_file.
|
pure virtualnoexcept |
Create a symbolic link for the given file.
Backend for the POSIX symlink and symlinkat functions.
src_path | The old name of the file. Note: src_path shall be an absolute path. |
dst_path | The name for symlink. Note: dst_path is relative to this directory and may contain subdirectories. |
Implemented in L4Re::Vfs::Be_file.
|
pure virtualnoexcept |
Unlink the given file from that directory.
Backend for the POSIX unlink and unlinkat functions.
path | The name of the file to unlink. Note: path is relative to this directory and may contain subdirectories. |
Implemented in L4Re::Vfs::Be_file.