From owner-cvs-all Tue Apr 25 20: 0:24 2000 Delivered-To: cvs-all@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 817CF37B872; Tue, 25 Apr 2000 20:00:14 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id XAA41744; Tue, 25 Apr 2000 23:00:13 -0400 (EDT) (envelope-from wollman) Date: Tue, 25 Apr 2000 23:00:13 -0400 (EDT) From: Garrett Wollman Message-Id: <200004260300.XAA41744@khavrinen.lcs.mit.edu> To: cvs-committers@FreeBSD.org Cc: cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin Makefile src/usr.bin/getconf Makefile confstr.gperf getconf.1 getconf.c getconf.h pathconf.gperf sysconf.gperf In-Reply-To: <200004260236.TAA88048@freefall.freebsd.org> References: <200004260236.TAA88048@freefall.freebsd.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < Hello, getconf. This is a slight reinvention of the > wheel^H^H^H^H^HPOSIX.2 and X/Open utility, and rather > more complicated than necessary. The reason why I say it's ``more complicated than necessary'' is that in reality, this utility is not speed-critical, so there was no particular reason to use gperf(1) to generate an optimized search structure -- a simple array of variable descriptors (as in {Net,Open}BSD) would have done. But, I had already done the work (a couple hours' worth, mostly involved in deciphering SUSv2) so I figured I might as well check mine in. Unlike J.T. Conklin's implementation, mine does not rely on any compile-time constants at all -- all of the values are determined dynamically using confstr(), pathconf(), or sysconf(). (This may mean I missed some, if there are any which exist *only* as constants.) -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message