Skip to contentSkip to conversation

Add argument-less ppdev ioctls to compat_ioctl.h

PATCH New Petr Vandrovec 1 participant 1 message Nov 6, 2004 VFS

lore
Share & tools
lore
#0 lore raw

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

fs/compat_ioctl.c +1 -0
diff -urdN linux/fs/compat_ioctl.c linux/fs/compat_ioctl.c
@@ -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
diff -urdN linux/include/linux/compat_ioctl.h linux/include/linux/compat_ioctl.h
@@ -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)