Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: basesrc/lib/libkvm



>> 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@localhost             * "ah!  i see you have the internet
twofsonet%graffiti.com@localhost (Andrew Brown)                that goes 
*ping*!"
werdna%squooshy.com@localhost       * "information is power -- share the 
wealth."



Home | Main Index | Thread Index | Old Index