#include <sys/ioctl.h>
-/* An ioctl request for a strange ioctl device driver. */
-#define IOCTL_REQUEST_BASE 0x12345670
+/* An ioctl request for a strange ioctl device driver.
+ The choice of values here needs to match the logic in
+ ML_(PRE_unknown_ioctl) and take into account that _IOC_NONE
+ is not == 0 everywhere. */
+#define IOCTL_REQUEST_BASE (0x12345670 | _IOC(_IOC_NONE,0,0,0))
int main(int argc, const char *argv[])
{
-Warning: noted but unhandled ioctl 0x12345670 with no size/direction hints.
+Warning: noted but unhandled ioctl 0x.2345670 with no size/direction hints.
This could cause spurious value errors to appear.
See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
-Warning: noted but unhandled ioctl 0x12345671 with no size/direction hints.
+Warning: noted but unhandled ioctl 0x.2345671 with no size/direction hints.
This could cause spurious value errors to appear.
See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
-Warning: noted but unhandled ioctl 0x12345672 with no size/direction hints.
+Warning: noted but unhandled ioctl 0x.2345672 with no size/direction hints.
This could cause spurious value errors to appear.
See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
-Warning: noted but unhandled ioctl 0x12345673 with no size/direction hints.
+Warning: noted but unhandled ioctl 0x.2345673 with no size/direction hints.
This could cause spurious value errors to appear.
See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
-Warning: noted but unhandled ioctl 0x12345674 with no size/direction hints.
+Warning: noted but unhandled ioctl 0x.2345674 with no size/direction hints.
This could cause spurious value errors to appear.
See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
-Warning: noted but unhandled ioctl 0x12345675 with no size/direction hints.
+Warning: noted but unhandled ioctl 0x.2345675 with no size/direction hints.
This could cause spurious value errors to appear.
See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
-Warning: noted but unhandled ioctl 0x12345676 with no size/direction hints.
+Warning: noted but unhandled ioctl 0x.2345676 with no size/direction hints.
This could cause spurious value errors to appear.
See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
-Warning: noted but unhandled ioctl 0x12345677 with no size/direction hints.
+Warning: noted but unhandled ioctl 0x.2345677 with no size/direction hints.
This could cause spurious value errors to appear.
See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
-Warning: noted but unhandled ioctl 0x12345678 with no size/direction hints.
+Warning: noted but unhandled ioctl 0x.2345678 with no size/direction hints.
This could cause spurious value errors to appear.
See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
-Warning: noted but unhandled ioctl 0x12345679 with no size/direction hints.
+Warning: noted but unhandled ioctl 0x.2345679 with no size/direction hints.
This could cause spurious value errors to appear.
See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.