Results 1 to 2 of 2
I need to gather CPU and network interface stats from a C program. Is there a more portable way to get the CPU model name than reading the "/proc/cpuinfo" file? ...
- 12-01-2008 #1Just Joined!
- Join Date
- Nov 2008
- Posts
- 2
Getting CPU Information from C program
I need to gather CPU and network interface stats from a C program. Is there a more portable way to get the CPU model name than reading the "/proc/cpuinfo" file? How would I get this information from a non-Linux OS or from Windows using C?
Also, is there a system call I can make from C to get the number of packets received and sent from eth0 without having to read the "/proc/net/devs" file?
Thanks in advance,
BT
- 12-01-2008 #2


Reply With Quote
