/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _LIST_H
#define _LIST_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Constants
*/
/*
* find_elem flags
*/
#define NO_FOLLOW_LINK 0
/*
* elem_list types
*/
/*
* file types
*/
/*
* Arch Values
*/
/* sparc */
/* x86 values */
/* ppc values */
#if defined(sparc)
#else
#error "Unknown instruction set"
#endif
/*
* typedefs
*/
typedef struct pkg_list {
} pkg_list;
typedef struct elem {
int inode;
short perm;
int ref_cnt;
short flag;
short major;
short minor;
short arch;
char *symsrc;
char file_type;
} elem;
typedef struct {
int num_of_buckets;
short type;
} elem_list;
/*
* Funcs
*/
extern int processed_package(const char *pkgname);
extern void mark_processed(const char *pkgname);
#ifdef DEBUG
extern void print_list(elem_list *);
#endif
/* Global statistics */
extern int max_list_depth;
#ifdef __cplusplus
}
#endif
#endif /* _LIST_H */