mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
* include/rpc/rpc.h: Declare thread variables with their correct
type. * sunrpc/clnt_perr.c: Don't cast thread variables. * sunrpc/clnt_raw.c: Likewise. * sunrpc/clnt_simp.c: Likewise. * sunrpc/key_call.c: Likewise. * sunrpc/svcauth_des.c: Likewise. * sunrpc/svc.c: Likewise. * sunrpc/svc_raw.c: Likewise. * sunrpc/svc_simple.c: Likewise. 2004-02-09 Andreas Schwab <schwab@suse.de> * include/rpc/rpc.h: Declare thread variables with their correct type. * sunrpc/clnt_perr.c: Don't cast thread variables. * sunrpc/clnt_raw.c: Likewise. * sunrpc/clnt_simp.c: Likewise. * sunrpc/key_call.c: Likewise. * sunrpc/svcauth_des.c: Likewise. * sunrpc/svc.c: Likewise. * sunrpc/svc_raw.c: Likewise. * sunrpc/svc_simple.c: Likewise.
This commit is contained in:
parent
7be688b58f
commit
1bc1a2b907
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
|||||||
|
2004-02-09 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* include/rpc/rpc.h: Declare thread variables with their correct
|
||||||
|
type.
|
||||||
|
* sunrpc/clnt_perr.c: Don't cast thread variables.
|
||||||
|
* sunrpc/clnt_raw.c: Likewise.
|
||||||
|
* sunrpc/clnt_simp.c: Likewise.
|
||||||
|
* sunrpc/key_call.c: Likewise.
|
||||||
|
* sunrpc/svcauth_des.c: Likewise.
|
||||||
|
* sunrpc/svc.c: Likewise.
|
||||||
|
* sunrpc/svc_raw.c: Likewise.
|
||||||
|
* sunrpc/svc_simple.c: Likewise.
|
||||||
|
|
||||||
2004-02-09 Ulrich Drepper <drepper@redhat.com>
|
2004-02-09 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* stdio-common/_i18n_number.h: Support printing localized decimal
|
* stdio-common/_i18n_number.h: Support printing localized decimal
|
||||||
|
@ -17,24 +17,24 @@ struct rpc_thread_variables {
|
|||||||
struct pollfd *svc_pollfd_s; /* Global, rpc_common.c */
|
struct pollfd *svc_pollfd_s; /* Global, rpc_common.c */
|
||||||
int svc_max_pollfd_s; /* Global, rpc_common.c */
|
int svc_max_pollfd_s; /* Global, rpc_common.c */
|
||||||
|
|
||||||
void *clnt_perr_buf_s; /* clnt_perr.c */
|
char *clnt_perr_buf_s; /* clnt_perr.c */
|
||||||
|
|
||||||
void *clntraw_private_s; /* clnt_raw.c */
|
struct clntraw_private_s *clntraw_private_s; /* clnt_raw.c */
|
||||||
|
|
||||||
void *callrpc_private_s; /* clnt_simp.c */
|
struct callrpc_private_s *callrpc_private_s; /* clnt_simp.c */
|
||||||
|
|
||||||
void *key_call_private_s; /* key_call.c */
|
struct key_call_private *key_call_private_s; /* key_call.c */
|
||||||
|
|
||||||
void *authdes_cache_s; /* svcauth_des.c */
|
struct cache_entry *authdes_cache_s; /* svcauth_des.c */
|
||||||
void *authdes_lru_s; /* svcauth_des.c */
|
int *authdes_lru_s; /* svcauth_des.c */
|
||||||
|
|
||||||
void *svc_xports_s; /* svc.c */
|
SVCXPRT **svc_xports_s; /* svc.c */
|
||||||
void *svc_head_s; /* svc.c */
|
struct svc_callout *svc_head_s; /* svc.c */
|
||||||
|
|
||||||
void *svcraw_private_s; /* svc_raw.c */
|
struct svcraw_private_s *svcraw_private_s; /* svc_raw.c */
|
||||||
|
|
||||||
void *svcsimple_proglst_s; /* svc_simple.c */
|
struct proglst_ *svcsimple_proglst_s; /* svc_simple.c */
|
||||||
void *svcsimple_transp_s; /* svc_simple.c */
|
SVCXPRT *svcsimple_transp_s; /* svc_simple.c */
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct rpc_thread_variables *__rpc_thread_variables(void)
|
extern struct rpc_thread_variables *__rpc_thread_variables(void)
|
||||||
|
@ -55,7 +55,7 @@ static char *auth_errmsg (enum auth_stat stat) internal_function;
|
|||||||
* buf variable in a few functions. Overriding a global variable
|
* buf variable in a few functions. Overriding a global variable
|
||||||
* with a local variable of the same name is a bad idea, anyway.
|
* with a local variable of the same name is a bad idea, anyway.
|
||||||
*/
|
*/
|
||||||
#define buf ((char *)RPC_THREAD_VARIABLE(clnt_perr_buf_s))
|
#define buf RPC_THREAD_VARIABLE(clnt_perr_buf_s)
|
||||||
#else
|
#else
|
||||||
static char *buf;
|
static char *buf;
|
||||||
#endif
|
#endif
|
||||||
|
@ -61,7 +61,7 @@ struct clntraw_private_s
|
|||||||
u_int mcnt;
|
u_int mcnt;
|
||||||
};
|
};
|
||||||
#ifdef _RPC_THREAD_SAFE_
|
#ifdef _RPC_THREAD_SAFE_
|
||||||
#define clntraw_private ((struct clntraw_private_s *)RPC_THREAD_VARIABLE(clntraw_private_s))
|
#define clntraw_private RPC_THREAD_VARIABLE(clntraw_private_s)
|
||||||
#else
|
#else
|
||||||
static struct clntraw_private_s *clntraw_private;
|
static struct clntraw_private_s *clntraw_private;
|
||||||
#endif
|
#endif
|
||||||
|
@ -55,7 +55,7 @@ struct callrpc_private_s
|
|||||||
char *oldhost;
|
char *oldhost;
|
||||||
};
|
};
|
||||||
#ifdef _RPC_THREAD_SAFE_
|
#ifdef _RPC_THREAD_SAFE_
|
||||||
#define callrpc_private ((struct callrpc_private_s *)RPC_THREAD_VARIABLE(callrpc_private_s))
|
#define callrpc_private RPC_THREAD_VARIABLE(callrpc_private_s)
|
||||||
#else
|
#else
|
||||||
static struct callrpc_private_s *callrpc_private;
|
static struct callrpc_private_s *callrpc_private;
|
||||||
#endif
|
#endif
|
||||||
|
@ -370,7 +370,7 @@ struct key_call_private {
|
|||||||
uid_t uid; /* user-id at last authorization */
|
uid_t uid; /* user-id at last authorization */
|
||||||
};
|
};
|
||||||
#ifdef _RPC_THREAD_SAFE_
|
#ifdef _RPC_THREAD_SAFE_
|
||||||
#define key_call_private_main ((struct key_call_private *)RPC_THREAD_VARIABLE(key_call_private_s))
|
#define key_call_private_main RPC_THREAD_VARIABLE(key_call_private_s)
|
||||||
#else
|
#else
|
||||||
static struct key_call_private *key_call_private_main;
|
static struct key_call_private *key_call_private_main;
|
||||||
#endif
|
#endif
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
#include <sys/poll.h>
|
#include <sys/poll.h>
|
||||||
|
|
||||||
#ifdef _RPC_THREAD_SAFE_
|
#ifdef _RPC_THREAD_SAFE_
|
||||||
#define xports ((SVCXPRT **)RPC_THREAD_VARIABLE(svc_xports_s))
|
#define xports RPC_THREAD_VARIABLE(svc_xports_s)
|
||||||
#else
|
#else
|
||||||
static SVCXPRT **xports;
|
static SVCXPRT **xports;
|
||||||
#endif
|
#endif
|
||||||
@ -63,7 +63,7 @@ struct svc_callout {
|
|||||||
void (*sc_dispatch) (struct svc_req *, SVCXPRT *);
|
void (*sc_dispatch) (struct svc_req *, SVCXPRT *);
|
||||||
};
|
};
|
||||||
#ifdef _RPC_THREAD_SAFE_
|
#ifdef _RPC_THREAD_SAFE_
|
||||||
#define svc_head ((struct svc_callout *)RPC_THREAD_VARIABLE(svc_head_s))
|
#define svc_head RPC_THREAD_VARIABLE(svc_head_s)
|
||||||
#else
|
#else
|
||||||
static struct svc_callout *svc_head;
|
static struct svc_callout *svc_head;
|
||||||
#endif
|
#endif
|
||||||
|
@ -54,7 +54,7 @@ struct svcraw_private_s
|
|||||||
char verf_body[MAX_AUTH_BYTES];
|
char verf_body[MAX_AUTH_BYTES];
|
||||||
};
|
};
|
||||||
#ifdef _RPC_THREAD_SAFE_
|
#ifdef _RPC_THREAD_SAFE_
|
||||||
#define svcraw_private ((struct svcraw_private_s *)RPC_THREAD_VARIABLE(svcraw_private_s))
|
#define svcraw_private RPC_THREAD_VARIABLE(svcraw_private_s)
|
||||||
#else
|
#else
|
||||||
static struct svcraw_private_s *svcraw_private;
|
static struct svcraw_private_s *svcraw_private;
|
||||||
#endif
|
#endif
|
||||||
|
@ -61,7 +61,7 @@ struct proglst_
|
|||||||
struct proglst_ *p_nxt;
|
struct proglst_ *p_nxt;
|
||||||
};
|
};
|
||||||
#ifdef _RPC_THREAD_SAFE_
|
#ifdef _RPC_THREAD_SAFE_
|
||||||
#define proglst ((struct proglst_ *)RPC_THREAD_VARIABLE(svcsimple_proglst_s))
|
#define proglst RPC_THREAD_VARIABLE(svcsimple_proglst_s)
|
||||||
#else
|
#else
|
||||||
static struct proglst_ *proglst;
|
static struct proglst_ *proglst;
|
||||||
#endif
|
#endif
|
||||||
@ -69,7 +69,7 @@ static struct proglst_ *proglst;
|
|||||||
|
|
||||||
static void universal (struct svc_req *rqstp, SVCXPRT *transp_s);
|
static void universal (struct svc_req *rqstp, SVCXPRT *transp_s);
|
||||||
#ifdef _RPC_THREAD_SAFE_
|
#ifdef _RPC_THREAD_SAFE_
|
||||||
#define transp ((SVCXPRT *)RPC_THREAD_VARIABLE(svcsimple_transp_s))
|
#define transp RPC_THREAD_VARIABLE(svcsimple_transp_s)
|
||||||
#else
|
#else
|
||||||
static SVCXPRT *transp;
|
static SVCXPRT *transp;
|
||||||
#endif
|
#endif
|
||||||
|
@ -72,8 +72,8 @@ struct cache_entry
|
|||||||
char *localcred; /* generic local credential */
|
char *localcred; /* generic local credential */
|
||||||
};
|
};
|
||||||
#ifdef _RPC_THREAD_SAFE_
|
#ifdef _RPC_THREAD_SAFE_
|
||||||
#define authdes_cache ((struct cache_entry *)RPC_THREAD_VARIABLE(authdes_cache_s))
|
#define authdes_cache RPC_THREAD_VARIABLE(authdes_cache_s)
|
||||||
#define authdes_lru ((int *)RPC_THREAD_VARIABLE(authdes_lru_s))
|
#define authdes_lru RPC_THREAD_VARIABLE(authdes_lru_s)
|
||||||
#else
|
#else
|
||||||
static struct cache_entry *authdes_cache;
|
static struct cache_entry *authdes_cache;
|
||||||
static int *authdes_lru;
|
static int *authdes_lru;
|
||||||
|
Loading…
Reference in New Issue
Block a user