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

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3socket/getaddrinfo.3socket
          +++ new/usr/src/man/man3socket/getaddrinfo.3socket
↓ open down ↓ 291 lines elided ↑ open up ↑
 292  292  TCP.
 293  293  .sp
 294  294  .LP
 295  295  These \fBNI_\fR* flags are defined in <\fBnetdb.h\fR> along with the \fBAI_\fR*
 296  296  flags already defined for \fBgetaddrinfo()\fR.
 297  297  .SH RETURN VALUES
 298  298  .sp
 299  299  .LP
 300  300  For \fBgetaddrinfo()\fR, if the query is successful, a pointer to a linked list
 301  301  of one or more \fBaddrinfo\fR structures is returned by the fourth argument and
 302      -the function returns \fB0\fR. The order of the addresses returned i nthe fourth
      302 +the function returns \fB0\fR. The order of the addresses returned in the fourth
 303  303  argument is discussed in the ADDRESS ORDERING section. If the query fails, a
 304  304  non-zero error code will be returned. For \fBgetnameinfo()\fR, if successful,
 305  305  the strings hostname and service are copied into \fIhost\fR and \fIserv\fR,
 306  306  respectively. If unsuccessful, zero values for either \fIhostlen\fR or
 307  307  \fIservlen\fR will suppress the associated lookup; in this case no data is
 308  308  copied into the applicable buffer. If \fBgai_strerror()\fR is successful, a
 309  309  pointer to a string containing an error message appropriate for the \fBEAI_\fR*
 310  310  errors is returned. If \fIerrcode\fR is not one of the \fBEAI_\fR* values, a
 311  311  pointer to a string indicating an unknown error is returned.
 312  312  .SS "Address Ordering"
↓ open down ↓ 236 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX