libc: newlib: Rename adhoc read/write implementation for stdin/stdout

In case newlib is enabled, but POSIX subsys isn't, there're adhoc
implementations of read() and write() which work only with adhoc
stdin/stdout emulation layer. These are backed by system calls named
like "read" and "write". Rename all these functions and syscalls to
explicitly mention stdin/stdout in the names, to free namespace
for the implementation of generic read/write syscalls which will
integrate with POSIX fdtable.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
Paul Sokolovsky 2019-02-26 13:06:57 +03:00 committed by Kumar Gala
commit b5639c4ee2
2 changed files with 10 additions and 10 deletions

View file

@ -23,9 +23,9 @@
*/
#define _MLIBC_RESTRICT
__syscall int _zephyr_read(char *buf, int nbytes);
__syscall int _zephyr_read_stdin(char *buf, int nbytes);
__syscall int _zephyr_write(const void *buf, int nbytes);
__syscall int _zephyr_write_stdout(const void *buf, int nbytes);
#else
/* Minimal libc */