Date: Thu, 15 Dec 2016 21:18:20 +0100 From: Ed Schouten <ed@nuxi.nl> To: "Conrad E. Meyer" <cem@freebsd.org> Cc: Ed Schouten <ed@freebsd.org>, src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org, Christian Schwarz <me@cschwarz.com> Subject: Re: svn commit: r310116 - head/sys/kern Message-ID: <CABh_MKkh1R2C4Uf%2BUAHWRNqzSGfvrPw-2eU9=JGGGAM_8Ve8bA@mail.gmail.com> In-Reply-To: <CAG6CVpV3APs_%2Bz7Q-ZSqWSLNh7xMyKqMVjc6vXybg9fxDL%2BfvA@mail.gmail.com> References: <201612151545.uBFFjBEL070679@repo.freebsd.org> <CAG6CVpV3APs_%2Bz7Q-ZSqWSLNh7xMyKqMVjc6vXybg9fxDL%2BfvA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Conrad, [ + Christian Schwarz ] 2016-12-15 21:00 GMT+01:00 Conrad Meyer <cem@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@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABh_MKkh1R2C4Uf%2BUAHWRNqzSGfvrPw-2eU9=JGGGAM_8Ve8bA>