diff options
author | Arijit Kumar Das <arijitkdgit.official@gmail.com> | 2025-07-17 16:21:16 +0530 |
---|---|---|
committer | Thomas Schwinge <tschwinge@baylibre.com> | 2025-07-17 14:43:19 +0200 |
commit | 5d8c71af5e0fa5cdc99d9f741624920e34756418 (patch) | |
tree | f142f4bd13a5e2a542f48e2cdbb8b864295d5177 /newlib/libc/stdio/vasniprintf.c | |
parent | f0912e9a74cd082b9ae2e9844095a4743e526529 (diff) | |
download | newlib-5d8c71af5e0fa5cdc99d9f741624920e34756418.zip newlib-5d8c71af5e0fa5cdc99d9f741624920e34756418.tar.gz newlib-5d8c71af5e0fa5cdc99d9f741624920e34756418.tar.bz2 |
nvptx: Change 'read' and 'write' to 'ssize_t' return type
This commit changes the return type of the read() and write() syscalls for
nvptx to ssize_t. This would allow large files to be handled properly by
these syscalls in situations where the read/write buffer length exceeds
INT_MAX, for example. This also makes the syscall signatures fully complaint
with their current POSIX specifications.
We additionally define two macros: '_READ_WRITE_RETURN_TYPE' as _ssize_t and
'_READ_WRITE_BUFSIZE_TYPE' as __size_t in libc/include/sys/config.h under
__nvptx__ for consistency.
Signed-off-by: Arijit Kumar Das <arijitkdgit.official@gmail.com>
Diffstat (limited to 'newlib/libc/stdio/vasniprintf.c')
0 files changed, 0 insertions, 0 deletions