forked from Imagelibrary/rtems
Add missing prototypes.
This commit is contained in:
@@ -62,12 +62,12 @@ struct clnt_raw_private {
|
|||||||
};
|
};
|
||||||
#define clntraw_private (rtems_rpc_task_variables->clnt_raw_private)
|
#define clntraw_private (rtems_rpc_task_variables->clnt_raw_private)
|
||||||
|
|
||||||
static enum clnt_stat clntraw_call();
|
static enum clnt_stat clntraw_call(CLIENT *h, u_long proc, xdrproc_t xargs, caddr_t argsp, xdrproc_t xresults, caddr_t resultsp, struct timeval timeout);
|
||||||
static void clntraw_abort();
|
static void clntraw_abort(void);
|
||||||
static void clntraw_geterr();
|
static void clntraw_geterr(CLIENT *h, struct rpc_err*);
|
||||||
static bool_t clntraw_freeres();
|
static bool_t clntraw_freeres(CLIENT *, xdrproc_t, caddr_t);
|
||||||
static bool_t clntraw_control();
|
static bool_t clntraw_control(CLIENT *, int, char *);
|
||||||
static void clntraw_destroy();
|
static void clntraw_destroy(CLIENT *);
|
||||||
|
|
||||||
static struct clnt_ops client_ops = {
|
static struct clnt_ops client_ops = {
|
||||||
clntraw_call,
|
clntraw_call,
|
||||||
@@ -78,8 +78,6 @@ static struct clnt_ops client_ops = {
|
|||||||
clntraw_control
|
clntraw_control
|
||||||
};
|
};
|
||||||
|
|
||||||
void svc_getreq();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create a client handle for memory based rpc.
|
* Create a client handle for memory based rpc.
|
||||||
*/
|
*/
|
||||||
@@ -202,7 +200,7 @@ call_again:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clntraw_geterr()
|
clntraw_geterr(CLIENT *cl, struct rpc_err *err)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -227,17 +225,17 @@ clntraw_freeres(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clntraw_abort()
|
clntraw_abort(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool_t
|
static bool_t
|
||||||
clntraw_control()
|
clntraw_control(CLIENT *cl, int request, char *info)
|
||||||
{
|
{
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clntraw_destroy()
|
clntraw_destroy(CLIENT *cl)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,12 +54,12 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/clnt_udp.c,v 1.15 2000/01/27 23
|
|||||||
/*
|
/*
|
||||||
* UDP bases client side rpc operations
|
* UDP bases client side rpc operations
|
||||||
*/
|
*/
|
||||||
static enum clnt_stat clntudp_call();
|
static enum clnt_stat clntudp_call(CLIENT *, u_long, xdrproc_t, caddr_t, xdrproc_t, caddr_t, struct timeval);
|
||||||
static void clntudp_abort();
|
static void clntudp_abort(void);
|
||||||
static void clntudp_geterr();
|
static void clntudp_geterr(CLIENT *, struct rpc_err*);
|
||||||
static bool_t clntudp_freeres();
|
static bool_t clntudp_freeres(CLIENT *, xdrproc_t, caddr_t);
|
||||||
static bool_t clntudp_control();
|
static bool_t clntudp_control(CLIENT *, int, char *);
|
||||||
static void clntudp_destroy();
|
static void clntudp_destroy(CLIENT *);
|
||||||
|
|
||||||
static struct clnt_ops udp_ops = {
|
static struct clnt_ops udp_ops = {
|
||||||
clntudp_call,
|
clntudp_call,
|
||||||
@@ -213,14 +213,14 @@ clntudp_create(raddr, program, version, wait, sockp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static enum clnt_stat
|
static enum clnt_stat
|
||||||
clntudp_call(cl, proc, xargs, argsp, xresults, resultsp, utimeout)
|
clntudp_call(
|
||||||
register CLIENT *cl; /* client handle */
|
CLIENT *cl, /* client handle */
|
||||||
u_long proc; /* procedure number */
|
u_long proc, /* procedure number */
|
||||||
xdrproc_t xargs; /* xdr routine for args */
|
xdrproc_t xargs, /* xdr routine for args */
|
||||||
caddr_t argsp; /* pointer to args */
|
caddr_t argsp, /* pointer to args */
|
||||||
xdrproc_t xresults; /* xdr routine for results */
|
xdrproc_t xresults, /* xdr routine for results */
|
||||||
caddr_t resultsp; /* pointer to results */
|
caddr_t resultsp, /* pointer to results */
|
||||||
struct timeval utimeout; /* seconds to wait before giving up */
|
struct timeval utimeout ) /* seconds to wait before giving up */
|
||||||
{
|
{
|
||||||
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
|
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
|
||||||
register XDR *xdrs;
|
register XDR *xdrs;
|
||||||
@@ -405,9 +405,9 @@ send_again:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clntudp_geterr(cl, errp)
|
clntudp_geterr(
|
||||||
CLIENT *cl;
|
CLIENT *cl,
|
||||||
struct rpc_err *errp;
|
struct rpc_err *errp)
|
||||||
{
|
{
|
||||||
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
|
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
|
||||||
|
|
||||||
@@ -416,10 +416,10 @@ clntudp_geterr(cl, errp)
|
|||||||
|
|
||||||
|
|
||||||
static bool_t
|
static bool_t
|
||||||
clntudp_freeres(cl, xdr_res, res_ptr)
|
clntudp_freeres(
|
||||||
CLIENT *cl;
|
CLIENT *cl,
|
||||||
xdrproc_t xdr_res;
|
xdrproc_t xdr_res,
|
||||||
caddr_t res_ptr;
|
caddr_t res_ptr)
|
||||||
{
|
{
|
||||||
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
|
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
|
||||||
register XDR *xdrs = &(cu->cu_outxdrs);
|
register XDR *xdrs = &(cu->cu_outxdrs);
|
||||||
@@ -429,17 +429,16 @@ clntudp_freeres(cl, xdr_res, res_ptr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clntudp_abort(/*h*/)
|
clntudp_abort(void)
|
||||||
/*CLIENT *h;*/
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static bool_t
|
static bool_t
|
||||||
clntudp_control(cl, request, info)
|
clntudp_control(
|
||||||
CLIENT *cl;
|
CLIENT *cl,
|
||||||
int request;
|
int request,
|
||||||
char *info;
|
char *info)
|
||||||
{
|
{
|
||||||
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
|
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
|
||||||
register struct timeval *tv;
|
register struct timeval *tv;
|
||||||
@@ -554,8 +553,8 @@ clntudp_control(cl, request, info)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clntudp_destroy(cl)
|
clntudp_destroy(
|
||||||
CLIENT *cl;
|
CLIENT *cl)
|
||||||
{
|
{
|
||||||
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
|
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
|
||||||
|
|
||||||
|
|||||||
@@ -76,15 +76,15 @@ static const char rcsid[] =
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum auth_stat _svcauth_null(); /* no authentication */
|
enum auth_stat _svcauth_null(struct svc_req *rqst, struct rpc_msg *msg); /* no authentication */
|
||||||
enum auth_stat _svcauth_unix(); /* (system) unix style (uid, gids) */
|
enum auth_stat _svcauth_unix(struct svc_req *rqst, struct rpc_msg *msg); /* (system) unix style (uid, gids) */
|
||||||
enum auth_stat _svcauth_short(); /* short hand unix style */
|
enum auth_stat _svcauth_short(struct svc_req *rqst, struct rpc_msg *msg); /* short hand unix style */
|
||||||
enum auth_stat _svcauth_des(); /* des style */
|
enum auth_stat _svcauth_des(struct svc_req *rqst, struct rpc_msg *msg); /* des style */
|
||||||
|
|
||||||
/* declarations to allow servers to specify new authentication flavors */
|
/* declarations to allow servers to specify new authentication flavors */
|
||||||
struct authsvc {
|
struct authsvc {
|
||||||
int flavor;
|
int flavor;
|
||||||
enum auth_stat (*handler)();
|
enum auth_stat (*handler)(struct svc_req *rqst, struct rpc_msg *msg);
|
||||||
struct authsvc *next;
|
struct authsvc *next;
|
||||||
};
|
};
|
||||||
#define Auths (rtems_rpc_task_variables->svc_auths_Auths)
|
#define Auths (rtems_rpc_task_variables->svc_auths_Auths)
|
||||||
@@ -108,9 +108,9 @@ struct authsvc {
|
|||||||
* invalid.
|
* invalid.
|
||||||
*/
|
*/
|
||||||
enum auth_stat
|
enum auth_stat
|
||||||
_authenticate(rqst, msg)
|
_authenticate(
|
||||||
register struct svc_req *rqst;
|
struct svc_req *rqst,
|
||||||
struct rpc_msg *msg;
|
struct rpc_msg *msg )
|
||||||
{
|
{
|
||||||
register int cred_flavor;
|
register int cred_flavor;
|
||||||
register struct authsvc *asp;
|
register struct authsvc *asp;
|
||||||
@@ -155,9 +155,9 @@ _authenticate(rqst, msg)
|
|||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
enum auth_stat
|
enum auth_stat
|
||||||
_svcauth_null(rqst, msg)
|
_svcauth_null(
|
||||||
struct svc_req *rqst;
|
struct svc_req *rqst,
|
||||||
struct rpc_msg *msg;
|
struct rpc_msg *msg)
|
||||||
{
|
{
|
||||||
return (AUTH_OK);
|
return (AUTH_OK);
|
||||||
}
|
}
|
||||||
@@ -177,9 +177,9 @@ _svcauth_null(rqst, msg)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
svc_auth_reg(cred_flavor, handler)
|
svc_auth_reg(
|
||||||
register int cred_flavor;
|
int cred_flavor,
|
||||||
enum auth_stat (*handler)();
|
enum auth_stat (*handler)(struct svc_req *rqst, struct rpc_msg *msg))
|
||||||
{
|
{
|
||||||
register struct authsvc *asp;
|
register struct authsvc *asp;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user