sysctl - Add support for CTLTYPE_BIT32 and BIT64

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 27 November 2019 23:54 EST

- Add support for CTLTYPE_BIT32 and CTLTYPE_BIT64.

- In the switch() when you mask against CTLTYPE, the case statements should use CTLTYPE_BIT32(0) and CTLTYPE_BIT64(0).

When generating the 'kind' field etc, use CTLTYPE_BIT32(bitno) or CTLTYPE_BIT64(bitno).

268aed1e2d sysctl - Add support for CTLTYPE_BIT32 and BIT64
sbin/sysctl/sysctl.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Upstream: gitweb.dragonflybsd.org


  • Share