xref: /illumos-gate/usr/src/tools/protocmp/proto_list.h (revision dd72704bd9e794056c558153663c739e2012d721)
1 /*
2  * CDDL HEADER START
3  *
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
7  * with the License.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 1993-2003 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #define	SYM_F		1
28 #define	PERM_F		2
29 #define	REF_F		4
30 #define	TYPE_F		8
31 #define	NAME_F		16
32 #define	OWNER_F		32
33 #define	GROUP_F		64
34 #define	MAJMIN_F	128
35 
36 #define	CODE	0
37 #define	NAME	1
38 #define	SYM	2
39 #define	SRC	2
40 #define	PERM	3
41 #define	OWNR	4
42 #define	GRP	5
43 #define	INO	6
44 #define	LCNT	7
45 #define	MAJOR	8
46 #define	MINOR	9
47 #define	PROTOS	10
48 #define	FIELDS	11
49 
50 extern int read_in_protolist(const char *, elem_list *, int);
51