mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
Kernel+LibC: Implement readv
We already had writev, so let's just add readv too.
This commit is contained in:
parent
1e79c04616
commit
a3a7ab83c4
5 changed files with 68 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue