summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/libc
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-06-02 19:53:53 +0000
committermav <mav@FreeBSD.org>2014-06-02 19:53:53 +0000
commitcb97f6171bff4d794b74c72371ffea386b90b6e6 (patch)
tree38ff4438d51af2ab2148bf358fce087b1b03facc /tools/regression/lib/libc
parent048787c576562e75248e43e070a4775d874e92b2 (diff)
downloadFreeBSD-src-cb97f6171bff4d794b74c72371ffea386b90b6e6.zip
FreeBSD-src-cb97f6171bff4d794b74c72371ffea386b90b6e6.tar.gz
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. MFC after: 1 month
Diffstat (limited to 'tools/regression/lib/libc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud