From owner-cvs-all Sat Dec 15 18:55:45 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BDD8F37B405; Sat, 15 Dec 2001 18:55:41 -0800 (PST) Received: (from luigi@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBG2tfi90738; Sat, 15 Dec 2001 18:55:41 -0800 (PST) (envelope-from luigi) Message-Id: <200112160255.fBG2tfi90738@freefall.freebsd.org> From: Luigi Rizzo Date: Sat, 15 Dec 2001 18:55:41 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys sysctl.h src/sys/kern kern_sysctl.c src/sbin/sysctl sysctl.8 sysctl.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG luigi 2001/12/15 18:55:41 PST Modified files: sys/sys sysctl.h sys/kern kern_sysctl.c sbin/sysctl sysctl.8 sysctl.c Log: Add code to export and print the description associated to sysctl variables. Use the -d flag in sysctl(8) to see this information. Possible extensions to sysctl: + report variables that do not have a description + given a name, report the oid it maps to. Note to developers: have a look at your code, there are a number of variables which do not have a description. Note to developers: do we want this in 4.5 ? It is a very small change and very useful for documentation purposes. Suggested by: Orion Hodson Revision Changes Path 1.42 +3 -1 src/sbin/sysctl/sysctl.8 1.39 +16 -4 src/sbin/sysctl/sysctl.c 1.120 +27 -0 src/sys/kern/kern_sysctl.c 1.101 +2 -1 src/sys/sys/sysctl.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message