Install many symlinks to xdr.0 & rpc.0.
Update bindresvport, getrpcent, getrpcport.3 man pages, convert to -mandoc. Fix minor bug in rpc.3 manpage.
This commit is contained in:
parent
224ca11730
commit
0c7b56efc3
|
@ -1,5 +1,104 @@
|
|||
# @(#)Makefile 5.13.1.1 (Berkeley) 5/7/91
|
||||
|
||||
MAN3 = bindresvport.0 getrpcent.0 getrpcport.0 rpc.0 xdr.0
|
||||
MLINKS= getrpcport.3 getrpcbyname.3 \
|
||||
getrpcport.3 getrpcbynumber.3 \
|
||||
getrpcport.3 endrpcent.3 \
|
||||
getrpcport.3 setrpcent.3 \
|
||||
rpc.3 auth_destroy.3 \
|
||||
rpc.3 authnone_create.3 \
|
||||
rpc.3 authunix_create.3 \
|
||||
rpc.3 authunix_create_default.3 \
|
||||
rpc.3 callrpc.3 \
|
||||
rpc.3 clnt_broadcast.3 \
|
||||
rpc.3 clnt_call.3 \
|
||||
rpc.3 clnt_control.3 \
|
||||
rpc.3 clnt_create.3 \
|
||||
rpc.3 clnt_destroy.3 \
|
||||
rpc.3 clnt_freeres.3 \
|
||||
rpc.3 clnt_geterr.3 \
|
||||
rpc.3 clnt_pcreateerror.3 \
|
||||
rpc.3 clnt_perrno.3 \
|
||||
rpc.3 clnt_perror.3 \
|
||||
rpc.3 clnt_spcreateerror.3 \
|
||||
rpc.3 clnt_sperrno.3 \
|
||||
rpc.3 clnt_sperror.3 \
|
||||
rpc.3 clntraw_create.3 \
|
||||
rpc.3 clnttcp_create.3 \
|
||||
rpc.3 clntudp_bufcreate.3 \
|
||||
rpc.3 clntudp_create.3 \
|
||||
rpc.3 get_myaddress.3 \
|
||||
rpc.3 pmap_getmaps.3 \
|
||||
rpc.3 pmap_getport.3 \
|
||||
rpc.3 pmap_rmtcall.3 \
|
||||
rpc.3 pmap_set.3 \
|
||||
rpc.3 pmap_unset.3 \
|
||||
rpc.3 regsterrpc.3 \
|
||||
rpc.3 rpc_createerr.3 \
|
||||
rpc.3 svc_destroy.3 \
|
||||
rpc.3 svc_fds.3 \
|
||||
rpc.3 svc_fdset.3 \
|
||||
rpc.3 svc_getargs.3 \
|
||||
rpc.3 svc_getcaller.3 \
|
||||
rpc.3 svc_getreg.3 \
|
||||
rpc.3 svc_getregset.3 \
|
||||
rpc.3 svc_register.3 \
|
||||
rpc.3 svc_run.3 \
|
||||
rpc.3 svc_sendreply.3 \
|
||||
rpc.3 svc_unregister.3 \
|
||||
rpc.3 svcerr_auth.3 \
|
||||
rpc.3 svcerr_decode.3 \
|
||||
rpc.3 svcerr_noproc.3 \
|
||||
rpc.3 svcerr_noprog.3 \
|
||||
rpc.3 svcerr_progvers.3 \
|
||||
rpc.3 svcerr_systemerr.3 \
|
||||
rpc.3 svcerr_weakauth.3 \
|
||||
rpc.3 svcfd_create.3 \
|
||||
rpc.3 svcraw_create.3 \
|
||||
rpc.3 svctcp_create.3 \
|
||||
rpc.3 svcudp_bufcreate.3 \
|
||||
rpc.3 xdr_accepted_reply.3 \
|
||||
rpc.3 xdr_authunix_parms.3 \
|
||||
rpc.3 xdr_callhdr.3 \
|
||||
rpc.3 xdr_callmsg.3 \
|
||||
rpc.3 xdr_opaque_auth.3 \
|
||||
rpc.3 xdr_pmap.3 \
|
||||
rpc.3 xdr_pmaplist.3 \
|
||||
rpc.3 xdr_rejected_reply.3 \
|
||||
rpc.3 xdr_replymsg.3 \
|
||||
rpc.3 xprt_register.3 \
|
||||
rpc.3 xprt_unregister.3 \
|
||||
xdr.3 xdr_array.3 \
|
||||
xdr.3 xdr_bool.3 \
|
||||
xdr.3 xdr_bytes.3 \
|
||||
xdr.3 xdr_char.3 \
|
||||
xdr.3 xdr_destroy.3 \
|
||||
xdr.3 xdr_double.3 \
|
||||
xdr.3 xdr_enum.3 \
|
||||
xdr.3 xdr_float.3 \
|
||||
xdr.3 xdr_free.3 \
|
||||
xdr.3 xdr_getpos.3 \
|
||||
xdr.3 xdr_inline.3 \
|
||||
xdr.3 xdr_int.3 \
|
||||
xdr.3 xdr_long.3 \
|
||||
xdr.3 xdrmem_create.3 \
|
||||
xdr.3 xdr_opaque.3 \
|
||||
xdr.3 xdr_pointer.3 \
|
||||
xdr.3 xdrrec_create.3 \
|
||||
xdr.3 xdrrec_endofrecord.3 \
|
||||
xdr.3 xdrrec_eof.3 \
|
||||
xdr.3 xdrrec_skiprecord.3 \
|
||||
xdr.3 xdr_reference.3 \
|
||||
xdr.3 xdr_setpos.3 \
|
||||
xdr.3 xdr_short.3 \
|
||||
xdr.3 xdrstdio_create.3 \
|
||||
xdr.3 xdr_string.3 \
|
||||
xdr.3 xdr_u_char.3 \
|
||||
xdr.3 xdr_u_long.3 \
|
||||
xdr.3 xdr_u_short.3 \
|
||||
xdr.3 xdr_union.3 \
|
||||
xdr.3 xdr_vector.3 \
|
||||
xdr.3 xdr_void.3 \
|
||||
xdr.3 xdr_wrapstring.3
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -1,27 +1,27 @@
|
|||
.\" @(#)bindresvport.3n 2.2 88/08/02 4.0 RPCSRC; from 1.7 88/03/14 SMI
|
||||
.TH BINDRESVPORT 3N "22 november 1987"
|
||||
.SH NAME
|
||||
bindresvport \- bind a socket to a privileged IP port
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/types.h>
|
||||
.B #include <netinet/in.h>
|
||||
.LP
|
||||
.B int bindresvport(sd, sin)
|
||||
.B int sd;
|
||||
.B struct sockaddr_in \(**sin;
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
.LP
|
||||
.B bindresvport(\|)
|
||||
.\" translated to -mandoc macros by jtc@wimsey.com
|
||||
.\"
|
||||
.Dd November 22, 1987
|
||||
.Dt BINDRESVPORT 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm bindresvport
|
||||
.Nd bind a socket to a privileged IP port
|
||||
.Sh SYNOPSIS
|
||||
.Fd #include <sys/types.h>
|
||||
.Fd include <netinet/in.h>
|
||||
.Ft int
|
||||
.Fn bindresvport "int sd" "struct sockaddr_in **sin"
|
||||
.Sh DESCRIPTION
|
||||
.Fn bindresvport
|
||||
is used to bind a socket descriptor to a privileged
|
||||
.SM IP
|
||||
.Tn IP
|
||||
port, that is, a
|
||||
port number in the range 0-1023.
|
||||
The routine returns 0 if it is successful,
|
||||
otherwise \-1 is returned and
|
||||
.B errno
|
||||
otherwise -1 is returned and
|
||||
.Va errno
|
||||
set to reflect the cause of the error.
|
||||
.LP
|
||||
.Pp
|
||||
Only root can bind to a privileged port; this call will fail for any
|
||||
other users.
|
||||
|
|
|
@ -1,108 +1,92 @@
|
|||
.\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
|
||||
.TH GETRPCENT 3N "14 December 1987"
|
||||
.SH NAME
|
||||
getrpcent, getrpcbyname, getrpcbynumber \- get RPC entry
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.ft B
|
||||
#include <netdb.h>
|
||||
.LP
|
||||
.ft B
|
||||
struct rpcent *getrpcent(\|)
|
||||
.LP
|
||||
.ft B
|
||||
struct rpcent *getrpcbyname(name)
|
||||
char *name;
|
||||
.LP
|
||||
.ft B
|
||||
struct rpcent *getrpcbynumber(number)
|
||||
int number;
|
||||
.LP
|
||||
.ft B
|
||||
setrpcent (stayopen)
|
||||
int stayopen
|
||||
.LP
|
||||
.ft B
|
||||
endrpcent (\|)
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
.LP
|
||||
.BR getrpcent(\|) ,
|
||||
.BR getrpcbyname(\|) ,
|
||||
.\" translated to -mandoc macros by jtc@wimsey.com
|
||||
.\"
|
||||
.Dd December 14, 1987
|
||||
.Dt GETRPCENT 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm getpwent ,
|
||||
.Nm getrpcbyname ,
|
||||
.Nm getrpcbynumber ,
|
||||
.Nm endrpcent ,
|
||||
.Nm setrpcent
|
||||
.Nd get RPC entry
|
||||
.Sh SYNOPSIS
|
||||
.Fd #include <netdb.h>
|
||||
.Ft struct rpcent *
|
||||
.Fn getrpcent void
|
||||
.Ft struct rpcent *
|
||||
.Fn getrpcbyname "char *name"
|
||||
.Ft struct rpcent *
|
||||
.Fn getrpcbynumber "int number"
|
||||
.Ft void
|
||||
.Fn setrpcent "int stayopen"
|
||||
.Ft void
|
||||
.Fn endrpcent void
|
||||
.Sh DESCRIPTION
|
||||
.Fn getrpcent ,
|
||||
.Fn getrpcbyname ,
|
||||
and
|
||||
.B getrpcbynumber(\|)
|
||||
.Fn getrpcbynumber ,
|
||||
each return a pointer to an object with the
|
||||
following structure
|
||||
containing the broken-out
|
||||
fields of a line in the rpc program number data base,
|
||||
.BR /etc/rpc .
|
||||
.RS
|
||||
.LP
|
||||
.nf
|
||||
.ft B
|
||||
struct rpcent {
|
||||
.Pa /etc/rpc :
|
||||
.Bd -literal -offset indent
|
||||
struct rpcent {
|
||||
char *r_name; /* name of server for this rpc program */
|
||||
char **r_aliases; /* alias list */
|
||||
long r_number; /* rpc program number */
|
||||
};
|
||||
.ft R
|
||||
.fi
|
||||
.RE
|
||||
.LP
|
||||
.Ed
|
||||
.Pp
|
||||
The members of this structure are:
|
||||
.RS
|
||||
.PD 0
|
||||
.TP 20
|
||||
.B r_name
|
||||
.Bl -tag -width r_aliases -offset indent
|
||||
.It r_name
|
||||
The name of the server for this rpc program.
|
||||
.TP 20
|
||||
.B r_aliases
|
||||
.It r_aliases
|
||||
A zero terminated list of alternate names for the rpc program.
|
||||
.TP 20
|
||||
.B r_number
|
||||
.It r_number
|
||||
The rpc program number for this service.
|
||||
.PD
|
||||
.RE
|
||||
.LP
|
||||
.B getrpcent(\|)
|
||||
.El
|
||||
.Pp
|
||||
.Fn getrpcent
|
||||
reads the next line of the file, opening the file if necessary.
|
||||
.LP
|
||||
.B getrpcent(\|)
|
||||
.Pp
|
||||
.Fn setrpcent
|
||||
opens and rewinds the file. If the
|
||||
.I stayopen
|
||||
.Fa stayopen
|
||||
flag is non-zero,
|
||||
the net data base will not be closed after each call to
|
||||
.B getrpcent(\|)
|
||||
.Fn getrpcent
|
||||
(either directly, or indirectly through one of
|
||||
the other \*(lqgetrpc\*(rq calls).
|
||||
.LP
|
||||
.B endrpcent
|
||||
the other
|
||||
.Dq getrpc
|
||||
calls).
|
||||
.Pp
|
||||
.Fn endrpcent
|
||||
closes the file.
|
||||
.LP
|
||||
.B getrpcbyname(\|)
|
||||
.Pp
|
||||
.Fn getrpcbyname
|
||||
and
|
||||
.B getrpcbynumber(\|)
|
||||
.Fn getrpcbynumber
|
||||
sequentially search from the beginning
|
||||
of the file until a matching rpc program name or
|
||||
program number is found, or until end-of-file is encountered.
|
||||
.SH FILES
|
||||
.PD 0
|
||||
.TP 20
|
||||
.B /etc/rpc
|
||||
.PD
|
||||
.SH "SEE ALSO"
|
||||
.BR rpc (5),
|
||||
.BR rpcinfo (8C),
|
||||
.BR ypserv (8)
|
||||
.SH DIAGNOSTICS
|
||||
.LP
|
||||
.Sh FILES
|
||||
.Pa /etc/rpc
|
||||
.Sh SEE ALSO
|
||||
.Xr rpc 5 ,
|
||||
.Xr rpcinfo 8 ,
|
||||
.Xr ypserv 8
|
||||
.Sh DIAGNOSTICS
|
||||
A
|
||||
.SM NULL
|
||||
.Dv NULL
|
||||
pointer is returned on
|
||||
.SM EOF
|
||||
.Dv EOF
|
||||
or error.
|
||||
.SH BUGS
|
||||
.LP
|
||||
.Sh BUGS
|
||||
All information
|
||||
is contained in a static area
|
||||
so it must be copied if it is
|
||||
|
|
|
@ -1,31 +1,31 @@
|
|||
.\" @(#)getrpcport.3r 2.2 88/08/02 4.0 RPCSRC; from 1.12 88/02/26 SMI
|
||||
.TH GETRPCPORT 3R "6 October 1987"
|
||||
.SH NAME
|
||||
getrpcport \- get RPC port number
|
||||
.SH SYNOPSIS
|
||||
.ft B
|
||||
.nf
|
||||
int getrpcport(host, prognum, versnum, proto)
|
||||
char *host;
|
||||
int prognum, versnum, proto;
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
.IX getrpcport "" "\fLgetrpcport\fR \(em get RPC port number"
|
||||
.B getrpcport(\|)
|
||||
.\" translated to -mandoc macros by jtc@wimsey.com
|
||||
.\"
|
||||
.Dd October 6, 1987
|
||||
.Dt GETRPCPORT 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm getrpcport
|
||||
.Nd get RPC port number
|
||||
.Sh SYNOPSIS
|
||||
.Ft int
|
||||
.Fn getrpcport "char *host" "int prognum" "int versnum" "int proto"
|
||||
.Sh DESCRIPTION
|
||||
.Fn getrpcport
|
||||
returns the port number for version
|
||||
.I versnum
|
||||
.Fa versnum
|
||||
of the RPC program
|
||||
.I prognum
|
||||
.Fa prognum
|
||||
running on
|
||||
.I host
|
||||
.Fa host
|
||||
and using protocol
|
||||
.IR proto .
|
||||
.Fa proto .
|
||||
It returns 0 if it cannot contact the portmapper, or if
|
||||
.I prognum
|
||||
.Fa prognum
|
||||
is not registered. If
|
||||
.I prognum
|
||||
.Fa prognum
|
||||
is registered but not with version
|
||||
.IR versnum ,
|
||||
.Fa versnum ,
|
||||
it will still return a port number (for some version of the program)
|
||||
indicating that the program is indeed registered.
|
||||
The version mismatch will be detected upon the first call to the service.
|
||||
|
|
|
@ -342,7 +342,7 @@ The following operations are valid for
|
|||
only:
|
||||
.IP
|
||||
.nf
|
||||
.ta +2.0i ; +2.0i ; +2.0i
|
||||
.ta +2.0i +2.0i +2.0i
|
||||
.SM CLSET_RETRY_TIMEOUT\s0 struct timeval set the retry timeout
|
||||
.SM CLGET_RETRY_TIMEOUT\s0 struct timeval get the retry timeout
|
||||
.fi
|
||||
|
|
Loading…
Reference in New Issue