[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uname cpu identification addition...

From: Kaldaien Si`Kopaien
Subject: uname cpu identification addition...
Date: Mon, 13 Jan 2003 23:45:59 -0500

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?
  Andon M. Coleman

Attachment: uname.c
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]