[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH v2 0/2] Add stdin
This is v2 of the stdin implementation. The main changes are: * bytes_read is declared as an int because ukplat_cink return an int and we only add it to bytes_total if it is >= 0 * bytes_total is declared as size_t since it is the total number of bytes read and it is always >= 0. * remove implicit casting by adding by adding a new variable buf of type char *. * made the suggested changes to termios.h: ** added the missing typedef from include/termios.h ** added compile-time check of the architecture ** added compile guards *** v1 text below for reference *** This function is used by the python/micropython shell for the stdio. The implementation mimics the standard read behaviour. This patch uses VEOF from termios.h. The header is added from musl. This patch also adds the __unused macro for the vfscore_file argument. Vlad-Andrei Badoiu (1): lib/nolibc/include: Add termios.h from musl Vlad-Andrei BĂDOIU (78692) (1): lib/vfscore: Add stdin fop lib/nolibc/include/termios.h | 192 +++++++++++++++++++++++++++++++++++ lib/vfscore/stdio.c | 43 +++++++- 2 files changed, 232 insertions(+), 3 deletions(-) create mode 100644 lib/nolibc/include/termios.h -- 2.20.1 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |