1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +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

@ -240,6 +240,7 @@ public:
int sys$open(Userspace<const Syscall::SC_open_params*>);
int sys$close(int fd);
ssize_t sys$read(int fd, Userspace<u8*>, ssize_t);
ssize_t sys$readv(int fd, Userspace<const struct iovec*> iov, int iov_count);
ssize_t sys$write(int fd, const u8*, ssize_t);
ssize_t sys$writev(int fd, Userspace<const struct iovec*> iov, int iov_count);
int sys$fstat(int fd, Userspace<stat*>);