freebsd-skq/sys/compat
mav 927a52fbbf MFC r266981:
Overhaul CAM SG driver IOCTL interfaces.

Make it really work for native FreeBSD programs.  Before this it was broken
for years due to different number of pointer dereferences in Linux and
FreeBSD IOCTL paths, permanently returning errors to FreeBSD programs.
This change breaks the driver FreeBSD IOCTL ABI, making it more strict,
but since it was not working any way -- who bother.

Add shims for 32-bit programs on 64-bit host, translating the argument
of the SG_IO IOCTL for both FreeBSD and Linux ABIs.

With this change I was able to run 32-bit Linux sg3_utils tools and simple
32 and 64-bit FreeBSD test tools on both 32 and 64-bit FreeBSD systems.
2014-07-02 10:16:12 +00:00
..
freebsd32 MFC r266981: 2014-07-02 10:16:12 +00:00
ia32 Cosmetics: define FREEBSD32_MINUSER and AOUT32_MINUSER for struct 2012-07-22 13:41:45 +00:00
linprocfs MFC r262539: 2014-03-13 03:42:00 +00:00
linsysfs Add procfs to jail-mountable filesystems. 2012-02-29 00:30:18 +00:00
linux MFC r266981: 2014-07-02 10:16:12 +00:00
ndis Give (*ext_free) an int return value allowing for very sophisticated 2013-08-25 10:57:09 +00:00
netbsd Remove some more NetBSD compat shims and other unused bits from these 2012-09-10 18:49:49 +00:00
svr4 MFC r263289: Update NetBSD Foundation copyrights to 2-clause BSD 2014-03-24 13:48:04 +00:00
x86bios Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs. 2011-11-07 15:43:11 +00:00