[Top][All Lists]

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

uname cpu identification addition... (Re: Ancient code =P)

From: Kaldaien Si`Kopaien
Subject: uname cpu identification addition... (Re: Ancient code =P)
Date: Tue, 14 Jan 2003 01:04:06 -0500

I sent the same E-Mail earlier, only I forgot to integrate the code with a current copy of uname.c :) This ought to save some time, if it's at all useful - New code attached...
> 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

reply via email to

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