2 |
7u83 |
1 |
# Crown Copyright (c) 1997
|
|
|
2 |
#
|
|
|
3 |
# This TenDRA(r) Computer Program is subject to Copyright
|
|
|
4 |
# owned by the United Kingdom Secretary of State for Defence
|
|
|
5 |
# acting through the Defence Evaluation and Research Agency
|
|
|
6 |
# (DERA). It is made available to Recipients with a
|
|
|
7 |
# royalty-free licence for its use, reproduction, transfer
|
|
|
8 |
# to other parties and amendment for any purpose not excluding
|
|
|
9 |
# product development provided that any such use et cetera
|
|
|
10 |
# shall be deemed to be acceptance of the following conditions:-
|
|
|
11 |
#
|
|
|
12 |
# (1) Its Recipients shall ensure that this Notice is
|
|
|
13 |
# reproduced upon any copies or amended versions of it;
|
|
|
14 |
#
|
|
|
15 |
# (2) Any amended version of it shall be clearly marked to
|
|
|
16 |
# show both the nature of and the organisation responsible
|
|
|
17 |
# for the relevant amendment or amendments;
|
|
|
18 |
#
|
|
|
19 |
# (3) Its onward transfer from a recipient to another
|
|
|
20 |
# party shall be deemed to be that party's acceptance of
|
|
|
21 |
# these conditions;
|
|
|
22 |
#
|
|
|
23 |
# (4) DERA gives no warranty or assurance as to its
|
|
|
24 |
# quality or suitability for any purpose and DERA accepts
|
|
|
25 |
# no liability whatsoever in relation to any use to which
|
|
|
26 |
# it may be put.
|
|
|
27 |
#
|
|
|
28 |
+USE "svid3", "", "config" ;
|
|
|
29 |
|
|
|
30 |
+IF %% __SYSV_REMOTE_SERVICES %%
|
|
|
31 |
|
|
|
32 |
+USE "svid3", "stdio.h" ;
|
|
|
33 |
+USE "svid3", "sys/types.h" ;
|
|
|
34 |
+USE "svid3", "rpc/types.h" ;
|
|
|
35 |
|
|
|
36 |
+ENUM enum xdr_op := {
|
|
|
37 |
XDR_ENCODE = 0,
|
|
|
38 |
XDR_DECODE = 1,
|
|
|
39 |
XDR_FREE = 2
|
|
|
40 |
} ;
|
|
|
41 |
|
|
|
42 |
+TYPE xdrproc_t ;
|
|
|
43 |
|
|
|
44 |
+FIELD struct xdr_ops {
|
|
|
45 |
bool_t ( *x_getlong ) () ;
|
|
|
46 |
bool_t ( *x_putlong ) () ;
|
|
|
47 |
bool_t ( *x_getbytes ) () ;
|
|
|
48 |
bool_t ( *x_putbytes ) () ;
|
|
|
49 |
unsigned int ( *x_getpostn ) () ;
|
|
|
50 |
bool_t ( *x_setpostn ) () ;
|
|
|
51 |
long *( *x_inline ) () ;
|
|
|
52 |
void ( *x_destroy ) () ;
|
|
|
53 |
} ;
|
|
|
54 |
|
|
|
55 |
+TYPE struct xdr_discrim ;
|
|
|
56 |
|
|
|
57 |
+FIELD ( struct ) XDR {
|
|
|
58 |
enum xdr_op x_op ;
|
|
|
59 |
struct xdr_ops *x_ops ;
|
|
|
60 |
caddr_t x_public ;
|
|
|
61 |
caddr_t x_private ;
|
|
|
62 |
caddr_t x_base ;
|
|
|
63 |
int x_handy ;
|
|
|
64 |
} ;
|
|
|
65 |
|
|
|
66 |
+FUNC unsigned int xdr_getpos ( const XDR * ) ;
|
|
|
67 |
+FUNC long *xdr_inline ( XDR *, const int ) ;
|
|
|
68 |
+FUNC bool_t xdrrec_eof ( XDR * ) ;
|
|
|
69 |
+FUNC bool_t xdr_setpos ( XDR *, const unsigned int ) ;
|
|
|
70 |
|
|
|
71 |
+FUNC bool_t xdr_array ( XDR *, caddr_t *, unsigned int *,
|
|
|
72 |
const unsigned int, const unsigned int, const xdrproc_t ) ;
|
|
|
73 |
+FUNC bool_t xdr_bytes ( XDR *, char **, unsigned int *, const unsigned int ) ;
|
|
|
74 |
+FUNC bool_t xdr_opaque ( XDR *, caddr_t, const unsigned int ) ;
|
|
|
75 |
+FUNC bool_t xdr_pointer ( XDR *, char **, unsigned int, const xdrproc_t ) ;
|
|
|
76 |
+FUNC bool_t xdr_reference ( XDR *, caddr_t *, unsigned int, const xdrproc_t ) ;
|
|
|
77 |
+FUNC bool_t xdr_string ( XDR *, char **, const unsigned int ) ;
|
|
|
78 |
+FUNC bool_t xdr_union ( XDR *, enum_t *, char *, const struct xdr_discrim *,
|
|
|
79 |
const bool_t (*) () ) ;
|
|
|
80 |
+FUNC bool_t xdr_vector ( XDR *, char *, const unsigned int,
|
|
|
81 |
const unsigned int, const xdrproc_t ) ;
|
|
|
82 |
+FUNC bool_t xdr_wrapstring ( XDR *, char ** ) ;
|
|
|
83 |
|
|
|
84 |
+FUNC void xdr_destroy ( XDR * ) ;
|
|
|
85 |
+FUNC void xdrmem_create ( XDR *, const caddr_t, const unsigned int,
|
|
|
86 |
const enum xdr_op ) ;
|
|
|
87 |
+FUNC void xdrrec_create ( XDR *, const unsigned int, const unsigned int,
|
|
|
88 |
const caddr_t, const int (*) (), const int (*) () ) ;
|
|
|
89 |
+FUNC void xdrstdio_create ( XDR *, FILE *, const enum xdr_op ) ;
|
|
|
90 |
|
|
|
91 |
+FUNC bool_t xdr_bool ( XDR *, bool_t * ) ;
|
|
|
92 |
+FUNC bool_t xdr_char ( XDR *, char * ) ;
|
|
|
93 |
+FUNC bool_t xdr_double ( XDR *, double * ) ;
|
|
|
94 |
+FUNC bool_t xdr_enum ( XDR *, enum_t * ) ;
|
|
|
95 |
+FUNC void xdr_free ( xdrproc_t, char * ) ;
|
|
|
96 |
+FUNC bool_t xdr_float ( XDR *, float * ) ;
|
|
|
97 |
+FUNC bool_t xdr_int ( XDR *, int * ) ;
|
|
|
98 |
+FUNC bool_t xdr_long ( XDR *, long * ) ;
|
|
|
99 |
+FUNC bool_t xdr_short ( XDR *, short * ) ;
|
|
|
100 |
+FUNC bool_t xdr_u_char ( XDR *, char * ) ;
|
|
|
101 |
+FUNC bool_t xdr_u_long ( XDR *, unsigned long * ) ;
|
|
|
102 |
+FUNC bool_t xdr_u_short ( XDR *, unsigned short * ) ;
|
|
|
103 |
+FUNC bool_t xdr_void ( void ) ;
|
|
|
104 |
|
|
|
105 |
+ENDIF
|