mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 06:17:35 +00:00
Kernel: Use Userspace<T> for the open syscall
This commit is contained in:
parent
f3eb7db422
commit
1eeaed31c2
2 changed files with 2 additions and 2 deletions
|
@ -211,7 +211,7 @@ public:
|
||||||
int sys$getresuid(uid_t*, uid_t*, uid_t*);
|
int sys$getresuid(uid_t*, uid_t*, uid_t*);
|
||||||
int sys$getresgid(gid_t*, gid_t*, gid_t*);
|
int sys$getresgid(gid_t*, gid_t*, gid_t*);
|
||||||
mode_t sys$umask(mode_t);
|
mode_t sys$umask(mode_t);
|
||||||
int sys$open(const Syscall::SC_open_params*);
|
int sys$open(Userspace<const Syscall::SC_open_params*>);
|
||||||
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);
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
int Process::sys$open(const Syscall::SC_open_params* user_params)
|
int Process::sys$open(Userspace<const Syscall::SC_open_params*> user_params)
|
||||||
{
|
{
|
||||||
Syscall::SC_open_params params;
|
Syscall::SC_open_params params;
|
||||||
if (!validate_read_and_copy_typed(¶ms, user_params))
|
if (!validate_read_and_copy_typed(¶ms, user_params))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue