mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
Kernel: Implement pread syscall
The OpenFileDescription class already offers the necessary functionlity, so implementing this was only a matter of following the structure for `read` while handling the additional `offset` argument.
This commit is contained in:
parent
8936b111a7
commit
e1093c3403
3 changed files with 23 additions and 0 deletions
|
@ -294,6 +294,7 @@ public:
|
|||
KResultOr<FlatPtr> sys$open(Userspace<const Syscall::SC_open_params*>);
|
||||
KResultOr<FlatPtr> sys$close(int fd);
|
||||
KResultOr<FlatPtr> sys$read(int fd, Userspace<u8*>, size_t);
|
||||
KResultOr<FlatPtr> sys$pread(int fd, Userspace<u8*>, size_t, off_t);
|
||||
KResultOr<FlatPtr> sys$readv(int fd, Userspace<const struct iovec*> iov, int iov_count);
|
||||
KResultOr<FlatPtr> sys$write(int fd, Userspace<const u8*>, size_t);
|
||||
KResultOr<FlatPtr> sys$writev(int fd, Userspace<const struct iovec*> iov, int iov_count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue