]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add nproc(1)
authorMateusz Guzik <mjg@FreeBSD.org>
Sat, 4 Feb 2023 23:33:48 +0000 (23:33 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Thu, 23 Feb 2023 17:51:07 +0000 (17:51 +0000)
commiteb9e9f1c2533a8b01446e14a46f45eb7b0cd71e2
tree36a32238b84eddcaf9c05d80b9359d4001f7cd2e
parent5e8827063b9f565697135b33399a64ca9f000a02
Add nproc(1)

This program prints the number of CPU threads it can run on, while
respecting cpusets (or not, depending on switches).

It aims to be compatible with nproc as found in GNU coreutils.

Approved by: re (cperciva)
Reviewed by: des
Reviewed by: pstef
Differential Revision: https://reviews.freebsd.org/D38386

(cherry picked from commit 48bfd3597654490cdc43bf0f591a539d3a28b590)
(cherry picked from commit 31f9db72a35bb20ad01d792eaaa1d6048252ab38)
bin/Makefile
bin/nproc/Makefile [new file with mode: 0644]
bin/nproc/nproc.1 [new file with mode: 0644]
bin/nproc/nproc.c [new file with mode: 0644]
usr.bin/cpuset/cpuset.1