Daca vrei sa afli numerul de CPU's & Co, sysconf(3) e prietenul tau:
$info libc -> Resource Usage And Limitation -> Processor Resources
sau
$man 3 sysconf


Ionut

On Fri, Feb 22, 2002 at 07:25:53PM +0200, Ciprian Iftode wrote:
> On Fri, 2002-02-22 at 19:15, Teodor Cimpoesu wrote:
> > Hi Ciprian!
> > On Fri, 22 Feb 2002, Ciprian Iftode wrote:
> > 
> > > dintr-un prog in c vreau sa aflu `cat /proc/cpuinfo|grep process|wc -l`
> > > este vreo functie/ceva... sau ma apuc eu de "codat"?
> > > 
> > Pai ce-i asa de greu? :) deschizi fisierul si citesti o linie.
> Been there && done that.. Eu intrebam.. in caz ca poate este ceva
> implementatat deja in sensul asta... 
> 
> -- 
> Best regards
> Ciprian Iftode
> 
> Professional Systems Romania
> 35 Moara de Foc, 6600, Iasi 
> phone/fax: +40-32-219907
> 
> "Testing can prove the presence of bugs, but not their absence." -
> Dykstra
> 
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
> unsubscribe from this list.

-- 
***************
* Ionut Georgescu
* http://www.physik.tu-cottbus.de/~george/
* Registered Linux User #244479
*
* "In Windows you can do everything Microsoft wants you to do; in Unix you
*                can do anything the computer is able to do."

---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui