/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
%/*
% * Copyright (c) 1987 by Sun Microsystems, Inc.
% */
%/* from rex.x */
#ifdef RPC_HDR
%
%#pragma ident "%Z%%M% %I% %E% SMI"
%
#endif
/*
* Remote execution (rex) protocol specification
*/
const STRINGSIZE = 1024;
/*
* values to pass to REXPROC_SIGNAL
*/
/*
* Values for rst_flags, below
*/
struct rex_start {
unsigned int rst_port0; /* port for stdin */
unsigned int rst_port1; /* port for stdout */
unsigned int rst_port2; /* port for stderr */
unsigned int rst_flags; /* options - see const above */
};
struct rex_result {
int rlt_stat; /* integer status code */
};
struct sgttyb {
unsigned four; /* always equals 4 */
/* chars[0] == input speed */
/* chars[1] == output speed */
/* chars[2] == kill character */
/* chars[3] == erase character */
unsigned flags;
};
/* values for speeds above (baud rates) */
const B0 = 0;
const B50 = 1;
const B75 = 2;
const B110 = 3;
const B134 = 4;
const B150 = 5;
const B200 = 6;
const B300 = 7;
const B600 = 8;
const B1200 = 9;
const B1800 = 10;
const B2400 = 11;
const B4800 = 12;
const B9600 = 13;
const B19200 = 14;
const B38400 = 15;
/* values for flags above */
const NL0 = 0x00000000;
const NL3 = 0x00000300;
const TAB0 = 0x00000000;
const TAB2 = 0x00000800;
const CR0 = 0x00000000;
const FF0 = 0x00000000;
const BS0 = 0x00000000;
const BS1 = 0x00008000;
const L001000 = 0x02000000;
const PASS8 = 0x08000000;
struct tchars {
unsigned six; /* always equals 6 */
/* chars[0] == interrupt char */
/* chars[1] == quit char */
/* chars[2] == start output char */
/* chars[3] == stop output char */
/* chars[4] == end-of-file char */
/* chars[5] == input delimeter (like nl) */
};
struct ltchars {
unsigned six; /* always equals 6 */
/* chars[0] == stop process signal */
/* chars[1] == delayed stop process signal */
/* chars[2] == reprint line */
/* chars[3] == flush output */
/* chars[4] == word erase */
/* chars[5] == literal next character */
unsigned mode;
};
struct rex_ttysize {
int ts_lines;
int ts_cols;
};
struct rex_ttymode {
unsigned andmore; /* and Berkeley modes */
};
/* values for andmore above */
const LL001000 = 0x0200;
const LPASS8 = 0x0800;
/*
* Start remote execution
*/
/*
* Wait for remote execution to terminate
*/
REXPROC_WAIT(void) = 2;
/*
* Send tty modes
*/
void
/*
* Send window size change
*/
void
/*
* Send other signal
*/
void
REXPROC_SIGNAL(int) = 5;
} = 1;
} = 100017;