On Tue, Mar 12, 2002 at 08:23:57PM -0600, Justin A. Kolodziej wrote:
> I can answer that.  Add this to the bottom of EnvLinux:
> 
> int GetNumProcessors() {
>     return (1);
> }
> 
> It's OK, they just return 2 for Irix ;-)
> 
> Exercise for the reader: what's the *correct* way to implement this 
> function?

Not too helpful from a C program, but from a shell script the following
works.  Maybe there's some way to adapt this idea?

cat /proc/cpuinfo | egrep -e '^processor' | wc -l

-- 
Tell that to the Marines!

_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to