Subject: Re: CVS commit: basesrc/lib/libkvm
To: Matthias Drochner <M.Drochner@fz-juelich.de>
From: Andrew Brown <atatat@atatdot.net>
List: source-changes
Date: 09/17/2002 17:05:40
>> using the value of machdep.booted_kernel from sysctl()
>
>Hmm - isn't this what the "getbootfile()" in libutil is
>made for?

mmm...probably, though that would require any use of libkvm to link
libutil as well.

>I don't like either of these uses of the sysctl - IMHO there
>should be an md layer of translation which is best done at
>script level somewhere in /etc/rc/d/* (after all it is a
>"machdep" sysctl), but _if_ we are going to fix things it
>would be easier to fix at one place only.

yah, it's machdep, that's why i have #ifdef's around the code i wrote,
and a few simple tests to see if it looks like a reasonable thing to
use as a symbol file.

granted, i don't have the call to secure_path() that getbootfile()
has...

i can't offer much of a better solution, though.  :-/

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
werdna@squooshy.com       * "information is power -- share the wealth."