1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

Kernel+UserspaceEmulator: Remove unused sys$gettimeofday()

Now that LibC uses clock_gettime() to implement gettimeofday(), we can
get rid of this entire syscall. :^)
This commit is contained in:
Andreas Kling 2021-08-10 12:50:42 +02:00
parent 5f6e0e0162
commit fa64ab26a4
5 changed files with 0 additions and 25 deletions

View file

@ -116,14 +116,4 @@ KResultOr<FlatPtr> Process::sys$adjtime(Userspace<const timeval*> user_delta, Us
return 0;
}
KResultOr<FlatPtr> Process::sys$gettimeofday(Userspace<timeval*> user_tv)
{
VERIFY_NO_PROCESS_BIG_LOCK(this);
REQUIRE_PROMISE(stdio);
auto tv = kgettimeofday().to_timeval();
if (!copy_to_user(user_tv, &tv))
return EFAULT;
return 0;
}
}