mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Use Userspace<> for sys$writev
This commit is contained in:
parent
e1c54b8a0f
commit
c9a3a5b488
Notes:
sideshowbarker
2024-07-19 02:38:34 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/c9a3a5b488f Pull-request: https://github.com/SerenityOS/serenity/pull/3498
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue