[Nut-upsdev] NUT Bugs #313634 & #313714: unification & encapsulation of timer proposition

Charles Lepple clepple at gmail.com
Mon Oct 8 12:36:19 UTC 2012


[adding nut-upsdev back to CC list.]

> While you at it --- I’ve written the nut_clock_gettime POSIX implementation so that
> fallback from monotonic POSIX clock impl. to RTC is actually also done if the system
> defines _POSIX_MONOTONIC_CLOCK macro, but the call ends with EINVAL
> (i.e. not implemented) if monotonic clock is requested.
> I thought that may be a bit over-protective; as soon as the OS defines the detection
> macro, we should be entitled to expect it to work; EINVAL should therefore be
> considered an error and propagated.

I'm confused. Could you post pseudocode, or the actual patch, for what is being described above?

-- 
Charles Lepple
clepple at gmail






More information about the Nut-upsdev mailing list