HomeFreeBSD

Move 32-bit compat support for FIODGNAME to the right place.

Description

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

Details

Provenance
brooksAuthored on
Reviewer
kib
Differential Revision
D17475: Move 32-bit compat support for FIODGNAME to the right place.
Parents
rS339778: Remove empty directories after r339776.
Branches
Unknown
Tags
Unknown