diff options
| author | Shell <[email protected]> | 2024-11-13 17:18:40 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-11-13 22:56:07 -0500 |
| commit | e763e51e4985bf6bfca1a18965e604b59fc3b984 (patch) | |
| tree | 2a10a393797cd571e38b9989342ceb10cef6de96 /components/libc/cplusplus | |
| parent | be0161ec625fe4e75ca39eace3b3cf27be3b4b5a (diff) | |
feat: devfs: handling unit size in POSIX RW request
POSIX.1 says:
> read() attempts to read up to count bytes from file descriptor fd
> into the buffer starting at buf.
On the other hand, for rt_device_read, the `@size` is defined as the
number of unit (block size for blk device, otherwise one byte).
Changes:
- Transferred unit size from POSIX R/W(in bytes) to rt_device_R/W during
request of file R/W operations.
Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'components/libc/cplusplus')
0 files changed, 0 insertions, 0 deletions
