[LTP] [PATCH] openposix: update invalid clock id to accomodate new auxiliary clock ids

Cyril Hrubis chrubis@suse.cz
Mon Oct 6 11:08:35 CEST 2025


Hi!
> Technically you can have any number of clocks defined by a system that
> implements POSIX. So the comment here should be:
> 
> "hopefully big enough not to be a valid clock value"
> 
> And we may possibly bump it to a larger value as well, e.g. 50

Or we may be a bit smarter, for clock_gettime() or clock_getres() we can
loop starting at 0 until we get EINVAL or cross sufficiently large value.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list