]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r296502, r296543, r296546, r297060:
authordchagin <dchagin@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 27 Mar 2016 06:52:40 +0000 (06:52 +0000)
committerdchagin <dchagin@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 27 Mar 2016 06:52:40 +0000 (06:52 +0000)
commitb7b0d700bd5680c4c25a056b81a335d85f9e86c4
tree04c93d9bc1c05ef03e8073cf4eac986f35ebfdca
parentf731a7f4f5bfd5bb7a3359f765b03b34d4857ccc
MFC r296502, r296543, r296546, r297060:

  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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@297304 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/compat/linux/linux_misc.c