sysctl(3) and sysctl(8) discrepancies

2006-04-19 Thread Mathieu Prevot
Hello, I have FreeBSD 6.1-RC #27: Wed Apr 19 02:08:00 CEST 2006 amd64 and I have 3 different outputs about hw.ncpu: `sysctl hw.ncpu` gives me: 'hw.ncpu: 2' and I have: hw.ncpu = 6 hw.ncpu = 3 with: #include stdlib.h #include sys/types.h #include sys/sysctl.h main() { int ncpu[1];

Re: sysctl(3) and sysctl(8) discrepancies

2006-04-19 Thread Dan Nelson
In the last episode (Apr 19), Mathieu Prevot said: Hello, I have FreeBSD 6.1-RC #27: Wed Apr 19 02:08:00 CEST 2006 amd64 and I have 3 different outputs about hw.ncpu: `sysctl hw.ncpu` gives me: 'hw.ncpu: 2' and I have: hw.ncpu = 6 hw.ncpu = 3 with: #include stdlib.h