Watt-32 tcp/ip  2.2 dev-rel.10
rpc.h
Go to the documentation of this file.
1 
5 /*
6  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
7  * unrestricted use provided that this legend is included on all tape
8  * media and as a part of the software program in whole or part. Users
9  * may copy or modify Sun RPC without charge, but are not authorized
10  * to license or distribute it to anyone else except as part of a product or
11  * program developed by the user.
12  *
13  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
14  * WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
15  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
16  *
17  * Sun RPC is provided with no support and without any obligation on the
18  * part of Sun Microsystems, Inc. to assist in its use, correction,
19  * modification or enhancement.
20  *
21  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
22  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
23  * OR ANY PART THEREOF.
24  *
25  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
26  * or profits or other special, indirect and consequential damages, even if
27  * Sun has been advised of the possibility of such damages.
28  *
29  * Sun Microsystems, Inc.
30  * 2550 Garcia Avenue
31  * Mountain View, California 94043
32  *
33  * from: @(#)rpc.h 1.9 88/02/08 SMI
34  * from: @(#)rpc.h 2.4 89/07/11 4.0 RPCSRC
35  * $Id: rpc.h,v 1.5 1996/01/30 23:32:20 mpp Exp $
36  */
37 
38 /*
39  * rpc.h, Just includes the billions of rpc header files necessary to
40  * do remote procedure calling.
41  *
42  * Copyright (C) 1984, Sun Microsystems, Inc.
43  */
44 #ifndef __RPC_RPC_H
45 #define __RPC_RPC_H
46 
47 #include <rpc/types.h> /* some typedefs */
48 
49 /* external data representation interfaces */
50 #include <rpc/xdr.h> /* generic (de)serializer */
51 
52 /* Client side only authentication */
53 #include <rpc/auth.h> /* generic authenticator (client side) */
54 
55 /* Client side (mostly) remote procedure call */
56 #include <rpc/clnt.h> /* generic rpc stuff */
57 
58 /* semi-private protocol headers */
59 #include <rpc/rpc_msg.h> /* protocol for rpc messages */
60 #include <rpc/auth_uni.h> /* protocol for unix style cred */
61 
62 /*
63  * Uncomment-out the next line if you are building the rpc library with
64  * DES Authentication (see the README file in the secure_rpc/ directory).
65  */
66 #if 1
67 #include <rpc/auth_des.h> /* protocol for des style cred */
68 #endif
69 
70 /* Server side only remote procedure callee */
71 #include <rpc/svc.h> /* service manager and multiplexer */
72 #include <rpc/svc_auth.h> /* service side authenticator */
73 
74 /*
75  * COMMENT OUT THE NEXT INCLUDE (or add to the #ifndef) IF RUNNING ON
76  * A VERSION OF UNIX THAT USES SUN'S NFS SOURCE. These systems will
77  * already have the structures defined by <rpc/netdb.h> included in <netdb.h>.
78  */
79 /* routines for parsing /etc/rpc */
80 
81 struct rpcent {
82  char *r_name; /* name of server for this rpc program */
83  char **r_aliases; /* alias list */
84  long r_number; /* rpc program number. */
85 }; /* Must be 32-bit for small/large model */
86 
87 __BEGIN_DECLS
88 
89 extern struct rpcent *getrpcbyname (char *);
90 extern struct rpcent *getrpcbynumber(long);
91 extern struct rpcent *getrpcent (void);
92 extern void setrpcent (int);
93 extern void endrpcent (void);
94 
95 #if defined(__MSDOS__) || defined(__TURBOC__) || defined(__HIGHC__) || \
96  defined(__DJGPP__) || defined(__WATCOMC__)
97 
98  /* from RPC-DOS v0.1Alpha by Mike Durkin <mdurkin@tsoft.net> */
99  /* updated by G.Vanem <gvanem@yahoo.no> */
100 
101  extern void rpc_init (void);
102  extern void set_user_id (u_long uid);
103  extern void set_group_id (u_long gid);
104 
105  extern u_long __geteuid (void);
106  extern u_long __getegid (void);
107 #endif
108 
109 __END_DECLS
110 
111 #endif
Definition: rpc.h:81