IPnom Home • Manuals • FreeBSD

 FreeBSD Man Pages

Man Sections:Commands (1)System Calls (2)Library Functions (3)Device Drivers (4)File Formats (5)Miscellaneous (7)System Utilities (8)
Keyword Live Search (10 results max):
 Type in part of a command in the search box.
 


getbootfile(3)

NAME

     getbootfile -- get kernel boot file name


LIBRARY

     Standard C Library (libc, -lc)


SYNOPSIS

     #include <paths.h>

     const char *
     getbootfile(void);


DESCRIPTION

     The getbootfile() function retrieves the full pathname of the file from
     which the current kernel was loaded, and returns a static pointer to the
     name.  A read/write interface to this information is available via the
     sysctl(3) MIB variable ``kern.bootfile''.


RETURN VALUES

     If the call succeeds a string giving the pathname is returned.  If it
     fails, a null pointer is returned and an error code is placed in the
     global location errno.


SEE ALSO

     sysctl(3)


BUGS

     If the boot blocks have not been modified to pass this information into
     the kernel at boot time, the static string ``/boot/kernel/kernel'' is
     returned instead of the real boot file.


HISTORY

     The getbootfile() function appeared in FreeBSD 2.0.

FreeBSD 5.4		      September 23, 1994		   FreeBSD 5.4

SPONSORED LINKS




Man(1) output converted with man2html , sed , awk