home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 9.ddi / usr / include / sys / t_kuser.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  3.5 KB  |  120 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    _T_KUSER_H
  11. #define    _T_KUSER_H
  12.  
  13. #ident    "@(#)/usr/include/sys/t_kuser.h.sl 1.1 4.0 12/08/90 49844 AT&T-USL"
  14.  
  15. /*    @(#)t_kuser.h 1.1 88/12/12 SMI    */
  16.  
  17. /*
  18.  *          PROPRIETARY NOTICE (Combined)
  19.  *  
  20.  *  This source code is unpublished proprietary information
  21.  *  constituting, or derived under license from AT&T's Unix(r) System V.
  22.  *  In addition, portions of such source code were derived from Berkeley
  23.  *  4.3 BSD under license from the Regents of the University of
  24.  *  California.
  25.  *  
  26.  *  
  27.  *  
  28.  *          Copyright Notice 
  29.  *  
  30.  *  Notice of copyright on this source code product does not indicate 
  31.  *  publication.
  32.  *  
  33.  *      (c) 1986,1987,1988,1989  Sun Microsystems, Inc.
  34.  *      (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  35.  *                All rights reserved.
  36.  */
  37.  
  38. /* Note this structure will need to be expanded to handle data
  39.  * related to connection orientated transports. 
  40.  */
  41. typedef struct tiuser {
  42.     struct    file *fp;
  43.     struct    t_info tp_info;    /* Transport provider Info. */
  44.     int    flags;
  45. } TIUSER;
  46. #define        TIUSERSZ    sizeof(TIUSER)
  47.  
  48. struct knetbuf {
  49.     mblk_t   *udata_mp;    /* current receive streams block */
  50.     unsigned int maxlen;
  51.     unsigned int len;
  52.     char     *buf;
  53. };
  54.  
  55. struct t_kunitdata {
  56.     struct netbuf addr;
  57.     struct netbuf opt;
  58.     struct knetbuf udata;
  59. };
  60.  
  61. #ifdef DEBUG
  62. extern int    ktli_log();
  63. extern int    ktlilog;
  64.  
  65. #define        KTLILOG(A, B, C) ((void)((ktlilog) && ktli_log((A), (B), (C))))
  66. #else
  67. #define        KTLILOG(A, B, C)
  68. #endif
  69.  
  70. /* flags
  71.  */
  72. #define        TIME_UP        0x01
  73.  
  74. extern int    t_kalloc();
  75. extern int    t_kbind();
  76. extern int    t_kclose();
  77. extern int    t_kconnect();
  78. extern int    t_kfree();
  79. extern int    t_kgetstate();
  80. extern int    t_kopen();
  81. extern int    t_krcvudata();
  82. extern int    t_ksndudata();
  83. extern int    t_kspoll();
  84. extern int    t_kunbind();
  85. extern int    tli_send();
  86. extern int    tli_recv();
  87. extern int    get_ok_ack();
  88.  
  89. /* these make life a lot easier
  90.  */
  91. #define        TCONNREQSZ    sizeof(struct T_conn_req)
  92. #define        TCONNRESSZ    sizeof(struct T_conn_res)
  93. #define        TDISCONREQSZ    sizeof(struct T_discon_req)
  94. #define        TDATAREQSZ    sizeof(struct T_data_req)
  95. #define        TEXDATAREQSZ    sizeof(struct T_exdata_req)
  96. #define        TINFOREQSZ    sizeof(struct T_info_req)
  97. #define        TBINDREQSZ    sizeof(struct T_bind_req)
  98. #define        TUNBINDREQSZ    sizeof(struct T_unbind_req)
  99. #define        TUNITDATAREQSZ    sizeof(struct T_unitdata_req)
  100. #define        TOPTMGMTREQSZ    sizeof(struct T_optmgmt_req)
  101. #define        TORDRELREQSZ    sizeof(struct T_ordrel_req)
  102. #define        TCONNINDSZ    sizeof(struct T_conn_ind)
  103. #define        TCONNCONSZ    sizeof(struct T_conn_con)
  104. #define        TDISCONINDSZ    sizeof(struct T_discon_ind)
  105. #define        TDATAINDSZ    sizeof(struct T_data_ind)
  106. #define        TEXDATAINDSZ    sizeof(struct T_exdata_ind)
  107. #define        TINFOACKSZ    sizeof(struct T_info_ack)
  108. #define        TBINDACKSZ    sizeof(struct T_bind_ack)
  109. #define        TERRORACKSZ    sizeof(struct T_error_ack)
  110. #define        TOKACKSZ    sizeof(struct T_ok_ack)
  111. #define        TUNITDATAINDSZ    sizeof(struct T_unitdata_ind)
  112. #define        TUDERRORINDSZ    sizeof(struct T_uderror_ind)
  113. #define        TOPTMGMTACKSZ    sizeof(struct T_optmgmt_ack)
  114. #define        TORDRELINDSZ    sizeof(struct T_ordrel_ind)
  115. #define        TPRIMITIVES    sizeof(struct T_primitives)
  116.  
  117. /******************************************************************************/
  118.  
  119. #endif    /* _T_KUSER_ */
  120.