Add argument-less ppdev ioctls to compat_ioctl.h
PATCH 1/1 Add argument-less ppdev ioctls to compat_ioctl.h
Hello Andrew,
ppdev's ioctls are not available for 32bit apps on 64bit systems. There are
four ioctls which take no argument at all (so they are compatible between 32bit and 64bit), these numbers do not clash with any other ioctl code, and so I see no reason why not applying patch below.
It solves problem VMware users are faced on 64bit systems if they want to
use direct access to the parallel port.
Thanks,
Petr Vandrovec
Signed-off-by Petr Vandrovec <[email protected]>
fs/compat_ioctl.c +1 -0
@@ -96,6 +96,7 @@#include <asm/module.h> #include <linux/soundcard.h> #include <linux/lp.h> +#include <linux/ppdev.h> #include <linux/atm.h> #include <linux/atmarp.h>
include/linux/compat_ioctl.h +5 -0
@@ -340,6 +340,11 @@ COMPATIBLE_IOCTL(PPPOEIOCDFWD) /* LP */ COMPATIBLE_IOCTL(LPGETSTATUS) +/* ppdev */ +COMPATIBLE_IOCTL(PPCLAIM) +COMPATIBLE_IOCTL(PPRELEASE) +COMPATIBLE_IOCTL(PPEXCL) +COMPATIBLE_IOCTL(PPYIELD) /* CDROM stuff */ COMPATIBLE_IOCTL(CDROMPAUSE) COMPATIBLE_IOCTL(CDROMRESUME)