Print this page
5956 orientate is not a word
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Marcel Telka <marcel@telka.sk>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/sys/t_kuser.h
+++ new/usr/src/uts/common/sys/t_kuser.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License, Version 1.0 only
6 6 * (the "License"). You may not use this file except in compliance
7 7 * with the License.
8 8 *
9 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 * or http://www.opensolaris.org/os/licensing.
11 11 * See the License for the specific language governing permissions
12 12 * and limitations under the License.
13 13 *
14 14 * When distributing Covered Code, include this CDDL HEADER in each
15 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 * If applicable, add the following below this CDDL HEADER, with the
17 17 * fields enclosed by brackets "[]" replaced with your own identifying
18 18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 19 *
20 20 * CDDL HEADER END
21 21 */
22 22 /*
23 23 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
24 24 *
25 25 * Copyright 1998 Sun Microsystems, Inc. All rights reserved.
26 26 * Use is subject to license terms.
27 27 */
28 28
29 29 /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
30 30 /* All Rights Reserved */
31 31
32 32 /*
33 33 * University Copyright- Copyright (c) 1982, 1986, 1988
34 34 * The Regents of the University of California
35 35 * All Rights Reserved
36 36 *
37 37 * University Acknowledgment- Portions of this document are derived from
38 38 * software developed by the University of California, Berkeley, and its
39 39 * contributors.
40 40 */
41 41
42 42 #ifndef _SYS_T_KUSER_H
43 43 #define _SYS_T_KUSER_H
44 44
45 45 #include <sys/types.h>
46 46 #include <sys/file.h>
↓ open down ↓ |
46 lines elided |
↑ open up ↑ |
47 47 #include <sys/cred.h>
48 48 #include <sys/stream.h>
49 49 #include <sys/tiuser.h>
50 50
51 51 #ifdef __cplusplus
52 52 extern "C" {
53 53 #endif
54 54
55 55 /*
56 56 * Note this structure will need to be expanded to handle data
57 - * related to connection orientated transports.
57 + * related to connection oriented transports.
58 58 */
59 59 typedef struct tiuser {
60 60 struct file *fp;
61 61 struct t_info tp_info; /* Transport provider Info. */
62 62 int flags;
63 63 } TIUSER;
64 64 #define TIUSERSZ sizeof (TIUSER)
65 65
66 66 struct knetbuf {
67 67 mblk_t *udata_mp; /* current receive streams block */
68 68 unsigned int maxlen;
69 69 unsigned int len;
70 70 char *buf;
71 71 };
72 72
73 73 struct t_kunitdata {
74 74 struct netbuf addr;
75 75 struct netbuf opt;
76 76 struct knetbuf udata;
77 77 };
78 78
79 79
80 80 #ifdef KTLIDEBUG
81 81 extern int ktli_log();
82 82 extern int ktlilog;
83 83
84 84 #define KTLILOG(A, B, C) ((void)((ktlilog) && ktli_log((A), (B), (C))))
85 85 #else
86 86 #define KTLILOG(A, B, C)
87 87 #endif
88 88
89 89 /*
90 90 * flags
91 91 */
92 92 #define MADE_FP 0x02
93 93
94 94 extern int t_kalloc(TIUSER *, int, int, char **);
95 95 extern int t_kbind(TIUSER *, struct t_bind *, struct t_bind *);
96 96 extern int t_kclose(TIUSER *, int);
97 97 extern int t_kconnect(TIUSER *, struct t_call *, struct t_call *);
98 98 extern int t_kfree(TIUSER *, char *, int);
99 99 extern int t_kgetstate(TIUSER *, int *);
100 100 extern int t_kopen(struct file *, dev_t, int, TIUSER **, struct cred *);
101 101 extern int t_krcvudata(TIUSER *, struct t_kunitdata *, int *, int *);
102 102 extern int t_ksndudata(TIUSER *, struct t_kunitdata *, frtn_t *);
103 103 extern int t_kspoll(TIUSER *, int, int, int *);
104 104 extern int t_kunbind(TIUSER *);
105 105 extern int tli_send(TIUSER *, mblk_t *, int);
106 106 extern int tli_recv(TIUSER *, mblk_t **, int);
107 107 extern int t_tlitosyserr(int);
108 108 extern int get_ok_ack(TIUSER *, int, int);
109 109
110 110 /*
111 111 * these make life a lot easier
112 112 */
113 113 #define TCONNREQSZ sizeof (struct T_conn_req)
114 114 #define TCONNRESSZ sizeof (struct T_conn_res)
115 115 #define TDISCONREQSZ sizeof (struct T_discon_req)
116 116 #define TDATAREQSZ sizeof (struct T_data_req)
117 117 #define TEXDATAREQSZ sizeof (struct T_exdata_req)
118 118 #define TINFOREQSZ sizeof (struct T_info_req)
119 119 #define TBINDREQSZ sizeof (struct T_bind_req)
120 120 #define TUNBINDREQSZ sizeof (struct T_unbind_req)
121 121 #define TUNITDATAREQSZ sizeof (struct T_unitdata_req)
122 122 #define TOPTMGMTREQSZ sizeof (struct T_optmgmt_req)
123 123 #define TORDRELREQSZ sizeof (struct T_ordrel_req)
124 124 #define TCONNINDSZ sizeof (struct T_conn_ind)
125 125 #define TCONNCONSZ sizeof (struct T_conn_con)
126 126 #define TDISCONINDSZ sizeof (struct T_discon_ind)
127 127 #define TDATAINDSZ sizeof (struct T_data_ind)
128 128 #define TEXDATAINDSZ sizeof (struct T_exdata_ind)
129 129 #define TINFOACKSZ sizeof (struct T_info_ack)
130 130 #define TBINDACKSZ sizeof (struct T_bind_ack)
131 131 #define TERRORACKSZ sizeof (struct T_error_ack)
132 132 #define TOKACKSZ sizeof (struct T_ok_ack)
133 133 #define TUNITDATAINDSZ sizeof (struct T_unitdata_ind)
134 134 #define TUDERRORINDSZ sizeof (struct T_uderror_ind)
135 135 #define TOPTMGMTACKSZ sizeof (struct T_optmgmt_ack)
136 136 #define TORDRELINDSZ sizeof (struct T_ordrel_ind)
137 137 #define TPRIMITIVES sizeof (struct T_primitives)
138 138
139 139 #ifdef __cplusplus
140 140 }
141 141 #endif
142 142
143 143 #endif /* _SYS_T_KUSER_H */
↓ open down ↓ |
76 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX