aboutsummaryrefslogtreecommitdiff
path: root/bin/cpuset
Commit message (Collapse)AuthorAgeFilesLines
* libutil: Move cpuset(1) domain policy parsing code into libutilBojan Novković2025-07-272-151/+4
| | | | | | | | | | | | | | cpuset(1) implements a domainset(9) policy parser that is used to translate a <policy>:<domain_list> string into a domainset_t mask and a valid domainset policy. This change moves the domainset parsing code into a new cpuset.c function - 'domainset_parselist'. The existing cpuset.c code was refactored into a generalized list parsing function which is now used to parse both CPU sets and domain sets. This is the same approach used in cpuset(1). Reviewed by: markj, ziaee (manpages) Differential Revision: https://reviews.freebsd.org/D46607
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* Use proper convention for relative path linkingEnji Cooper2023-08-181-1/+1
| | | | | | | | | | | | | | | | | The change made in e835ee68e13361b841c983fa4a49dd6c19dcdec4 did not follow the convention for relative path symlinks. Per the convention, paths be prefixed with `${BINDIR}`, not `/bin/`. `${BINDIR}` can be modified from the Makefile, on the command line, or in the environment. This convention is the canonically correct way to do things. This follows the convention used in `bin/pkill/Makefile`, `bin/timeout/Makefile`, etc. MFC after: 1 week MFC with: f05948d4e98d3abd0965a2994e9e42add6908ff3 MFC with: e835ee68e13361b841c983fa4a49dd6c19dcdec4 Requested by: jrtc27, kevans
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Link /usr/bin/cpuset to a relative pathEnji Cooper2023-08-111-1/+1
| | | | | | | | | | | This creates an appropriate symlink instead of a potentially incorrect path pointing to the absolute path for cpuset(8) on the host. MFC after: 2 weeks MFC with: f05948d4e98d3abd0965a Requested by: imp Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D41419
* cpuset(8): move to /bin/Enji Cooper2023-08-114-0/+730
Summary: This change moves /usr/bin/cpuset to /bin/cpuset so it is more readily available on hosts where the /usr partition might not be mounted at the time / has been mounted. Remove some complexity from rc.subr(8) since /bin is assumed to always be present if/when / is mounted. MFC after: 2 weeks MFC with: 0661f93892a2, 271d552379af Test Plan: - Test out rc.subr change. - Confirm that the installation logic does what's needed. Relnotes: yes (moving cpuset may impact strict file permissions/mode checking) Reviewers: kevans Subscribers: imp Differential Revision: https://reviews.freebsd.org/D40057