]> 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:06:41 +0000 (17:06 +0000)
commit31f9db72a35bb20ad01d792eaaa1d6048252ab38
treeef6837cc6b49cf2c24f62f954114a91d34243bfd
parent577a666c3c33def1d4b996575dc43f8567fdac5c
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.

Reviewed by: des
Reviewed by: pstef
Differential Revision: https://reviews.freebsd.org/D38386

(cherry picked from commit 48bfd3597654490cdc43bf0f591a539d3a28b590)
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