HomeFreeBSD

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

Description

Move 32-bit compat support for CDIOREADTOCENTRYS 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 members which require no translation.

Reviewed by: kib (prior version), jhb
Approved by: re (rgrimes)
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Review: https://reviews.freebsd.org/D17378

Details

Provenance
brooksAuthored on
Reviewer
kib
Parents
rS339100: MFC r338682: lld: add -z interpose support
Branches
Unknown
Tags
Unknown