From owner-freebsd-hackers Thu Jan 7 19:04:23 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA19025 for freebsd-hackers-outgoing; Thu, 7 Jan 1999 19:04:23 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from sicily.odyssey.cs.cmu.edu (SICILY.ODYSSEY.CS.CMU.EDU [128.2.185.138]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id TAA19006 for ; Thu, 7 Jan 1999 19:04:19 -0800 (PST) (envelope-from rvb+@sicily.odyssey.cs.cmu.edu) To: Jos Backus Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: testmain -> ficl ? References: <19990107212146.A57893@hal.mpn.cp.philips.com> From: "Robert V. Baron" Date: 07 Jan 1999 22:03:18 -0500 In-Reply-To: Jos Backus's message of Thu, 7 Jan 1999 21:21:46 +0100 Message-ID: Lines: 20 X-Mailer: Gnus v5.4.46/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jos Backus writes: > Since we have it in the tree anyway, would it make sense to always > build/install testmain and install it as, say, /usr/bin/ficl? Perhaps that > would encourage some people to start fiddling with it, e.g. to enhance the > /boot stuff? A few suggestions: How about a "cat" or "more" command. How about a "kldloaded" predicate. Suppose I want to load the coda coda.ko iff I don't have a kernel with it built in. But then when coda is in the kernel it is not an klm; it is the kernel. So the simplest way to do this is to rather have an "nm command" which returns the address and a testable predicate value indicating whether the lookup succeeded. I'd type: (if (not (nm "coda_vnodeop_entries")) (load "coda")) [obviously, I don't speak forth ... yet] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message