Date: Fri, 08 Jan 1999 17:17:27 +0900 From: "Daniel C. Sobral" <dcs@newsguy.com> To: "Robert V. Baron" <rvb@cs.cmu.edu>, hackers@FreeBSD.ORG Subject: Re: testmain -> ficl ? Message-ID: <3695BF17.F21E24CE@newsguy.com> References: <19990107212146.A57893@hal.mpn.cp.philips.com> <yzszp7uqxe1.fsf@sicily.odyssey.cs.cmu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
"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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3695BF17.F21E24CE>