diff options
| author | riastradh <riastradh@NetBSD.org> | 2022-06-26 22:31:38 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2022-06-26 22:31:38 +0000 |
| commit | 8cfba83eef4e6fd005074dd28b894a21620a788b (patch) | |
| tree | 1a9a2767f02cab264953fa90cef081b63d9c64a5 /sys/dev/microcode | |
| parent | 36b6d16a434a2c5cdad2c36e10b218f6f618f11b (diff) | |
kern: New functions timespecaddok, timespecsubok.
Return false if timespecadd or timespecsub with the same arguments
would overflow (possibly in an intermediate calculation), true if OK.
Typical usage:
sys_wotsit(...)
{
...
if (!timespecsubok(x, y))
return EINVAL;
timespecub(x, y, xydelta);
...
}
Diffstat (limited to 'sys/dev/microcode')
0 files changed, 0 insertions, 0 deletions
