mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-31 14:48:17 +00:00
LibCore: Add syscall wrapper for clock_settime()
This commit is contained in:
parent
5c15b97ca4
commit
7b13f22f96
Notes:
sideshowbarker
2024-07-17 22:55:54 +09:00
Author: https://github.com/kennethmyhra
Commit: 7b13f22f96
Pull-request: https://github.com/SerenityOS/serenity/pull/11101
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bgianfo ✅
Reviewed-by: https://github.com/creator1creeper1 ✅
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
2 changed files with 14 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <signal.h>
|
||||
#include <sys/stat.h>
|
||||
#include <termios.h>
|
||||
#include <time.h>
|
||||
|
||||
namespace Core::System {
|
||||
|
||||
|
@ -49,5 +50,6 @@ ErrorOr<void> chmod(StringView pathname, mode_t mode);
|
|||
ErrorOr<void> chown(StringView pathname, uid_t uid, gid_t gid);
|
||||
ErrorOr<struct passwd> getpwnam(StringView name);
|
||||
ErrorOr<struct group> getgrnam(StringView name);
|
||||
ErrorOr<void> clock_settime(clockid_t clock_id, struct timespec* ts);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue