2003-11-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

* include/rpc/rpc.hinclude/rpc/rpc.h: Rename struct
	rtems_rpc_task_variables into struct _rtems_rpc_task_variables
	(Avoid symbol conflict between struct and variable).
	struct _rtems_rpc_task_variables *rtems_rpc_task_variables;
	Reflect changes above.
	* src/rpc/clnt_perror.c, src/rpc/clnt_raw.c, src/rpc/clnt_simple.c,
	src/rpc/rpcdname.c, src/rpc/rtems_rpc.c, src/rpc/svc.c,
	src/rpc/svc_auth.c, src/rpc/svc_raw.c, src/rpc/svc_simple.c:
	Reflect changes above.
This commit is contained in:
Ralf Corsepius
2003-11-27 09:35:40 +00:00
parent c9a4da01c6
commit d16b2d3548
11 changed files with 34 additions and 22 deletions
+12
View File
@@ -1,3 +1,15 @@
2003-11-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rpc/rpc.hinclude/rpc/rpc.h: Rename struct
rtems_rpc_task_variables into struct _rtems_rpc_task_variables
(Avoid symbol conflict between struct and variable).
struct _rtems_rpc_task_variables *rtems_rpc_task_variables;
Reflect changes above.
* src/rpc/clnt_perror.c, src/rpc/clnt_raw.c, src/rpc/clnt_simple.c,
src/rpc/rpcdname.c, src/rpc/rtems_rpc.c, src/rpc/svc.c,
src/rpc/svc_auth.c, src/rpc/svc_raw.c, src/rpc/svc_simple.c:
Reflect changes above.
2003-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/rpc/Makefile.am: Remove __P from AM_CPPFLAGS.
+6 -6
View File
@@ -100,7 +100,7 @@ int rtems_rpc_start_portmapper (int priority);
* Group all global and static variables into a single spot.
* This area will be allocated on a per-task basis
*/
struct rtems_rpc_task_variables {
struct _rtems_rpc_task_variables {
int svc_svc_maxfd;
fd_set svc_svc_fdset;
void *svc_xports;
@@ -125,12 +125,12 @@ struct rtems_rpc_task_variables {
void *svc_auths_Auths;
};
extern void *rtems_rpc_task_variables;
extern struct _rtems_rpc_task_variables *rtems_rpc_task_variables;
#define svc_maxfd (((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_svc_maxfd)
#define svc_fdset (((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_svc_fdset)
#define __svc_fdsetsize (((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc__svc_fdsetsize)
#define __svc_fdset (fd_set *)(((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc__svc_fdset)
#define svc_maxfd (rtems_rpc_task_variables->svc_svc_maxfd)
#define svc_fdset ((rtems_rpc_task_variables)->svc_svc_fdset)
#define __svc_fdsetsize (rtems_rpc_task_variables->svc__svc_fdsetsize)
#define __svc_fdset (fd_set *)(rtems_rpc_task_variables->svc__svc_fdset)
#endif /* _RTEMS_RPC_INTERNAL_ */
+1 -1
View File
@@ -50,7 +50,7 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/clnt_perror.c,v 1.11 1999/08/28
static char *auth_errmsg();
#define CLNT_PERROR_BUFLEN 256
#define buf ((char *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->clnt_perror_buf)
#define buf ((char *)(rtems_rpc_task_variables)->clnt_perror_buf)
static char *
_buf()
+1 -1
View File
@@ -60,7 +60,7 @@ struct clnt_raw_private {
char mashl_callmsg[MCALL_MSG_SIZE];
u_int mcnt;
};
#define clntraw_private ((struct clnt_raw_private *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->clnt_raw_private)
#define clntraw_private ((struct clnt_raw_private *) (rtems_rpc_task_variables)->clnt_raw_private)
static enum clnt_stat clntraw_call();
static void clntraw_abort();
+1 -1
View File
@@ -55,7 +55,7 @@ struct call_rpc_private {
int oldprognum, oldversnum, valid;
char *oldhost;
};
#define callrpc_private ((struct call_rpc_private *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->call_rpc_private)
#define callrpc_private ((struct call_rpc_private *)(rtems_rpc_task_variables)->call_rpc_private)
int
callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out)
+1 -1
View File
@@ -43,7 +43,7 @@ static char sccsid[] = "@(#)rpcdname.c 1.7 91/03/11 Copyr 1989 Sun Micro";
int getdomainname(char *, size_t);
#define default_domain ((char *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->rpcdname_default_domain)
#define default_domain ((char *)(rtems_rpc_task_variables)->rpcdname_default_domain)
static char *
get_default_domain()
+4 -4
View File
@@ -9,21 +9,21 @@
/*
* RPC variables for single-thread
*/
static struct rtems_rpc_task_variables rpc_default = {
static struct _rtems_rpc_task_variables rpc_default = {
-1, /* svc_maxfd */
};
/*
* RPC values for initializing a new per-task set of variables
*/
static const struct rtems_rpc_task_variables rpc_init = {
static const struct _rtems_rpc_task_variables rpc_init = {
-1, /* svc_maxfd */
};
/*
* Per-task pointer to RPC data
*/
void *rtems_rpc_task_variables = &rpc_default;
struct _rtems_rpc_task_variables *rtems_rpc_task_variables = &rpc_default;
/*
* Set up per-task RPC variables
@@ -31,7 +31,7 @@ void *rtems_rpc_task_variables = &rpc_default;
int rtems_rpc_task_init (void)
{
rtems_status_code sc;
struct rtems_rpc_task_variables *tvp;
struct _rtems_rpc_task_variables *tvp;
if (rtems_rpc_task_variables == &rpc_default) {
tvp = malloc (sizeof *tvp);
+3 -3
View File
@@ -49,8 +49,8 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/svc.c,v 1.14 1999/08/28 00:00:4
#include <rpc/rpc.h>
#include <rpc/pmap_clnt.h>
#define xports ((SVCXPRT **)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_xports)
#define xportssize (((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_xportssize)
#define xports ((SVCXPRT **) rtems_rpc_task_variables->svc_xports)
#define xportssize (rtems_rpc_task_variables->svc_xportssize)
#define NULL_SVC ((struct svc_callout *)0)
#define RQCRED_SIZE 400 /* this size is excessive */
@@ -69,7 +69,7 @@ struct svc_callout {
u_long sc_vers;
void (*sc_dispatch)();
};
#define svc_head (struct svc_callout *)(((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_svc_head)
#define svc_head (struct svc_callout *)((rtems_rpc_task_variables)->svc_svc_head)
static struct svc_callout *svc_find();
+1 -1
View File
@@ -87,7 +87,7 @@ struct authsvc {
enum auth_stat (*handler)();
struct authsvc *next;
};
#define Auths ((struct authsvc *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_auths_Auths)
#define Auths ((struct authsvc *)(rtems_rpc_task_variables)->svc_auths_Auths)
/*
* The call rpc message, msg has been obtained from the wire. The msg contains
+1 -1
View File
@@ -54,7 +54,7 @@ struct svc_raw_private {
XDR xdr_stream;
char verf_body[MAX_AUTH_BYTES];
};
#define svcraw_private ((struct svc_raw_private *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_raw_private)
#define svcraw_private ((struct svc_raw_private *)(rtems_rpc_task_variables)->svc_raw_private)
static bool_t svcraw_recv();
static enum xprt_stat svcraw_stat();
+3 -3
View File
@@ -56,9 +56,9 @@ struct prog_lst {
struct prog_lst *p_nxt;
};
static void universal();
#define proglst ((struct prog_lst *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_simple_proglst)
#define pl ((struct prog_lst *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_simple_pl)
#define transp ((SVCXPRT *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_simple_transp)
#define proglst ((struct prog_lst *)(rtems_rpc_task_variables)->svc_simple_proglst)
#define pl ((struct prog_lst *)(rtems_rpc_task_variables)->svc_simple_pl)
#define transp ((SVCXPRT *)(rtems_rpc_task_variables)->svc_simple_transp)
int
registerrpc(prognum, versnum, procnum, progname, inproc, outproc)