[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH v2 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

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                  |  3 +-
 lib/vfscore/include/vfscore/file.h  |  3 ++
 lib/vfscore/include/vfscore/uio.h   | 39 ++++++++++++++++++
 lib/vfscore/include/vfscore/vnode.h | 10 +++--
 lib/vfscore/stdio.c                 | 62 ++++++++++++++++++++++-------
 lib/vfscore/subr_uio.c              | 34 ++++------------
 lib/vfscore/syscalls.c              |  2 +-
 8 files changed, 109 insertions(+), 50 deletions(-)

-- 
2.19.2


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.