summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraaron <>2000-02-23 17:28:25 +0000
committeraaron <>2000-02-23 17:28:25 +0000
commitc14c8afa7ab3b69a55a667bcf7d5350e039d72f0 (patch)
tree1d16115bf5d31f508af3b4da4312c63f2808f1b6
parentfa44c6e09caa5d89451c8803d8e57259b7c6d501 (diff)
downloadopenbsd-c14c8afa7ab3b69a55a667bcf7d5350e039d72f0.tar.gz
openbsd-c14c8afa7ab3b69a55a667bcf7d5350e039d72f0.tar.bz2
openbsd-c14c8afa7ab3b69a55a667bcf7d5350e039d72f0.zip
Small bits of clean-up.
-rw-r--r--src/lib/libc/net/rcmd.317
-rw-r--r--src/lib/libc/net/rcmdsh.38
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,
86the 86the
87.Fn rcmd_af 87.Fn rcmd_af
88function can handle other cases as well. 88function can handle other cases as well.
89.Pp
89The 90The
90.Fn rresvport 91.Fn rresvport
91and 92and
@@ -145,12 +146,8 @@ signal numbers, to be
145forwarded to the process group of the command. 146forwarded to the process group of the command.
146If 147If
147.Fa fd2p 148.Fa fd2p
148is 0, then the 149is 0, then the standard error (unit 2 of the remote command) will be made the
149.Em stderr 150same as the standard output and no
150(unit 2 of the remote
151command) will be made the same as the
152.Em stdout
153and no
154provision is made for sending arbitrary signals to the remote process, 151provision is made for sending arbitrary signals to the remote process,
155although you may be able to get its attention by using out-of-band data. 152although you may be able to get its attention by using out-of-band data.
156Note that if the user is not the super-user, 153Note that if the user is not the super-user,
@@ -234,11 +231,11 @@ can handle other address families as well, like IPv6.
234The first argument of 231The first argument of
235.Fn iruserok_sa 232.Fn iruserok_sa
236is typed as 233is typed as
237.Fa "void *" 234.Li "void *"
238to avoid dependency between 235to avoid dependency between
239.Aq Li unistd.h 236.Aq Pa unistd.h
240and 237and
241.Aq Li sys/socket.h . 238.Aq Pa sys/socket.h .
242.Sh DIAGNOSTICS 239.Sh DIAGNOSTICS
243The 240The
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
68residing at the well-known Internet port 68residing 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 72The parameter
73.Fa inport 73.Fa inport
74is ignored; it is only included to provide an interface similar to 74is 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
96If 96If
97.Xr rsh 1 97.Xr rsh 1
98gets an error a file descriptor is still returned instead of \-1. 98encounters an error, a file descriptor is still returned instead of \-1.
99.Sh HISTORY 99.Sh HISTORY
100The 100The
101.Fn rcmdsh 101.Fn rcmdsh