Re: [Toybox] [PATCH] sendevent: remove ioctl call

2018-08-27 Thread Nick Kralevich
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 m

[Toybox] [PATCH] sendevent: remove ioctl call

2018-08-27 Thread Nick Kralevich
The version number queried by this ioctl call is never used. Delete it. -- Nick From 3addf78f5670c24ed8f8f9717947bb24870ea0b5 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Mon, 27 Aug 2018 11:18:38 -0700 Subject: [PATCH] sendevent: remove ioctl call The version number queried by this ioctl