Subject: Re: sysctl constants (was Re: sysctl knob to let sugid processes dump core (pr 15994))
To: Elad Efrat <elad@NetBSD.org>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 01/14/2006 13:59:53
--GvznHscUikHnwW2p
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jan 14, 2006 at 10:40:06AM +0200, Elad Efrat wrote:
> YAMAMOTO Takashi wrote:
>=20
> > is it still desirable to assign these constants these days?
> > or are they superseded by CTL_CREATE?
>=20
> I would expect the #defines to be still needed (as we use them
> when calling sysctl_createv) but IIRC the FOO_NAMES was used
> by sysctl(8) before the move to the new sysctl(9)... though I
> never really bothered checking.
>=20
> If Andrew says they're not needed I'll do a sweep (!) of removing
> them, if desired.

The constants are historical.  No new constant should be defined.

What is there exists to keep binary compatibility.  New nodes should
be created with CTL_CREATE.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--GvznHscUikHnwW2p
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQ8j1ydgoQloHrPnoAQKSWwgApFXPKzDP0QC1TYs+T/YK/2iSbDn3AnGi
6m+KOhqMxo+ANGzqSluzdqyVGUcJcfrig4JAh/UnNKIfKzH0pR5EX++fUG0r4ixd
flnLZOtfmD/h/9ETv0U8/ajnohlhH4xahGCcKzF40AZgHDNdGztraZz7qHTSlpOV
DsRSLXKYwKOFFLfGk1m/olPxccR0v3FwfLUKL6hhZN3qO8Qkvnupa53XqRQB9TCo
YF4vVAJzUDZB/JhURJZ22BJRA5crm2hz5VmZLR+wNOhgfdtW2lqZDJlt54wcve9y
hHmem30mCBC/4zCjRmm6NoVsPqRYrNCDnT5X/bVbAXtuB8xUCF3htg==
=4ogc
-----END PGP SIGNATURE-----

--GvznHscUikHnwW2p--