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