On Tue, Jan 19, 2016 at 1:58 PM, Roberto Alejandro Espi Munoz <raespi@xxxxxxx> wrote: > The error is produced when the write operation doesn't return the same > number of bytes as the one requested to write. Is there any other way of > checking a specific error message on files associated with devices? > > if (write( uinputDev, &event, sizeof(struct input_event)) != sizeof( struct > input_event) ) > { > fprintf(stderr, "Error on send_event"); > return -1; > } 1. Could you please stop top-posting 2. man errno; man strerror 3. I wonder what was the return value from write() and what is sizeof(struct inptu_event) on your system. 4. Please do take care when describing your problem. In your original email you said that "... the uinput device fails to open". 5. Is it system with 64 bit kernel and 32 bit userspace by any chance? Thanks. > > On 01/19/2016 04:36 PM, Dmitry Torokhov wrote: >> >> On Tue, Jan 19, 2016 at 09:55:00AM -0500, Roberto Alejandro Espi Munoz >> wrote: >>> >>> Bump ... any other insights or suggestions I could try? >>> >> You can check what error you are getting when trying to open the device >> and that might give you idea. >> >> Thanks. >> > > -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html