mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +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: c9a3a5b488
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);
|
int sys$close(int fd);
|
||||||
ssize_t sys$read(int fd, Userspace<u8*>, ssize_t);
|
ssize_t sys$read(int fd, Userspace<u8*>, ssize_t);
|
||||||
ssize_t sys$write(int fd, const 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$fstat(int fd, Userspace<stat*>);
|
||||||
int sys$stat(Userspace<const Syscall::SC_stat_params*>);
|
int sys$stat(Userspace<const Syscall::SC_stat_params*>);
|
||||||
int sys$lseek(int fd, off_t, int whence);
|
int sys$lseek(int fd, off_t, int whence);
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
namespace Kernel {
|
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);
|
REQUIRE_PROMISE(stdio);
|
||||||
if (iov_count < 0)
|
if (iov_count < 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue