opnsense-src/sys/compat
Bruce Evans 372639f944 Fix some bugs found while fixing the representation and translation
of 64-bit dev_t's (but not ones involving dev_t's).

st_size was supposed to be clamped in cvtstat() and linux's copy_stat(),
but the clamping code wasn't aware that st_size is signed, and also had
an obfuscated off-by-1 value for the unsigned limit, so its effect was
to produce a bizarre negative size instead of clamping.

Change freebsd32's copy_ostat() to be no worse than cvtstat().  It was
missing clamping and bzero()ing of padding.

Reviewed by:	kib (except a final fix of the clamp to the signed maximum)
2018-06-13 08:50:43 +00:00
..
cloudabi Eliminate the overhead of gratuitous repeated reinitialization of cap_rights 2018-05-09 18:47:24 +00:00
cloudabi32 Don't use an .OBJDIR for 'make sysent'. 2018-01-29 19:14:15 +00:00
cloudabi64 Don't use an .OBJDIR for 'make sysent'. 2018-01-29 19:14:15 +00:00
freebsd32 Fix some bugs found while fixing the representation and translation 2018-06-13 08:50:43 +00:00
ia32 Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
linprocfs UDP: further performance improvements on tx 2018-05-23 21:02:14 +00:00
linsysfs Make it easier for filesystems to count themselves as jail-enabled, 2018-05-04 20:54:27 +00:00
linux Fix some bugs found while fixing the representation and translation 2018-06-13 08:50:43 +00:00
linuxkpi/common Implement the ip_eth_mc_map() function in the LinuxKPI. 2018-06-12 08:43:49 +00:00
ndis Revert r327828, r327949, r327953, r328016-r328026, r328041: 2018-01-21 15:42:36 +00:00
netbsd sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
x86bios x86bios: spelling fix in a comment. 2016-04-30 00:34:04 +00:00