home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / jioctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  1.9 KB  |  67 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8.  
  9. #ident    "@(#)head.sys:jioctl.h    1.3"
  10.  
  11. /*
  12. **    Unix to Jerq I/O control codes
  13. */
  14.  
  15. #define    JTYPE        ('j'<<8)
  16. #define    JBOOT        (JTYPE|1)
  17. #define    JTERM        (JTYPE|2)
  18. #define    JMPX        (JTYPE|3)
  19. #define    JTIMO        (JTYPE|4)    /* Timeouts in seconds */
  20. #define    JWINSIZE    (JTYPE|5)
  21. #define    JTIMOM        (JTYPE|6)    /* Timeouts in millisecs */
  22. #define    JZOMBOOT    (JTYPE|7)
  23. #define JAGENT        (JTYPE|9)    /* control for both directions */
  24. #define JTRUN        (JTYPE|10)    /* send runlayer command to layers*/
  25.  
  26. struct jwinsize
  27. {
  28.     char    bytesx, bytesy;    /* Window size in characters */
  29.     short    bitsx, bitsy;    /* Window size in bits */
  30. };
  31.  
  32. /**    Channel 0 control message format **/
  33.  
  34. struct jerqmesg
  35. {
  36.     char    cmd;        /* A control code above */
  37.     char    chan;        /* Channel it refers to */
  38. };
  39.  
  40. /*
  41. **    Character-driven state machine information for Jerq to Unix communication.
  42. */
  43.  
  44. #define    C_SENDCHAR    1    /* Send character to layer process */
  45. #define    C_NEW        2    /* Create new layer process group */
  46. #define    C_UNBLK        3    /* Unblock layer process */
  47. #define    C_DELETE    4    /* Delete layer process group */
  48. #define    C_EXIT        5    /* Exit */
  49. #define    C_DEFUNCT    6    /* Send terminate signal to proc. group */
  50. #define    C_SENDNCHARS    7    /* Send several characters to layer proc. */
  51. #define    C_RESHAPE    8    /* Layer has been reshaped */
  52. #define C_RUN           9       /* Run command in layer */
  53.  
  54. /*
  55. **    Usual format is: [command][data]
  56. */
  57.  
  58. /*
  59.  *    This defines things to do with the host agent on the Blit.
  60.  */
  61.  
  62. struct bagent{  /* this is supposed to be 12 bytes long */
  63.     long size;       /* size of src string going in and dest string out */
  64.     char * src;    /* address of the source byte string */
  65.     char * dest;    /* address of the destination byte string */
  66. };
  67.