mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-17 22:58:26 +00:00
@ -51,7 +51,7 @@ class Vfs::Dir_file_system : public File_system
|
||||
{
|
||||
struct Subdir_handle_element;
|
||||
|
||||
typedef Genode::Registry<Subdir_handle_element> Subdir_handle_registry;
|
||||
using Subdir_handle_registry = Genode::Registry<Subdir_handle_element>;
|
||||
|
||||
struct Subdir_handle_element : Subdir_handle_registry::Element
|
||||
{
|
||||
@ -98,7 +98,7 @@ class Vfs::Dir_file_system : public File_system
|
||||
{
|
||||
struct Watch_handle_element;
|
||||
|
||||
typedef Genode::Registry<Watch_handle_element> Watch_handle_registry;
|
||||
using Watch_handle_registry = Genode::Registry<Watch_handle_element>;
|
||||
|
||||
struct Watch_handle_element : Watch_handle_registry::Element
|
||||
{
|
||||
@ -156,7 +156,7 @@ class Vfs::Dir_file_system : public File_system
|
||||
/**
|
||||
* Directory name
|
||||
*/
|
||||
typedef String<MAX_NAME_LEN> Name;
|
||||
using Name = String<MAX_NAME_LEN>;
|
||||
Name const _name;
|
||||
|
||||
/**
|
||||
|
@ -44,9 +44,9 @@ class Vfs::Global_file_system_factory : public Vfs::File_system_factory
|
||||
|
||||
public:
|
||||
|
||||
typedef Genode::String<128> Fs_type_name;
|
||||
typedef Genode::String<128> Node_name;
|
||||
typedef Genode::String<128> Library_name;
|
||||
using Fs_type_name = Genode::String<128>;
|
||||
using Node_name = Genode::String<128>;
|
||||
using Library_name = Genode::String<128>;
|
||||
|
||||
struct Entry_base;
|
||||
|
||||
|
@ -29,11 +29,11 @@ class Vfs::Readonly_value_file_system : public Vfs::Single_file_system
|
||||
{
|
||||
public:
|
||||
|
||||
typedef Genode::String<64> Name;
|
||||
using Name = Genode::String<64>;
|
||||
|
||||
private:
|
||||
|
||||
typedef Genode::String<BUF_SIZE + 1> Buffer;
|
||||
using Buffer = Genode::String<BUF_SIZE + 1>;
|
||||
|
||||
Name const _file_name;
|
||||
|
||||
@ -75,7 +75,7 @@ class Vfs::Readonly_value_file_system : public Vfs::Single_file_system
|
||||
bool write_ready() const override { return false; }
|
||||
};
|
||||
|
||||
typedef Genode::String<200> Config;
|
||||
using Config = Genode::String<200>;
|
||||
Config _config(Name const &name) const
|
||||
{
|
||||
char buf[Config::capacity()] { };
|
||||
@ -84,8 +84,8 @@ class Vfs::Readonly_value_file_system : public Vfs::Single_file_system
|
||||
return Config(Genode::Cstring(buf));
|
||||
}
|
||||
|
||||
typedef Genode::Registered<Vfs_watch_handle> Registered_watch_handle;
|
||||
typedef Genode::Registry<Registered_watch_handle> Watch_handle_registry;
|
||||
using Registered_watch_handle = Genode::Registered<Vfs_watch_handle>;
|
||||
using Watch_handle_registry = Genode::Registry<Registered_watch_handle>;
|
||||
|
||||
Watch_handle_registry _handle_registry { };
|
||||
|
||||
|
@ -27,7 +27,7 @@ class Vfs::Single_file_system : public File_system
|
||||
Node_type const _type;
|
||||
Node_rwx const _rwx;
|
||||
|
||||
typedef String<64> Filename;
|
||||
using Filename = String<64>;
|
||||
|
||||
Filename _filename { };
|
||||
|
||||
|
@ -36,10 +36,10 @@ namespace Vfs {
|
||||
using Genode::copy_cstring;
|
||||
using Genode::strcmp;
|
||||
using Genode::strlen;
|
||||
typedef long long file_offset;
|
||||
using file_offset = long long;
|
||||
using Genode::memcpy;
|
||||
using Genode::memset;
|
||||
typedef unsigned long long file_size;
|
||||
using file_size = unsigned long long;
|
||||
using Genode::List;
|
||||
using Genode::Xml_node;
|
||||
using Genode::Signal_context_capability;
|
||||
@ -90,7 +90,7 @@ namespace Vfs {
|
||||
.executable = true }; }
|
||||
};
|
||||
|
||||
typedef Genode::Path<MAX_PATH_LEN> Absolute_path;
|
||||
using Absolute_path = Genode::Path<MAX_PATH_LEN>;
|
||||
|
||||
struct Scanner_policy_path_element
|
||||
{
|
||||
|
@ -30,11 +30,11 @@ class Vfs::Value_file_system : public Vfs::Single_file_system
|
||||
{
|
||||
public:
|
||||
|
||||
typedef Genode::String<64> Name;
|
||||
using Name = Genode::String<64>;
|
||||
|
||||
private:
|
||||
|
||||
typedef Genode::String<BUF_SIZE + 1> Buffer;
|
||||
using Buffer = Genode::String<BUF_SIZE + 1>;
|
||||
|
||||
Name const _file_name;
|
||||
|
||||
@ -116,7 +116,7 @@ class Vfs::Value_file_system : public Vfs::Single_file_system
|
||||
});
|
||||
}
|
||||
|
||||
typedef Genode::String<200> Config;
|
||||
using Config = Genode::String<200>;
|
||||
Config _config(Name const &name) const
|
||||
{
|
||||
char buf[Config::capacity()] { };
|
||||
|
Reference in New Issue
Block a user