Newer versions of Linux kernel implement specific versions of the monotonic clock and some applications especially statically linked executables or glibc rely on them. This patch makes OSv pretend it implements both CLOCK_MONOTONIC_COARSE and CLOCK_MONOTONIC_RAW by using the same implementation as CLOCK_MONOTONIC.
This patch also enhances clock_getres() to support CLOCK_MONOTONIC_COARSE, CLOCK_MONOTONIC_RAW and CLOCK_BOOTTIME.
Newer versions of Linux kernel implement specific versions of the monotonic clock and some applications especially statically linked executables or glibc rely on them. This patch makes OSv pretend it implements both CLOCK_MONOTONIC_COARSE and CLOCK_MONOTONIC_RAW by using the same implementation as CLOCK_MONOTONIC.
This patch also enhances clock_getres() to support CLOCK_MONOTONIC_COARSE, CLOCK_MONOTONIC_RAW and CLOCK_BOOTTIME.