home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 202.img / SCO386N2.TD0 / usr / include / sys / timod.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-05-18  |  2.5 KB  |  86 lines

  1. /*
  2.  *    @(#) timod.h 1.1 88/05/18 
  3.  *
  4.  *    Copyright (C) The Santa Cruz Operation, 1984, 1985, 1986, 1987, 1988.
  5.  *    Copyright (C) Microsoft Corporation, 1984, 1985, 1986, 1987, 1988.
  6.  *    This Module contains Proprietary Information of
  7.  *    The Santa Cruz Operation, Microsoft Corporation
  8.  *    and AT&T, and should be treated as Confidential.
  9.  */
  10.  
  11. /*
  12.  * THIS FILE CONTAINS CODE WHICH IS DESIGNED TO BE
  13.  * PORTABLE BETWEEN DIFFERENT MACHINE ARCHITECTURES
  14.  * AND CONFIGURATIONS. IT SHOULD NOT REQUIRE ANY
  15.  * MODIFICATIONS WHEN ADAPTING XENIX TO NEW HARDWARE.
  16.  */
  17.  
  18. /* internal flags */
  19. #define USED        0x01    /* data structure in use          */
  20. #define FATAL        0x02    /* fatal error M_ERROR occurred   */
  21. #define WAITIOCACK    0x04    /* waiting for info for ioctl act */
  22. #define MORE            0x08    /* more data */
  23. #define EXPEDITED    0x10    /* processing expedited TSDU */
  24.  
  25.  
  26.  
  27. /* timod ioctls */
  28. #define        TIMOD         ('T'<<8)
  29. #define        TI_GETINFO    (TIMOD|100)
  30. #define        TI_OPTMGMT    (TIMOD|101)
  31. #define        TI_BIND        (TIMOD|102)
  32. #define        TI_UNBIND    (TIMOD|103)
  33.  
  34. #ifdef M_I386
  35. #pragma pack(4)
  36. #endif
  37.  
  38. /* TI interface user level structure - one per open file */
  39.  
  40. struct _ti_user {
  41.     ushort    ti_flags;    /* flags              */
  42.     int    ti_rcvsize;    /* rcv buffer size    */
  43.     char   *ti_rcvbuf;    /* rcv buffer         */
  44.     int    ti_ctlsize;    /* ctl buffer size    */
  45.     char   *ti_ctlbuf;    /* ctl buffer         */
  46.     char   *ti_lookdbuf;    /* look data buffer   */
  47.     char   *ti_lookcbuf;    /* look ctl buffer    */
  48.     int    ti_lookdsize;  /* look data buf size */
  49.     int    ti_lookcsize;  /* look ctl buf size  */
  50.     int    ti_maxpsz;    /* TIDU size          */
  51.     long    ti_servtype;    /* service type       */
  52.     int     ti_lookflg;    /* buffered look flag */
  53.     int    ti_state;    /* user level state   */
  54.     int    ti_ocnt;    /* # outstanding connect indications */
  55. };
  56.  
  57. /* old TI interface user level structure - needed for compatibility */
  58.  
  59. struct _oldti_user {
  60.     ushort    ti_flags;    /* flags              */
  61.     int    ti_rcvsize;    /* rcv buffer size    */
  62.     char   *ti_rcvbuf;    /* rcv buffer         */
  63.     int    ti_ctlsize;    /* ctl buffer size    */
  64.     char   *ti_ctlbuf;    /* ctl buffer         */
  65.     char   *ti_lookdbuf;    /* look data buffer   */
  66.     char   *ti_lookcbuf;    /* look ctl buffer    */
  67.     int    ti_lookdsize;  /* look data buf size */
  68.     int    ti_lookcsize;  /* look ctl buf size  */
  69.     int    ti_maxpsz;    /* TIDU size          */
  70.     long    ti_servtype;    /* service type       */
  71.     int     ti_lookflg;    /* buffered look flag */
  72. };
  73.  
  74. #ifdef M_I386
  75. #pragma pack()
  76. #endif
  77.  
  78.  
  79. #ifdef M_I86
  80. #define OPENFILES NOFILE
  81. #else
  82. /* This should be replaced */
  83. extern long ulimit();
  84. #define OPENFILES     ulimit(4, 0)
  85. #endif
  86.