Changeset d16b2d3 in rtems for cpukit/librpc


Ignore:
Timestamp:
Nov 27, 2003, 9:35:40 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
69a6204c
Parents:
c9a4da01
Message:

2003-11-27 Ralf Corsepius <corsepiu@…>

  • 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.
Location:
cpukit/librpc
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • cpukit/librpc/ChangeLog

    rc9a4da01 rd16b2d3  
     12003-11-27      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * include/rpc/rpc.hinclude/rpc/rpc.h: Rename struct
     4        rtems_rpc_task_variables into struct _rtems_rpc_task_variables
     5        (Avoid symbol conflict between struct and variable).
     6        struct _rtems_rpc_task_variables *rtems_rpc_task_variables;
     7        Reflect changes above.
     8        * src/rpc/clnt_perror.c, src/rpc/clnt_raw.c, src/rpc/clnt_simple.c,
     9        src/rpc/rpcdname.c, src/rpc/rtems_rpc.c, src/rpc/svc.c,
     10        src/rpc/svc_auth.c, src/rpc/svc_raw.c, src/rpc/svc_simple.c:
     11        Reflect changes above.
     12
    1132003-10-21      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    214
  • cpukit/librpc/include/rpc/rpc.h

    rc9a4da01 rd16b2d3  
    101101 * This area will be allocated on a per-task basis
    102102 */
    103 struct rtems_rpc_task_variables {
     103struct _rtems_rpc_task_variables {
    104104        int             svc_svc_maxfd;
    105105        fd_set          svc_svc_fdset;
     
    126126        void            *svc_auths_Auths;
    127127};
    128 extern void *rtems_rpc_task_variables;
     128extern struct _rtems_rpc_task_variables *rtems_rpc_task_variables;
    129129
    130 #define svc_maxfd (((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_svc_maxfd)
    131 #define svc_fdset (((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_svc_fdset)
    132 #define __svc_fdsetsize (((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc__svc_fdsetsize)
    133 #define __svc_fdset (fd_set *)(((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc__svc_fdset)
     130#define svc_maxfd (rtems_rpc_task_variables->svc_svc_maxfd)
     131#define svc_fdset ((rtems_rpc_task_variables)->svc_svc_fdset)
     132#define __svc_fdsetsize (rtems_rpc_task_variables->svc__svc_fdsetsize)
     133#define __svc_fdset (fd_set *)(rtems_rpc_task_variables->svc__svc_fdset)
    134134
    135135#endif /* _RTEMS_RPC_INTERNAL_ */
  • cpukit/librpc/src/rpc/clnt_perror.c

    rc9a4da01 rd16b2d3  
    5151#define CLNT_PERROR_BUFLEN 256
    5252
    53 #define buf ((char  *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->clnt_perror_buf)
     53#define buf ((char  *)(rtems_rpc_task_variables)->clnt_perror_buf)
    5454
    5555static char *
  • cpukit/librpc/src/rpc/clnt_raw.c

    rc9a4da01 rd16b2d3  
    6161        u_int   mcnt;
    6262};
    63 #define clntraw_private ((struct clnt_raw_private *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->clnt_raw_private)
     63#define clntraw_private ((struct clnt_raw_private *) (rtems_rpc_task_variables)->clnt_raw_private)
    6464
    6565static enum clnt_stat   clntraw_call();
  • cpukit/librpc/src/rpc/clnt_simple.c

    rc9a4da01 rd16b2d3  
    5656        char    *oldhost;
    5757};
    58 #define callrpc_private ((struct call_rpc_private *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->call_rpc_private)
     58#define callrpc_private ((struct call_rpc_private *)(rtems_rpc_task_variables)->call_rpc_private)
    5959
    6060int
  • cpukit/librpc/src/rpc/rpcdname.c

    rc9a4da01 rd16b2d3  
    4444int getdomainname(char *, size_t);
    4545
    46 #define default_domain ((char *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->rpcdname_default_domain)
     46#define default_domain ((char *)(rtems_rpc_task_variables)->rpcdname_default_domain)
    4747
    4848static char *
  • cpukit/librpc/src/rpc/rtems_rpc.c

    rc9a4da01 rd16b2d3  
    1010 * RPC variables for single-thread
    1111 */
    12 static struct rtems_rpc_task_variables rpc_default = {
     12static struct _rtems_rpc_task_variables rpc_default = {
    1313        -1,             /* svc_maxfd */
    1414};
     
    1717 * RPC values for initializing a new per-task set of variables
    1818 */
    19 static const struct rtems_rpc_task_variables rpc_init = {
     19static const struct _rtems_rpc_task_variables rpc_init = {
    2020        -1,             /* svc_maxfd */
    2121};
     
    2424 * Per-task pointer to RPC data
    2525 */
    26 void *rtems_rpc_task_variables = &rpc_default;
     26struct _rtems_rpc_task_variables *rtems_rpc_task_variables = &rpc_default;
    2727
    2828/*
     
    3232{
    3333        rtems_status_code sc;
    34         struct rtems_rpc_task_variables *tvp;
     34        struct _rtems_rpc_task_variables *tvp;
    3535
    3636        if (rtems_rpc_task_variables == &rpc_default) {
  • cpukit/librpc/src/rpc/svc.c

    rc9a4da01 rd16b2d3  
    5050#include <rpc/pmap_clnt.h>
    5151
    52 #define xports ((SVCXPRT **)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_xports)
    53 #define xportssize (((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_xportssize)
     52#define xports ((SVCXPRT **) rtems_rpc_task_variables->svc_xports)
     53#define xportssize (rtems_rpc_task_variables->svc_xportssize)
    5454
    5555#define NULL_SVC ((struct svc_callout *)0)
     
    7070        void                (*sc_dispatch)();
    7171};
    72 #define svc_head (struct svc_callout *)(((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_svc_head)
     72#define svc_head (struct svc_callout *)((rtems_rpc_task_variables)->svc_svc_head)
    7373
    7474static struct svc_callout *svc_find();
  • cpukit/librpc/src/rpc/svc_auth.c

    rc9a4da01 rd16b2d3  
    8888        struct  authsvc   *next;
    8989};
    90 #define Auths ((struct authsvc *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_auths_Auths)
     90#define Auths ((struct authsvc *)(rtems_rpc_task_variables)->svc_auths_Auths)
    9191
    9292/*
  • cpukit/librpc/src/rpc/svc_raw.c

    rc9a4da01 rd16b2d3  
    5555        char    verf_body[MAX_AUTH_BYTES];
    5656};
    57 #define svcraw_private ((struct svc_raw_private *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_raw_private)
     57#define svcraw_private ((struct svc_raw_private *)(rtems_rpc_task_variables)->svc_raw_private)
    5858
    5959static bool_t           svcraw_recv();
  • cpukit/librpc/src/rpc/svc_simple.c

    rc9a4da01 rd16b2d3  
    5757};
    5858static void universal();
    59 #define proglst ((struct prog_lst *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_simple_proglst)
    60 #define pl ((struct prog_lst *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_simple_pl)
    61 #define transp ((SVCXPRT *)((struct rtems_rpc_task_variables *)rtems_rpc_task_variables)->svc_simple_transp)
     59#define proglst ((struct prog_lst *)(rtems_rpc_task_variables)->svc_simple_proglst)
     60#define pl ((struct prog_lst *)(rtems_rpc_task_variables)->svc_simple_pl)
     61#define transp ((SVCXPRT *)(rtems_rpc_task_variables)->svc_simple_transp)
    6262
    6363int
Note: See TracChangeset for help on using the changeset viewer.