From 0ee591dac773154f745c4175babd6b36f4b787de Mon Sep 17 00:00:00 2001 From: millert <> Date: Sat, 28 May 2016 15:48:30 +0000 Subject: rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3). --- src/lib/libc/net/rcmd.3 | 10 +++++----- src/lib/libc/net/rcmdsh.3 | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libc/net/rcmd.3 b/src/lib/libc/net/rcmd.3 index 3bba0bc73d..b2a5cdea9b 100644 --- a/src/lib/libc/net/rcmd.3 +++ b/src/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/src/lib/libc/net/rcmdsh.3 b/src/lib/libc/net/rcmdsh.3 index daf23bc3c0..9092d19f81 100644 --- a/src/lib/libc/net/rcmdsh.3 +++ b/src/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 -- cgit v1.2.3-55-g6feb