Hey,
those patches look quite good to me now, seems to work here as expected.
thanks for the review. Since there have been no further complains I committed the patches.
Just one note: One of those warnings has gone now with the _GNU_SOURCE stuff. However, getline is also being used in funcitions.c:174 (so adding the define to functions.c too, got rid of the second warning for instance).
I made a seperate patch for the _GNU_SOURCE stuff as this does not really part of the sysfs conversion.
Regards, Marek