dchagin 0fe879224d Rework r296543:
1. Limit secs to INT32_MAX / 2 to avoid errors from kern_setitimer().
   Assert that kern_setitimer() returns 0.
   Remove bogus cast of secs.
   Fix style(9) issues.

2. Increment the return value if the remaining tv_usec value more than 500000 as a Linux does.

Pointed out by: [1] Bruce Evans

MFC after:	1 week
2016-03-20 11:40:52 +00:00
..
2016-02-24 10:54:26 +00:00
2016-03-12 22:55:07 +00:00
2016-02-21 14:56:05 +00:00
2016-03-20 11:40:52 +00:00