1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/sys/compat/freebsd32
Alexander Motin fcaf473cfc 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
2014-06-02 19:53:53 +00:00
..
freebsd32_capability.c Update kernel inclusions of capability.h to use capsicum.h instead; some 2014-03-16 10:55:57 +00:00
freebsd32_ioctl.c Overhaul CAM SG driver IOCTL interfaces. 2014-06-02 19:53:53 +00:00
freebsd32_ioctl.h Overhaul CAM SG driver IOCTL interfaces. 2014-06-02 19:53:53 +00:00
freebsd32_ipc.h
freebsd32_misc.c In freebsd32_sendmsg(), replace the call to sockargs() followed by a 2014-04-05 18:56:01 +00:00
freebsd32_misc.h Move the PAIR32TO64() macro and the RETVAL_HI/RETVAL_LO defines to a 2013-08-18 13:34:11 +00:00
freebsd32_proto.h Regen per r263318. 2014-03-18 21:34:11 +00:00
freebsd32_signal.h Move the convert_sigevent32() utility function into freebsd32_misc.c 2013-07-21 19:33:48 +00:00
freebsd32_syscall.h Regen per r263318. 2014-03-18 21:34:11 +00:00
freebsd32_syscalls.c Regen per r263318. 2014-03-18 21:34:11 +00:00
freebsd32_sysent.c Regen per r263318. 2014-03-18 21:34:11 +00:00
freebsd32_systrace_args.c Regen per r263318. 2014-03-18 21:34:11 +00:00
freebsd32_util.h
freebsd32.h Add an kinfo sysctl to retrieve signal trampoline location for the 2013-11-26 19:47:09 +00:00
Makefile
syscalls.conf
syscalls.master Remove dead code from umtx support: 2014-03-18 21:32:03 +00:00