summaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2016-05-28 15:48:31 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2016-05-28 15:48:31 +0000
commit2ac173a52eb339ae0e57683fccda11321812b945 (patch)
tree289a3d343fe00a925fa4267794a8fbccdce2861d /lib/libc/net
parent2234732fcceda58fff3005b5b6b06e630c985fda (diff)
rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3).
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/rcmd.310
-rw-r--r--lib/libc/net/rcmdsh.38
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/libc/net/rcmd.3 b/lib/libc/net/rcmd.3
index 3bba0bc73d3..b2a5cdea9bb 100644
--- a/lib/libc/net/rcmd.3
+++ b/lib/libc/net/rcmd.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rcmd.3,v 1.33 2016/05/23 00:12:58 guenther Exp $
+.\" $OpenBSD: rcmd.3,v 1.34 2016/05/28 15:48:30 millert Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 23 2016 $
+.Dd $Mdocdate: May 28 2016 $
.Dt RCMD 3
.Os
.Sh NAME
@@ -94,10 +94,10 @@ The
function looks up the host
.Fa *ahost
using
-.Xr gethostbyname 3
+.Xr getaddrinfo 3
and, if the host exists,
.Fa *ahost
-is set to the standard name of the host.
+is set to the canonical name of the host.
A connection is then established to a server
residing at the well-known Internet port
.Fa inport .
@@ -188,7 +188,7 @@ file; otherwise
.Fn ruserok
returns \-1.
If the local domain (as obtained from
-.Xr gethostname 3 )
+.Xr getaddrinfo 3 )
is the same as the remote domain, only the machine name need be specified.
.Pp
.Fn ruserok
diff --git a/lib/libc/net/rcmdsh.3 b/lib/libc/net/rcmdsh.3
index daf23bc3c00..9092d19f81a 100644
--- a/lib/libc/net/rcmdsh.3
+++ b/lib/libc/net/rcmdsh.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rcmdsh.3,v 1.17 2015/03/23 22:29:32 halex Exp $
+.\" $OpenBSD: rcmdsh.3,v 1.18 2016/05/28 15:48:30 millert Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 23 2015 $
+.Dd $Mdocdate: May 28 2016 $
.Dt RCMDSH 3
.Os
.Sh NAME
@@ -55,10 +55,10 @@ The
function looks up the host
.Fa *ahost
using
-.Xr gethostbyname 3
+.Xr getaddrinfo 3
and, if the host exists,
.Fa *ahost
-is set to the standard name of the host.
+is set to the canonical name of the host.
A connection is then established to
a server residing at the well-known Internet port
.Li shell/tcp