]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Round out SYSCTL macros to the full set of fixed-width types
authorConrad Meyer <cem@FreeBSD.org>
Sat, 7 Nov 2015 01:43:01 +0000 (01:43 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Sat, 7 Nov 2015 01:43:01 +0000 (01:43 +0000)
commitbe87839e5688687e5c3959e4b1705978686edb37
treed558106c47fef9b8603958038bc18c0f667ec212
parentdccb3981eb1ec7c2d01933598f9f4e50328cfaca
Round out SYSCTL macros to the full set of fixed-width types

Add S8, S16, S32, and U32 types;  add SYSCTL*() macros for them, as well
as for the existing 64-bit types.  (While SYSCTL*QUAD and UQUAD macros
already exist, they do not take the same sort of 'val' parameter that
the other macros do.)

Clean up the documented "types" in the sysctl.9 document.  (These are
macros and thus not real types, but the manual page documents intent.)

The sysctl_add_oid(9) arg2 has been bumped from intptr_t to intmax_t to
accommodate 64-bit types on 32-bit pointer architectures.

This is just the kernel support piece; the userspace sysctl(1) support
will follow in a later patch.

Submitted by: Ravi Pokala <rpokala@panasas.com>
Reviewed by: cem
Relnotes: no
Sponsored by: Panasas
Differential Revision: https://reviews.freebsd.org/D4091
share/man/man9/Makefile
share/man/man9/sysctl.9
share/man/man9/sysctl_add_oid.9
sys/kern/kern_sysctl.c
sys/sys/sysctl.h