1
Fork 0
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:
AnotherTest 2021-02-12 05:40:03 +03:30 committed by Andreas Kling
parent 1e79c04616
commit a3a7ab83c4
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);
}
}