summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/rcmd.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/rcmd.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/rcmd.3')
-rw-r--r--src/lib/libc/net/rcmd.317
1 files changed, 6 insertions, 11 deletions
diff --git a/src/lib/libc/net/rcmd.3 b/src/lib/libc/net/rcmd.3
index 89457ab859..683f27a4af 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.22 2000/12/21 22:59:53 deraadt Exp $ 1.\" $OpenBSD: rcmd.3,v 1.23 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.
@@ -62,8 +62,7 @@
62.Sh DESCRIPTION 62.Sh DESCRIPTION
63The 63The
64.Fn rcmd 64.Fn rcmd
65function 65function is used by the superuser to execute a command on a remote
66is used by the superuser to execute a command on a remote
67machine using an authentication scheme based on reserved 66machine using an authentication scheme based on reserved
68port numbers. 67port numbers.
69If the calling process is not setuid, the 68If the calling process is not setuid, the
@@ -92,8 +91,7 @@ The
92.Fn rresvport 91.Fn rresvport
93and 92and
94.Fn rresvport_af 93.Fn rresvport_af
95functions 94functions return a descriptor to a socket
96return a descriptor to a socket
97with an address in the privileged port space. 95with an address in the privileged port space.
98The 96The
99.Fn iruserok 97.Fn iruserok
@@ -112,8 +110,7 @@ is an address family independent variant of
112.Pp 110.Pp
113The 111The
114.Fn rcmd 112.Fn rcmd
115function 113function looks up the host
116looks up the host
117.Fa *ahost 114.Fa *ahost
118using 115using
119.Xr gethostbyname 3 , 116.Xr gethostbyname 3 ,
@@ -245,16 +242,14 @@ and
245.Sh DIAGNOSTICS 242.Sh DIAGNOSTICS
246The 243The
247.Fn rcmd 244.Fn rcmd
248function 245function returns a valid socket descriptor on success.
249returns a valid socket descriptor on success.
250It returns \-1 on error and prints a diagnostic message on the standard error. 246It returns \-1 on error and prints a diagnostic message on the standard error.
251.Pp 247.Pp
252The 248The
253.Fn rresvport 249.Fn rresvport
254and 250and
255.Fn rresvport_af 251.Fn rresvport_af
256functions 252functions return a valid, bound socket descriptor on success.
257return a valid, bound socket descriptor on success.
258It returns \-1 on error with the global value 253It returns \-1 on error with the global value
259.Va errno 254.Va errno
260set according to the reason for failure. 255set according to the reason for failure.