]> 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>
Wed, 8 Feb 2023 19:47:33 +0000 (19:47 +0000)
commit48bfd3597654490cdc43bf0f591a539d3a28b590
tree264ff1ea1a6b8a32ec05d37aa45039d98be156c7
parent647f2d2bc0cb9357ac083bf2aae4b669167dd66b
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
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