Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 1995 12:23:34 -0400
From:      "Garrett A. Wollman" <wollman@lcs.mit.edu>
To:        Lyndon Nerenberg VE7TCP <lyndon@orthanc.com>
Cc:        freebsd-bugs@freefall.freebsd.org
Subject:   getbootfile()
Message-ID:  <9510091623.AA08502@halloran-eldar.lcs.mit.edu>
In-Reply-To: <199510080229.TAA20131@multivac.orthanc.com>
References:  <199510080229.TAA20131@multivac.orthanc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Sat, 07 Oct 1995 19:29:35 -0700, Lyndon Nerenberg VE7TCP <lyndon@orthanc.com> said:

> FreeBSD I can't see how it would be generally useful. Not having
> copies of the relevent POSIX standards at hand I'm curious as to
> how this information can be obtained portably (if at all). 

POSIX does not make any guarantees that there even is such a thing as
a file that has the kernel in it.  POSIX doesn't even guarantee that
there is a `kernel' at all.

> Is this
> routine being standardized at all? 

No.  Any code that attempts to play around with the kernel's namelist
is by definiton unportable.  If anybody else wants to follow my lead,
they are welcome to do so.

> It seems that sysctl(3) is a
> more logical place for this information to be obtained.

You are certainly welcome to retrieve the kern.bootfile MIB varaible
if you so desire.  You will probably find that only FreeBSD supports
this as well.

-GAWollman

--
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
Opinions not those of| It is a bond more powerful than absence.  We like people
MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9510091623.AA08502>