getbootfile man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

GETBOOTFILE(3)		 BSD Library Functions Manual		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)

HISTORY
     The getbootfile() function call appeared in FreeBSD 2.0.

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

BSD			       September 2, 2008			   BSD
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net