diff options
Diffstat (limited to 'man3/rcmd.3')
| -rw-r--r-- | man3/rcmd.3 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/man3/rcmd.3 b/man3/rcmd.3 index a5ee4e74c3..350b1c1ebc 100644 --- a/man3/rcmd.3 +++ b/man3/rcmd.3 @@ -38,7 +38,7 @@ .\" .\" 2007-12-08, mtk, Converted from mdoc to man macros .\" -.TH RCMD 3 2007-12-14 "Linux" "Linux Programmer's Manual" +.TH RCMD 3 2007-12-28 "Linux" "Linux Programmer's Manual" .SH NAME rcmd, rresvport, iruserok, ruserok \- routines for returning a stream to a remote command @@ -90,7 +90,7 @@ All four functions are present in the same file and are used by the .BR rshd (8) server (among others). -.sp +.PP The .BR rcmd () function @@ -105,7 +105,7 @@ is set to the standard name of the host and a connection is established to a server residing at the well-known Internet port .IR inport . -.sp +.PP If the connection succeeds, a socket in the Internet domain of type .BR SOCK_STREAM @@ -134,10 +134,10 @@ command) will be made the same as the and no provision is made for sending arbitrary signals to the remote process, although you may be able to get its attention by using out-of-band data. -.sp +.PP The protocol is described in detail in .BR rshd (8). -.sp +.PP The .BR rresvport () function is used to obtain a socket with a privileged @@ -147,7 +147,7 @@ This socket is suitable for use by and several other functions. Privileged Internet ports are those in the range 0 to 1023. Only the superuser is allowed to bind an address of this sort to a socket. -.sp +.PP The .BR iruserok () and @@ -164,7 +164,7 @@ If that lookup is not done, or is unsuccessful, the .IR .rhosts in the local user's home directory is checked to see if the request for service is allowed. -.sp +.PP If this file does not exist, is not a regular file, is owned by anyone other than the user or the superuser, or is writable by anyone other than the owner, the check automatically fails. @@ -180,7 +180,7 @@ return \-1. If the local domain (as obtained from .BR gethostname (2) is the same as the remote domain, only the machine name need be specified. -.sp +.PP If the IP address of the remote host is known, .BR iruserok () should be used in preference to @@ -192,7 +192,7 @@ The function returns a valid socket descriptor on success. It returns \-1 on error and prints a diagnostic message on the standard error. -.sp +.PP The .BR rresvport () function |
