I guess the 'brute force' approach would be to repeatedly keep reading
the relevant /sys/class/... file - however that's clearly not the
'correct' approach!!!
I've done a bunch of google-research, and I believe this is the
nearest I've got to the right answer:
http://www.google.co.uk/search?hl=en&q=sysfs+inotify+poll+select
However I'm not familiar with low-level Linux programming, so can't be
bothered to learn enough to 'go further'... hopefully someone else can
help out :)
From what (little) I've read I think it should all be possible using
syscalls, making glibc/dietlibc unnecessary.
Lurch
Dunno, I'm not familiar with low-level linux programming... ;)
I dunno what the select and poll functions do either, I just had a gut
feeling that there had to be a 'better' way of doing things than
repeatedly opening, reading & closing the file... *shrug*
Lurch