0
|
1 |
/*********************************************************************
|
|
2 |
* RPC for the Windows NT Operating System
|
|
3 |
* 1993 by Martin F. Gergeleit
|
|
4 |
* Users may use, copy or modify Sun RPC for the Windows NT Operating
|
|
5 |
* System according to the Sun copyright below.
|
|
6 |
*
|
|
7 |
* RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO
|
|
8 |
* WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE
|
|
9 |
* USE OF. USE ENTIRELY AT YOUR OWN RISK!!!
|
|
10 |
*********************************************************************/
|
|
11 |
|
|
12 |
/* @(#)rpc.h 2.3 88/08/10 4.0 RPCSRC; from 1.9 88/02/08 SMI */
|
|
13 |
/*
|
|
14 |
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
|
|
15 |
* unrestricted use provided that this legend is included on all tape
|
|
16 |
* media and as a part of the software program in whole or part. Users
|
|
17 |
* may copy or modify Sun RPC without charge, but are not authorized
|
|
18 |
* to license or distribute it to anyone else except as part of a product or
|
|
19 |
* program developed by the user.
|
|
20 |
*
|
|
21 |
* SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
|
|
22 |
* WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
|
|
23 |
* PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
|
|
24 |
*
|
|
25 |
* Sun RPC is provided with no support and without any obligation on the
|
|
26 |
* part of Sun Microsystems, Inc. to assist in its use, correction,
|
|
27 |
* modification or enhancement.
|
|
28 |
*
|
|
29 |
* SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
|
|
30 |
* INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
|
|
31 |
* OR ANY PART THEREOF.
|
|
32 |
*
|
|
33 |
* In no event will Sun Microsystems, Inc. be liable for any lost revenue
|
|
34 |
* or profits or other special, indirect and consequential damages, even if
|
|
35 |
* Sun has been advised of the possibility of such damages.
|
|
36 |
*
|
|
37 |
* Sun Microsystems, Inc.
|
|
38 |
* 2550 Garcia Avenue
|
|
39 |
* Mountain View, California 94043
|
|
40 |
*/
|
|
41 |
|
|
42 |
/*
|
|
43 |
* rpc.h, Just includes the billions of rpc header files necessary to
|
|
44 |
* do remote procedure calling.
|
|
45 |
*
|
|
46 |
* Copyright (C) 1984, Sun Microsystems, Inc.
|
|
47 |
*/
|
|
48 |
#ifndef __RPC_HEADER__
|
|
49 |
#define __RPC_HEADER__
|
|
50 |
|
|
51 |
#ifdef WIN32
|
|
52 |
//#define FD_SETSIZE 128
|
|
53 |
|
|
54 |
#include <stdlib.h>
|
|
55 |
#include <winsock2.h>
|
|
56 |
#include <rpc/types.h> /* some typedefs */
|
|
57 |
#include <process.h>
|
|
58 |
|
|
59 |
#define WSAerrno (WSAGetLastError())
|
|
60 |
#define gettimeofday(tv,tz) ((tv)->tv_sec = time(0), (tv)->tv_usec = 0)
|
|
61 |
|
|
62 |
#ifdef __cplusplus
|
|
63 |
extern "C" {
|
|
64 |
#define DOTS ...
|
|
65 |
#else
|
|
66 |
#define DOTS
|
|
67 |
#endif
|
|
68 |
|
|
69 |
extern int rpc_nt_init(void);
|
|
70 |
extern int rpc_nt_exit(void);
|
|
71 |
extern void nt_rpc_report(DOTS);
|
|
72 |
|
|
73 |
#include <rpc/bcopy.h>
|
|
74 |
extern int xdr_opaque_auth(DOTS);
|
|
75 |
|
|
76 |
#ifdef __cplusplus
|
|
77 |
};
|
|
78 |
#endif
|
|
79 |
|
|
80 |
#else
|
|
81 |
#include <rpc/types.h> /* some typedefs */
|
|
82 |
#include <netinet/in.h>
|
|
83 |
#endif
|
|
84 |
|
|
85 |
/* external data representation interfaces */
|
|
86 |
#include <rpc/xdr.h> /* generic (de)serializer */
|
|
87 |
|
|
88 |
/* Client side only authentication */
|
|
89 |
#include <rpc/auth.h> /* generic authenticator (client side) */
|
|
90 |
|
|
91 |
/* Client side (mostly) remote procedure call */
|
|
92 |
#include <rpc/clnt.h> /* generic rpc stuff */
|
|
93 |
|
|
94 |
/* semi-private protocol headers */
|
|
95 |
#include <rpc/rpc_msg.h> /* protocol for rpc messages */
|
|
96 |
#ifdef WIN32
|
|
97 |
#include <rpc/auth_uni.h> /* protocol for unix style cred */
|
|
98 |
#else
|
|
99 |
#include <rpc/auth_unix.h> /* protocol for unix style cred */
|
|
100 |
#endif
|
|
101 |
/*
|
|
102 |
* Uncomment-out the next line if you are building the rpc library with
|
|
103 |
* DES Authentication (see the README file in the secure_rpc/ directory).
|
|
104 |
*/
|
|
105 |
/*#include <rpc/auth_des.h> /* protocol for des style cred */
|
|
106 |
|
|
107 |
/* Server side only remote procedure callee */
|
|
108 |
#include <rpc/svc.h> /* service manager and multiplexer */
|
|
109 |
#include <rpc/svc_auth.h> /* service side authenticator */
|
|
110 |
|
|
111 |
/*
|
|
112 |
* COMMENT OUT THE NEXT INCLUDE IF RUNNING ON SUN OS OR ON A VERSION
|
|
113 |
* OF UNIX BASED ON NFSSRC. These systems will already have the structures
|
|
114 |
* defined by <rpc/netdb.h> included in <netdb.h>.
|
|
115 |
*/
|
|
116 |
/* routines for parsing /etc/rpc */
|
|
117 |
#include <rpc/netdb.h> /* structures and routines to parse /etc/rpc */
|
|
118 |
|
|
119 |
#endif /* ndef __RPC_HEADER__ */
|