vfs: remove File_io_service::General_error

Issue #4706
This commit is contained in:
Norman Feske 2022-12-20 12:05:01 +01:00 committed by Christian Helmuth
parent a1fb51e050
commit 1aba073e32

View File

@ -23,9 +23,6 @@ namespace Vfs { struct File_io_service; }
struct Vfs::File_io_service : Interface
{
enum General_error { ERR_FD_INVALID, NUM_GENERAL_ERRORS };
/***********
** Write **
***********/
@ -89,9 +86,8 @@ struct Vfs::File_io_service : Interface
** Ftruncate **
***************/
enum Ftruncate_result { FTRUNCATE_ERR_NO_PERM = NUM_GENERAL_ERRORS,
FTRUNCATE_ERR_INTERRUPT, FTRUNCATE_ERR_NO_SPACE,
FTRUNCATE_OK };
enum Ftruncate_result { FTRUNCATE_ERR_NO_PERM, FTRUNCATE_ERR_INTERRUPT,
FTRUNCATE_ERR_NO_SPACE, FTRUNCATE_OK };
virtual Ftruncate_result ftruncate(Vfs_handle *vfs_handle, file_size len) = 0;