.\" Modified 2002-08-05, Michael Kerrisk
.\" Modified 2004-10-31, Andries Brouwer
.\"
-.TH GETHOSTBYNAME 3 2013-09-04 "" "Linux Programmer's Manual"
+.TH GETHOSTBYNAME 3 2014-03-11 "" "Linux Programmer's Manual"
.SH NAME
gethostbyname, gethostbyaddr, sethostent, gethostent, endhostent,
h_errno,
.BR hstrerror ():
.RS 4
.TP 4
-Since glibc 2.12:
+Since glibc 2.8:
_BSD_SOURCE || _SVID_SOURCE
-.TP 4
-From glibc 2.8 to glibc 2.11:
-_BSD_SOURCE || _SVID_SOURCE || _GNU_SOURCE
.TP
Before glibc 2.8:
none
The official name of the host.
.TP
.I h_aliases
-An array of alternative names for the host, terminated by a NULL pointer.
+An array of alternative names for the host, terminated by a null pointer.
.TP
.I h_addrtype
The type of address; always
.TP
.I h_addr_list
An array of pointers to network addresses for the host (in network byte
-order), terminated by a NULL pointer.
+order), terminated by a null pointer.
.TP
.I h_addr
The first address in \fIh_addr_list\fP for backward compatibility.
.BR gethostbyaddr ()
functions return the
.I hostent
-structure or a NULL pointer if an error occurs.
+structure or a null pointer if an error occurs.
On error, the
.I h_errno
variable holds an error number.