mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
Kernel: Use Userspace<T> for the clock_settime syscall
This commit is contained in:
parent
1be6145fdf
commit
b069d757a3
2 changed files with 2 additions and 2 deletions
|
@ -248,7 +248,7 @@ public:
|
||||||
int sys$usleep(useconds_t usec);
|
int sys$usleep(useconds_t usec);
|
||||||
int sys$gettimeofday(Userspace<timeval*>);
|
int sys$gettimeofday(Userspace<timeval*>);
|
||||||
int sys$clock_gettime(clockid_t, Userspace<timespec*>);
|
int sys$clock_gettime(clockid_t, Userspace<timespec*>);
|
||||||
int sys$clock_settime(clockid_t, const timespec*);
|
int sys$clock_settime(clockid_t, Userspace<const timespec*>);
|
||||||
int sys$clock_nanosleep(Userspace<const Syscall::SC_clock_nanosleep_params*>);
|
int sys$clock_nanosleep(Userspace<const Syscall::SC_clock_nanosleep_params*>);
|
||||||
int sys$gethostname(char*, ssize_t);
|
int sys$gethostname(char*, ssize_t);
|
||||||
int sys$sethostname(const char*, ssize_t);
|
int sys$sethostname(const char*, ssize_t);
|
||||||
|
|
|
@ -54,7 +54,7 @@ int Process::sys$clock_gettime(clockid_t clock_id, Userspace<timespec*> user_ts)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Process::sys$clock_settime(clockid_t clock_id, const timespec* user_ts)
|
int Process::sys$clock_settime(clockid_t clock_id, Userspace<const timespec*> user_ts)
|
||||||
{
|
{
|
||||||
REQUIRE_PROMISE(settime);
|
REQUIRE_PROMISE(settime);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue