ladybird/Kernel/Time
Brian Gianforcaro 11306d7121
Kernel: Modify TimeManagement::current_time(..) API so it can't fail. (#6869)
The fact that current_time can "fail" makes its use a bit awkward.
All callers in the Kernel are trusted besides syscalls, so assert
that they never get there, and make sure all current callers perform
validation of the clock_id with TimeManagement::is_valid_clock_id().

I have fuzzed this change locally for a bit to make sure I didn't
miss any obvious regression.
2021-05-05 18:51:06 +02:00
..
APICTimer.cpp Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
APICTimer.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
HardwareTimer.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HPET.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HPET.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HPETComparator.cpp AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
HPETComparator.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
PIT.cpp AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
PIT.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
RTC.cpp AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
RTC.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
TimeManagement.cpp Kernel: Modify TimeManagement::current_time(..) API so it can't fail. (#6869) 2021-05-05 18:51:06 +02:00
TimeManagement.h Kernel: Modify TimeManagement::current_time(..) API so it can't fail. (#6869) 2021-05-05 18:51:06 +02:00