summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/rcmdsh.3
diff options
context:
space:
mode:
authoraaron <>2000-12-24 00:31:00 +0000
committeraaron <>2000-12-24 00:31:00 +0000
commitb11608439e707f8c7601b090028e530ea5a1e067 (patch)
tree966934b4f9368fd14deca5be22b83ff9fb439cbd /src/lib/libc/net/rcmdsh.3
parent71213d0b131a3545184a31aa671f269eceacad1e (diff)
downloadopenbsd-b11608439e707f8c7601b090028e530ea5a1e067.tar.gz
openbsd-b11608439e707f8c7601b090028e530ea5a1e067.tar.bz2
openbsd-b11608439e707f8c7601b090028e530ea5a1e067.zip
Various repairs, mostly to get rid of short lines.
Diffstat (limited to 'src/lib/libc/net/rcmdsh.3')
-rw-r--r--src/lib/libc/net/rcmdsh.322
1 files changed, 8 insertions, 14 deletions
diff --git a/src/lib/libc/net/rcmdsh.3 b/src/lib/libc/net/rcmdsh.3
index 29a1e4cf63..e0c59efb85 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.7 2000/02/23 17:28:25 aaron Exp $ 1.\" $OpenBSD: rcmdsh.3,v 1.8 2000/12/24 00:30:56 aaron 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.
@@ -44,10 +44,8 @@
44.Sh DESCRIPTION 44.Sh DESCRIPTION
45The 45The
46.Fn rcmdsh 46.Fn rcmdsh
47function 47function is used by normal users to execute a command on a remote machine
48is used by normal users to execute a command on 48using an authentication scheme based on reserved port numbers using
49a remote machine using an authentication scheme based
50on reserved port numbers using
51.Xr rshd 8 49.Xr rshd 8
52or the value of 50or the value of
53.Fa rshprog 51.Fa rshprog
@@ -55,17 +53,15 @@ or the value of
55.Pp 53.Pp
56The 54The
57.Fn rcmdsh 55.Fn rcmdsh
58function 56function looks up the host
59looks up the host
60.Fa *ahost 57.Fa *ahost
61using 58using
62.Xr gethostbyname 3 , 59.Xr gethostbyname 3 ,
63returning \-1 if the host does not exist. 60returning \-1 if the host does not exist.
64Otherwise 61Otherwise
65.Fa *ahost 62.Fa *ahost
66is set to the standard name of the host 63is set to the standard name of the host and a connection is established to
67and a connection is established to a server 64a server residing at the well-known Internet port
68residing at the well-known Internet port
69.Li shell/tcp 65.Li shell/tcp
70(or whatever port is used by 66(or whatever port is used by
71.Fa rshprog ) . 67.Fa rshprog ) .
@@ -74,8 +70,7 @@ The parameter
74is ignored; it is only included to provide an interface similar to 70is ignored; it is only included to provide an interface similar to
75.Xr rcmd 3 . 71.Xr rcmd 3 .
76.Pp 72.Pp
77If the connection succeeds, 73If the connection succeeds, a socket in the
78a socket in the
79.Tn UNIX 74.Tn UNIX
80domain of type 75domain of type
81.Dv SOCK_STREAM 76.Dv SOCK_STREAM
@@ -84,8 +79,7 @@ command as stdin and stdout, and stderr.
84.Sh DIAGNOSTICS 79.Sh DIAGNOSTICS
85The 80The
86.Fn rcmdsh 81.Fn rcmdsh
87function 82function returns a valid socket descriptor on success.
88returns a valid socket descriptor on success.
89It returns \-1 on error and prints a diagnostic message on the standard error. 83It returns \-1 on error and prints a diagnostic message on the standard error.
90.Sh SEE ALSO 84.Sh SEE ALSO
91.Xr rsh 1 , 85.Xr rsh 1 ,