rpc.h revision 1.2
11.1Sderaadt/* @(#)rpc.h 2.4 89/07/11 4.0 RPCSRC; from 1.9 88/02/08 SMI */ 21.1Sderaadt/* 31.1Sderaadt * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 41.1Sderaadt * unrestricted use provided that this legend is included on all tape 51.1Sderaadt * media and as a part of the software program in whole or part. Users 61.1Sderaadt * may copy or modify Sun RPC without charge, but are not authorized 71.1Sderaadt * to license or distribute it to anyone else except as part of a product or 81.1Sderaadt * program developed by the user. 91.1Sderaadt * 101.1Sderaadt * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 111.1Sderaadt * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 121.1Sderaadt * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 131.1Sderaadt * 141.1Sderaadt * Sun RPC is provided with no support and without any obligation on the 151.1Sderaadt * part of Sun Microsystems, Inc. to assist in its use, correction, 161.1Sderaadt * modification or enhancement. 171.1Sderaadt * 181.1Sderaadt * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 191.1Sderaadt * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 201.1Sderaadt * OR ANY PART THEREOF. 211.1Sderaadt * 221.1Sderaadt * In no event will Sun Microsystems, Inc. be liable for any lost revenue 231.1Sderaadt * or profits or other special, indirect and consequential damages, even if 241.1Sderaadt * Sun has been advised of the possibility of such damages. 251.1Sderaadt * 261.1Sderaadt * Sun Microsystems, Inc. 271.1Sderaadt * 2550 Garcia Avenue 281.1Sderaadt * Mountain View, California 94043 291.1Sderaadt */ 301.1Sderaadt 311.1Sderaadt/* 321.1Sderaadt * rpc.h, Just includes the billions of rpc header files necessary to 331.1Sderaadt * do remote procedure calling. 341.1Sderaadt * 351.1Sderaadt * Copyright (C) 1984, Sun Microsystems, Inc. 361.1Sderaadt */ 371.2Sbrezak#ifndef _RPC_RPC_H 381.2Sbrezak#define _RPC_RPC_H 391.1Sderaadt 401.1Sderaadt#include <rpc/types.h> /* some typedefs */ 411.1Sderaadt#include <netinet/in.h> 421.1Sderaadt 431.1Sderaadt/* external data representation interfaces */ 441.1Sderaadt#include <rpc/xdr.h> /* generic (de)serializer */ 451.1Sderaadt 461.1Sderaadt/* Client side only authentication */ 471.1Sderaadt#include <rpc/auth.h> /* generic authenticator (client side) */ 481.1Sderaadt 491.1Sderaadt/* Client side (mostly) remote procedure call */ 501.1Sderaadt#include <rpc/clnt.h> /* generic rpc stuff */ 511.1Sderaadt 521.1Sderaadt/* semi-private protocol headers */ 531.1Sderaadt#include <rpc/rpc_msg.h> /* protocol for rpc messages */ 541.1Sderaadt#include <rpc/auth_unix.h> /* protocol for unix style cred */ 551.1Sderaadt/* 561.1Sderaadt * Uncomment-out the next line if you are building the rpc library with 571.1Sderaadt * DES Authentication (see the README file in the secure_rpc/ directory). 581.1Sderaadt */ 591.1Sderaadt/*#include <rpc/auth_des.h> /* protocol for des style cred */ 601.1Sderaadt 611.1Sderaadt/* Server side only remote procedure callee */ 621.1Sderaadt#include <rpc/svc.h> /* service manager and multiplexer */ 631.1Sderaadt#include <rpc/svc_auth.h> /* service side authenticator */ 641.1Sderaadt 651.1Sderaadt/* 661.1Sderaadt * COMMENT OUT THE NEXT INCLUDE (or add to the #ifndef) IF RUNNING ON 671.1Sderaadt * A VERSION OF UNIX THAT USES SUN'S NFS SOURCE. These systems will 681.1Sderaadt * already have the structures defined by <rpc/netdb.h> included in <netdb.h>. 691.1Sderaadt */ 701.1Sderaadt/* routines for parsing /etc/rpc */ 711.1Sderaadt 721.1Sderaadtstruct rpcent { 731.1Sderaadt char *r_name; /* name of server for this rpc program */ 741.1Sderaadt char **r_aliases; /* alias list */ 751.1Sderaadt int r_number; /* rpc program number */ 761.1Sderaadt}; 771.1Sderaadt 781.2Sbrezak__BEGIN_DECLS 791.2Sbrezakextern struct rpcent *getrpcbyname __P((char *)); 801.2Sbrezakextern struct rpcent *getrpcbynumber __P((int)); 811.2Sbrezakextern struct rpcent *getrpcent __P((void)); 821.2Sbrezakextern void setrpcent __P((int)); 831.2Sbrezakextern void endrpcent __P((void)); 841.2Sbrezak__END_DECLS 851.1Sderaadt 861.2Sbrezak#endif /* !_RPC_RPC_H */ 87