mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #7975 from cedriccchen:vdso
PiperOrigin-RevId: 474534606
This commit is contained in:
@@ -29,12 +29,18 @@ int __common_clock_gettime(clockid_t clock, struct timespec* ts) {
|
||||
int ret;
|
||||
|
||||
switch (clock) {
|
||||
case CLOCK_REALTIME_COARSE:
|
||||
// Fallthrough, CLOCK_REALTIME_COARSE is an alias for CLOCK_REALTIME
|
||||
case CLOCK_REALTIME:
|
||||
ret = ClockRealtime(ts);
|
||||
break;
|
||||
|
||||
case CLOCK_BOOTTIME:
|
||||
// Fallthrough, CLOCK_BOOTTIME is an alias for CLOCK_MONOTONIC
|
||||
case CLOCK_MONOTONIC_RAW:
|
||||
// Fallthrough, CLOCK_MONOTONIC_RAW is an alias for CLOCK_MONOTONIC
|
||||
case CLOCK_MONOTONIC_COARSE:
|
||||
// Fallthrough, CLOCK_MONOTONIC_COARSE is an alias for CLOCK_MONOTONIC
|
||||
case CLOCK_MONOTONIC:
|
||||
ret = ClockMonotonic(ts);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user