Deleted Added
full compact
realhostname.3 (131504) realhostname.3 (141846)
1.\" Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
2.\" 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.

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

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
2.\" 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.

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

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/lib/libutil/realhostname.3 131504 2004-07-02 23:52:20Z ru $
25.\" $FreeBSD: head/lib/libutil/realhostname.3 141846 2005-02-13 22:25:33Z ru $
26.\"
27.Dd April 6, 1999
28.Os
29.Dt REALHOSTNAME 3
30.Sh NAME
31.Nm realhostname
32.Nd "convert an IP number to the real host name"
33.Sh LIBRARY

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

50back to
51.Ar ip .
52.Pp
53.Ar host
54must point to a buffer of at least
55.Ar hsize
56bytes, and will always be written to by this function.
57.Pp
26.\"
27.Dd April 6, 1999
28.Os
29.Dt REALHOSTNAME 3
30.Sh NAME
31.Nm realhostname
32.Nd "convert an IP number to the real host name"
33.Sh LIBRARY

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

50back to
51.Ar ip .
52.Pp
53.Ar host
54must point to a buffer of at least
55.Ar hsize
56bytes, and will always be written to by this function.
57.Pp
58If the name resolution doesn't work both ways or if the host name is longer
58If the name resolution does not work both ways or if the host name is longer
59than
60.Ar hsize
61bytes,
62.Xr inet_ntoa 3
63is used to convert
64.Ar ip
65to an ASCII form.
66.Pp

--- 39 unchanged lines hidden ---
59than
60.Ar hsize
61bytes,
62.Xr inet_ntoa 3
63is used to convert
64.Ar ip
65to an ASCII form.
66.Pp

--- 39 unchanged lines hidden ---