summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authormillert <>2016-05-28 15:48:30 +0000
committermillert <>2016-05-28 15:48:30 +0000
commit0ee591dac773154f745c4175babd6b36f4b787de (patch)
tree2b4edf10077d449f9fe669eca936826a77cfe782 /src/lib/libc
parent33fd5a978c614a9e22b8f057cbe55fb2f890fd6d (diff)
downloadopenbsd-0ee591dac773154f745c4175babd6b36f4b787de.tar.gz
openbsd-0ee591dac773154f745c4175babd6b36f4b787de.tar.bz2
openbsd-0ee591dac773154f745c4175babd6b36f4b787de.zip
rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3).
Diffstat (limited to 'src/lib/libc')
-rw-r--r--src/lib/libc/net/rcmd.310
-rw-r--r--src/lib/libc/net/rcmdsh.38
2 files changed, 9 insertions, 9 deletions
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 @@
1.\" $OpenBSD: rcmd.3,v 1.33 2016/05/23 00:12:58 guenther Exp $ 1.\" $OpenBSD: rcmd.3,v 1.34 2016/05/28 15:48:30 millert Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE. 28.\" SUCH DAMAGE.
29.\" 29.\"
30.Dd $Mdocdate: May 23 2016 $ 30.Dd $Mdocdate: May 28 2016 $
31.Dt RCMD 3 31.Dt RCMD 3
32.Os 32.Os
33.Sh NAME 33.Sh NAME
@@ -94,10 +94,10 @@ The
94function looks up the host 94function looks up the host
95.Fa *ahost 95.Fa *ahost
96using 96using
97.Xr gethostbyname 3 97.Xr getaddrinfo 3
98and, if the host exists, 98and, if the host exists,
99.Fa *ahost 99.Fa *ahost
100is set to the standard name of the host. 100is set to the canonical name of the host.
101A connection is then established to a server 101A connection is then established to a server
102residing at the well-known Internet port 102residing at the well-known Internet port
103.Fa inport . 103.Fa inport .
@@ -188,7 +188,7 @@ file; otherwise
188.Fn ruserok 188.Fn ruserok
189returns \-1. 189returns \-1.
190If the local domain (as obtained from 190If the local domain (as obtained from
191.Xr gethostname 3 ) 191.Xr getaddrinfo 3 )
192is the same as the remote domain, only the machine name need be specified. 192is the same as the remote domain, only the machine name need be specified.
193.Pp 193.Pp
194.Fn ruserok 194.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 @@
1.\" $OpenBSD: rcmdsh.3,v 1.17 2015/03/23 22:29:32 halex Exp $ 1.\" $OpenBSD: rcmdsh.3,v 1.18 2016/05/28 15:48:30 millert Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE. 28.\" SUCH DAMAGE.
29.\" 29.\"
30.Dd $Mdocdate: March 23 2015 $ 30.Dd $Mdocdate: May 28 2016 $
31.Dt RCMDSH 3 31.Dt RCMDSH 3
32.Os 32.Os
33.Sh NAME 33.Sh NAME
@@ -55,10 +55,10 @@ The
55function looks up the host 55function looks up the host
56.Fa *ahost 56.Fa *ahost
57using 57using
58.Xr gethostbyname 3 58.Xr getaddrinfo 3
59and, if the host exists, 59and, if the host exists,
60.Fa *ahost 60.Fa *ahost
61is set to the standard name of the host. 61is set to the canonical name of the host.
62A connection is then established to 62A connection is then established to
63a server residing at the well-known Internet port 63a server residing at the well-known Internet port
64.Li shell/tcp 64.Li shell/tcp