How do I get Linux hardware and system info via a C library? -


i'm trying implement system sends via bluetooth sockets, information current system (in fact, linux server). back-end code in c. i'd know if there's available library info cpu temperature, disk usage , process running, name few inside c code. if it's not possible, kind of alternatives suggest me ?

to find disk usages - see lstat(), pick st_size size of file , disk usages. no of running processes found reading /proc, running processes has pidno under /proc. and, currently, i'm unaware of how cpu temperature. but, can cpufreq related info /sys/devices/system/cpu/cpufreq.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -