Mark Hahn wrote:
> > I must be a bloomin' idiot. What is the parameter to pass to sysconf()
> > for number of CPUs? I read the sysconf man page and didn't find anything
> > that looked correct.
>
> this is exactly the sort of case where man pages are _not_
> what you should be reading. you already know the prototype, so:
> find /usr/include -print | xargs grep "#define _SC_"
>
> _SC_NPROCESSORS_ONLN sounds like what you want.
>
> use the source...
>
I wish I had know this before I wrote a function t oparse the /proc/cpuinfo..
however mine gets the cpuid to :-)
>
> -
> Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
> To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]
--
Joseph Acosta ........ SMP Linux 2.2.9 / RedHat 6.0
home: [EMAIL PROTECTED]
http://www.mindspring.com/~joeja
alias: [EMAIL PROTECTED]
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]