man.bsd.lv manual page server

Manual Page Search Parameters

GETBOOTFILE(3) Library Functions Manual GETBOOTFILE(3)

getbootfileget the name of the booted kernel file

library “libutil”

#include <util.h>

const char *
getbootfile(void);

() 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.

secure_path(3), sysctl(3)

The getbootfile() function call appeared in FreeBSD 2.0 and NetBSD 1.6.

May 4, 2010 NetBSD-9.2