:man| Alphabetical   Categories   About us 
 
GETBOOTFILE (3) | C library functions | Unix Manual Pages | :man

NAME

getbootfile - get kernel boot file name

CONTENTS

Library
Synopsis
Description
Return Values
See Also
History
Bugs

LIBRARY


.Lb libc

SYNOPSIS


.In 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

BUGS

 
Created by Blin Media, 2008-2013