18360efbdSAlfred Perlstein /* $NetBSD: rpc.h,v 1.13 2000/06/02 22:57:56 fvdl Exp $ */ 28360efbdSAlfred Perlstein 3dba7a33eSGarrett Wollman /* 4dba7a33eSGarrett Wollman * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 5dba7a33eSGarrett Wollman * unrestricted use provided that this legend is included on all tape 6dba7a33eSGarrett Wollman * media and as a part of the software program in whole or part. Users 7dba7a33eSGarrett Wollman * may copy or modify Sun RPC without charge, but are not authorized 8dba7a33eSGarrett Wollman * to license or distribute it to anyone else except as part of a product or 9dba7a33eSGarrett Wollman * program developed by the user. 10dba7a33eSGarrett Wollman * 11dba7a33eSGarrett Wollman * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 1271d9c781SMike Pritchard * WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 13dba7a33eSGarrett Wollman * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 14dba7a33eSGarrett Wollman * 15dba7a33eSGarrett Wollman * Sun RPC is provided with no support and without any obligation on the 16dba7a33eSGarrett Wollman * part of Sun Microsystems, Inc. to assist in its use, correction, 17dba7a33eSGarrett Wollman * modification or enhancement. 18dba7a33eSGarrett Wollman * 19dba7a33eSGarrett Wollman * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 20dba7a33eSGarrett Wollman * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 21dba7a33eSGarrett Wollman * OR ANY PART THEREOF. 22dba7a33eSGarrett Wollman * 23dba7a33eSGarrett Wollman * In no event will Sun Microsystems, Inc. be liable for any lost revenue 24dba7a33eSGarrett Wollman * or profits or other special, indirect and consequential damages, even if 25dba7a33eSGarrett Wollman * Sun has been advised of the possibility of such damages. 26dba7a33eSGarrett Wollman * 27dba7a33eSGarrett Wollman * Sun Microsystems, Inc. 28dba7a33eSGarrett Wollman * 2550 Garcia Avenue 29dba7a33eSGarrett Wollman * Mountain View, California 94043 3086b9a9ccSGarrett Wollman * 3186b9a9ccSGarrett Wollman * from: @(#)rpc.h 1.9 88/02/08 SMI 3286b9a9ccSGarrett Wollman * from: @(#)rpc.h 2.4 89/07/11 4.0 RPCSRC 33a4add9a9SPeter Wemm * $FreeBSD$ 34dba7a33eSGarrett Wollman */ 35dba7a33eSGarrett Wollman 36dba7a33eSGarrett Wollman /* 37dba7a33eSGarrett Wollman * rpc.h, Just includes the billions of rpc header files necessary to 38dba7a33eSGarrett Wollman * do remote procedure calling. 39dba7a33eSGarrett Wollman * 40dba7a33eSGarrett Wollman * Copyright (C) 1984, Sun Microsystems, Inc. 41dba7a33eSGarrett Wollman */ 4286b9a9ccSGarrett Wollman #ifndef _RPC_RPC_H 4386b9a9ccSGarrett Wollman #define _RPC_RPC_H 44dba7a33eSGarrett Wollman 45dba7a33eSGarrett Wollman #include <rpc/types.h> /* some typedefs */ 468360efbdSAlfred Perlstein #include <sys/socket.h> 47dba7a33eSGarrett Wollman #include <netinet/in.h> 48dba7a33eSGarrett Wollman 49dba7a33eSGarrett Wollman /* external data representation interfaces */ 50dba7a33eSGarrett Wollman #include <rpc/xdr.h> /* generic (de)serializer */ 51dba7a33eSGarrett Wollman 52dba7a33eSGarrett Wollman /* Client side only authentication */ 53dba7a33eSGarrett Wollman #include <rpc/auth.h> /* generic authenticator (client side) */ 54dba7a33eSGarrett Wollman 55dba7a33eSGarrett Wollman /* Client side (mostly) remote procedure call */ 56dba7a33eSGarrett Wollman #include <rpc/clnt.h> /* generic rpc stuff */ 57dba7a33eSGarrett Wollman 58dba7a33eSGarrett Wollman /* semi-private protocol headers */ 59dba7a33eSGarrett Wollman #include <rpc/rpc_msg.h> /* protocol for rpc messages */ 60dba7a33eSGarrett Wollman #include <rpc/auth_unix.h> /* protocol for unix style cred */ 61dba7a33eSGarrett Wollman /* 62dba7a33eSGarrett Wollman * Uncomment-out the next line if you are building the rpc library with 63dba7a33eSGarrett Wollman * DES Authentication (see the README file in the secure_rpc/ directory). 64dba7a33eSGarrett Wollman */ 65e4f13e77SPoul-Henning Kamp #include <rpc/auth_des.h> /* protocol for des style cred */ 66dba7a33eSGarrett Wollman 67dba7a33eSGarrett Wollman /* Server side only remote procedure callee */ 68dba7a33eSGarrett Wollman #include <rpc/svc.h> /* service manager and multiplexer */ 69dba7a33eSGarrett Wollman #include <rpc/svc_auth.h> /* service side authenticator */ 70dba7a33eSGarrett Wollman 718360efbdSAlfred Perlstein /* Portmapper client, server, and protocol headers */ 728360efbdSAlfred Perlstein #include <rpc/pmap_clnt.h> 738360efbdSAlfred Perlstein #include <rpc/pmap_prot.h> 74dba7a33eSGarrett Wollman 7587800257SAlfred Perlstein #ifndef _KERNEL 768360efbdSAlfred Perlstein #include <rpc/rpcb_clnt.h> /* rpcbind interface functions */ 7787800257SAlfred Perlstein #endif 788360efbdSAlfred Perlstein 798360efbdSAlfred Perlstein #include <rpc/rpcent.h> 80dba7a33eSGarrett Wollman 8186b9a9ccSGarrett Wollman __BEGIN_DECLS 8270de0abfSPeter Wemm extern int get_myaddress __P((struct sockaddr_in *)); 838360efbdSAlfred Perlstein extern int bindresvport __P((int, struct sockaddr_in *)); 848360efbdSAlfred Perlstein extern int registerrpc __P((int, int, int, char *(*) __P((char [UDPMSGSIZE])), 858360efbdSAlfred Perlstein xdrproc_t, xdrproc_t)); 868360efbdSAlfred Perlstein extern int callrpc __P((char *, int, int, int, xdrproc_t, char *, 878360efbdSAlfred Perlstein xdrproc_t , char *)); 888360efbdSAlfred Perlstein extern int getrpcport __P((char *, int, int, int)); 898360efbdSAlfred Perlstein 908360efbdSAlfred Perlstein char *taddr2uaddr __P((const struct netconfig *, const struct netbuf *)); 918360efbdSAlfred Perlstein struct netbuf *uaddr2taddr __P((const struct netconfig *, const char *)); 928360efbdSAlfred Perlstein 938360efbdSAlfred Perlstein struct sockaddr; 948360efbdSAlfred Perlstein extern int bindresvport_sa __P((int, struct sockaddr *)); 958360efbdSAlfred Perlstein __END_DECLS 968360efbdSAlfred Perlstein 978360efbdSAlfred Perlstein /* 988360efbdSAlfred Perlstein * The following are not exported interfaces, they are for internal library 998360efbdSAlfred Perlstein * and rpcbind use only. Do not use, they may change without notice. 1008360efbdSAlfred Perlstein */ 1018360efbdSAlfred Perlstein __BEGIN_DECLS 1028360efbdSAlfred Perlstein int __rpc_nconf2fd __P((const struct netconfig *)); 1038360efbdSAlfred Perlstein int __rpc_nconf2sockinfo __P((const struct netconfig *, 1048360efbdSAlfred Perlstein struct __rpc_sockinfo *)); 1058360efbdSAlfred Perlstein int __rpc_fd2sockinfo __P((int, struct __rpc_sockinfo *)); 1068360efbdSAlfred Perlstein u_int __rpc_get_t_size __P((int, int, int)); 10786b9a9ccSGarrett Wollman __END_DECLS 108dba7a33eSGarrett Wollman 10986b9a9ccSGarrett Wollman #endif /* !_RPC_RPC_H */ 110