-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question on keyboard event devices in linux #66
Comments
Hello @mik1234mc, Thank you for your interest in MIcrowindows. I would suggest using kbd_event.c and moving it out of the deprecated/ folder and see whether it works for you unmodified, or with small changes. Let me know if you need additional help. Than you! |
Thank you for fast reply, Greg. The initial bring-up was quite seamless. I just needed to delete some init code in the kbd_event.c. In the end, I migrated to specify the device via env variable. See my patch below if interested.
|
This seems unsafe. You might want to check your input before attempting to open it. |
The open() call is followed by:
Isn't this sufficient check? |
I think @lpsantil was referring to the potential security issue of opening a pathname sourced from an environment variable. On another matter I just noticed, the folllowing code returns 'errno' on an error; it should return -1:
The 'errno' return, always being positive, will be confused by Microwindows as having returned a valid keyboard file descriptor with the value of the positive errno value. All places in this keyboard driver that return errno should return -1. |
Hi all,
I have a custom keypad served with uinput (or now with libevdev) in linux-arm host. This keypad is not hooked to any tty, but it creates just /dev/input/eventX device. I checked the repo and kbd_event.c is now deprecated. My question is what is the recommended solution to my setup? Should I bring back kbd_event.c into the compilation or there is another way the event device can be somehow redirected to tty and then standard kbd_tty.c driver could be used?
I dont use X11.
Thank you for you suggestions,
Michael
The text was updated successfully, but these errors were encountered: