home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Portable Patmos / usr / include / rpcsvc / rex.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-08  |  3.3 KB  |  173 lines  |  [TEXT/R*ch]

  1. #define STRINGSIZE 1024
  2.  
  3. typedef char *rexstring;
  4. bool_t xdr_rexstring();
  5.  
  6. #define SIGINT 2
  7. #define REX_INTERACTIVE 1
  8.  
  9. struct rex_start {
  10.     struct {
  11.         u_int rst_cmd_len;
  12.         rexstring *rst_cmd_val;
  13.     } rst_cmd;
  14.     rexstring rst_host;
  15.     rexstring rst_fsname;
  16.     rexstring rst_dirwithin;
  17.     struct {
  18.         u_int rst_env_len;
  19.         rexstring *rst_env_val;
  20.     } rst_env;
  21.     u_int rst_port0;
  22.     u_int rst_port1;
  23.     u_int rst_port2;
  24.     u_int rst_flags;
  25. };
  26. typedef struct rex_start rex_start;
  27. bool_t xdr_rex_start();
  28.  
  29.  
  30. struct rex_result {
  31.     int rlt_stat;
  32.     rexstring rlt_message;
  33. };
  34. typedef struct rex_result rex_result;
  35. bool_t xdr_rex_result();
  36.  
  37.  
  38. struct sgttyb {
  39.     u_int four;
  40.     char chars[4];
  41.     u_int flags;
  42. };
  43. typedef struct sgttyb sgttyb;
  44. bool_t xdr_sgttyb();
  45.  
  46. #define B0 0
  47. #define B50 1
  48. #define B75 2
  49. #define B110 3
  50. #define B134 4
  51. #define B150 5
  52. #define B200 6
  53. #define B300 7
  54. #define B600 8
  55. #define B1200 9
  56. #define B1800 10
  57. #define B2400 11
  58. #define B4800 12
  59. #define B9600 13
  60. #define B19200 14
  61. #define B38400 15
  62. #define TANDEM 0x00000001
  63. #define CBREAK 0x00000002
  64. #define LCASE 0x00000004
  65. #define ECHO 0x00000008
  66. #define CRMOD 0x00000010
  67. #define RAW 0x00000020
  68. #define ODDP 0x00000040
  69. #define EVENP 0x00000080
  70. #define ANYP 0x000000c0
  71. #define NLDELAY 0x00000300
  72. #define NL0 0x00000000
  73. #define NL1 0x00000100
  74. #define NL2 0x00000200
  75. #define NL3 0x00000300
  76. #define TBDELAY 0x00000c00
  77. #define TAB0 0x00000000
  78. #define TAB1 0x00000400
  79. #define TAB2 0x00000800
  80. #define XTABS 0x00000c00
  81. #define CRDELAY 0x00003000
  82. #define CR0 0x00000000
  83. #define CR1 0x00001000
  84. #define CR2 0x00002000
  85. #define CR3 0x00003000
  86. #define VTDELAY 0x00004000
  87. #define FF0 0x00000000
  88. #define FF1 0x00004000
  89. #define BSDELAY 0x00008000
  90. #define BS0 0x00000000
  91. #define BS1 0x00008000
  92. #define CRTBS 0x00010000
  93. #define PRTERA 0x00020000
  94. #define CRTERA 0x00040000
  95. #define TILDE 0x00080000
  96. #define MDMBUF 0x00100000
  97. #define LITOUT 0x00200000
  98. #define TOSTOP 0x00400000
  99. #define FLUSHO 0x00800000
  100. #define NOHANG 0x01000000
  101. #define L001000 0x02000000
  102. #define CRTKIL 0x04000000
  103. #define PASS8 0x08000000
  104. #define CTLECH 0x10000000
  105. #define PENDIN 0x20000000
  106. #define DECCTQ 0x40000000
  107. #define NOFLSH 0x80000000
  108.  
  109. struct tchars {
  110.     u_int six;
  111.     char chars[6];
  112. };
  113. typedef struct tchars tchars;
  114. bool_t xdr_tchars();
  115.  
  116.  
  117. struct ltchars {
  118.     u_int six;
  119.     char chars[6];
  120.     u_int mode;
  121. };
  122. typedef struct ltchars ltchars;
  123. bool_t xdr_ltchars();
  124.  
  125.  
  126. struct rex_ttysize {
  127.     int ts_lines;
  128.     int ts_cols;
  129. };
  130. typedef struct rex_ttysize rex_ttysize;
  131. bool_t xdr_rex_ttysize();
  132.  
  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. bool_t xdr_rex_ttymode();
  142.  
  143. #define LCRTBS 0x0001
  144. #define LPRTERA 0x0002
  145. #define LCRTERA 0x0004
  146. #define LTILDE 0x0008
  147. #define LMDMBUF 0x0010
  148. #define LLITOUT 0x0020
  149. #define LTOSTOP 0x0040
  150. #define LFLUSHO 0x0080
  151. #define LNOHANG 0x0100
  152. #define LL001000 0x0200
  153. #define LCRTKIL 0x0400
  154. #define LPASS8 0x0800
  155. #define LCTLECH 0x1000
  156. #define LPENDIN 0x2000
  157. #define LDECCTQ 0x4000
  158. #define LNOFLSH 0x8000
  159.  
  160. #define REXPROG ((u_long)100017)
  161. #define REXVERS ((u_long)1)
  162. #define REXPROC_START ((u_long)1)
  163. extern rex_result *rexproc_start_1();
  164. #define REXPROC_WAIT ((u_long)2)
  165. extern rex_result *rexproc_wait_1();
  166. #define REXPROC_MODES ((u_long)3)
  167. extern void *rexproc_modes_1();
  168. #define REXPROC_WINCH ((u_long)4)
  169. extern void *rexproc_winch_1();
  170. #define REXPROC_SIGNAL ((u_long)5)
  171. extern void *rexproc_signal_1();
  172.  
  173.