Kernel: Use Userspace<> for sys$writev

This commit is contained in:
Nico Weber 2020-09-15 14:18:44 -04:00 committed by Andreas Kling
parent e1c54b8a0f
commit c9a3a5b488
Notes: sideshowbarker 2024-07-19 02:38:34 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -218,7 +218,7 @@ public:
int sys$close(int fd);
ssize_t sys$read(int fd, Userspace<u8*>, ssize_t);
ssize_t sys$write(int fd, const u8*, ssize_t);
ssize_t sys$writev(int fd, const struct iovec* iov, int iov_count);
ssize_t sys$writev(int fd, Userspace<const struct iovec*> iov, int iov_count);
int sys$fstat(int fd, Userspace<stat*>);
int sys$stat(Userspace<const Syscall::SC_stat_params*>);
int sys$lseek(int fd, off_t, int whence);

View file

@ -30,7 +30,7 @@
namespace Kernel {
ssize_t Process::sys$writev(int fd, const struct iovec* iov, int iov_count)
ssize_t Process::sys$writev(int fd, Userspace<const struct iovec*> iov, int iov_count)
{
REQUIRE_PROMISE(stdio);
if (iov_count < 0)