mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
Kernel: Use Userspace<T> for the gettimeofday syscall
This commit is contained in:
parent
1eeaed31c2
commit
baa070afb8
2 changed files with 2 additions and 2 deletions
|
@ -238,7 +238,7 @@ public:
|
|||
int sys$fchdir(int fd);
|
||||
int sys$sleep(unsigned seconds);
|
||||
int sys$usleep(useconds_t usec);
|
||||
int sys$gettimeofday(timeval*);
|
||||
int sys$gettimeofday(Userspace<timeval*>);
|
||||
int sys$clock_gettime(clockid_t, timespec*);
|
||||
int sys$clock_settime(clockid_t, timespec*);
|
||||
int sys$clock_nanosleep(const Syscall::SC_clock_nanosleep_params*);
|
||||
|
|
|
@ -134,7 +134,7 @@ int Process::sys$clock_nanosleep(const Syscall::SC_clock_nanosleep_params* user_
|
|||
}
|
||||
}
|
||||
|
||||
int Process::sys$gettimeofday(timeval* user_tv)
|
||||
int Process::sys$gettimeofday(Userspace<timeval*> user_tv)
|
||||
{
|
||||
REQUIRE_PROMISE(stdio);
|
||||
if (!validate_write_typed(user_tv))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue