4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
29 #pragma ident "%Z%%M% %I% %E% SMI"
47 #define NO_FOLLOW_LINK 0
52 #define PROTOLIST_LIST 1
53 #define PROTODIR_LIST 2
54 #define EXCEPTION_LIST 3
61 #define CHAR_DEV_T 'c'
62 #define BLOCK_DEV_T 'b'
66 #define VOLATILE_T 'v'
67 #define SYM_LINK_T 's'
99 #error "Unknown instruction set"
107 typedef struct pkg_list
{
108 char pkg_name
[MAXNAME
];
109 struct pkg_list
*next
;
112 typedef struct elem
{
121 struct elem
*link_parent
;
122 struct elem
*link_sib
;
126 char owner
[TYPESIZE
];
127 char group
[TYPESIZE
];
138 #define HASH_SIZE 4093
145 extern void add_elem(elem_list
*, elem
*);
146 extern pkg_list
*add_pkg(pkg_list
*, const char *);
147 extern elem
*find_elem(elem_list
*, elem
*, int);
148 extern elem
*find_elem_mach(elem_list
*, elem
*, int);
149 extern elem
*find_elem_isa(elem_list
*, elem
*, int);
150 extern void init_list(elem_list
*, int);
151 extern unsigned int hash(const char *str
);
152 extern int processed_package(const char *pkgname
);
153 extern void mark_processed(const char *pkgname
);
155 extern void examine_list(elem_list
*list
);
156 extern void print_list(elem_list
*);
157 extern void print_type_list(elem_list
*list
, char file_type
);
160 /* Global statistics */
161 extern int max_list_depth
;