HomeFreeBSD

cpuset(3): Move cpuset's parselist function into libutil

Description

cpuset(3): Move cpuset's parselist function into libutil

In order to allow to add cpuset(2) functionality to more utilities than just
cpuset(1) move the parselist code into libutil

While here, make the code a little more "library" friendly, by returning a range
of various errors so that the consumer can check for them and report appropriate
error message to the users

(One of the planed usage is the jail(8) utility)

Reviewed by: jilles
Differential Revision: https://reviews.freebsd.org/D12873

Details

Provenance
baptAuthored on Jun 1 2023, 9:16 PM
Reviewer
jilles
Differential Revision
D12873: Move cpuset's parselist function into libutil
Parents
rG8a2af0b469b6: nlsysevent: add a genetlink(4) module to report kernel events
Branches
Unknown
Tags
Unknown