Kernel+LibC: Implement readv

We already had writev, so let's just add readv too.
This commit is contained in:
AnotherTest 2021-02-12 05:40:03 +03:30 committed by Andreas Kling
commit a3a7ab83c4
Notes: sideshowbarker 2024-07-18 22:15:14 +09:00
5 changed files with 68 additions and 1 deletions

View file

@ -35,4 +35,10 @@ ssize_t writev(int fd, const struct iovec* iov, int iov_count)
int rc = syscall(SC_writev, fd, iov, iov_count);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
ssize_t readv(int fd, const struct iovec* iov, int iov_count)
{
int rc = syscall(SC_readv, fd, iov, iov_count);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
}