|laziness, impatience, and hubris|
How to do ioctl?by morgon (Deacon)
|on May 15, 2014 at 19:06 UTC||Need Help??|
morgon has asked for the
wisdom of the Perl Monks concerning the following question:
I would like to grab a Linux input-device via the EVIOCGRAB-ioctl call.
This is what's in my /usr/include/linux/input.h:
So I tried the naive approach first:
But that prints "Invalid argument".
So then I generated the ph-files (they were not generated when I installed perl via perlbrew) with h2ph and ran it like this:
But this again results in "Invalid argument".
So how do I do this?
I am running 5.18.1 on Debian testing.