I've added support for parsing /proc/cpuinfo on Linux machines (if the file/procfs is present) to uname.c... This results in the CPU modelname as identified by the Kernel (i.e. "i686 Pentium II (Deschutes)" or "i686 AMD Athlon(tm) MP Processor 1800+" or "i686 Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz", etc...) being appended to the architecture, instead of the generic "i686 unknown" for these instances :)
 
If procfs is unsupported on the system or /proc/cpuinfo is not present / readable, the annoying old "<insert architecture here> unknown" text will be printed. :)
 
I conforms to GNU coding standards as best I understand them. Let me know if the code is at all useful and if there's anything you need from me?
 
 
 Thanks,
  Andon M. Coleman

Attachment: uname.c
Description: Binary data

_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils


Reply via email to