mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
Kernel: Use Userspace<T> for the gettimeofday syscall
This commit is contained in:
parent
1eeaed31c2
commit
baa070afb8
Notes:
sideshowbarker
2024-07-19 04:18:15 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/baa070afb89 Pull-request: https://github.com/SerenityOS/serenity/pull/2996
|
@ -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…
Reference in a new issue