- NetBSD Manual Pages
GETBOOTFILE(3) NetBSD Library Functions Manual GETBOOTFILE(3)
Powered by man-cgi (2021-03-02).
Maintained for NetBSD
by Kimmo Suominen.
Based on man-cgi by Panagiotis Christias.
getbootfile -- get the name of the booted kernel file
System Utilities Library (libutil, -lutil)
const char *
getbootfile() returns a static pointer to the full path name of the file
from which the current kernel was loaded. If it can not be determined,
or the file is not ``secure'' (see secure_path(3)), _PATH_UNIX from
<paths.h> is returned instead.
The getbootfile function call appeared in FreeBSD 2.0 and NetBSD 1.6.
NetBSD 5.0.1 April 6, 2001 NetBSD 5.0.1