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

Userland: Add an "adjtime" utility

It's a thin userland wrapper around adjtime(2). It can be used
to view current pending time adjustments, and root can use it to
smoothly adjust the system time.

As far as I can tell, other systems don't have a userland utility
for this, but it seems useful. Useful enough that I'm adding it to
the lagom build so I can use it on my linux box too :)
This commit is contained in:
Nico Weber 2020-11-05 15:58:29 -05:00 committed by Andreas Kling
parent 323e727a4c
commit 5fcd34b810
3 changed files with 116 additions and 0 deletions

View file

@ -76,6 +76,10 @@ if (BUILD_LAGOM)
target_link_libraries(TestJson Lagom)
target_link_libraries(TestJson stdc++)
add_executable(adjtime_lagom ../../Userland/adjtime.cpp)
set_target_properties(adjtime_lagom PROPERTIES OUTPUT_NAME adjtime)
target_link_libraries(adjtime_lagom Lagom)
add_executable(js_lagom ../../Userland/js.cpp)
set_target_properties(js_lagom PROPERTIES OUTPUT_NAME js)
target_link_libraries(js_lagom Lagom)