1 /* $OpenBSD: rpc.h,v 1.7 1998/12/20 23:43:18 millert Exp $ */
2 /* $NetBSD: rpc.h,v 1.5 1994/12/04 01:15:30 cgd Exp $ */
5 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
6 * unrestricted use provided that this legend is included on all tape
7 * media and as a part of the software program in whole or part. Users
8 * may copy or modify Sun RPC without charge, but are not authorized
9 * to license or distribute it to anyone else except as part of a product or
10 * program developed by the user.
12 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
13 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
14 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
16 * Sun RPC is provided with no support and without any obligation on the
17 * part of Sun Microsystems, Inc. to assist in its use, correction,
18 * modification or enhancement.
20 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
21 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
22 * OR ANY PART THEREOF.
24 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
25 * or profits or other special, indirect and consequential damages, even if
26 * Sun has been advised of the possibility of such damages.
28 * Sun Microsystems, Inc.
30 * Mountain View, California 94043
32 * from: @(#)rpc.h 1.9 88/02/08 SMI
33 * @(#)rpc.h 2.4 89/07/11 4.0 RPCSRC
37 * rpc.h, Just includes the billions of rpc header files necessary to
38 * do remote procedure calling.
40 * Copyright (C) 1984, Sun Microsystems, Inc.
45 #include <rpc/types.h> /* some typedefs */
46 #include <netinet/in.h>
48 /* external data representation interfaces */
49 #include <rpc/xdr.h> /* generic (de)serializer */
51 /* Client side only authentication */
52 #include <rpc/auth.h> /* generic authenticator (client side) */
54 /* Client side (mostly) remote procedure call */
55 #include <rpc/clnt.h> /* generic rpc stuff */
57 /* Client side (mostly) pmap functions */
58 #include <rpc/pmap_clnt.h> /* generic pmap stuff */
60 /* semi-private protocol headers */
61 #include <rpc/rpc_msg.h> /* protocol for rpc messages */
62 #include <rpc/auth_unix.h> /* protocol for unix style cred */
63 #include "auth_gss.h" /* RPCSEC_GSS */
66 * Uncomment-out the next line if you are building the rpc library with
67 * DES Authentication (see the README file in the secure_rpc/ directory).
70 #include <rpc/auth_des.h> /* protocol for des style cred */
73 /* Server side only remote procedure callee */
74 #include <rpc/svc_auth.h> /* service side authenticator */
75 #include <rpc/svc.h> /* service manager and multiplexer */
78 * COMMENT OUT THE NEXT INCLUDE (or add to the #ifndef) IF RUNNING ON
79 * A VERSION OF UNIX THAT USES SUN'S NFS SOURCE. These systems will
80 * already have the structures defined by <rpc/netdb.h> included in <netdb.h>.
82 /* routines for parsing /etc/rpc */
84 #include <rpc/netdb.h>
87 char *r_name; /* name of server for this rpc program */
88 char **r_aliases; /* alias list */
89 int r_number; /* rpc program number */
93 extern struct rpcent *getrpcbyname __P((char *));
94 extern struct rpcent *getrpcbynumber __P((int));
95 extern struct rpcent *getrpcent __P((void));
96 extern void setrpcent __P((int));
97 extern void endrpcent __P((void));
99 extern int get_myaddress __P((struct sockaddr_in *));
100 extern int registerrpc __P((int, int, int, char *(*) __P((char [UDPMSGSIZE])),
101 xdrproc_t, xdrproc_t));
102 extern int callrpc __P((char *, int, int, int, xdrproc_t, char *,
103 xdrproc_t , char *));
104 extern int getrpcport __P((char *, int, int, int));
107 #endif /* __linux__ */
109 #endif /* !_RPC_RPC_H */