home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / rpcsvc / rex.h < prev    next >
C/C++ Source or Header  |  1990-01-29  |  2KB  |  63 lines

  1. /*    @(#)rex.h    1.2 88/05/08 4.0NFSSRC SMI    */
  2.  
  3. /* 
  4.  * Copyright (c) 1988 by Sun Microsystems, Inc.
  5.  * @(#) from SUN 1.3
  6.  */
  7.  
  8. /*
  9.  * rex - remote execution server definitions
  10.  */
  11.  
  12. #define    REXPROG        100017
  13. #define    REXPROC_NULL    0    /* no operation */
  14. #define    REXPROC_START    1    /* start a command */
  15. #define    REXPROC_WAIT    2    /* wait for a command to complete */
  16. #define    REXPROC_MODES    3    /* send the tty modes */
  17. #define REXPROC_WINCH    4    /* signal a window change */
  18. #define REXPROC_SIGNAL    5    /* other signals */
  19.  
  20. #define    REXVERS    1
  21.  
  22. /* flags for rst_flags field */
  23. #define REX_INTERACTIVE        1    /* Interative mode */
  24.  
  25. struct rex_start {
  26.   /*
  27.    * Structure passed as parameter to start function
  28.    */
  29.     char    **rst_cmd;    /* list of command and args */
  30.     char    *rst_host;    /* working directory host name */
  31.     char    *rst_fsname;    /* working directory file system name */
  32.     char    *rst_dirwithin;    /* working directory within file system */
  33.     char    **rst_env;    /* list of environment */
  34.     u_short    rst_port0;    /* port for stdin */
  35.     u_short    rst_port1;    /* port for stdin */
  36.     u_short    rst_port2;    /* port for stdin */
  37.     u_long    rst_flags;    /* options - see #defines above */
  38. };
  39.  
  40. bool_t xdr_rex_start();
  41.  
  42. struct rex_result {
  43.   /*
  44.    * Structure returned from the start function
  45.    */
  46.        int    rlt_stat;    /* integer status code */
  47.     char    *rlt_message;    /* string message for human consumption */
  48. };
  49. bool_t xdr_rex_result();
  50.  
  51. struct rex_ttymode {
  52.     /*
  53.      * Structure sent to set-up the tty modes
  54.      */
  55.     struct sgttyb basic;    /* standard unix tty flags */
  56.     struct tchars more;    /* interrupt, kill characters, etc. */
  57.     struct ltchars yetmore;    /* special Bezerkeley characters */
  58.     u_long andmore;        /* and Berkeley modes */
  59. };
  60.  
  61. bool_t xdr_rex_ttymode();
  62. bool_t xdr_rex_ttysize();
  63.