freebsd-dev/sys/compat
Brooks Davis ed34a7fcf2 Move 32-bit compat support for FIODGNAME to the right place.
ioctl(2) commands only have meaning in the context of a file descriptor
so translating them in the syscall layer is incorrect.

The new handler users an accessor to retrieve/construct a pointer from
the last member of the passed structure and relies on type punning to
access the other member which requires no translation.

Unlike r339174 this change supports both places FIODGNAME is handled.

Reviewed by:	kib
Obtained from:	CheriBSD
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D17475
2018-10-26 17:59:25 +00:00
..
cloudabi Implement O_BENEATH and AT_BENEATH. 2018-10-25 22:16:34 +00:00
cloudabi32 Regenerated assorted syscall related files after: 2018-10-09 20:42:17 +00:00
cloudabi64 Regenerated assorted syscall related files after: 2018-10-09 20:42:17 +00:00
freebsd32 Move 32-bit compat support for FIODGNAME to the right place. 2018-10-26 17:59:25 +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 Fix output of linprocfs stat entry 2018-06-22 00:02:05 +00:00
linsysfs Create PCI_MATCH and pci_match_device 2018-07-07 15:25:11 +00:00
linux Implement O_BENEATH and AT_BENEATH. 2018-10-25 22:16:34 +00:00
linuxkpi/common Define linuxkpi readq for 64-bit architectures. It is used by drm-kmod. 2018-10-22 20:55:35 +00:00
ndis Eliminate kmem_alloc_contig()'s unused arena parameter. 2018-08-20 15:57:27 +00:00
netbsd sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
x86bios x86bios: use M_NOWAIT with mallocs 2018-09-13 07:04:00 +00:00