HomeFreeBSD

sysctl: Refactor function parsefile()

Description

sysctl: Refactor function parsefile()

Let the caller open the file and pass in the file handler. This can
benefit an upcoming change so that we will have cleaner logic.

No functional change intended.

Suggested by: markj
MFC after: 1 week

(cherry picked from commit 6193855fc76c591ffabe6168cd674e6ec0dafa8e)
(cherry picked from commit 4ef48d172bb11f01174fff871d69623eed59d626)

Details

Provenance
zleiAuthored on Thu, Jan 30, 6:20 PM
Parents
rGfa9926a62ae3: ip6addrctl(8): Teach ip6addrctl to attach and run itself in a jail
Branches
Unknown
Tags
Unknown