rex.h 5.1 KB

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