Print this page
4775 Fixed formatting in getaddinfo(3) man page

*** 297,307 **** .SH RETURN VALUES .sp .LP For \fBgetaddrinfo()\fR, if the query is successful, a pointer to a linked list of one or more \fBaddrinfo\fR structures is returned by the fourth argument and ! the function returns \fB0\fR. The order of the addresses returned i nthe fourth argument is discussed in the ADDRESS ORDERING section. If the query fails, a non-zero error code will be returned. For \fBgetnameinfo()\fR, if successful, the strings hostname and service are copied into \fIhost\fR and \fIserv\fR, respectively. If unsuccessful, zero values for either \fIhostlen\fR or \fIservlen\fR will suppress the associated lookup; in this case no data is --- 297,307 ---- .SH RETURN VALUES .sp .LP For \fBgetaddrinfo()\fR, if the query is successful, a pointer to a linked list of one or more \fBaddrinfo\fR structures is returned by the fourth argument and ! the function returns \fB0\fR. The order of the addresses returned in the fourth argument is discussed in the ADDRESS ORDERING section. If the query fails, a non-zero error code will be returned. For \fBgetnameinfo()\fR, if successful, the strings hostname and service are copied into \fIhost\fR and \fIserv\fR, respectively. If unsuccessful, zero values for either \fIhostlen\fR or \fIservlen\fR will suppress the associated lookup; in this case no data is