1 |
On 14-12-2016 13:01:16 -0500, Doug Freed wrote: |
2 |
> On Wed, Dec 14, 2016 at 12:48 PM, Nathan Zachary |
3 |
> <nathanzachary@g.o> wrote: |
4 |
> > On 14/12/16 10:11, Doug Freed wrote: |
5 |
> >>> I somehow doubt that would give me the expected number only, and I lack |
6 |
> >>> a BSD install handy to test it. |
7 |
> >> $(sysctl -n hw.ncpu) |
8 |
> >> |
9 |
> > I don't know that the sysctl command works universally: |
10 |
> > |
11 |
> > # sysctl -n hw.ncpu |
12 |
> > sysctl: cannot stat /proc/sys/hw/ncpu: No such file or directory |
13 |
> > |
14 |
> |
15 |
> It's BSD-specific (Darwin may have it too, but I'm not in OS X at the |
16 |
> moment, so I can't check), which pretty much describes this branch in |
17 |
> the codepath as well. Linux users will have the nproc command from |
18 |
> coreutils. |
19 |
|
20 |
Yes, Darwin has it too, but the tool lives in /usr/sbin instead: |
21 |
|
22 |
https://gitweb.gentoo.org/repo/proj/prefix.git/tree/scripts/bootstrap-prefix.sh#n1987 |
23 |
|
24 |
Fabian |
25 |
|
26 |
|
27 |
-- |
28 |
Fabian Groffen |
29 |
Gentoo on a different level |