diff options
author | aaron <> | 2000-12-24 00:31:00 +0000 |
---|---|---|
committer | aaron <> | 2000-12-24 00:31:00 +0000 |
commit | b11608439e707f8c7601b090028e530ea5a1e067 (patch) | |
tree | 966934b4f9368fd14deca5be22b83ff9fb439cbd /src/lib/libc/net/rcmdsh.3 | |
parent | 71213d0b131a3545184a31aa671f269eceacad1e (diff) | |
download | openbsd-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.3 | 22 |
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 |
45 | The | 45 | The |
46 | .Fn rcmdsh | 46 | .Fn rcmdsh |
47 | function | 47 | function is used by normal users to execute a command on a remote machine |
48 | is used by normal users to execute a command on | 48 | using an authentication scheme based on reserved port numbers using |
49 | a remote machine using an authentication scheme based | ||
50 | on reserved port numbers using | ||
51 | .Xr rshd 8 | 49 | .Xr rshd 8 |
52 | or the value of | 50 | or the value of |
53 | .Fa rshprog | 51 | .Fa rshprog |
@@ -55,17 +53,15 @@ or the value of | |||
55 | .Pp | 53 | .Pp |
56 | The | 54 | The |
57 | .Fn rcmdsh | 55 | .Fn rcmdsh |
58 | function | 56 | function looks up the host |
59 | looks up the host | ||
60 | .Fa *ahost | 57 | .Fa *ahost |
61 | using | 58 | using |
62 | .Xr gethostbyname 3 , | 59 | .Xr gethostbyname 3 , |
63 | returning \-1 if the host does not exist. | 60 | returning \-1 if the host does not exist. |
64 | Otherwise | 61 | Otherwise |
65 | .Fa *ahost | 62 | .Fa *ahost |
66 | is set to the standard name of the host | 63 | is set to the standard name of the host and a connection is established to |
67 | and a connection is established to a server | 64 | a server residing at the well-known Internet port |
68 | residing 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 | |||
74 | is ignored; it is only included to provide an interface similar to | 70 | is ignored; it is only included to provide an interface similar to |
75 | .Xr rcmd 3 . | 71 | .Xr rcmd 3 . |
76 | .Pp | 72 | .Pp |
77 | If the connection succeeds, | 73 | If the connection succeeds, a socket in the |
78 | a socket in the | ||
79 | .Tn UNIX | 74 | .Tn UNIX |
80 | domain of type | 75 | domain 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 |
85 | The | 80 | The |
86 | .Fn rcmdsh | 81 | .Fn rcmdsh |
87 | function | 82 | function returns a valid socket descriptor on success. |
88 | returns a valid socket descriptor on success. | ||
89 | It returns \-1 on error and prints a diagnostic message on the standard error. | 83 | It 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 , |