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 struct Vfs::File_io_service : Interface
{ {
enum General_error { ERR_FD_INVALID, NUM_GENERAL_ERRORS };
/*********** /***********
** Write ** ** Write **
***********/ ***********/
@ -89,9 +86,8 @@ struct Vfs::File_io_service : Interface
** Ftruncate ** ** Ftruncate **
***************/ ***************/
enum Ftruncate_result { FTRUNCATE_ERR_NO_PERM = NUM_GENERAL_ERRORS, enum Ftruncate_result { FTRUNCATE_ERR_NO_PERM, FTRUNCATE_ERR_INTERRUPT,
FTRUNCATE_ERR_INTERRUPT, FTRUNCATE_ERR_NO_SPACE, FTRUNCATE_ERR_NO_SPACE, FTRUNCATE_OK };
FTRUNCATE_OK };
virtual Ftruncate_result ftruncate(Vfs_handle *vfs_handle, file_size len) = 0; virtual Ftruncate_result ftruncate(Vfs_handle *vfs_handle, file_size len) = 0;