aboutsummaryrefslogtreecommitdiff
path: root/bin/nproc
Commit message (Collapse)AuthorAgeFilesLines
* nproc.1: Fix "first appeared in" detailsMateusz Piotrowski2023-06-021-2/+2
| | | | | | nproc(1) has been MFC'ed into 13-STABLE and made it into 13.2-RELEASE. MFC after: 3 days
* nproc: denote an incompatiblity with LinuxMateusz Guzik2023-02-152-2/+7
| | | | | | | | | On Linux _NPROCESSORS_CONF reports CPU threads disabled by the kernel, while it does not on FreeBSD. Flip _NPROCESSORS_ONLN to _NPROCESSORS_CONF. While it keeps reporting the same value, it will automagically unbreak should someone change the above.
* man: some typesetting and style fixes for recent additionsKonstantin Belousov2023-02-111-1/+2
| | | | | | | | | Mostly start each sentence from a new line. Also add more pretty typesetting to cdce(4). Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D38501
* Add nproc(1)Mateusz Guzik2023-02-083-0/+190
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