genode/repos/os/include/vfs
Norman Feske bdf47785b8 vfs: remove 'file_size' from read/write interfaces
The 'file_size' type denotes the size of files on disk in bytes. On
32-bit architectures it is larger than the size_t, which refers to
in-memory object sizes.

Whereas the use of 'file_size' is appropriate for ftruncate and seek, it
is not a suitable type for the parameters of read/write operations
because those operations refer to in-memory buffers.

This patch replaces the use of 'file_size' by size_t. However, since it
affects all sites where the read/write interface is uses, it takes the
opportunity to replace the C-style (pointer, size) arguments by
'Byte_range_ptr' and 'Const_byte_range_ptr'.

Issue #4706
2023-02-27 08:22:49 +01:00
..
dir_file_system.h vfs: remove 'file_size' from read/write interfaces 2023-02-27 08:22:49 +01:00
directory_service.h vfs directory service: name enum Open_mode 2020-11-23 12:02:59 +01:00
env.h vfs: documentation of Vfs::Env::User 2023-01-24 12:07:30 +01:00
file_io_service.h vfs: remove 'file_size' from read/write interfaces 2023-02-27 08:22:49 +01:00
file_system_factory.h os: avoid using deprecated APIs 2019-01-30 13:49:54 +01:00
file_system.h Add missing XML header to vfs/file_system.h 2018-07-03 09:39:34 +02:00
print.h vfs: remove Read_result::READ_ERR_INTERRUPT 2023-01-24 12:07:30 +01:00
readonly_value_file_system.h vfs: remove 'file_size' from read/write interfaces 2023-02-27 08:22:49 +01:00
remote_io.h vfs,libc: deferred wakeup of remote peers 2023-01-24 12:07:27 +01:00
simple_env.h vfs,libc: support write fds in select 2023-01-24 12:07:28 +01:00
single_file_system.h vfs: remove 'file_size' from read/write interfaces 2023-02-27 08:22:49 +01:00
types.h vfs: remove 'file_size' from read/write interfaces 2023-02-27 08:22:49 +01:00
value_file_system.h vfs: remove 'file_size' from read/write interfaces 2023-02-27 08:22:49 +01:00
vfs_handle.h vfs: remove 'Io_response_handler' interface 2023-01-24 12:07:30 +01:00