It just occurred to me that there could be another intention behind the ioctl call. Calling ioctl(EVIOCGVERSION) on the /dev/input device is a way for the code to verify it's actually sending messages to a /dev/input file, vs some other file. So, while not documented in the source code, this call may actually have value and protect the caller from inadvertently specifying an invalid file.
-- Nick On Mon, Aug 27, 2018 at 11:31 AM Nick Kralevich <[email protected]> wrote: > > The version number queried by this ioctl call is never used. > Delete it. > > -- Nick -- Nick Kralevich | [email protected] _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
