|
@@ -46,16 +46,8 @@
|
|
|
#include <rpc/pmap_clnt.h>
|
|
#include <rpc/pmap_clnt.h>
|
|
|
#include <sys/poll.h>
|
|
#include <sys/poll.h>
|
|
|
|
|
|
|
|
-/* Experimentally off - libc_hidden_proto(ffs) */
|
|
|
|
|
-/* libc_hidden_proto(pmap_set) */
|
|
|
|
|
-/* libc_hidden_proto(pmap_unset) */
|
|
|
|
|
-/* libc_hidden_proto(_authenticate) */
|
|
|
|
|
-/* libc_hidden_proto(_rpc_dtablesize) */
|
|
|
|
|
/* used by svc_[max_]pollfd */
|
|
/* used by svc_[max_]pollfd */
|
|
|
-/* libc_hidden_proto(__rpc_thread_svc_pollfd) */
|
|
|
|
|
-/* libc_hidden_proto(__rpc_thread_svc_max_pollfd) */
|
|
|
|
|
/* used by svc_fdset */
|
|
/* used by svc_fdset */
|
|
|
-/* libc_hidden_proto(__rpc_thread_svc_fdset) */
|
|
|
|
|
|
|
|
|
|
#ifdef __UCLIBC_HAS_THREADS__
|
|
#ifdef __UCLIBC_HAS_THREADS__
|
|
|
#define xports (*(SVCXPRT ***)&RPC_THREAD_VARIABLE(svc_xports_s))
|
|
#define xports (*(SVCXPRT ***)&RPC_THREAD_VARIABLE(svc_xports_s))
|
|
@@ -85,7 +77,6 @@ static struct svc_callout *svc_head;
|
|
|
/* *************** SVCXPRT related stuff **************** */
|
|
/* *************** SVCXPRT related stuff **************** */
|
|
|
|
|
|
|
|
/* Activate a transport handle. */
|
|
/* Activate a transport handle. */
|
|
|
-/* libc_hidden_proto(xprt_register) */
|
|
|
|
|
void
|
|
void
|
|
|
xprt_register (SVCXPRT *xprt)
|
|
xprt_register (SVCXPRT *xprt)
|
|
|
{
|
|
{
|
|
@@ -129,7 +120,6 @@ xprt_register (SVCXPRT *xprt)
|
|
|
libc_hidden_def(xprt_register)
|
|
libc_hidden_def(xprt_register)
|
|
|
|
|
|
|
|
/* De-activate a transport handle. */
|
|
/* De-activate a transport handle. */
|
|
|
-/* libc_hidden_proto(xprt_unregister) */
|
|
|
|
|
void
|
|
void
|
|
|
xprt_unregister (SVCXPRT *xprt)
|
|
xprt_unregister (SVCXPRT *xprt)
|
|
|
{
|
|
{
|
|
@@ -175,7 +165,6 @@ done:
|
|
|
/* Add a service program to the callout list.
|
|
/* Add a service program to the callout list.
|
|
|
The dispatch routine will be called when a rpc request for this
|
|
The dispatch routine will be called when a rpc request for this
|
|
|
program number comes in. */
|
|
program number comes in. */
|
|
|
-/* libc_hidden_proto(svc_register) */
|
|
|
|
|
bool_t
|
|
bool_t
|
|
|
svc_register (SVCXPRT * xprt, rpcprog_t prog, rpcvers_t vers,
|
|
svc_register (SVCXPRT * xprt, rpcprog_t prog, rpcvers_t vers,
|
|
|
void (*dispatch) (struct svc_req *, SVCXPRT *),
|
|
void (*dispatch) (struct svc_req *, SVCXPRT *),
|
|
@@ -210,7 +199,6 @@ pmap_it:
|
|
|
libc_hidden_def(svc_register)
|
|
libc_hidden_def(svc_register)
|
|
|
|
|
|
|
|
/* Remove a service program from the callout list. */
|
|
/* Remove a service program from the callout list. */
|
|
|
-/* libc_hidden_proto(svc_unregister) */
|
|
|
|
|
void
|
|
void
|
|
|
svc_unregister (rpcprog_t prog, rpcvers_t vers)
|
|
svc_unregister (rpcprog_t prog, rpcvers_t vers)
|
|
|
{
|
|
{
|
|
@@ -235,7 +223,6 @@ libc_hidden_def(svc_unregister)
|
|
|
/* ******************* REPLY GENERATION ROUTINES ************ */
|
|
/* ******************* REPLY GENERATION ROUTINES ************ */
|
|
|
|
|
|
|
|
/* Send a reply to an rpc request */
|
|
/* Send a reply to an rpc request */
|
|
|
-/* libc_hidden_proto(svc_sendreply) */
|
|
|
|
|
bool_t
|
|
bool_t
|
|
|
svc_sendreply (register SVCXPRT *xprt, xdrproc_t xdr_results,
|
|
svc_sendreply (register SVCXPRT *xprt, xdrproc_t xdr_results,
|
|
|
caddr_t xdr_location)
|
|
caddr_t xdr_location)
|
|
@@ -266,7 +253,6 @@ svcerr_noproc (register SVCXPRT *xprt)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* Can't decode args error reply */
|
|
/* Can't decode args error reply */
|
|
|
-/* libc_hidden_proto(svcerr_decode) */
|
|
|
|
|
void
|
|
void
|
|
|
svcerr_decode (register SVCXPRT *xprt)
|
|
svcerr_decode (register SVCXPRT *xprt)
|
|
|
{
|
|
{
|
|
@@ -294,7 +280,6 @@ svcerr_systemerr (register SVCXPRT *xprt)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* Authentication error reply */
|
|
/* Authentication error reply */
|
|
|
-/* libc_hidden_proto(svcerr_auth) */
|
|
|
|
|
void
|
|
void
|
|
|
svcerr_auth (SVCXPRT *xprt, enum auth_stat why)
|
|
svcerr_auth (SVCXPRT *xprt, enum auth_stat why)
|
|
|
{
|
|
{
|
|
@@ -316,7 +301,6 @@ svcerr_weakauth (SVCXPRT *xprt)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* Program unavailable error reply */
|
|
/* Program unavailable error reply */
|
|
|
-/* libc_hidden_proto(svcerr_noprog) */
|
|
|
|
|
void
|
|
void
|
|
|
svcerr_noprog (register SVCXPRT *xprt)
|
|
svcerr_noprog (register SVCXPRT *xprt)
|
|
|
{
|
|
{
|
|
@@ -331,7 +315,6 @@ svcerr_noprog (register SVCXPRT *xprt)
|
|
|
libc_hidden_def(svcerr_noprog)
|
|
libc_hidden_def(svcerr_noprog)
|
|
|
|
|
|
|
|
/* Program version mismatch error reply */
|
|
/* Program version mismatch error reply */
|
|
|
-/* libc_hidden_proto(svcerr_progvers) */
|
|
|
|
|
void
|
|
void
|
|
|
svcerr_progvers (register SVCXPRT *xprt, rpcvers_t low_vers,
|
|
svcerr_progvers (register SVCXPRT *xprt, rpcvers_t low_vers,
|
|
|
rpcvers_t high_vers)
|
|
rpcvers_t high_vers)
|
|
@@ -366,7 +349,6 @@ libc_hidden_def(svcerr_progvers)
|
|
|
* is mallocated in kernel land.
|
|
* is mallocated in kernel land.
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
-/* libc_hidden_proto(svc_getreq_common) */
|
|
|
|
|
void
|
|
void
|
|
|
svc_getreq_common (const int fd)
|
|
svc_getreq_common (const int fd)
|
|
|
{
|
|
{
|
|
@@ -458,7 +440,6 @@ svc_getreq_common (const int fd)
|
|
|
}
|
|
}
|
|
|
libc_hidden_def(svc_getreq_common)
|
|
libc_hidden_def(svc_getreq_common)
|
|
|
|
|
|
|
|
-/* libc_hidden_proto(svc_getreqset) */
|
|
|
|
|
void
|
|
void
|
|
|
svc_getreqset (fd_set *readfds)
|
|
svc_getreqset (fd_set *readfds)
|
|
|
{
|
|
{
|
|
@@ -476,7 +457,6 @@ svc_getreqset (fd_set *readfds)
|
|
|
}
|
|
}
|
|
|
libc_hidden_def(svc_getreqset)
|
|
libc_hidden_def(svc_getreqset)
|
|
|
|
|
|
|
|
-/* libc_hidden_proto(svc_getreq) */
|
|
|
|
|
void
|
|
void
|
|
|
svc_getreq (int rdfds)
|
|
svc_getreq (int rdfds)
|
|
|
{
|
|
{
|
|
@@ -488,7 +468,6 @@ svc_getreq (int rdfds)
|
|
|
}
|
|
}
|
|
|
libc_hidden_def(svc_getreq)
|
|
libc_hidden_def(svc_getreq)
|
|
|
|
|
|
|
|
-/* libc_hidden_proto(svc_getreq_poll) */
|
|
|
|
|
void
|
|
void
|
|
|
svc_getreq_poll (struct pollfd *pfdp, int pollretval)
|
|
svc_getreq_poll (struct pollfd *pfdp, int pollretval)
|
|
|
{
|
|
{
|