4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 1999 Sun Microsystems, Inc. All Rights Reserved.
23 * Use is subject to license terms.
29 #pragma ident "%Z%%M% %I% %E% SMI"
37 #define WRITE_FLAG 0x2
40 typedef struct _Enum
{
41 struct _Enum
*next_enum
;
46 typedef struct _Object
{
57 typedef struct _Index
{
58 struct _Index
*next_index
;
61 int index_len
; /* for strings only */
65 typedef struct _Entry
{
66 struct _Index
*first_index
;
73 typedef struct _Column
{
86 typedef struct _Node
{
88 struct _Node
*first_child
;
89 struct _Node
*next_peer
;
102 struct CallbackItem
{
108 int is_sun_enterprise
;
109 int generic
,specific
;
112 struct TrapEnterpriseInfo
{
116 /* Handling arbitrary length enterprise OID in traps */
117 struct TrapAnyEnterpriseInfo
{
118 Subid subids
[MAX_OID_LEN
+1];
122 extern Enum enum_table
[];
123 extern int enum_table_size
;
125 extern Object object_table
[];
126 extern int object_table_size
;
128 extern Index index_table
[];
129 extern int index_table_size
;
131 extern Entry entry_table
[];
132 extern int entry_table_size
;
134 extern Column column_table
[];
135 extern int column_table_size
;
137 extern Node node_table
[];
138 extern int node_table_size
;
140 extern struct CallbackItem
*callItem
;
141 extern int numCallItem
;
143 extern int *trapTableMap
;
145 extern struct TrapHndlCxt
*trapBucket
;
146 extern int numTrapElem
;
148 extern struct TrapEnterpriseInfo
*trapEnterpriseInfo
;
149 /* For arbitrary length enterprise OID in traps - bug 4133978 */
150 extern struct TrapAnyEnterpriseInfo
*trapAnyEnterpriseInfo
;
153 extern Node
*node_find(int search_type
, Oid
*name
, Oid
*suffix
);