]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Rework r296543:
authorDmitry Chagin <dchagin@FreeBSD.org>
Sun, 20 Mar 2016 11:40:52 +0000 (11:40 +0000)
committerDmitry Chagin <dchagin@FreeBSD.org>
Sun, 20 Mar 2016 11:40:52 +0000 (11:40 +0000)
commit4525bb829f43b868a503ada8082a3f94cc2c9694
tree623ad476cb43c49ee9e0eb58175c20367740ee7b
parent0c91dc1d08c9d6bbf217e418549d2557e3c08e8c
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
sys/compat/linux/linux_misc.c