-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalc.h
101 lines (77 loc) · 2.09 KB
/
calc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _CALC_H_RPCGEN
#define _CALC_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
struct numbers {
int a;
int b;
};
typedef struct numbers numbers;
#define ADD_PROG 0x42427769
#define ADD_VERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define add 1
extern int * add_1(numbers *, CLIENT *);
extern int * add_1_svc(numbers *, struct svc_req *);
extern int add_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define add 1
extern int * add_1();
extern int * add_1_svc();
extern int add_prog_1_freeresult ();
#endif /* K&R C */
#define SUB_PROG 0x42427770
#define SUB_VERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define sub 1
extern int * sub_1(numbers *, CLIENT *);
extern int * sub_1_svc(numbers *, struct svc_req *);
extern int sub_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define sub 1
extern int * sub_1();
extern int * sub_1_svc();
extern int sub_prog_1_freeresult ();
#endif /* K&R C */
#define MUL_PROG 0x42427771
#define MUL_VERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define mul 1
extern int * mul_1(numbers *, CLIENT *);
extern int * mul_1_svc(numbers *, struct svc_req *);
extern int mul_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define mul 1
extern int * mul_1();
extern int * mul_1_svc();
extern int mul_prog_1_freeresult ();
#endif /* K&R C */
#define DIV_PROG 0x42427772
#define DIV_VERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define div 1
extern int * div_1(numbers *, CLIENT *);
extern int * div_1_svc(numbers *, struct svc_req *);
extern int div_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define div 1
extern int * div_1();
extern int * div_1_svc();
extern int div_prog_1_freeresult ();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_numbers (XDR *, numbers*);
#else /* K&R C */
extern bool_t xdr_numbers ();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_CALC_H_RPCGEN */