[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH v3 0/5] Fix multiline printfs with newlib
Problem: if compiled with newlib, printf("foo\nbar\nbaz\n") would print only "foo". That is because current implementation of stdio was returning the number of bytes written. But vfs expects a error code instead. This series also fixes few other minor problems in vfs, ramfs and stdio, related to the original issue. Changes since v1: - rebase to current origin/staging Changes since v2: - check flag UK_VFSCORE_NOPOS for read operation too - rename __coutk_wrapper to __read_fn - A bit more comments Yuri Volchkov (5): lib/vfscore: introduce vfscore_uioforeach lib/vfscore: handle uio properly in stdio functions lib/vfscore: check return value of vfs_write in sys_write lib/vfscore: do not advance position for stdio lib/vfscore: make all vnops function return int lib/ramfs/ramfs_vnops.c | 6 +-- lib/vfscore/fops.c | 6 ++- lib/vfscore/include/vfscore/file.h | 6 +++ lib/vfscore/include/vfscore/uio.h | 45 +++++++++++++++++++ lib/vfscore/include/vfscore/vnode.h | 10 +++-- lib/vfscore/stdio.c | 67 ++++++++++++++++++++++------- lib/vfscore/subr_uio.c | 34 ++++----------- lib/vfscore/syscalls.c | 2 +- 8 files changed, 125 insertions(+), 51 deletions(-) -- 2.19.2 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |