xref: /utopia/UTPA2-700.0.x/projects/tools/lint/mips-linux-gnu_include/rpc/rpc.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
1*53ee8cc1Swenshuai.xi /* @(#)rpc.h	2.3 88/08/10 4.0 RPCSRC; from 1.9 88/02/08 SMI */
2*53ee8cc1Swenshuai.xi /*
3*53ee8cc1Swenshuai.xi  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
4*53ee8cc1Swenshuai.xi  * unrestricted use provided that this legend is included on all tape
5*53ee8cc1Swenshuai.xi  * media and as a part of the software program in whole or part.  Users
6*53ee8cc1Swenshuai.xi  * may copy or modify Sun RPC without charge, but are not authorized
7*53ee8cc1Swenshuai.xi  * to license or distribute it to anyone else except as part of a product or
8*53ee8cc1Swenshuai.xi  * program developed by the user.
9*53ee8cc1Swenshuai.xi  *
10*53ee8cc1Swenshuai.xi  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
11*53ee8cc1Swenshuai.xi  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
12*53ee8cc1Swenshuai.xi  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
13*53ee8cc1Swenshuai.xi  *
14*53ee8cc1Swenshuai.xi  * Sun RPC is provided with no support and without any obligation on the
15*53ee8cc1Swenshuai.xi  * part of Sun Microsystems, Inc. to assist in its use, correction,
16*53ee8cc1Swenshuai.xi  * modification or enhancement.
17*53ee8cc1Swenshuai.xi  *
18*53ee8cc1Swenshuai.xi  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
19*53ee8cc1Swenshuai.xi  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
20*53ee8cc1Swenshuai.xi  * OR ANY PART THEREOF.
21*53ee8cc1Swenshuai.xi  *
22*53ee8cc1Swenshuai.xi  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
23*53ee8cc1Swenshuai.xi  * or profits or other special, indirect and consequential damages, even if
24*53ee8cc1Swenshuai.xi  * Sun has been advised of the possibility of such damages.
25*53ee8cc1Swenshuai.xi  *
26*53ee8cc1Swenshuai.xi  * Sun Microsystems, Inc.
27*53ee8cc1Swenshuai.xi  * 2550 Garcia Avenue
28*53ee8cc1Swenshuai.xi  * Mountain View, California  94043
29*53ee8cc1Swenshuai.xi  */
30*53ee8cc1Swenshuai.xi 
31*53ee8cc1Swenshuai.xi /*
32*53ee8cc1Swenshuai.xi  * rpc.h, Just includes the billions of rpc header files necessary to
33*53ee8cc1Swenshuai.xi  * do remote procedure calling.
34*53ee8cc1Swenshuai.xi  *
35*53ee8cc1Swenshuai.xi  * Copyright (C) 1984, Sun Microsystems, Inc.
36*53ee8cc1Swenshuai.xi  */
37*53ee8cc1Swenshuai.xi 
38*53ee8cc1Swenshuai.xi #ifndef _RPC_RPC_H
39*53ee8cc1Swenshuai.xi #define _RPC_RPC_H 1
40*53ee8cc1Swenshuai.xi 
41*53ee8cc1Swenshuai.xi #include <rpc/types.h>		/* some typedefs */
42*53ee8cc1Swenshuai.xi #include <netinet/in.h>
43*53ee8cc1Swenshuai.xi 
44*53ee8cc1Swenshuai.xi /* external data representation interfaces */
45*53ee8cc1Swenshuai.xi #include <rpc/xdr.h>		/* generic (de)serializer */
46*53ee8cc1Swenshuai.xi 
47*53ee8cc1Swenshuai.xi /* Client side only authentication */
48*53ee8cc1Swenshuai.xi #include <rpc/auth.h>		/* generic authenticator (client side) */
49*53ee8cc1Swenshuai.xi 
50*53ee8cc1Swenshuai.xi /* Client side (mostly) remote procedure call */
51*53ee8cc1Swenshuai.xi #include <rpc/clnt.h>		/* generic rpc stuff */
52*53ee8cc1Swenshuai.xi 
53*53ee8cc1Swenshuai.xi /* semi-private protocol headers */
54*53ee8cc1Swenshuai.xi #include <rpc/rpc_msg.h>	/* protocol for rpc messages */
55*53ee8cc1Swenshuai.xi #include <rpc/auth_unix.h>	/* protocol for unix style cred */
56*53ee8cc1Swenshuai.xi #include <rpc/auth_des.h>	/* protocol for des style cred */
57*53ee8cc1Swenshuai.xi 
58*53ee8cc1Swenshuai.xi /* Server side only remote procedure callee */
59*53ee8cc1Swenshuai.xi #include <rpc/svc.h>		/* service manager and multiplexer */
60*53ee8cc1Swenshuai.xi #include <rpc/svc_auth.h>	/* service side authenticator */
61*53ee8cc1Swenshuai.xi 
62*53ee8cc1Swenshuai.xi /*
63*53ee8cc1Swenshuai.xi  * COMMENT OUT THE NEXT INCLUDE IF RUNNING ON SUN OS OR ON A VERSION
64*53ee8cc1Swenshuai.xi  * OF UNIX BASED ON NFSSRC.  These systems will already have the structures
65*53ee8cc1Swenshuai.xi  * defined by <rpc/netdb.h> included in <netdb.h>.
66*53ee8cc1Swenshuai.xi  */
67*53ee8cc1Swenshuai.xi /* routines for parsing /etc/rpc */
68*53ee8cc1Swenshuai.xi #include <rpc/netdb.h>		/* structures and routines to parse /etc/rpc */
69*53ee8cc1Swenshuai.xi 
70*53ee8cc1Swenshuai.xi __BEGIN_DECLS
71*53ee8cc1Swenshuai.xi 
72*53ee8cc1Swenshuai.xi /* Global variables, protected for multi-threaded applications.  */
73*53ee8cc1Swenshuai.xi extern fd_set *__rpc_thread_svc_fdset (void) __attribute__ ((__const__));
74*53ee8cc1Swenshuai.xi #define svc_fdset (*__rpc_thread_svc_fdset ())
75*53ee8cc1Swenshuai.xi 
76*53ee8cc1Swenshuai.xi extern struct rpc_createerr *__rpc_thread_createerr (void)
77*53ee8cc1Swenshuai.xi      __attribute__ ((__const__));
78*53ee8cc1Swenshuai.xi #define get_rpc_createerr() (*__rpc_thread_createerr ())
79*53ee8cc1Swenshuai.xi /* The people who "engineered" RPC should bee punished for naming the
80*53ee8cc1Swenshuai.xi    data structure and the variable the same.  We cannot always define the
81*53ee8cc1Swenshuai.xi    macro 'rpc_createerr' because this would prevent people from defining
82*53ee8cc1Swenshuai.xi    object of type 'struct rpc_createerr'.  So we leave it up to the user
83*53ee8cc1Swenshuai.xi    to select transparent replacement also of this variable.  */
84*53ee8cc1Swenshuai.xi #ifdef _RPC_MT_VARS
85*53ee8cc1Swenshuai.xi # define rpc_createerr (*__rpc_thread_createerr ())
86*53ee8cc1Swenshuai.xi #endif
87*53ee8cc1Swenshuai.xi 
88*53ee8cc1Swenshuai.xi extern struct pollfd **__rpc_thread_svc_pollfd (void)
89*53ee8cc1Swenshuai.xi      __attribute__ ((__const__));
90*53ee8cc1Swenshuai.xi #define svc_pollfd (*__rpc_thread_svc_pollfd ())
91*53ee8cc1Swenshuai.xi 
92*53ee8cc1Swenshuai.xi extern int *__rpc_thread_svc_max_pollfd (void) __attribute__ ((__const__));
93*53ee8cc1Swenshuai.xi #define svc_max_pollfd (*__rpc_thread_svc_max_pollfd ())
94*53ee8cc1Swenshuai.xi 
95*53ee8cc1Swenshuai.xi __END_DECLS
96*53ee8cc1Swenshuai.xi 
97*53ee8cc1Swenshuai.xi #endif /* rpc/rpc.h */
98