Date: Tue, 25 Apr 2000 23:00:13 -0400 (EDT) From: Garrett Wollman <wollman@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 Message-ID: <200004260300.XAA41744@khavrinen.lcs.mit.edu> In-Reply-To: <200004260236.TAA88048@freefall.freebsd.org> References: <200004260236.TAA88048@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 25 Apr 2000 19:36:54 -0700 (PDT), I wrote:
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004260300.XAA41744>
