2000-12-31 15:34:47 +00:00
|
|
|
#ifndef _RPC_RPC_H
|
1995-02-18 01:27:10 +00:00
|
|
|
#include <sunrpc/rpc/rpc.h>
|
2002-08-03 03:53:28 +00:00
|
|
|
#include <bits/libc-tsd.h>
|
2000-12-31 15:34:47 +00:00
|
|
|
|
|
|
|
/* Now define the internal interfaces. */
|
|
|
|
extern unsigned long _create_xid (void);
|
|
|
|
|
2001-03-20 18:26:06 +00:00
|
|
|
/*
|
|
|
|
* 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 */
|
|
|
|
|
2004-02-09 10:47:53 +00:00
|
|
|
char *clnt_perr_buf_s; /* clnt_perr.c */
|
2001-03-20 18:26:06 +00:00
|
|
|
|
2004-02-09 10:47:53 +00:00
|
|
|
struct clntraw_private_s *clntraw_private_s; /* clnt_raw.c */
|
2001-03-20 18:26:06 +00:00
|
|
|
|
2004-02-09 10:47:53 +00:00
|
|
|
struct callrpc_private_s *callrpc_private_s; /* clnt_simp.c */
|
2001-03-20 18:26:06 +00:00
|
|
|
|
2004-02-09 10:47:53 +00:00
|
|
|
struct key_call_private *key_call_private_s; /* key_call.c */
|
2001-03-20 18:26:06 +00:00
|
|
|
|
2004-02-09 10:47:53 +00:00
|
|
|
struct cache_entry *authdes_cache_s; /* svcauth_des.c */
|
|
|
|
int *authdes_lru_s; /* svcauth_des.c */
|
2001-03-20 18:26:06 +00:00
|
|
|
|
2004-02-09 10:47:53 +00:00
|
|
|
SVCXPRT **svc_xports_s; /* svc.c */
|
|
|
|
struct svc_callout *svc_head_s; /* svc.c */
|
2001-03-20 18:26:06 +00:00
|
|
|
|
2004-02-09 10:47:53 +00:00
|
|
|
struct svcraw_private_s *svcraw_private_s; /* svc_raw.c */
|
2001-03-20 18:26:06 +00:00
|
|
|
|
2004-02-09 10:47:53 +00:00
|
|
|
struct proglst_ *svcsimple_proglst_s; /* svc_simple.c */
|
|
|
|
SVCXPRT *svcsimple_transp_s; /* svc_simple.c */
|
2001-03-20 18:26:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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);
|
2002-08-03 05:03:14 +00:00
|
|
|
|
2002-08-03 03:53:28 +00:00
|
|
|
__libc_tsd_define (extern, RPC_VARS)
|
2001-03-20 18:26:06 +00:00
|
|
|
|
|
|
|
#define RPC_THREAD_VARIABLE(x) (__rpc_thread_variables()->x)
|
|
|
|
|
2002-08-05 Jakub Jelinek <jakub@redhat.com>
* include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
wcspbrk): Add libc_hidden_proto.
* time/strftime.c (my_strftime): Add libc_hidden_def.
(strftime): Remove libc_hidden_def.
* wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
* wcsmbs/wcspbrk.c (wcspbrk): Likewise.
* wcsmbs/wcsspn.c (wcsspn): Likewise.
* wcsmbs/wcscmp.c (wcscmp): Likewise.
* wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
* wcsmbs/wcscoll.c (wcscoll): Likewise.
* include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
__rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
__rpc_thread_createerr): Add libc_hidden_proto.
* sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
__rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
__rpc_thread_createerr): Add libc_hidden_def.
* include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
* sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
clnt_perror, clnt_sperror): Add libc_hidden_def.
* sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
* include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
libc_hidden_proto.
* sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
* sunrpc/des_soft.c (des_setparity): Likewise.
* include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
Add libc_hidden_proto.
* sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
Add libc_hidden_def.
2002-08-05 22:11:14 +00:00
|
|
|
libc_hidden_proto (__rpc_thread_svc_max_pollfd)
|
|
|
|
libc_hidden_proto (__rpc_thread_svc_pollfd)
|
|
|
|
libc_hidden_proto (__rpc_thread_svc_fdset)
|
|
|
|
libc_hidden_proto (__rpc_thread_createerr)
|
|
|
|
|
2001-03-20 18:26:06 +00:00
|
|
|
#endif /* _RPC_THREAD_SAFE_ */
|
|
|
|
|
2000-12-31 15:34:47 +00:00
|
|
|
#endif
|