mikaku / Fiwix

A UNIX-like kernel for the i386 architecture
https://www.fiwix.org
Other
407 stars 32 forks source link

Support readv and writev system calls #42

Closed rick-masters closed 10 months ago

rick-masters commented 10 months ago

Please support readv and writev system calls. These are used by musl internally to implement common libc I/O routines.

I am attaching a program for testing on Fiwix.

You can test it like so:

cc test-readv.c -o test-readv
rm -f testout.txt
./test-readv

The correct output is:

fd: 3
wrote 12
read return: 12
read str: /hello world!/

test-readv.c.gz

mikaku commented 10 months ago

Thank you very much.