diff options
-rw-r--r-- | src/lib/libc/net/rcmd.3 | 17 | ||||
-rw-r--r-- | src/lib/libc/net/rcmdsh.3 | 8 |
2 files changed, 11 insertions, 14 deletions
diff --git a/src/lib/libc/net/rcmd.3 b/src/lib/libc/net/rcmd.3 index 6df614b419..ccc7294e52 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.17 2000/01/27 05:18:47 itojun Exp $ | 1 | .\" $OpenBSD: rcmd.3,v 1.18 2000/02/23 17:28:25 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. |
@@ -86,6 +86,7 @@ can handle IPv4 cases only, | |||
86 | the | 86 | the |
87 | .Fn rcmd_af | 87 | .Fn rcmd_af |
88 | function can handle other cases as well. | 88 | function can handle other cases as well. |
89 | .Pp | ||
89 | The | 90 | The |
90 | .Fn rresvport | 91 | .Fn rresvport |
91 | and | 92 | and |
@@ -145,12 +146,8 @@ signal numbers, to be | |||
145 | forwarded to the process group of the command. | 146 | forwarded to the process group of the command. |
146 | If | 147 | If |
147 | .Fa fd2p | 148 | .Fa fd2p |
148 | is 0, then the | 149 | is 0, then the standard error (unit 2 of the remote command) will be made the |
149 | .Em stderr | 150 | same as the standard output and no |
150 | (unit 2 of the remote | ||
151 | command) will be made the same as the | ||
152 | .Em stdout | ||
153 | and no | ||
154 | provision is made for sending arbitrary signals to the remote process, | 151 | provision is made for sending arbitrary signals to the remote process, |
155 | although you may be able to get its attention by using out-of-band data. | 152 | although you may be able to get its attention by using out-of-band data. |
156 | Note that if the user is not the super-user, | 153 | Note that if the user is not the super-user, |
@@ -234,11 +231,11 @@ can handle other address families as well, like IPv6. | |||
234 | The first argument of | 231 | The first argument of |
235 | .Fn iruserok_sa | 232 | .Fn iruserok_sa |
236 | is typed as | 233 | is typed as |
237 | .Fa "void *" | 234 | .Li "void *" |
238 | to avoid dependency between | 235 | to avoid dependency between |
239 | .Aq Li unistd.h | 236 | .Aq Pa unistd.h |
240 | and | 237 | and |
241 | .Aq Li sys/socket.h . | 238 | .Aq Pa sys/socket.h . |
242 | .Sh DIAGNOSTICS | 239 | .Sh DIAGNOSTICS |
243 | The | 240 | The |
244 | .Fn rcmd | 241 | .Fn rcmd |
diff --git a/src/lib/libc/net/rcmdsh.3 b/src/lib/libc/net/rcmdsh.3 index 2498f4c708..29a1e4cf63 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.6 1999/07/05 04:41:00 aaron Exp $ | 1 | .\" $OpenBSD: rcmdsh.3,v 1.7 2000/02/23 17:28:25 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. |
@@ -68,8 +68,8 @@ and a connection is established to a server | |||
68 | residing at the well-known Internet port | 68 | residing at the well-known Internet port |
69 | .Li shell/tcp | 69 | .Li shell/tcp |
70 | (or whatever port is used by | 70 | (or whatever port is used by |
71 | .Fa rshprog | 71 | .Fa rshprog ) . |
72 | ). The parameter | 72 | The parameter |
73 | .Fa inport | 73 | .Fa inport |
74 | is ignored; it is only included to provide an interface similar to | 74 | is ignored; it is only included to provide an interface similar to |
75 | .Xr rcmd 3 . | 75 | .Xr rcmd 3 . |
@@ -95,7 +95,7 @@ It returns \-1 on error and prints a diagnostic message on the standard error. | |||
95 | .Sh BUGS | 95 | .Sh BUGS |
96 | If | 96 | If |
97 | .Xr rsh 1 | 97 | .Xr rsh 1 |
98 | gets an error a file descriptor is still returned instead of \-1. | 98 | encounters an error, a file descriptor is still returned instead of \-1. |
99 | .Sh HISTORY | 99 | .Sh HISTORY |
100 | The | 100 | The |
101 | .Fn rcmdsh | 101 | .Fn rcmdsh |