mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-13 04:38:20 +00:00
Support select in libc VFS plugin by read_ready()
This commit is contained in:
committed by
Norman Feske
parent
ba1bd071df
commit
f9389109bf
@ -1,11 +1,13 @@
|
||||
/*
|
||||
* \brief Directory file system
|
||||
* \author Norman Feske
|
||||
* \author Emery Hemingway
|
||||
* \author Christian Helmuth
|
||||
* \date 2012-04-23
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2011-2016 Genode Labs GmbH
|
||||
* Copyright (C) 2011-2017 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
@ -601,6 +603,14 @@ class Vfs::Dir_file_system : public File_system
|
||||
{
|
||||
return FTRUNCATE_ERR_NO_PERM;
|
||||
}
|
||||
|
||||
bool read_ready(Vfs_handle *handle) override
|
||||
{
|
||||
if (&handle->fs() == this)
|
||||
return true;
|
||||
|
||||
return handle->fs().read_ready(handle);
|
||||
}
|
||||
};
|
||||
|
||||
#endif /* _INCLUDE__VFS__DIR_FILE_SYSTEM_H_ */
|
||||
|
Reference in New Issue
Block a user