88 lines
2.5 KiB
C
88 lines
2.5 KiB
C
#ifndef __RPCSVC_REX_H__
|
|
#define __RPCSVC_REX_H__
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#ident "$Revision: 1.4 $"
|
|
/*
|
|
*
|
|
* Copyright 1992, Silicon Graphics, Inc.
|
|
* All Rights Reserved.
|
|
*
|
|
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
|
|
* the contents of this file may not be disclosed to third parties, copied or
|
|
* duplicated in any form, in whole or in part, without the prior written
|
|
* permission of Silicon Graphics, Inc.
|
|
*
|
|
* RESTRICTED RIGHTS LEGEND:
|
|
* Use, duplication or disclosure by the Government is subject to restrictions
|
|
* as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
|
|
* and Computer Software clause at DFARS 252.227-7013, and/or in similar or
|
|
* successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
|
|
* rights reserved under the Copyright Laws of the United States.
|
|
*/
|
|
/*
|
|
* Copyright (c) 1988 by Sun Microsystems, Inc.
|
|
* @(#) from SUN 1.3
|
|
*/
|
|
|
|
/*
|
|
* rex - remote execution server definitions
|
|
*/
|
|
|
|
#define REXPROG 100017
|
|
#define REXPROC_NULL 0 /* no operation */
|
|
#define REXPROC_START 1 /* start a command */
|
|
#define REXPROC_WAIT 2 /* wait for a command to complete */
|
|
#define REXPROC_MODES 3 /* send the tty modes */
|
|
#define REXPROC_WINCH 4 /* signal a window change */
|
|
#define REXPROC_SIGNAL 5 /* other signals */
|
|
|
|
#define REXVERS 1
|
|
|
|
/* flags for rst_flags field */
|
|
#define REX_INTERACTIVE 1 /* Interative mode */
|
|
|
|
struct rex_start {
|
|
/*
|
|
* Structure passed as parameter to start function
|
|
*/
|
|
char **rst_cmd; /* list of command and args */
|
|
char *rst_host; /* working directory host name */
|
|
char *rst_fsname; /* working directory file system name */
|
|
char *rst_dirwithin; /* working directory within file system */
|
|
char **rst_env; /* list of environment */
|
|
u_short rst_port0; /* port for stdin */
|
|
u_short rst_port1; /* port for stdin */
|
|
u_short rst_port2; /* port for stdin */
|
|
u_long rst_flags; /* options - see #defines above */
|
|
};
|
|
|
|
bool_t xdr_rex_start();
|
|
|
|
struct rex_result {
|
|
/*
|
|
* Structure returned from the start function
|
|
*/
|
|
int rlt_stat; /* integer status code */
|
|
char *rlt_message; /* string message for human consumption */
|
|
};
|
|
bool_t xdr_rex_result();
|
|
|
|
struct rex_ttymode {
|
|
/*
|
|
* Structure sent to set-up the tty modes
|
|
*/
|
|
struct sgttyb basic; /* standard unix tty flags */
|
|
struct tchars more; /* interrupt, kill characters, etc. */
|
|
struct ltchars yetmore; /* special Bezerkeley characters */
|
|
u_long andmore; /* and Berkeley modes */
|
|
};
|
|
|
|
bool_t xdr_rex_ttymode();
|
|
bool_t xdr_rex_ttysize();
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !__RPCSVC_REX_H__ */
|