HomeFreeBSD

Add _IOC_NEWLEN() and _IOC_NEWTYPE() macros.

Description

Add _IOC_NEWLEN() and _IOC_NEWTYPE() macros.

These macros take an existing ioctl(2) command and replace the length
with the specified length or length of the specified type respectively.
These can be used to define commands for 32-bit compatibility with fewer
opportunities for cut-and-paste errors then a whole new definition.

Reviewed by: cem, kib
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14706

Details

Provenance
brooksAuthored on
Reviewer
cem
Differential Revision
D14706: Add _IOC_NEWLEN() and _IOC_NEWTYPE() macros.
Parents
rS331076: libdtrace: Fix another uninitialized dtt_flags UB
Branches
Unknown
Tags
Unknown