From owner-freebsd-hackers Fri Jan 8 03:50:27 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA11864 for freebsd-hackers-outgoing; Fri, 8 Jan 1999 03:50:27 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA11851 for ; Fri, 8 Jan 1999 03:50:24 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com by peach.ocn.ne.jp (8.9.1a/OCN) id UAA24192; Fri, 8 Jan 1999 20:49:39 +0900 (JST) Message-ID: <3695BF17.F21E24CE@newsguy.com> Date: Fri, 08 Jan 1999 17:17:27 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: pt-BR,ja MIME-Version: 1.0 To: "Robert V. Baron" , hackers@FreeBSD.ORG Subject: Re: testmain -> ficl ? References: <19990107212146.A57893@hal.mpn.cp.philips.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Robert V. Baron" wrote: > > 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] Adding to queue... :-) -- Daniel C. Sobral (8-DCS) dcs@newsguy.com "Heart like a Gabriel, pure and white as ivory, soul like a lucifer, black and cold as a piece of lead." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message