Deleted Added
full compact
getbootfile.3 (108030) getbootfile.3 (131504)
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" From: @(#)gethostname.3 8.1 (Berkeley) 6/4/93
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" From: @(#)gethostname.3 8.1 (Berkeley) 6/4/93
33.\" $FreeBSD: head/lib/libc/gen/getbootfile.3 108030 2002-12-18 10:13:54Z ru $
33.\" $FreeBSD: head/lib/libc/gen/getbootfile.3 131504 2004-07-02 23:52:20Z ru $
34.\"
35.Dd September 23, 1994
36.Dt GETBOOTFILE 3
37.Os
38.Sh NAME
39.Nm getbootfile
40.Nd get kernel boot file name
41.Sh LIBRARY

--- 7 unchanged lines hidden (view full) ---

49.Fn getbootfile
50function retrieves the full pathname of the file from which the
51current kernel was loaded, and returns a static pointer to the name.
52A read/write interface to this information is available via the
53.Xr sysctl 3
54MIB variable
55.Dq Li kern.bootfile .
56.Sh RETURN VALUES
34.\"
35.Dd September 23, 1994
36.Dt GETBOOTFILE 3
37.Os
38.Sh NAME
39.Nm getbootfile
40.Nd get kernel boot file name
41.Sh LIBRARY

--- 7 unchanged lines hidden (view full) ---

49.Fn getbootfile
50function retrieves the full pathname of the file from which the
51current kernel was loaded, and returns a static pointer to the name.
52A read/write interface to this information is available via the
53.Xr sysctl 3
54MIB variable
55.Dq Li kern.bootfile .
56.Sh RETURN VALUES
57If the call succeeds a string giving the pathname is returned. If it
57If the call succeeds a string giving the pathname is returned.
58If it
58fails, a null pointer is returned and an error code is
59placed in the global location
60.Va errno .
61.Sh SEE ALSO
62.Xr sysctl 3
63.Sh BUGS
64If the boot blocks have not been modified to pass this information into
65the kernel at boot time, the static string
66.Dq Pa /boot/kernel/kernel
67is returned instead of the real boot file.
68.Sh HISTORY
69The
70.Fn getbootfile
71function appeared in
72.Fx 2.0 .
59fails, a null pointer is returned and an error code is
60placed in the global location
61.Va errno .
62.Sh SEE ALSO
63.Xr sysctl 3
64.Sh BUGS
65If the boot blocks have not been modified to pass this information into
66the kernel at boot time, the static string
67.Dq Pa /boot/kernel/kernel
68is returned instead of the real boot file.
69.Sh HISTORY
70The
71.Fn getbootfile
72function appeared in
73.Fx 2.0 .