mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
parent
1d5af600cc
commit
f33916e2dc
@ -265,13 +265,6 @@ class Vfs_audit::File_system : public Vfs::File_system
|
||||
return h.audit->fs().ftruncate(h.audit, len);
|
||||
}
|
||||
|
||||
bool check_unblock(Vfs_handle *vfs_handle, bool rd, bool wr, bool ex) override
|
||||
{
|
||||
Handle &h = *static_cast<Handle*>(vfs_handle);
|
||||
h.sync_state();
|
||||
return h.audit->fs().check_unblock(h.audit, rd, wr, ex);
|
||||
}
|
||||
|
||||
void register_read_ready_sigh(Vfs_handle *vfs_handle, Signal_context_capability sigh) override
|
||||
{
|
||||
Handle &h = *static_cast<Handle*>(vfs_handle);
|
||||
|
@ -2074,12 +2074,6 @@ class Lwip::File_system final : public Vfs::File_system, public Lwip::Directory
|
||||
return false;
|
||||
}
|
||||
|
||||
bool check_unblock(Vfs_handle*, bool, bool, bool) override
|
||||
{
|
||||
Genode::error("VFS lwIP: ",__func__," not implemented");
|
||||
return true;
|
||||
}
|
||||
|
||||
Sync_result complete_sync(Vfs_handle *vfs_handle) override
|
||||
{
|
||||
return (dynamic_cast<Lwip_file_handle*>(vfs_handle))
|
||||
|
@ -730,11 +730,6 @@ class Vfs::Oss_file_system::Data_file_system : public Single_file_system
|
||||
{
|
||||
return FTRUNCATE_OK;
|
||||
}
|
||||
|
||||
bool check_unblock(Vfs_handle *, bool, bool wr, bool) override
|
||||
{
|
||||
return wr;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
@ -141,17 +141,6 @@ struct Vfs::File_io_service : Interface
|
||||
return IOCTL_ERR_INVALID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return true if an unblocking condition of the file is satisfied
|
||||
*
|
||||
* \param rd if true, check for data available for reading
|
||||
* \param wr if true, check for readiness for writing
|
||||
* \param ex if true, check for exceptions
|
||||
*/
|
||||
virtual bool check_unblock(Vfs_handle *, bool /* rd */, bool /* wr */, bool /* ex */)
|
||||
{ return true; }
|
||||
|
||||
virtual void register_read_ready_sigh(Vfs_handle *, Signal_context_capability)
|
||||
{ }
|
||||
|
||||
|
@ -264,11 +264,6 @@ class Vfs::Terminal_file_system::Data_file_system : public Single_file_system
|
||||
{
|
||||
return FTRUNCATE_OK;
|
||||
}
|
||||
|
||||
bool check_unblock(Vfs_handle *, bool rd, bool wr, bool) override
|
||||
{
|
||||
return ((rd && _terminal.avail()) || wr);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user