-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmath.h
60 lines (45 loc) · 1.06 KB
/
math.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
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _MATH_H_RPCGEN
#define _MATH_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
struct numbers {
int a;
int b;
int c;
};
typedef struct numbers numbers;
#define MATH_PROG 0x23451111
#define ADO_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 *);
#define sqr 2
extern int * sqr_1(int *, CLIENT *);
extern int * sqr_1_svc(int *, struct svc_req *);
extern int math_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define add 1
extern int * add_1();
extern int * add_1_svc();
#define sqr 2
extern int * sqr_1();
extern int * sqr_1_svc();
extern int math_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 /* !_MATH_H_RPCGEN */