freebsd-skq/sys/compat
ian ea2fa60ba9 Add inline functions to convert between sbintime_t and decimal time units.
Use them in some existing code that is vulnerable to roundoff errors.

The existing constant SBT_1NS is a honeypot, luring unsuspecting folks into
writing code such as long_timeout_ns*SBT_1NS to generate the argument for a
sleep call.  The actual value of 1ns in sbt units is ~4.3, leading to a
large roundoff error giving a shorter sleep than expected when multiplying
by the trucated value of 4 in SBT_1NS.  (The evil honeypot aspect becomes
clear after you waste a whole day figuring out why your sleeps return early.)
2017-07-29 17:00:23 +00:00
..
cloudabi Upgrade to the latest sources generated from the CloudABI specification. 2017-07-26 06:57:15 +00:00
cloudabi32 Upgrade to the latest sources generated from the CloudABI specification. 2017-07-26 06:57:15 +00:00
cloudabi64 Upgrade to the latest sources generated from the CloudABI specification. 2017-07-26 06:57:15 +00:00
freebsd32 Correct sysent flags for dynamically loaded syscalls. 2017-07-14 09:34:44 +00:00
ia32 Move struct syscall_args syscall arguments parameters container into 2017-06-12 21:03:23 +00:00
linprocfs Fix caveat in new implementation of linprocfs_docpuinfo(): 2017-06-23 10:36:27 +00:00
linsysfs Glibc get_nprocs() and get_nprocs_conf() uses the sysfs cpu infrastructure 2017-03-18 18:38:12 +00:00
linux Style(9) whitespace fix. 2017-07-22 09:03:40 +00:00
linuxkpi/common Add inline functions to convert between sbintime_t and decimal time units. 2017-07-29 17:00:23 +00:00
ndis Fix regression in ndis(4) after r286410. This adds a bunch of checks for 2017-05-22 20:00:01 +00:00
netbsd
x86bios x86bios: spelling fix in a comment. 2016-04-30 00:34:04 +00:00