From: Vlad-Andrei BĂDOIU (78692) Date: Tue, 3 Sep 2019 12:21:50 +0000 (+0000) Subject: Add clock_getres and clock_settime stubs X-Git-Tag: RELEASE-0.4~46 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2da89b27ec6e42adf3d7e7abf0566b726ccfd247;p=unikraft%2Flibs%2Fnewlib.git Add clock_getres and clock_settime stubs Signed-off-by: Vlad-Andrei Badoiu Reviewed-by: Costin Lupu --- diff --git a/time.c b/time.c index 94e8097..a79691c 100644 --- a/time.c +++ b/time.c @@ -137,6 +137,11 @@ unsigned int sleep(unsigned int seconds) return 0; } +int clock_getres(clockid_t clk_id __unused, struct timespec *res __unused) +{ + return 0; +} + int clock_gettime(clockid_t clk_id __unused, struct timespec *tp __unused) { __nsec now; @@ -162,3 +167,8 @@ int clock_gettime(clockid_t clk_id __unused, struct timespec *tp __unused) tp->tv_nsec = ukarch_time_subsec(now); return 0; } + +int clock_settime(clockid_t clk_id __unused, const struct timespec *tp __unused) +{ + return 0; +}