*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> getbootfile (3)              
Title
Content
Arch
Section
 

GETBOOTFILE(3)

Contents


NAME    [Toc]    [Back]

     getbootfile - get the name of the booted kernel file

LIBRARY    [Toc]    [Back]

     System Utilities Library (libutil, -lutil)

SYNOPSIS    [Toc]    [Back]

     #include <util.h>

     const char *
     getbootfile(void);

DESCRIPTION    [Toc]    [Back]

     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.

SEE ALSO    [Toc]    [Back]

      
      
     secure_path(3), sysctl(3)

HISTORY    [Toc]    [Back]

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

BSD                              April 6, 2001                             BSD
[ Back ]
 Similar pages
Name OS Title
kldunload FreeBSD unload a file from the kernel
getbootfile FreeBSD get kernel boot file name
kldload FreeBSD load a file into the kernel
VHOLD NetBSD kernel representation of a file or directory
vhold NetBSD kernel representation of a file or directory
vref NetBSD kernel representation of a file or directory
vput NetBSD kernel representation of a file or directory
vget NetBSD kernel representation of a file or directory
holdrele NetBSD kernel representation of a file or directory
HOLDRELE NetBSD kernel representation of a file or directory
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service