forked from Imagelibrary/rtems
score: Add _Watchdog_Is_valid_interval_timespec()
Update #3117. Update #3182.
This commit is contained in:
@@ -312,6 +312,13 @@ RTEMS_INLINE_ROUTINE bool _Watchdog_Is_valid_timespec(
|
|||||||
&& (unsigned long) ts->tv_nsec < WATCHDOG_NANOSECONDS_PER_SECOND;
|
&& (unsigned long) ts->tv_nsec < WATCHDOG_NANOSECONDS_PER_SECOND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RTEMS_INLINE_ROUTINE bool _Watchdog_Is_valid_interval_timespec(
|
||||||
|
const struct timespec *ts
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return _Watchdog_Is_valid_timespec( ts ) && ts->tv_sec >= 0;
|
||||||
|
}
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE bool _Watchdog_Is_far_future_realtime_timespec(
|
RTEMS_INLINE_ROUTINE bool _Watchdog_Is_far_future_realtime_timespec(
|
||||||
const struct timespec *ts
|
const struct timespec *ts
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user