]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add _IOC_NEWLEN() and _IOC_NEWTYPE() macros.
authorbrooks <brooks@FreeBSD.org>
Fri, 16 Mar 2018 22:23:04 +0000 (22:23 +0000)
committerbrooks <brooks@FreeBSD.org>
Fri, 16 Mar 2018 22:23:04 +0000 (22:23 +0000)
commit108df59632116ec2b7ff660fac989cd953cc3173
treeda5b73e8dfbb84f576696ffd11a8076d7e000734
parentef1175daa3681ebbec3e44a4b7366d1cb8685d13
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
sys/sys/ioccom.h