]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
gethostbyname.3: Move non-deprecated functions to the top
authorAlejandro Colomar <alx.manpages@gmail.com>
Mon, 5 Sep 2022 01:24:11 +0000 (03:24 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Mon, 5 Sep 2022 01:25:10 +0000 (03:25 +0200)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man3/gethostbyname.3

index 75d624c3f58ba16c98e5aa85f531fda571b4b010..45446e7cdafe9ae1502ee33c2015a64f12cb7f33 100644 (file)
@@ -30,15 +30,15 @@ Standard C library
 .nf
 .B #include <netdb.h>
 .PP
+.BI "void sethostent(int " stayopen );
+.B void endhostent(void);
+.PP
 .B [[deprecated]] extern int h_errno;
 .PP
 .BI "[[deprecated]] struct hostent *gethostbyname(const char *" name );
 .BI "[[deprecated]] struct hostent *gethostbyaddr(const void *" addr ,
 .BI "                                      socklen_t " len ", int " type );
 .PP
-.BI "void sethostent(int " stayopen );
-.B void endhostent(void);
-.PP
 .BI "[[deprecated]] void herror(const char *" s );
 .BI "[[deprecated]] const char *hstrerror(int " err );
 .PP
@@ -128,6 +128,18 @@ and
 instead.
 .PP
 The
+.BR sethostent ()
+function specifies, if \fIstayopen\fP is true (1),
+that a connected TCP socket should be used for the name server queries and
+that the connection should remain open during successive queries.
+Otherwise, name server queries will use UDP datagrams.
+.PP
+The
+.BR endhostent ()
+function ends the use of a TCP connection for name
+server queries.
+.PP
+The
 .BR gethostbyname ()
 function returns a structure of type
 .I hostent
@@ -184,18 +196,6 @@ obtained via a call to
 for address type
 .BR AF_INET .
 .PP
-The
-.BR sethostent ()
-function specifies, if \fIstayopen\fP is true (1),
-that a connected TCP socket should be used for the name server queries and
-that the connection should remain open during successive queries.
-Otherwise, name server queries will use UDP datagrams.
-.PP
-The
-.BR endhostent ()
-function ends the use of a TCP connection for name
-server queries.
-.PP
 The (obsolete)
 .BR herror ()
 function prints the error message associated