Deleted Added
full compact
gethostbyname.3 (89362) gethostbyname.3 (108037)
1.\" Copyright (c) 1983, 1987, 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: @(#)gethostbyname.3 8.4 (Berkeley) 5/25/95
1.\" Copyright (c) 1983, 1987, 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: @(#)gethostbyname.3 8.4 (Berkeley) 5/25/95
33.\" $FreeBSD: head/lib/libc/net/gethostbyname.3 89362 2002-01-14 16:59:03Z ru $
33.\" $FreeBSD: head/lib/libc/net/gethostbyname.3 108037 2002-12-18 12:45:11Z ru $
34.\"
35.Dd May 25, 1995
36.Dt GETHOSTBYNAME 3
37.Os
38.Sh NAME
39.Nm gethostbyname ,
40.Nm gethostbyname2 ,
41.Nm gethostbyaddr ,

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

367version 4.9.4.
368.Sh BUGS
369These functions use static data storage;
370if the data is needed for future use, it should be
371copied before any subsequent calls overwrite it.
372Only the Internet
373address format is currently understood.
374.Pp
34.\"
35.Dd May 25, 1995
36.Dt GETHOSTBYNAME 3
37.Os
38.Sh NAME
39.Nm gethostbyname ,
40.Nm gethostbyname2 ,
41.Nm gethostbyaddr ,

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

367version 4.9.4.
368.Sh BUGS
369These functions use static data storage;
370if the data is needed for future use, it should be
371copied before any subsequent calls overwrite it.
372Only the Internet
373address format is currently understood.
374.Pp
375The
375.Fn gethostbyname2
376.Fn gethostbyname2
377function
376cannot perform
377.Dv AF_INET6
378lookups over NIS.
379.Xr getaddrinfo 3
380must be used instead.
378cannot perform
379.Dv AF_INET6
380lookups over NIS.
381.Xr getaddrinfo 3
382must be used instead.