Support select in libc VFS plugin by read_ready()

This commit is contained in:
Christian Helmuth
2017-02-01 11:28:15 +01:00
committed by Norman Feske
parent ba1bd071df
commit f9389109bf
22 changed files with 174 additions and 30 deletions

View File

@ -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_ */