svn commit: r310116 - head/sys/kern

Ed Schouten ed at nuxi.nl
Thu Dec 15 20:18:53 UTC 2016


Hi Conrad,

[ + Christian Schwarz ]

2016-12-15 21:00 GMT+01:00 Conrad Meyer <cem at freebsd.org>:
> Can we please slap names on these numbers?  Even if we keep the
> existing numeric values?

Christian and I exchanged some emails the other day in which we
discussed the option of adding libc wrappers/bindings for all of these
functions. That way these constants would only be hardcoded in two
places: kern_sysctl.c and the function in libc.

That said, adding numerical constants for them in sysctl.h would also
be a good idea. Right now there is already CTL_UNSPEC, but I guess
that should be renamed to something like CTL_INTERNAL or something.

-- 
Ed Schouten <ed at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717


More information about the svn-src-head mailing list