aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gethostbyname.3
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2017-10-04 06:06:22 +0000
committerCy Schubert <cy@FreeBSD.org>2017-10-04 06:06:22 +0000
commitb1b1386ff4e4ea4a2a4f29e249f6393e1db5bfff (patch)
tree0f47c7ed24d2737e5e8f9f9c44fcec1452f9f8bf /lib/libc/net/gethostbyname.3
parent0c059da3e18ef75ddf39968f2034472406bb0ad5 (diff)
downloadsrc-b1b1386ff4e4ea4a2a4f29e249f6393e1db5bfff.tar.gz
src-b1b1386ff4e4ea4a2a4f29e249f6393e1db5bfff.zip
Clarify the wording describing the stayopen flag.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=324249
Diffstat (limited to 'lib/libc/net/gethostbyname.3')
-rw-r--r--lib/libc/net/gethostbyname.317
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/libc/net/gethostbyname.3 b/lib/libc/net/gethostbyname.3
index 83be23c2f1fb..589f849a508b 100644
--- a/lib/libc/net/gethostbyname.3
+++ b/lib/libc/net/gethostbyname.3
@@ -28,7 +28,7 @@
.\" From: @(#)gethostbyname.3 8.4 (Berkeley) 5/25/95
.\" $FreeBSD$
.\"
-.Dd May 12, 2006
+.Dd October 4, 2017
.Dt GETHOSTBYNAME 3
.Os
.Sh NAME
@@ -189,19 +189,18 @@ function
may be used to request the use of a connected
.Tn TCP
socket for queries.
-If the
+Queries will by defaulat use
+.Tn UDP
+datagrams. If the
.Fa stayopen
-flag is non-zero,
-this sets the option to send all queries to the name server using
+flag is non-zero, a
.Tn TCP
-and to retain the connection after each call to
+connection to the name server will be used. It will remain open after calls to
.Fn gethostbyname ,
.Fn gethostbyname2
or
-.Fn gethostbyaddr .
-Otherwise, queries are performed using
-.Tn UDP
-datagrams.
+.Fn gethostbyaddr
+have completed.
.Pp
The
.Fn endhostent