home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / ptms.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.4 KB  |  48 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _SYS_PTMS_H
  11. #define _SYS_PTMS_H
  12.  
  13. #ident    "@(#)/usr/include/sys/ptms.h.sl 1.1 4.0 12/08/90 17506 AT&T-USL"
  14. /*
  15.  ================================================================
  16.  =   WARNING!!!! This source is not supported in future source  =
  17.  =   releases.                                                  =
  18.  ================================================================
  19.  */
  20.  
  21. /*
  22.  * Structures and definitions supporting the pseudo terminal
  23.  * drivers.
  24.  */
  25. struct pt_ttys {
  26.     unsigned pt_state;    /* state of master/slave pair */
  27.     queue_t *ptm_wrq;     /* master's write queue pointer */
  28.     queue_t *pts_wrq;     /* slave's write queue pointer */
  29.     mblk_t *pt_bufp;        /* ptr. to zero byte msg. blk. */
  30.     pid_t tty;            /* controlling tty pid */
  31. };
  32.  
  33. /*
  34.  * pt_state values
  35.  */
  36. #define PTLOCK    01    /* master/slave pair is locked */
  37. #define PTMOPEN 02      /* master side is open */
  38. #define PTSOPEN 04    /* slave side is open */
  39.  
  40. /*
  41.  * ioctl commands
  42.  */
  43. #define ISPTM    (('P'<<8)|1)    /* query for master */
  44. #define UNLKPT    (('P'<<8)|2)    /* unlock master/slave pair */
  45.  
  46.  
  47. #endif    /* _SYS_PTMS_H */
  48.