mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 07:46:42 +00:00
os/vfs.h: add Directory::Entry::rwx accessor
This commit is contained in:
parent
582e0e718c
commit
7118ad494c
@ -77,6 +77,8 @@ struct Genode::Directory : Noncopyable, Interface
|
|||||||
Vfs::Directory_service::Dirent_type type() const { return _dirent.type; }
|
Vfs::Directory_service::Dirent_type type() const { return _dirent.type; }
|
||||||
|
|
||||||
bool dir() const { return _dirent.type == Dirent_type::DIRECTORY; }
|
bool dir() const { return _dirent.type == Dirent_type::DIRECTORY; }
|
||||||
|
|
||||||
|
Vfs::Node_rwx rwx() const { return _dirent.rwx; }
|
||||||
};
|
};
|
||||||
|
|
||||||
enum { MAX_PATH_LEN = 256 };
|
enum { MAX_PATH_LEN = 256 };
|
||||||
|
Loading…
Reference in New Issue
Block a user