xref: /titanic_41/usr/src/cmd/fs.d/cachefs/fsck/res.h (revision 03831d35f7499c87d51205817c93e9a8d42c4bae)
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 2005 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 /*
27  *
28  *			res.h
29  *
30  *   Defines routines to operate on the resource file.
31  */
32 
33 #ifndef	_RES_H
34 #define	_RES_H
35 
36 #pragma ident	"%Z%%M%	%I%	%E% SMI"
37 
38 #ifndef	cfs_fsck_res_h
39 #define	cfs_fsck_res_h
40 
41 typedef struct res res;
42 
43 res *res_create(char *namep, int entries, int verbose);
44 void res_destroy(res *resp);
45 int res_done(res *resp);
46 void res_addfile(res *resp, long nbytes);
47 int res_addident(res *resp, int index, rl_entry_t *dp, long nbytes, int file);
48 void res_clearident(res *resp, int index, int nbytes, int file);
49 
50 #endif /* cfs_fsck_res_h */
51 
52 #endif /* _RES_H */
53