libkvm - Update for new dumps & minidumps
[dragonfly.git] / include / rpcsvc / rex.h
1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5
6 #ifndef _REX_H_RPCGEN
7 #define _REX_H_RPCGEN
8
9 #include <rpc/rpc.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 #define STRINGSIZE 1024
16
17 typedef char *rexstring;
18 #define SIGINT 2
19 #define REX_INTERACTIVE 1
20
21 struct rex_start {
22         struct {
23                 u_int rst_cmd_len;
24                 rexstring *rst_cmd_val;
25         } rst_cmd;
26         rexstring rst_host;
27         rexstring rst_fsname;
28         rexstring rst_dirwithin;
29         struct {
30                 u_int rst_env_len;
31                 rexstring *rst_env_val;
32         } rst_env;
33         u_int rst_port0;
34         u_int rst_port1;
35         u_int rst_port2;
36         u_int rst_flags;
37 };
38 typedef struct rex_start rex_start;
39
40 struct rex_result {
41         int rlt_stat;
42         rexstring rlt_message;
43 };
44 typedef struct rex_result rex_result;
45
46 struct sgttyb {
47         u_int four;
48         char chars[4];
49         u_int flags;
50 };
51 typedef struct sgttyb sgttyb;
52 #define B0 0
53 #define B50 1
54 #define B75 2
55 #define B110 3
56 #define B134 4
57 #define B150 5
58 #define B200 6
59 #define B300 7
60 #define B600 8
61 #define B1200 9
62 #define B1800 10
63 #define B2400 11
64 #define B4800 12
65 #define B9600 13
66 #define B19200 14
67 #define B38400 15
68 #define TANDEM 0x00000001
69 #define CBREAK 0x00000002
70 #define LCASE 0x00000004
71 #define ECHO 0x00000008
72 #define CRMOD 0x00000010
73 #define RAW 0x00000020
74 #define ODDP 0x00000040
75 #define EVENP 0x00000080
76 #define ANYP 0x000000c0
77 #define NLDELAY 0x00000300
78 #define NL0 0x00000000
79 #define NL1 0x00000100
80 #define NL2 0x00000200
81 #define NL3 0x00000300
82 #define TBDELAY 0x00000c00
83 #define TAB0 0x00000000
84 #define TAB1 0x00000400
85 #define TAB2 0x00000800
86 #define XTABS 0x00000c00
87 #define CRDELAY 0x00003000
88 #define CR0 0x00000000
89 #define CR1 0x00001000
90 #define CR2 0x00002000
91 #define CR3 0x00003000
92 #define VTDELAY 0x00004000
93 #define FF0 0x00000000
94 #define FF1 0x00004000
95 #define BSDELAY 0x00008000
96 #define BS0 0x00000000
97 #define BS1 0x00008000
98 #define CRTBS 0x00010000
99 #define PRTERA 0x00020000
100 #define CRTERA 0x00040000
101 #define TILDE 0x00080000
102 #define MDMBUF 0x00100000
103 #define LITOUT 0x00200000
104 #define TOSTOP 0x00400000
105 #define FLUSHO 0x00800000
106 #define NOHANG 0x01000000
107 #define L001000 0x02000000
108 #define CRTKIL 0x04000000
109 #define PASS8 0x08000000
110 #define CTLECH 0x10000000
111 #define PENDIN 0x20000000
112 #define DECCTQ 0x40000000
113 #define NOFLSH 0x80000000
114
115 struct tchars {
116         u_int six;
117         char chars[6];
118 };
119 typedef struct tchars tchars;
120
121 struct ltchars {
122         u_int six;
123         char chars[6];
124         u_int mode;
125 };
126 typedef struct ltchars ltchars;
127
128 struct rex_ttysize {
129         int ts_lines;
130         int ts_cols;
131 };
132 typedef struct rex_ttysize rex_ttysize;
133
134 struct rex_ttymode {
135         sgttyb basic;
136         tchars more;
137         ltchars yetmore;
138         u_int andmore;
139 };
140 typedef struct rex_ttymode rex_ttymode;
141 #define LCRTBS 0x0001
142 #define LPRTERA 0x0002
143 #define LCRTERA 0x0004
144 #define LTILDE 0x0008
145 #define LMDMBUF 0x0010
146 #define LLITOUT 0x0020
147 #define LTOSTOP 0x0040
148 #define LFLUSHO 0x0080
149 #define LNOHANG 0x0100
150 #define LL001000 0x0200
151 #define LCRTKIL 0x0400
152 #define LPASS8 0x0800
153 #define LCTLECH 0x1000
154 #define LPENDIN 0x2000
155 #define LDECCTQ 0x4000
156 #define LNOFLSH 0x8000
157
158 #define REXPROG ((unsigned long)(100017))
159 #define REXVERS ((unsigned long)(1))
160
161 extern  void rexprog_1(struct svc_req *rqstp, SVCXPRT *transp);
162 #define REXPROC_START ((unsigned long)(1))
163 extern  rex_result * rexproc_start_1(rex_start *, CLIENT *);
164 extern  rex_result * rexproc_start_1_svc(rex_start *, struct svc_req *);
165 #define REXPROC_WAIT ((unsigned long)(2))
166 extern  rex_result * rexproc_wait_1(void *, CLIENT *);
167 extern  rex_result * rexproc_wait_1_svc(void *, struct svc_req *);
168 #define REXPROC_MODES ((unsigned long)(3))
169 extern  void * rexproc_modes_1(rex_ttymode *, CLIENT *);
170 extern  void * rexproc_modes_1_svc(rex_ttymode *, struct svc_req *);
171 #define REXPROC_WINCH ((unsigned long)(4))
172 extern  void * rexproc_winch_1(rex_ttysize *, CLIENT *);
173 extern  void * rexproc_winch_1_svc(rex_ttysize *, struct svc_req *);
174 #define REXPROC_SIGNAL ((unsigned long)(5))
175 extern  void * rexproc_signal_1(int *, CLIENT *);
176 extern  void * rexproc_signal_1_svc(int *, struct svc_req *);
177 extern int rexprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
178
179 /* the xdr functions */
180 extern  bool_t xdr_rexstring(XDR *, rexstring*);
181 extern  bool_t xdr_rex_start(XDR *, rex_start*);
182 extern  bool_t xdr_rex_result(XDR *, rex_result*);
183 extern  bool_t xdr_sgttyb(XDR *, sgttyb*);
184 extern  bool_t xdr_tchars(XDR *, tchars*);
185 extern  bool_t xdr_ltchars(XDR *, ltchars*);
186 extern  bool_t xdr_rex_ttysize(XDR *, rex_ttysize*);
187 extern  bool_t xdr_rex_ttymode(XDR *, rex_ttymode*);
188
189 #ifdef __cplusplus
190 }
191 #endif
192
193 #endif /* !_REX_H_RPCGEN */