forked from Bananymous/banan-os
Kernel: Warn on unsupport clock_gettime clock_ids
This commit is contained in:
@@ -1917,16 +1917,13 @@ namespace Kernel
|
|||||||
switch (clock_id)
|
switch (clock_id)
|
||||||
{
|
{
|
||||||
case CLOCK_MONOTONIC:
|
case CLOCK_MONOTONIC:
|
||||||
{
|
|
||||||
*tp = SystemTimer::get().time_since_boot();
|
*tp = SystemTimer::get().time_since_boot();
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case CLOCK_REALTIME:
|
case CLOCK_REALTIME:
|
||||||
{
|
|
||||||
*tp = SystemTimer::get().real_time();
|
*tp = SystemTimer::get().real_time();
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
|
dwarnln("TODO: clock_gettime({})", clock_id);
|
||||||
return BAN::Error::from_errno(ENOTSUP);
|
return BAN::Error::from_errno(ENOTSUP);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user