OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [inet/] [rpc/] [rpc_private.h] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
#ifndef _RPC_RPC_H
2
#include <rpc/rpc.h>
3
 
4
/* Now define the internal interfaces.  */
5
extern unsigned long _create_xid (void);
6
 
7
/*
8
 * Multi-threaded support
9
 * Group all global and static variables into a single spot.
10
 * This area is allocated on a per-thread basis
11
 */
12
#ifdef __UCLIBC_HAS_THREADS__
13
#include <pthread.h>
14
struct rpc_thread_variables {
15
        fd_set          svc_fdset_s;            /* Global, rpc_common.c */
16
        struct rpc_createerr rpc_createerr_s;   /* Global, rpc_common.c */
17
        struct pollfd   *svc_pollfd_s;          /* Global, rpc_common.c */
18
        int             svc_max_pollfd_s;       /* Global, rpc_common.c */
19
 
20
        void            *authnone_private_s;    /* auth_none.c */
21
 
22
        void            *clnt_perr_buf_s;       /* clnt_perr.c */
23
 
24
        void            *clntraw_private_s;     /* clnt_raw.c */
25
 
26
        void            *callrpc_private_s;     /* clnt_simp.c */
27
 
28
        void            *key_call_private_s;    /* key_call.c */
29
 
30
        void            *authdes_cache_s;       /* svcauth_des.c */
31
        void            *authdes_lru_s;         /* svcauth_des.c */
32
 
33
        void            *svc_xports_s;          /* svc.c */
34
        void            *svc_head_s;            /* svc.c */
35
 
36
        void            *svcraw_private_s;      /* svc_raw.c */
37
 
38
        void            *svcsimple_proglst_s;   /* svc_simple.c */
39
        void            *svcsimple_transp_s;    /* svc_simple.c */
40
};
41
 
42
extern struct rpc_thread_variables *__rpc_thread_variables(void)
43
     __attribute__ ((const));
44
extern void __rpc_thread_svc_cleanup (void);
45
extern void __rpc_thread_clnt_cleanup (void);
46
extern void __rpc_thread_key_cleanup (void);
47
 
48
extern void __rpc_thread_destroy (void);
49
 
50
#define RPC_THREAD_VARIABLE(x) (__rpc_thread_variables()->x)
51
 
52
#endif /* __UCLIBC_HAS_THREADS__ */
53
 
54
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.