glibc/include/rpc/rpc.h
Ulrich Drepper cbba1b8899 Update.
2002-04-11  Zack Weinberg  <zack@codesourcery.com>

	* include/rpc/rpc.h (struct rpc_thread_variables): Remove
	authnone_private_s.
	* sunrpc/auth_none.c: Include bits/libc-lock.h.
	Delete #ifdef _RPC_THREAD_SAFE_ block.
	(authnone_private): Make a struct, not a pointer to struct.
	(authnone_private_guard): New once-control variable.
	(authnone_create_once): New function, split out of
	authnone_create.  No need to allocate memory.
	(authnone_create): Just call authnone_create_once via
	__libc_once, then return &authnone_private->no_client.
	(authnone_marshal): Access private data via CLIENT argument,
	not authnone_private pointer.
	Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
	* sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
	authnone_private_s.
2002-04-20 18:57:50 +00:00

52 lines
1.4 KiB
C

#ifndef _RPC_RPC_H
#include <sunrpc/rpc/rpc.h>
/* Now define the internal interfaces. */
extern unsigned long _create_xid (void);
/*
* Multi-threaded support
* Group all global and static variables into a single spot.
* This area is allocated on a per-thread basis
*/
#ifdef _RPC_THREAD_SAFE_
struct rpc_thread_variables {
fd_set svc_fdset_s; /* Global, rpc_common.c */
struct rpc_createerr rpc_createerr_s; /* Global, rpc_common.c */
struct pollfd *svc_pollfd_s; /* Global, rpc_common.c */
int svc_max_pollfd_s; /* Global, rpc_common.c */
void *clnt_perr_buf_s; /* clnt_perr.c */
void *clntraw_private_s; /* clnt_raw.c */
void *callrpc_private_s; /* clnt_simp.c */
void *key_call_private_s; /* key_call.c */
void *authdes_cache_s; /* svcauth_des.c */
void *authdes_lru_s; /* svcauth_des.c */
void *svc_xports_s; /* svc.c */
void *svc_head_s; /* svc.c */
void *svcraw_private_s; /* svc_raw.c */
void *svcsimple_proglst_s; /* svc_simple.c */
void *svcsimple_transp_s; /* svc_simple.c */
};
extern struct rpc_thread_variables *__rpc_thread_variables(void)
__attribute__ ((const));
extern void __rpc_thread_svc_cleanup (void);
extern void __rpc_thread_clnt_cleanup (void);
extern void __rpc_thread_key_cleanup (void);
extern void __rpc_thread_destroy (void);
#define RPC_THREAD_VARIABLE(x) (__rpc_thread_variables()->x)
#endif /* _RPC_THREAD_SAFE_ */
#endif