mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +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
Notes:
sideshowbarker
2024-07-18 22:15:14 +09:00
Author: https://github.com/alimpfard
Commit: a3a7ab83c4
Pull-request: https://github.com/SerenityOS/serenity/pull/5325
Issue: https://github.com/SerenityOS/serenity/issues/90
Reviewed-by: https://github.com/BenWiederhake
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/sunverwerth
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