Dmitry Chagin 4525bb829f 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
..
2015-06-20 05:40:35 +00:00
2015-07-29 17:18:27 +00:00
2015-05-24 16:32:52 +00:00
2016-03-20 11:40:52 +00:00
2015-05-24 17:57:07 +00:00
2015-05-24 15:45:36 +00:00
2015-05-24 15:45:36 +00:00