diff options
author | peter <peter@FreeBSD.org> | 1996-08-30 22:16:46 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-08-30 22:16:46 +0000 |
commit | d1d004ea7b904ee20cce6859c11c4407427639a1 (patch) | |
tree | f6a266d9fd3b7f775e387576bce8020ae1da6678 /lib | |
parent | 60815f4c2969de69a3e09bfca9268c576198cbcb (diff) | |
download | FreeBSD-src-d1d004ea7b904ee20cce6859c11c4407427639a1.zip FreeBSD-src-d1d004ea7b904ee20cce6859c11c4407427639a1.tar.gz |
pull this in to avoid fixing these twice
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/net/gethostbyname.3 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/net/gethostbyname.3 b/lib/libc/net/gethostbyname.3 index 702a116..b3b2d1f 100644 --- a/lib/libc/net/gethostbyname.3 +++ b/lib/libc/net/gethostbyname.3 @@ -29,9 +29,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)gethostbyname.3 8.2 (Berkeley) 4/19/94 +.\" @(#)gethostbyname.3 8.4 (Berkeley) 5/25/95 .\" -.Dd April 19, 1994 +.Dd May 25, 1995 .Dt GETHOSTBYNAME 3 .Os BSD 4.2 .Sh NAME @@ -44,7 +44,7 @@ .Nd get network host entry .Sh SYNOPSIS .Fd #include <netdb.h> -.Fd extern struct h_errno; +.Fd extern int h_errno; .Ft struct hostent * .Fn gethostbyname "char *name" .Ft struct hostent * @@ -85,19 +85,20 @@ The members of this structure are: .It Fa h_name Official name of the host. .It Fa h_aliases -A zero terminated array of alternate names for the host. +A NULL-terminated array of alternate names for the host. .It Fa h_addrtype The type of address being returned; currently always .Dv AF_INET . .It Fa h_length The length, in bytes, of the address. .It Fa h_addr_list -A zero terminated array of network addresses for the host. +A NULL-terminated array of network addresses for the host. Host addresses are returned in network byte order. .It Fa h_addr The first address in .Fa h_addr_list ; this is for backward compatibility. +.El .Pp When using the nameserver, .Fn gethostbyname |