mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-21 00:23:16 +00:00
vfs: simplify File_io_service::write return values
This patch removes the 'Insufficient_buffer' exception by returning the WRITE_ERR_WOULD_BLOCK result value instead. It also eliminates the superfluous WRITE_ERR_AGAIN and WRITE_ERR_INTERRUPT codes. Issue #4697
This commit is contained in:
committed by
Christian Helmuth
parent
d9f5dda322
commit
cf87b0fadb
@ -133,11 +133,9 @@ static inline void print(Genode::Output &output, Vfs::File_io_service::Write_res
|
||||
|
||||
switch (r) {
|
||||
CASE_PRINT(WRITE_OK);
|
||||
CASE_PRINT(WRITE_ERR_AGAIN);
|
||||
CASE_PRINT(WRITE_ERR_WOULD_BLOCK);
|
||||
CASE_PRINT(WRITE_ERR_INVALID);
|
||||
CASE_PRINT(WRITE_ERR_IO);
|
||||
CASE_PRINT(WRITE_ERR_INTERRUPT);
|
||||
}
|
||||
|
||||
#undef CASE_PRINT
|
||||
|
Reference in New Issue
Block a user