mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
Kernel: Use Userspace<T> in ptrace syscall
This commit is contained in:
parent
85b2413403
commit
1209bf82c1
Notes:
sideshowbarker
2024-07-19 04:24:14 +09:00
Author: https://github.com/bgianfo
Commit: 1209bf82c1
Pull-request: https://github.com/SerenityOS/serenity/pull/2949
4 changed files with 17 additions and 16 deletions
|
@ -326,7 +326,7 @@ public:
|
|||
int sys$unveil(const Syscall::SC_unveil_params*);
|
||||
int sys$perf_event(int type, FlatPtr arg1, FlatPtr arg2);
|
||||
int sys$get_stack_bounds(FlatPtr* stack_base, size_t* stack_size);
|
||||
int sys$ptrace(const Syscall::SC_ptrace_params*);
|
||||
int sys$ptrace(Userspace<const Syscall::SC_ptrace_params*>);
|
||||
int sys$sendfd(int sockfd, int fd);
|
||||
int sys$recvfd(int sockfd);
|
||||
long sys$sysconf(int name);
|
||||
|
@ -559,8 +559,8 @@ public:
|
|||
m_wait_for_tracer_at_next_execve = val;
|
||||
}
|
||||
|
||||
KResultOr<u32> peek_user_data(u32* address);
|
||||
KResult poke_user_data(u32* address, u32 data);
|
||||
KResultOr<u32> peek_user_data(Userspace<const u32*> address);
|
||||
KResult poke_user_data(Userspace<u32*> address, u32 data);
|
||||
|
||||
private:
|
||||
friend class MemoryManager;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue