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.
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.
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.
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.
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.
29 * Sun Microsystems, Inc.
31 * Mountain View, California 94043
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 $
39 * rpc.h, Just includes the billions of rpc header files necessary to
40 * do remote procedure calling.
42 * Copyright (C) 1984, Sun Microsystems, Inc.
47 #include <rpc/types.h> /* some typedefs */
49 /* external data representation interfaces */
50 #include <rpc/xdr.h> /* generic (de)serializer */
52 /* Client side only authentication */
53 #include <rpc/auth.h> /* generic authenticator (client side) */
55 /* Client side (mostly) remote procedure call */
56 #include <rpc/clnt.h> /* generic rpc stuff */
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 */
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).
67 #include <rpc/auth_des.h> /* protocol for des style cred */
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 */
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>.
79 /* routines for parsing /etc/rpc */
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 */
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);
95 #if defined(__MSDOS__) || defined(__TURBOC__) || defined(__HIGHC__) || \
96 defined(__DJGPP__) || defined(__WATCOMC__)
98 /* from RPC-DOS v0.1Alpha by Mike Durkin <mdurkin@tsoft.net> */
99 /* updated by G.Vanem <giva@bgnett.no> */
101 extern void rpc_init (void);
102 extern void set_user_id (u_long uid);
103 extern void set_group_id (u_long gid);
105 extern u_long __geteuid (void);
106 extern u_long __getegid (void);