spkr-beep / beep

beep is a command line tool for linux that beeps the PC speaker
https://github.com/spkr-beep/beep
GNU General Public License v2.0
68 stars 11 forks source link

Verify that the the struct timespec part of the struct input_event is actually unused #38

Open ndim opened 10 months ago

ndim commented 10 months ago

The Linux struct input_event structure actually contains not only the .type, .code and .value members for EV_SND, SND_TONE and the frequency, but also a struct timespec.

We should verify that the struct timespec is ignored by the kernel. Otherwise, it might be possible to move the delays from userspace into the kernel, similar to the BSD API.