Date: Sat, 10 Aug 2002 12:56:45 -0700 (PDT) From: Maxime Henrion <mux@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_sysctl.c src/sys/sys sysctl.h Message-ID: <200208101956.g7AJujNp004551@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
mux 2002/08/10 12:56:45 PDT
Modified files:
sys/kern kern_sysctl.c
sys/sys sysctl.h
Log:
Introduce a new sysctl flag, CTLFLAG_SKIP, which will cause
sysctl_sysctl_next() to skip this sysctl. The sysctl is
still available, but doesn't appear in a "sysctl -a".
This is especially useful when you want to deprecate a sysctl,
and add a warning into it to warn users that they are using
an old interface. Without this flag, the warning would get
echoed when running "sysctl -a" (which happens at boot).
Revision Changes Path
1.131 +3 -0 src/sys/kern/kern_sysctl.c
1.108 +1 -0 src/sys/sys/sysctl.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208101956.g7AJujNp004551>
