mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
Kernel: Use Userspace<T> for the getsockopt syscall and Socket interface
The way getsockopt is implemented for socket types requires us to push down Userspace<T> using into those interfaces. This change does so, and utilizes proper copy implementations instead of the kind of haphazard pointer dereferencing that was occurring there before.
This commit is contained in:
parent
6920d5f423
commit
30b2c0dc85
9 changed files with 69 additions and 43 deletions
|
@ -306,8 +306,8 @@ struct SC_getsockopt_params {
|
|||
int sockfd;
|
||||
int level;
|
||||
int option;
|
||||
void* value;
|
||||
socklen_t* value_size;
|
||||
Userspace<void*> value;
|
||||
Userspace<socklen_t*> value_size;
|
||||
};
|
||||
|
||||
struct SC_setsockopt_params {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue